@amir83nasr/10router 0.1.7 → 0.1.8

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 (790) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +12 -11
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +23 -23
  5. package/.next/routes-manifest.json +6 -0
  6. package/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  7. package/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  8. package/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  10. package/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  13. package/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  16. package/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  17. package/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  19. package/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  20. package/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  21. package/.next/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  22. package/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  23. package/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/(dashboard)/dashboard/media-providers/systemone/[id]/page.js +2 -2
  25. package/.next/server/app/(dashboard)/dashboard/media-providers/systemone/[id]/page.js.nft.json +1 -1
  26. package/.next/server/app/(dashboard)/dashboard/media-providers/systemone/[id]/page_client-reference-manifest.js +1 -1
  27. package/.next/server/app/(dashboard)/dashboard/media-providers/systemone/page.js +1 -1
  28. package/.next/server/app/(dashboard)/dashboard/media-providers/systemone/page.js.nft.json +1 -1
  29. package/.next/server/app/(dashboard)/dashboard/media-providers/systemone/page_client-reference-manifest.js +1 -1
  30. package/.next/server/app/(dashboard)/dashboard/page.js +1 -1
  31. package/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  32. package/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  33. package/.next/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  34. package/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  35. package/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  37. package/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  38. package/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  39. package/.next/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  40. package/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  41. package/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  42. package/.next/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  43. package/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  44. package/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  45. package/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  46. package/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  47. package/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  48. package/.next/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  49. package/.next/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  50. package/.next/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  51. package/.next/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  52. package/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  53. package/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  54. package/.next/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  55. package/.next/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  56. package/.next/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  57. package/.next/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  58. package/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  59. package/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  60. package/.next/server/app/_global-error/page.js +2 -2
  61. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  62. package/.next/server/app/_global-error.html +1 -1
  63. package/.next/server/app/_global-error.rsc +1 -1
  64. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  65. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  66. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  67. package/.next/server/app/_not-found/page.js +1 -1
  68. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  69. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  70. package/.next/server/app/_not-found.html +1 -1
  71. package/.next/server/app/_not-found.rsc +6 -6
  72. package/.next/server/app/_not-found.segments/_full.segment.rsc +6 -6
  73. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
  74. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  75. package/.next/server/app/api/auth/login/route.js +1 -1
  76. package/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  77. package/.next/server/app/api/auth/logout/route.js +1 -1
  78. package/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  79. package/.next/server/app/api/auth/oidc/callback/route.js +1 -1
  80. package/.next/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  81. package/.next/server/app/api/auth/oidc/start/route.js +1 -1
  82. package/.next/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  83. package/.next/server/app/api/auth/oidc/test/route.js +1 -1
  84. package/.next/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  85. package/.next/server/app/api/auth/reset-password/route.js +1 -1
  86. package/.next/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  87. package/.next/server/app/api/auth/saml/acs/route.js +1 -1
  88. package/.next/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  89. package/.next/server/app/api/auth/saml/metadata/route.js +2 -2
  90. package/.next/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  91. package/.next/server/app/api/auth/saml/start/route.js +2 -2
  92. package/.next/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  93. package/.next/server/app/api/auth/saml/test/route.js +1 -1
  94. package/.next/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  95. package/.next/server/app/api/auth/status/route.js +1 -1
  96. package/.next/server/app/api/auth/status/route.js.nft.json +1 -1
  97. package/.next/server/app/api/changelog/route.js +1 -1
  98. package/.next/server/app/api/cli-tools/all-statuses/route.js +1 -1
  99. package/.next/server/app/api/cli-tools/claude-settings/route.js +1 -1
  100. package/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
  101. package/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  102. package/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  103. package/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  104. package/.next/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  105. package/.next/server/app/api/cli-tools/dsh-settings/route.js +1 -1
  106. package/.next/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  107. package/.next/server/app/api/combos/[id]/route.js +1 -1
  108. package/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
  109. package/.next/server/app/api/combos/route.js +1 -1
  110. package/.next/server/app/api/combos/route.js.nft.json +1 -1
  111. package/.next/server/app/api/headroom/extras/route.js +1 -1
  112. package/.next/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  113. package/.next/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  114. package/.next/server/app/api/headroom/restart/route.js +1 -1
  115. package/.next/server/app/api/headroom/restart/route.js.nft.json +1 -1
  116. package/.next/server/app/api/headroom/start/route.js +1 -1
  117. package/.next/server/app/api/headroom/start/route.js.nft.json +1 -1
  118. package/.next/server/app/api/headroom/status/route.js +1 -1
  119. package/.next/server/app/api/headroom/status/route.js.nft.json +1 -1
  120. package/.next/server/app/api/headroom/stop/route.js +1 -1
  121. package/.next/server/app/api/health/route.js +1 -1
  122. package/.next/server/app/api/init/route.js +1 -1
  123. package/.next/server/app/api/keys/[id]/route.js +1 -1
  124. package/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
  125. package/.next/server/app/api/keys/route.js +1 -1
  126. package/.next/server/app/api/keys/route.js.nft.json +1 -1
  127. package/.next/server/app/api/locale/route.js +1 -1
  128. package/.next/server/app/api/mcp/[plugin]/message/route.js +2 -2
  129. package/.next/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  130. package/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  131. package/.next/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  132. package/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  133. package/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  134. package/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  135. package/.next/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  136. package/.next/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  137. package/.next/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  138. package/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
  139. package/.next/server/app/api/models/alias/route.js +1 -1
  140. package/.next/server/app/api/models/alias/route.js.nft.json +1 -1
  141. package/.next/server/app/api/models/availability/route.js +1 -1
  142. package/.next/server/app/api/models/availability/route.js.nft.json +1 -1
  143. package/.next/server/app/api/models/catalog-sync/route.js +1 -1
  144. package/.next/server/app/api/models/custom/route.js +1 -1
  145. package/.next/server/app/api/models/custom/route.js.nft.json +1 -1
  146. package/.next/server/app/api/models/disabled/route.js +1 -1
  147. package/.next/server/app/api/models/disabled/route.js.nft.json +1 -1
  148. package/.next/server/app/api/models/route.js +1 -1
  149. package/.next/server/app/api/models/route.js.nft.json +1 -1
  150. package/.next/server/app/api/models/test/route.js +1 -1
  151. package/.next/server/app/api/models/test/route.js.nft.json +1 -1
  152. package/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  153. package/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  154. package/.next/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  155. package/.next/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  156. package/.next/server/app/api/oauth/codex/import-token/route.js +1 -1
  157. package/.next/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  158. package/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  159. package/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  160. package/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  161. package/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
  162. package/.next/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  163. package/.next/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  164. package/.next/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  165. package/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
  166. package/.next/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  167. package/.next/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  168. package/.next/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  169. package/.next/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  170. package/.next/server/app/api/pricing/route.js +1 -1
  171. package/.next/server/app/api/pricing/route.js.nft.json +1 -1
  172. package/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  173. package/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  174. package/.next/server/app/api/provider-nodes/route.js +1 -1
  175. package/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
  176. package/.next/server/app/api/provider-nodes/validate/route.js +1 -1
  177. package/.next/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  178. package/.next/server/app/api/providers/[id]/models/route.js +1 -1
  179. package/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  180. package/.next/server/app/api/providers/[id]/route.js +1 -1
  181. package/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
  182. package/.next/server/app/api/providers/[id]/test/route.js +1 -1
  183. package/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  184. package/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
  185. package/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  186. package/.next/server/app/api/providers/client/route.js +1 -1
  187. package/.next/server/app/api/providers/client/route.js.nft.json +1 -1
  188. package/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
  189. package/.next/server/app/api/providers/route.js +1 -1
  190. package/.next/server/app/api/providers/route.js.nft.json +1 -1
  191. package/.next/server/app/api/providers/suggested-models/route.js +1 -1
  192. package/.next/server/app/api/providers/test-batch/route.js +1 -1
  193. package/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  194. package/.next/server/app/api/providers/validate/route.js +1 -1
  195. package/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
  196. package/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
  197. package/.next/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  198. package/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  199. package/.next/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  200. package/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
  201. package/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  202. package/.next/server/app/api/proxy-pools/deno-deploy/route.js +1 -1
  203. package/.next/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  204. package/.next/server/app/api/proxy-pools/route.js +1 -1
  205. package/.next/server/app/api/proxy-pools/route.js.nft.json +1 -1
  206. package/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  207. package/.next/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  208. package/.next/server/app/api/pxpipe/health/route.js +2 -2
  209. package/.next/server/app/api/pxpipe/install/route.js +1 -1
  210. package/.next/server/app/api/pxpipe/logs/route.js +1 -1
  211. package/.next/server/app/api/pxpipe/restart/route.js +1 -1
  212. package/.next/server/app/api/pxpipe/start/route.js +1 -1
  213. package/.next/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  214. package/.next/server/app/api/pxpipe/stats/route.js +2 -2
  215. package/.next/server/app/api/pxpipe/status/route.js +1 -1
  216. package/.next/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  217. package/.next/server/app/api/pxpipe/stop/route.js +2 -2
  218. package/.next/server/app/api/settings/database/route.js +1 -1
  219. package/.next/server/app/api/settings/database/route.js.nft.json +1 -1
  220. package/.next/server/app/api/settings/proxy-test/route.js +1 -1
  221. package/.next/server/app/api/settings/require-login/route.js +1 -1
  222. package/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
  223. package/.next/server/app/api/settings/route.js +1 -1
  224. package/.next/server/app/api/settings/route.js.nft.json +1 -1
  225. package/.next/server/app/api/shutdown/route.js +1 -1
  226. package/.next/server/app/api/tags/route.js +1 -1
  227. package/.next/server/app/api/translator/console-logs/route.js +1 -1
  228. package/.next/server/app/api/translator/console-logs/stream/route.js +1 -1
  229. package/.next/server/app/api/translator/load/route.js +1 -1
  230. package/.next/server/app/api/translator/save/route.js +1 -1
  231. package/.next/server/app/api/translator/send/route.js +1 -1
  232. package/.next/server/app/api/translator/send/route.js.nft.json +1 -1
  233. package/.next/server/app/api/translator/translate/route.js +1 -1
  234. package/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
  235. package/.next/server/app/api/tunnel/disable/route.js +1 -1
  236. package/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  237. package/.next/server/app/api/tunnel/enable/route.js +1 -1
  238. package/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  239. package/.next/server/app/api/tunnel/status/route.js +1 -1
  240. package/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
  241. package/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
  242. package/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  243. package/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  244. package/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  245. package/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  246. package/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  247. package/.next/server/app/api/tunnel/tailscale-install/route.js +2 -2
  248. package/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  249. package/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  250. package/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  251. package/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  252. package/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  253. package/.next/server/app/api/usage/chart/route.js +1 -1
  254. package/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
  255. package/.next/server/app/api/usage/health/route.js +1 -0
  256. package/.next/server/app/api/usage/health/route.js.nft.json +1 -0
  257. package/.next/server/app/api/usage/health/route_client-reference-manifest.js +1 -0
  258. package/.next/server/app/api/usage/history/route.js +1 -1
  259. package/.next/server/app/api/usage/history/route.js.nft.json +1 -1
  260. package/.next/server/app/api/usage/logs/route.js +1 -1
  261. package/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
  262. package/.next/server/app/api/usage/providers/route.js +1 -1
  263. package/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
  264. package/.next/server/app/api/usage/request-details/route.js +1 -1
  265. package/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
  266. package/.next/server/app/api/usage/request-logs/route.js +1 -1
  267. package/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  268. package/.next/server/app/api/usage/stats/route.js +1 -1
  269. package/.next/server/app/api/usage/stats/route.js.nft.json +1 -1
  270. package/.next/server/app/api/usage/stream/route.js +2 -2
  271. package/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
  272. package/.next/server/app/api/v1/api/chat/route.js +1 -1
  273. package/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  274. package/.next/server/app/api/v1/audio/speech/route.js +1 -1
  275. package/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  276. package/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
  277. package/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  278. package/.next/server/app/api/v1/audio/voices/route.js +1 -1
  279. package/.next/server/app/api/v1/chat/completions/route.js +1 -1
  280. package/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  281. package/.next/server/app/api/v1/embeddings/route.js +1 -1
  282. package/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  283. package/.next/server/app/api/v1/images/generations/route.js +2 -2
  284. package/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  285. package/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
  286. package/.next/server/app/api/v1/messages/route.js +1 -1
  287. package/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  288. package/.next/server/app/api/v1/models/[...model]/route.js +1 -1
  289. package/.next/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  290. package/.next/server/app/api/v1/models/info/route.js +1 -1
  291. package/.next/server/app/api/v1/models/route.js +1 -1
  292. package/.next/server/app/api/v1/models/route.js.nft.json +1 -1
  293. package/.next/server/app/api/v1/responses/compact/route.js +1 -1
  294. package/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  295. package/.next/server/app/api/v1/responses/route.js +1 -1
  296. package/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  297. package/.next/server/app/api/v1/route.js +1 -1
  298. package/.next/server/app/api/v1/route.js.nft.json +1 -1
  299. package/.next/server/app/api/v1/search/route.js +1 -1
  300. package/.next/server/app/api/v1/search/route.js.nft.json +1 -1
  301. package/.next/server/app/api/v1/systemone/route.js +1 -1
  302. package/.next/server/app/api/v1/systemone/route.js.nft.json +1 -1
  303. package/.next/server/app/api/v1/videos/[id]/route.js +1 -1
  304. package/.next/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  305. package/.next/server/app/api/v1/videos/edits/route.js +1 -1
  306. package/.next/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  307. package/.next/server/app/api/v1/videos/extensions/route.js +1 -1
  308. package/.next/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  309. package/.next/server/app/api/v1/videos/generations/route.js +1 -1
  310. package/.next/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  311. package/.next/server/app/api/v1/web/fetch/route.js +1 -1
  312. package/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  313. package/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  314. package/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  315. package/.next/server/app/api/v1beta/models/route.js +1 -1
  316. package/.next/server/app/api/version/route.js +1 -1
  317. package/.next/server/app/api/version/shutdown/route.js +1 -1
  318. package/.next/server/app/api/version/shutdown/route.js.nft.json +1 -1
  319. package/.next/server/app/api/version/update/route.js +1 -1
  320. package/.next/server/app/callback/page.js +1 -1
  321. package/.next/server/app/callback/page.js.nft.json +1 -1
  322. package/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  323. package/.next/server/app/callback.html +1 -1
  324. package/.next/server/app/callback.rsc +7 -7
  325. package/.next/server/app/callback.segments/_full.segment.rsc +7 -7
  326. package/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
  327. package/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +7 -7
  328. package/.next/server/app/dashboard/basic-chat.html +1 -1
  329. package/.next/server/app/dashboard/basic-chat.rsc +8 -8
  330. package/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
  331. package/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
  332. package/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  333. package/.next/server/app/dashboard/cli-tools.html +1 -1
  334. package/.next/server/app/dashboard/cli-tools.rsc +8 -8
  335. package/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
  336. package/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
  337. package/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  338. package/.next/server/app/dashboard/combos.html +1 -1
  339. package/.next/server/app/dashboard/combos.rsc +8 -8
  340. package/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
  341. package/.next/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
  342. package/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  343. package/.next/server/app/dashboard/endpoint.html +1 -1
  344. package/.next/server/app/dashboard/endpoint.rsc +8 -8
  345. package/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
  346. package/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
  347. package/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  348. package/.next/server/app/dashboard/media-providers/systemone.html +1 -1
  349. package/.next/server/app/dashboard/media-providers/systemone.rsc +8 -8
  350. package/.next/server/app/dashboard/media-providers/systemone.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/systemone/__PAGE__.segment.rsc +8 -8
  351. package/.next/server/app/dashboard/media-providers/systemone.segments/_full.segment.rsc +8 -8
  352. package/.next/server/app/dashboard/media-providers/systemone.segments/_tree.segment.rsc +2 -2
  353. package/.next/server/app/dashboard/profile.html +1 -1
  354. package/.next/server/app/dashboard/profile.rsc +8 -8
  355. package/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
  356. package/.next/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
  357. package/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  358. package/.next/server/app/dashboard/providers/new.html +1 -1
  359. package/.next/server/app/dashboard/providers/new.rsc +8 -8
  360. package/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
  361. package/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
  362. package/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  363. package/.next/server/app/dashboard/providers.html +1 -1
  364. package/.next/server/app/dashboard/providers.rsc +8 -8
  365. package/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
  366. package/.next/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
  367. package/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  368. package/.next/server/app/dashboard/proxy-pools.html +1 -1
  369. package/.next/server/app/dashboard/proxy-pools.rsc +8 -8
  370. package/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
  371. package/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
  372. package/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  373. package/.next/server/app/dashboard/pxpipe.html +1 -1
  374. package/.next/server/app/dashboard/pxpipe.rsc +7 -7
  375. package/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +7 -7
  376. package/.next/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
  377. package/.next/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  378. package/.next/server/app/dashboard/quota.html +2 -2
  379. package/.next/server/app/dashboard/quota.rsc +9 -9
  380. package/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
  381. package/.next/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  382. package/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  383. package/.next/server/app/dashboard/settings/pricing/page.js +1 -1
  384. package/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  385. package/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  386. package/.next/server/app/dashboard/settings/pricing.html +1 -1
  387. package/.next/server/app/dashboard/settings/pricing.rsc +6 -6
  388. package/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  389. package/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  390. package/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
  391. package/.next/server/app/dashboard/token-saver.html +1 -1
  392. package/.next/server/app/dashboard/token-saver.rsc +7 -7
  393. package/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +7 -7
  394. package/.next/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
  395. package/.next/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  396. package/.next/server/app/dashboard/usage.html +2 -2
  397. package/.next/server/app/dashboard/usage.rsc +8 -8
  398. package/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
  399. package/.next/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
  400. package/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  401. package/.next/server/app/dashboard.html +1 -1
  402. package/.next/server/app/dashboard.rsc +8 -8
  403. package/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
  404. package/.next/server/app/dashboard.segments/_full.segment.rsc +8 -8
  405. package/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  406. package/.next/server/app/index.html +1 -1
  407. package/.next/server/app/index.rsc +6 -6
  408. package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -6
  409. package/.next/server/app/index.segments/_full.segment.rsc +6 -6
  410. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  411. package/.next/server/app/landing/page.js +1 -1
  412. package/.next/server/app/landing/page.js.nft.json +1 -1
  413. package/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  414. package/.next/server/app/landing.html +1 -1
  415. package/.next/server/app/landing.rsc +7 -7
  416. package/.next/server/app/landing.segments/_full.segment.rsc +7 -7
  417. package/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
  418. package/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +7 -7
  419. package/.next/server/app/login/page.js +1 -1
  420. package/.next/server/app/login/page.js.nft.json +1 -1
  421. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  422. package/.next/server/app/login.html +1 -1
  423. package/.next/server/app/login.rsc +6 -6
  424. package/.next/server/app/login.segments/_full.segment.rsc +6 -6
  425. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  426. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +6 -6
  427. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  428. package/.next/server/app/page.js +1 -1
  429. package/.next/server/app/page.js.nft.json +1 -1
  430. package/.next/server/app/page_client-reference-manifest.js +1 -1
  431. package/.next/server/app-paths-manifest.json +12 -11
  432. package/.next/server/chunks/1011.js +1 -1
  433. package/.next/server/chunks/1194.js +1 -1
  434. package/.next/server/chunks/1289.js +1 -1
  435. package/.next/server/chunks/1633.js +1 -1
  436. package/.next/server/chunks/1985.js +1 -1
  437. package/.next/server/chunks/2339.js +1 -1
  438. package/.next/server/chunks/2801.js +1 -1
  439. package/.next/server/chunks/3250.js +2 -2
  440. package/.next/server/chunks/3425.js +1 -1
  441. package/.next/server/chunks/5412.js +1 -1
  442. package/.next/server/chunks/6056.js +1 -1
  443. package/.next/server/chunks/7348.js +1 -1
  444. package/.next/server/chunks/9429.js +1 -1
  445. package/.next/server/middleware-build-manifest.js +1 -1
  446. package/.next/server/middleware.js +1 -1
  447. package/.next/server/middleware.js.nft.json +1 -1
  448. package/.next/server/pages/404.html +1 -1
  449. package/.next/server/pages/500.html +1 -1
  450. package/.next/server/server-reference-manifest.js +1 -1
  451. package/.next/server/server-reference-manifest.json +1 -1
  452. package/.next/static/chunks/{1278-db66df071a072f90.js → 1278-605cc36f762c2ea7.js} +1 -1
  453. package/.next/static/chunks/{1471-10f225f62f7469cc.js → 1471-69a7c30abf98c656.js} +1 -1
  454. package/.next/static/chunks/{1699-13ee6864a8a31a96.js → 1699-49be310981e2759e.js} +2 -2
  455. package/.next/static/chunks/2836-8e7f4c382297ac97.js +1 -0
  456. package/.next/static/chunks/{3577-cd98d40e3099e1b0.js → 3577-1f02993330d7fba7.js} +1 -1
  457. package/.next/static/chunks/3973-424848b943e2ecab.js +1 -0
  458. package/.next/static/chunks/{5862-f98c2f3d480b80d2.js → 5862-6f3a3a6d4c00100d.js} +1 -1
  459. package/.next/static/chunks/9369-7ef21480b9132957.js +1 -0
  460. package/.next/static/chunks/{9ce8c186-3c7d7dbc5d428052.js → 9ce8c186-6cd204e9c27ecee1.js} +1 -1
  461. package/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-93cc9fc8f8ab938b.js → page-9efe55fed2f7c81f.js} +2 -2
  462. package/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-9dcb29085167b384.js +1 -0
  463. package/.next/static/chunks/app/(dashboard)/dashboard/combos/page-f5db9f681c6bface.js +1 -0
  464. package/.next/static/chunks/app/(dashboard)/dashboard/console-log/{page-168534817f7aecd8.js → page-d134cc313c9fa0b8.js} +1 -1
  465. package/.next/static/chunks/app/(dashboard)/dashboard/endpoint/{page-13abc5b934c960d3.js → page-f2d1a733e7f841cb.js} +1 -1
  466. package/.next/static/chunks/app/(dashboard)/dashboard/media-providers/systemone/[id]/{page-fb90d8451f40b8b3.js → page-0d6e623de6134598.js} +1 -1
  467. package/.next/static/chunks/app/(dashboard)/dashboard/{page-85118ef708c624e6.js → page-e8f1d8be5e294fb0.js} +1 -1
  468. package/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-36659d3f8756c897.js → page-c96cbcc4f5736e36.js} +1 -1
  469. package/.next/static/chunks/app/(dashboard)/dashboard/providers/new/{page-81f2d7e490f1c69c.js → page-cc51346e464158b1.js} +1 -1
  470. package/.next/static/chunks/app/(dashboard)/dashboard/providers/page-1ee147fbe0693dc1.js +1 -0
  471. package/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-247f59d088891437.js → page-2287b1915fa887fc.js} +2 -2
  472. package/.next/static/chunks/app/(dashboard)/dashboard/quota/page-54a329d725734a1f.js +1 -0
  473. package/.next/static/chunks/app/(dashboard)/dashboard/usage/page-a81f78bb43042c30.js +1 -0
  474. package/.next/static/chunks/app/(dashboard)/{layout-667f17706a5e1896.js → layout-c199eb2ad56ae96a.js} +1 -1
  475. package/.next/static/chunks/app/_global-error/{page-fe947d4ab19df968.js → page-9a2a13ac6b89ba91.js} +1 -1
  476. package/.next/static/chunks/app/api/auth/login/{route-fe947d4ab19df968.js → route-9a2a13ac6b89ba91.js} +1 -1
  477. package/.next/static/chunks/app/api/auth/logout/{route-fe947d4ab19df968.js → route-9a2a13ac6b89ba91.js} +1 -1
  478. package/.next/static/chunks/app/api/auth/oidc/callback/{route-fe947d4ab19df968.js → route-9a2a13ac6b89ba91.js} +1 -1
  479. package/.next/static/chunks/app/api/auth/oidc/start/route-9a2a13ac6b89ba91.js +1 -0
  480. package/.next/static/chunks/app/api/auth/oidc/test/route-9a2a13ac6b89ba91.js +1 -0
  481. package/.next/static/chunks/app/api/auth/reset-password/route-9a2a13ac6b89ba91.js +1 -0
  482. package/.next/static/chunks/app/api/auth/saml/acs/route-9a2a13ac6b89ba91.js +1 -0
  483. package/.next/static/chunks/app/api/auth/saml/metadata/route-9a2a13ac6b89ba91.js +1 -0
  484. package/.next/static/chunks/app/api/auth/saml/start/route-9a2a13ac6b89ba91.js +1 -0
  485. package/.next/static/chunks/app/api/auth/saml/test/route-9a2a13ac6b89ba91.js +1 -0
  486. package/.next/static/chunks/app/api/auth/status/route-9a2a13ac6b89ba91.js +1 -0
  487. package/.next/static/chunks/app/api/changelog/route-9a2a13ac6b89ba91.js +1 -0
  488. package/.next/static/chunks/app/api/cli-tools/all-statuses/route-9a2a13ac6b89ba91.js +1 -0
  489. package/.next/static/chunks/app/api/cli-tools/claude-settings/route-9a2a13ac6b89ba91.js +1 -0
  490. package/.next/static/chunks/app/api/cli-tools/codex-settings/route-9a2a13ac6b89ba91.js +1 -0
  491. package/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-9a2a13ac6b89ba91.js +1 -0
  492. package/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-9a2a13ac6b89ba91.js +1 -0
  493. package/.next/static/chunks/app/api/cli-tools/cowork-settings/route-9a2a13ac6b89ba91.js +1 -0
  494. package/.next/static/chunks/app/api/cli-tools/dsh-settings/route-9a2a13ac6b89ba91.js +1 -0
  495. package/.next/static/chunks/app/api/cli-tools/opencode-settings/route-9a2a13ac6b89ba91.js +1 -0
  496. package/.next/static/chunks/app/api/combos/[id]/route-9a2a13ac6b89ba91.js +1 -0
  497. package/.next/static/chunks/app/api/combos/route-9a2a13ac6b89ba91.js +1 -0
  498. package/.next/static/chunks/app/api/headroom/extras/route-9a2a13ac6b89ba91.js +1 -0
  499. package/.next/static/chunks/app/api/headroom/proxy/[...path]/route-9a2a13ac6b89ba91.js +1 -0
  500. package/.next/static/chunks/app/api/headroom/restart/route-9a2a13ac6b89ba91.js +1 -0
  501. package/.next/static/chunks/app/api/headroom/start/route-9a2a13ac6b89ba91.js +1 -0
  502. package/.next/static/chunks/app/api/headroom/status/route-9a2a13ac6b89ba91.js +1 -0
  503. package/.next/static/chunks/app/api/headroom/stop/route-9a2a13ac6b89ba91.js +1 -0
  504. package/.next/static/chunks/app/api/health/route-9a2a13ac6b89ba91.js +1 -0
  505. package/.next/static/chunks/app/api/init/route-9a2a13ac6b89ba91.js +1 -0
  506. package/.next/static/chunks/app/api/keys/[id]/route-9a2a13ac6b89ba91.js +1 -0
  507. package/.next/static/chunks/app/api/keys/route-9a2a13ac6b89ba91.js +1 -0
  508. package/.next/static/chunks/app/api/locale/route-9a2a13ac6b89ba91.js +1 -0
  509. package/.next/static/chunks/app/api/mcp/[plugin]/message/route-9a2a13ac6b89ba91.js +1 -0
  510. package/.next/static/chunks/app/api/mcp/[plugin]/sse/route-9a2a13ac6b89ba91.js +1 -0
  511. package/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-9a2a13ac6b89ba91.js +1 -0
  512. package/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-9a2a13ac6b89ba91.js +1 -0
  513. package/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-9a2a13ac6b89ba91.js +1 -0
  514. package/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-9a2a13ac6b89ba91.js +1 -0
  515. package/.next/static/chunks/app/api/media-providers/tts/voices/route-9a2a13ac6b89ba91.js +1 -0
  516. package/.next/static/chunks/app/api/models/alias/route-9a2a13ac6b89ba91.js +1 -0
  517. package/.next/static/chunks/app/api/models/availability/route-9a2a13ac6b89ba91.js +1 -0
  518. package/.next/static/chunks/app/api/models/catalog-sync/route-9a2a13ac6b89ba91.js +1 -0
  519. package/.next/static/chunks/app/api/models/custom/route-9a2a13ac6b89ba91.js +1 -0
  520. package/.next/static/chunks/app/api/models/disabled/route-9a2a13ac6b89ba91.js +1 -0
  521. package/.next/static/chunks/app/api/models/route-9a2a13ac6b89ba91.js +1 -0
  522. package/.next/static/chunks/app/api/models/test/route-9a2a13ac6b89ba91.js +1 -0
  523. package/.next/static/chunks/app/api/oauth/[provider]/[action]/route-9a2a13ac6b89ba91.js +1 -0
  524. package/.next/static/chunks/app/api/oauth/codex/bulk-import/route-9a2a13ac6b89ba91.js +1 -0
  525. package/.next/static/chunks/app/api/oauth/codex/import-token/route-9a2a13ac6b89ba91.js +1 -0
  526. package/.next/static/chunks/app/api/oauth/cursor/auto-import/route-9a2a13ac6b89ba91.js +1 -0
  527. package/.next/static/chunks/app/api/oauth/cursor/import/route-9a2a13ac6b89ba91.js +1 -0
  528. package/.next/static/chunks/app/api/oauth/gitlab/pat/route-9a2a13ac6b89ba91.js +1 -0
  529. package/.next/static/chunks/app/api/oauth/grok-cli/bulk-import/route-9a2a13ac6b89ba91.js +1 -0
  530. package/.next/static/chunks/app/api/oauth/iflow/cookie/route-9a2a13ac6b89ba91.js +1 -0
  531. package/.next/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-9a2a13ac6b89ba91.js +1 -0
  532. package/.next/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-9a2a13ac6b89ba91.js +1 -0
  533. package/.next/static/chunks/app/api/pricing/route-9a2a13ac6b89ba91.js +1 -0
  534. package/.next/static/chunks/app/api/provider-nodes/[id]/route-9a2a13ac6b89ba91.js +1 -0
  535. package/.next/static/chunks/app/api/provider-nodes/route-9a2a13ac6b89ba91.js +1 -0
  536. package/.next/static/chunks/app/api/provider-nodes/validate/route-9a2a13ac6b89ba91.js +1 -0
  537. package/.next/static/chunks/app/api/providers/[id]/models/route-9a2a13ac6b89ba91.js +1 -0
  538. package/.next/static/chunks/app/api/providers/[id]/route-9a2a13ac6b89ba91.js +1 -0
  539. package/.next/static/chunks/app/api/providers/[id]/test/route-9a2a13ac6b89ba91.js +1 -0
  540. package/.next/static/chunks/app/api/providers/[id]/test-models/route-9a2a13ac6b89ba91.js +1 -0
  541. package/.next/static/chunks/app/api/providers/client/route-9a2a13ac6b89ba91.js +1 -0
  542. package/.next/static/chunks/app/api/providers/kilo/free-models/route-9a2a13ac6b89ba91.js +1 -0
  543. package/.next/static/chunks/app/api/providers/route-9a2a13ac6b89ba91.js +1 -0
  544. package/.next/static/chunks/app/api/providers/suggested-models/route-9a2a13ac6b89ba91.js +1 -0
  545. package/.next/static/chunks/app/api/providers/test-batch/route-9a2a13ac6b89ba91.js +1 -0
  546. package/.next/static/chunks/app/api/providers/validate/route-9a2a13ac6b89ba91.js +1 -0
  547. package/.next/static/chunks/app/api/proxy-pools/[id]/route-9a2a13ac6b89ba91.js +1 -0
  548. package/.next/static/chunks/app/api/proxy-pools/[id]/test/route-9a2a13ac6b89ba91.js +1 -0
  549. package/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-9a2a13ac6b89ba91.js +1 -0
  550. package/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-9a2a13ac6b89ba91.js +1 -0
  551. package/.next/static/chunks/app/api/proxy-pools/route-9a2a13ac6b89ba91.js +1 -0
  552. package/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-9a2a13ac6b89ba91.js +1 -0
  553. package/.next/static/chunks/app/api/pxpipe/health/route-9a2a13ac6b89ba91.js +1 -0
  554. package/.next/static/chunks/app/api/pxpipe/install/route-9a2a13ac6b89ba91.js +1 -0
  555. package/.next/static/chunks/app/api/pxpipe/logs/route-9a2a13ac6b89ba91.js +1 -0
  556. package/.next/static/chunks/app/api/pxpipe/restart/route-9a2a13ac6b89ba91.js +1 -0
  557. package/.next/static/chunks/app/api/pxpipe/start/route-9a2a13ac6b89ba91.js +1 -0
  558. package/.next/static/chunks/app/api/pxpipe/stats/route-9a2a13ac6b89ba91.js +1 -0
  559. package/.next/static/chunks/app/api/pxpipe/status/route-9a2a13ac6b89ba91.js +1 -0
  560. package/.next/static/chunks/app/api/pxpipe/stop/route-9a2a13ac6b89ba91.js +1 -0
  561. package/.next/static/chunks/app/api/settings/database/route-9a2a13ac6b89ba91.js +1 -0
  562. package/.next/static/chunks/app/api/settings/proxy-test/route-9a2a13ac6b89ba91.js +1 -0
  563. package/.next/static/chunks/app/api/settings/require-login/route-9a2a13ac6b89ba91.js +1 -0
  564. package/.next/static/chunks/app/api/settings/route-9a2a13ac6b89ba91.js +1 -0
  565. package/.next/static/chunks/app/api/shutdown/route-9a2a13ac6b89ba91.js +1 -0
  566. package/.next/static/chunks/app/api/tags/route-9a2a13ac6b89ba91.js +1 -0
  567. package/.next/static/chunks/app/api/translator/console-logs/route-9a2a13ac6b89ba91.js +1 -0
  568. package/.next/static/chunks/app/api/translator/console-logs/stream/route-9a2a13ac6b89ba91.js +1 -0
  569. package/.next/static/chunks/app/api/translator/load/route-9a2a13ac6b89ba91.js +1 -0
  570. package/.next/static/chunks/app/api/translator/save/route-9a2a13ac6b89ba91.js +1 -0
  571. package/.next/static/chunks/app/api/translator/send/route-9a2a13ac6b89ba91.js +1 -0
  572. package/.next/static/chunks/app/api/translator/translate/route-9a2a13ac6b89ba91.js +1 -0
  573. package/.next/static/chunks/app/api/tunnel/disable/route-9a2a13ac6b89ba91.js +1 -0
  574. package/.next/static/chunks/app/api/tunnel/enable/route-9a2a13ac6b89ba91.js +1 -0
  575. package/.next/static/chunks/app/api/tunnel/status/route-9a2a13ac6b89ba91.js +1 -0
  576. package/.next/static/chunks/app/api/tunnel/tailscale-check/route-9a2a13ac6b89ba91.js +1 -0
  577. package/.next/static/chunks/app/api/tunnel/tailscale-disable/route-9a2a13ac6b89ba91.js +1 -0
  578. package/.next/static/chunks/app/api/tunnel/tailscale-enable/route-9a2a13ac6b89ba91.js +1 -0
  579. package/.next/static/chunks/app/api/tunnel/tailscale-install/route-9a2a13ac6b89ba91.js +1 -0
  580. package/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-9a2a13ac6b89ba91.js +1 -0
  581. package/.next/static/chunks/app/api/usage/[connectionId]/route-9a2a13ac6b89ba91.js +1 -0
  582. package/.next/static/chunks/app/api/usage/chart/route-9a2a13ac6b89ba91.js +1 -0
  583. package/.next/static/chunks/app/api/usage/health/route-9a2a13ac6b89ba91.js +1 -0
  584. package/.next/static/chunks/app/api/usage/history/route-9a2a13ac6b89ba91.js +1 -0
  585. package/.next/static/chunks/app/api/usage/logs/route-9a2a13ac6b89ba91.js +1 -0
  586. package/.next/static/chunks/app/api/usage/providers/route-9a2a13ac6b89ba91.js +1 -0
  587. package/.next/static/chunks/app/api/usage/request-details/route-9a2a13ac6b89ba91.js +1 -0
  588. package/.next/static/chunks/app/api/usage/request-logs/route-9a2a13ac6b89ba91.js +1 -0
  589. package/.next/static/chunks/app/api/usage/stats/route-9a2a13ac6b89ba91.js +1 -0
  590. package/.next/static/chunks/app/api/usage/stream/route-9a2a13ac6b89ba91.js +1 -0
  591. package/.next/static/chunks/app/api/v1/api/chat/route-9a2a13ac6b89ba91.js +1 -0
  592. package/.next/static/chunks/app/api/v1/audio/speech/route-9a2a13ac6b89ba91.js +1 -0
  593. package/.next/static/chunks/app/api/v1/audio/transcriptions/route-9a2a13ac6b89ba91.js +1 -0
  594. package/.next/static/chunks/app/api/v1/audio/voices/route-9a2a13ac6b89ba91.js +1 -0
  595. package/.next/static/chunks/app/api/v1/chat/completions/route-9a2a13ac6b89ba91.js +1 -0
  596. package/.next/static/chunks/app/api/v1/embeddings/route-9a2a13ac6b89ba91.js +1 -0
  597. package/.next/static/chunks/app/api/v1/images/generations/route-9a2a13ac6b89ba91.js +1 -0
  598. package/.next/static/chunks/app/api/v1/messages/count_tokens/route-9a2a13ac6b89ba91.js +1 -0
  599. package/.next/static/chunks/app/api/v1/messages/route-9a2a13ac6b89ba91.js +1 -0
  600. package/.next/static/chunks/app/api/v1/models/[...model]/route-9a2a13ac6b89ba91.js +1 -0
  601. package/.next/static/chunks/app/api/v1/models/info/route-9a2a13ac6b89ba91.js +1 -0
  602. package/.next/static/chunks/app/api/v1/models/route-9a2a13ac6b89ba91.js +1 -0
  603. package/.next/static/chunks/app/api/v1/responses/compact/route-9a2a13ac6b89ba91.js +1 -0
  604. package/.next/static/chunks/app/api/v1/responses/route-9a2a13ac6b89ba91.js +1 -0
  605. package/.next/static/chunks/app/api/v1/route-9a2a13ac6b89ba91.js +1 -0
  606. package/.next/static/chunks/app/api/v1/search/route-9a2a13ac6b89ba91.js +1 -0
  607. package/.next/static/chunks/app/api/v1/systemone/route-9a2a13ac6b89ba91.js +1 -0
  608. package/.next/static/chunks/app/api/v1/videos/[id]/route-9a2a13ac6b89ba91.js +1 -0
  609. package/.next/static/chunks/app/api/v1/videos/edits/route-9a2a13ac6b89ba91.js +1 -0
  610. package/.next/static/chunks/app/api/v1/videos/extensions/route-9a2a13ac6b89ba91.js +1 -0
  611. package/.next/static/chunks/app/api/v1/videos/generations/route-9a2a13ac6b89ba91.js +1 -0
  612. package/.next/static/chunks/app/api/v1/web/fetch/route-9a2a13ac6b89ba91.js +1 -0
  613. package/.next/static/chunks/app/api/v1beta/models/[...path]/route-9a2a13ac6b89ba91.js +1 -0
  614. package/.next/static/chunks/app/api/v1beta/models/route-9a2a13ac6b89ba91.js +1 -0
  615. package/.next/static/chunks/app/api/version/route-9a2a13ac6b89ba91.js +1 -0
  616. package/.next/static/chunks/app/api/version/shutdown/route-9a2a13ac6b89ba91.js +1 -0
  617. package/.next/static/chunks/app/api/version/update/route-9a2a13ac6b89ba91.js +1 -0
  618. package/.next/static/chunks/app/{layout-d5f5e92e2a8102f1.js → layout-9bd5877ae6198856.js} +1 -1
  619. package/.next/static/chunks/app/manifest.webmanifest/route-9a2a13ac6b89ba91.js +1 -0
  620. package/.next/static/chunks/app/page-9a2a13ac6b89ba91.js +1 -0
  621. package/.next/static/chunks/next/dist/client/components/builtin/app-error-9a2a13ac6b89ba91.js +1 -0
  622. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-9a2a13ac6b89ba91.js +1 -0
  623. package/.next/static/chunks/next/dist/client/components/builtin/not-found-9a2a13ac6b89ba91.js +1 -0
  624. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-9a2a13ac6b89ba91.js +1 -0
  625. package/.next/static/css/c66cbd684164cacf.css +1 -0
  626. package/.next/static/iz7psrsEuHZGPvj7rbSWc/_buildManifest.js +1 -0
  627. package/CHANGELOG.md +6 -0
  628. package/bin/update-check.mjs +5 -1
  629. package/package.json +1 -5
  630. package/src/app/(dashboard)/dashboard/usage/components/ProviderHealth.tsx +221 -0
  631. package/src/app/api/usage/health/route.ts +121 -0
  632. package/src/lib/db/adapters/betterSqliteAdapter.js +12 -1
  633. package/src/lib/db/driver.js +4 -1
  634. package/src/lib/usageHealth.ts +219 -0
  635. package/src/shared/components/UsageStats.tsx +4 -0
  636. package/.next/static/P0IikrdjxpmTneD33YPWQ/_buildManifest.js +0 -1
  637. package/.next/static/chunks/208-521a3242b62d6c07.js +0 -1
  638. package/.next/static/chunks/2836-38406d658ad8caa9.js +0 -1
  639. package/.next/static/chunks/9369-b8c9520bc2536ff2.js +0 -1
  640. package/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-1c54f83c69f02add.js +0 -1
  641. package/.next/static/chunks/app/(dashboard)/dashboard/combos/page-853f4e08f4982dbe.js +0 -1
  642. package/.next/static/chunks/app/(dashboard)/dashboard/providers/page-b9dafab69096fa76.js +0 -1
  643. package/.next/static/chunks/app/(dashboard)/dashboard/quota/page-5d2e8d9a126c2769.js +0 -1
  644. package/.next/static/chunks/app/(dashboard)/dashboard/usage/page-cf503287fe99e910.js +0 -1
  645. package/.next/static/chunks/app/api/auth/oidc/start/route-fe947d4ab19df968.js +0 -1
  646. package/.next/static/chunks/app/api/auth/oidc/test/route-fe947d4ab19df968.js +0 -1
  647. package/.next/static/chunks/app/api/auth/reset-password/route-fe947d4ab19df968.js +0 -1
  648. package/.next/static/chunks/app/api/auth/saml/acs/route-fe947d4ab19df968.js +0 -1
  649. package/.next/static/chunks/app/api/auth/saml/metadata/route-fe947d4ab19df968.js +0 -1
  650. package/.next/static/chunks/app/api/auth/saml/start/route-fe947d4ab19df968.js +0 -1
  651. package/.next/static/chunks/app/api/auth/saml/test/route-fe947d4ab19df968.js +0 -1
  652. package/.next/static/chunks/app/api/auth/status/route-fe947d4ab19df968.js +0 -1
  653. package/.next/static/chunks/app/api/changelog/route-fe947d4ab19df968.js +0 -1
  654. package/.next/static/chunks/app/api/cli-tools/all-statuses/route-fe947d4ab19df968.js +0 -1
  655. package/.next/static/chunks/app/api/cli-tools/claude-settings/route-fe947d4ab19df968.js +0 -1
  656. package/.next/static/chunks/app/api/cli-tools/codex-settings/route-fe947d4ab19df968.js +0 -1
  657. package/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-fe947d4ab19df968.js +0 -1
  658. package/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-fe947d4ab19df968.js +0 -1
  659. package/.next/static/chunks/app/api/cli-tools/cowork-settings/route-fe947d4ab19df968.js +0 -1
  660. package/.next/static/chunks/app/api/cli-tools/dsh-settings/route-fe947d4ab19df968.js +0 -1
  661. package/.next/static/chunks/app/api/cli-tools/opencode-settings/route-fe947d4ab19df968.js +0 -1
  662. package/.next/static/chunks/app/api/combos/[id]/route-fe947d4ab19df968.js +0 -1
  663. package/.next/static/chunks/app/api/combos/route-fe947d4ab19df968.js +0 -1
  664. package/.next/static/chunks/app/api/headroom/extras/route-fe947d4ab19df968.js +0 -1
  665. package/.next/static/chunks/app/api/headroom/proxy/[...path]/route-fe947d4ab19df968.js +0 -1
  666. package/.next/static/chunks/app/api/headroom/restart/route-fe947d4ab19df968.js +0 -1
  667. package/.next/static/chunks/app/api/headroom/start/route-fe947d4ab19df968.js +0 -1
  668. package/.next/static/chunks/app/api/headroom/status/route-fe947d4ab19df968.js +0 -1
  669. package/.next/static/chunks/app/api/headroom/stop/route-fe947d4ab19df968.js +0 -1
  670. package/.next/static/chunks/app/api/health/route-fe947d4ab19df968.js +0 -1
  671. package/.next/static/chunks/app/api/init/route-fe947d4ab19df968.js +0 -1
  672. package/.next/static/chunks/app/api/keys/[id]/route-fe947d4ab19df968.js +0 -1
  673. package/.next/static/chunks/app/api/keys/route-fe947d4ab19df968.js +0 -1
  674. package/.next/static/chunks/app/api/locale/route-fe947d4ab19df968.js +0 -1
  675. package/.next/static/chunks/app/api/mcp/[plugin]/message/route-fe947d4ab19df968.js +0 -1
  676. package/.next/static/chunks/app/api/mcp/[plugin]/sse/route-fe947d4ab19df968.js +0 -1
  677. package/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-fe947d4ab19df968.js +0 -1
  678. package/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-fe947d4ab19df968.js +0 -1
  679. package/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-fe947d4ab19df968.js +0 -1
  680. package/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-fe947d4ab19df968.js +0 -1
  681. package/.next/static/chunks/app/api/media-providers/tts/voices/route-fe947d4ab19df968.js +0 -1
  682. package/.next/static/chunks/app/api/models/alias/route-fe947d4ab19df968.js +0 -1
  683. package/.next/static/chunks/app/api/models/availability/route-fe947d4ab19df968.js +0 -1
  684. package/.next/static/chunks/app/api/models/catalog-sync/route-fe947d4ab19df968.js +0 -1
  685. package/.next/static/chunks/app/api/models/custom/route-fe947d4ab19df968.js +0 -1
  686. package/.next/static/chunks/app/api/models/disabled/route-fe947d4ab19df968.js +0 -1
  687. package/.next/static/chunks/app/api/models/route-fe947d4ab19df968.js +0 -1
  688. package/.next/static/chunks/app/api/models/test/route-fe947d4ab19df968.js +0 -1
  689. package/.next/static/chunks/app/api/oauth/[provider]/[action]/route-fe947d4ab19df968.js +0 -1
  690. package/.next/static/chunks/app/api/oauth/codex/bulk-import/route-fe947d4ab19df968.js +0 -1
  691. package/.next/static/chunks/app/api/oauth/codex/import-token/route-fe947d4ab19df968.js +0 -1
  692. package/.next/static/chunks/app/api/oauth/cursor/auto-import/route-fe947d4ab19df968.js +0 -1
  693. package/.next/static/chunks/app/api/oauth/cursor/import/route-fe947d4ab19df968.js +0 -1
  694. package/.next/static/chunks/app/api/oauth/gitlab/pat/route-fe947d4ab19df968.js +0 -1
  695. package/.next/static/chunks/app/api/oauth/grok-cli/bulk-import/route-fe947d4ab19df968.js +0 -1
  696. package/.next/static/chunks/app/api/oauth/iflow/cookie/route-fe947d4ab19df968.js +0 -1
  697. package/.next/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-fe947d4ab19df968.js +0 -1
  698. package/.next/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-fe947d4ab19df968.js +0 -1
  699. package/.next/static/chunks/app/api/pricing/route-fe947d4ab19df968.js +0 -1
  700. package/.next/static/chunks/app/api/provider-nodes/[id]/route-fe947d4ab19df968.js +0 -1
  701. package/.next/static/chunks/app/api/provider-nodes/route-fe947d4ab19df968.js +0 -1
  702. package/.next/static/chunks/app/api/provider-nodes/validate/route-fe947d4ab19df968.js +0 -1
  703. package/.next/static/chunks/app/api/providers/[id]/models/route-fe947d4ab19df968.js +0 -1
  704. package/.next/static/chunks/app/api/providers/[id]/route-fe947d4ab19df968.js +0 -1
  705. package/.next/static/chunks/app/api/providers/[id]/test/route-fe947d4ab19df968.js +0 -1
  706. package/.next/static/chunks/app/api/providers/[id]/test-models/route-fe947d4ab19df968.js +0 -1
  707. package/.next/static/chunks/app/api/providers/client/route-fe947d4ab19df968.js +0 -1
  708. package/.next/static/chunks/app/api/providers/kilo/free-models/route-fe947d4ab19df968.js +0 -1
  709. package/.next/static/chunks/app/api/providers/route-fe947d4ab19df968.js +0 -1
  710. package/.next/static/chunks/app/api/providers/suggested-models/route-fe947d4ab19df968.js +0 -1
  711. package/.next/static/chunks/app/api/providers/test-batch/route-fe947d4ab19df968.js +0 -1
  712. package/.next/static/chunks/app/api/providers/validate/route-fe947d4ab19df968.js +0 -1
  713. package/.next/static/chunks/app/api/proxy-pools/[id]/route-fe947d4ab19df968.js +0 -1
  714. package/.next/static/chunks/app/api/proxy-pools/[id]/test/route-fe947d4ab19df968.js +0 -1
  715. package/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-fe947d4ab19df968.js +0 -1
  716. package/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-fe947d4ab19df968.js +0 -1
  717. package/.next/static/chunks/app/api/proxy-pools/route-fe947d4ab19df968.js +0 -1
  718. package/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-fe947d4ab19df968.js +0 -1
  719. package/.next/static/chunks/app/api/pxpipe/health/route-fe947d4ab19df968.js +0 -1
  720. package/.next/static/chunks/app/api/pxpipe/install/route-fe947d4ab19df968.js +0 -1
  721. package/.next/static/chunks/app/api/pxpipe/logs/route-fe947d4ab19df968.js +0 -1
  722. package/.next/static/chunks/app/api/pxpipe/restart/route-fe947d4ab19df968.js +0 -1
  723. package/.next/static/chunks/app/api/pxpipe/start/route-fe947d4ab19df968.js +0 -1
  724. package/.next/static/chunks/app/api/pxpipe/stats/route-fe947d4ab19df968.js +0 -1
  725. package/.next/static/chunks/app/api/pxpipe/status/route-fe947d4ab19df968.js +0 -1
  726. package/.next/static/chunks/app/api/pxpipe/stop/route-fe947d4ab19df968.js +0 -1
  727. package/.next/static/chunks/app/api/settings/database/route-fe947d4ab19df968.js +0 -1
  728. package/.next/static/chunks/app/api/settings/proxy-test/route-fe947d4ab19df968.js +0 -1
  729. package/.next/static/chunks/app/api/settings/require-login/route-fe947d4ab19df968.js +0 -1
  730. package/.next/static/chunks/app/api/settings/route-fe947d4ab19df968.js +0 -1
  731. package/.next/static/chunks/app/api/shutdown/route-fe947d4ab19df968.js +0 -1
  732. package/.next/static/chunks/app/api/tags/route-fe947d4ab19df968.js +0 -1
  733. package/.next/static/chunks/app/api/translator/console-logs/route-fe947d4ab19df968.js +0 -1
  734. package/.next/static/chunks/app/api/translator/console-logs/stream/route-fe947d4ab19df968.js +0 -1
  735. package/.next/static/chunks/app/api/translator/load/route-fe947d4ab19df968.js +0 -1
  736. package/.next/static/chunks/app/api/translator/save/route-fe947d4ab19df968.js +0 -1
  737. package/.next/static/chunks/app/api/translator/send/route-fe947d4ab19df968.js +0 -1
  738. package/.next/static/chunks/app/api/translator/translate/route-fe947d4ab19df968.js +0 -1
  739. package/.next/static/chunks/app/api/tunnel/disable/route-fe947d4ab19df968.js +0 -1
  740. package/.next/static/chunks/app/api/tunnel/enable/route-fe947d4ab19df968.js +0 -1
  741. package/.next/static/chunks/app/api/tunnel/status/route-fe947d4ab19df968.js +0 -1
  742. package/.next/static/chunks/app/api/tunnel/tailscale-check/route-fe947d4ab19df968.js +0 -1
  743. package/.next/static/chunks/app/api/tunnel/tailscale-disable/route-fe947d4ab19df968.js +0 -1
  744. package/.next/static/chunks/app/api/tunnel/tailscale-enable/route-fe947d4ab19df968.js +0 -1
  745. package/.next/static/chunks/app/api/tunnel/tailscale-install/route-fe947d4ab19df968.js +0 -1
  746. package/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-fe947d4ab19df968.js +0 -1
  747. package/.next/static/chunks/app/api/usage/[connectionId]/route-fe947d4ab19df968.js +0 -1
  748. package/.next/static/chunks/app/api/usage/chart/route-fe947d4ab19df968.js +0 -1
  749. package/.next/static/chunks/app/api/usage/history/route-fe947d4ab19df968.js +0 -1
  750. package/.next/static/chunks/app/api/usage/logs/route-fe947d4ab19df968.js +0 -1
  751. package/.next/static/chunks/app/api/usage/providers/route-fe947d4ab19df968.js +0 -1
  752. package/.next/static/chunks/app/api/usage/request-details/route-fe947d4ab19df968.js +0 -1
  753. package/.next/static/chunks/app/api/usage/request-logs/route-fe947d4ab19df968.js +0 -1
  754. package/.next/static/chunks/app/api/usage/stats/route-fe947d4ab19df968.js +0 -1
  755. package/.next/static/chunks/app/api/usage/stream/route-fe947d4ab19df968.js +0 -1
  756. package/.next/static/chunks/app/api/v1/api/chat/route-fe947d4ab19df968.js +0 -1
  757. package/.next/static/chunks/app/api/v1/audio/speech/route-fe947d4ab19df968.js +0 -1
  758. package/.next/static/chunks/app/api/v1/audio/transcriptions/route-fe947d4ab19df968.js +0 -1
  759. package/.next/static/chunks/app/api/v1/audio/voices/route-fe947d4ab19df968.js +0 -1
  760. package/.next/static/chunks/app/api/v1/chat/completions/route-fe947d4ab19df968.js +0 -1
  761. package/.next/static/chunks/app/api/v1/embeddings/route-fe947d4ab19df968.js +0 -1
  762. package/.next/static/chunks/app/api/v1/images/generations/route-fe947d4ab19df968.js +0 -1
  763. package/.next/static/chunks/app/api/v1/messages/count_tokens/route-fe947d4ab19df968.js +0 -1
  764. package/.next/static/chunks/app/api/v1/messages/route-fe947d4ab19df968.js +0 -1
  765. package/.next/static/chunks/app/api/v1/models/[...model]/route-fe947d4ab19df968.js +0 -1
  766. package/.next/static/chunks/app/api/v1/models/info/route-fe947d4ab19df968.js +0 -1
  767. package/.next/static/chunks/app/api/v1/models/route-fe947d4ab19df968.js +0 -1
  768. package/.next/static/chunks/app/api/v1/responses/compact/route-fe947d4ab19df968.js +0 -1
  769. package/.next/static/chunks/app/api/v1/responses/route-fe947d4ab19df968.js +0 -1
  770. package/.next/static/chunks/app/api/v1/route-fe947d4ab19df968.js +0 -1
  771. package/.next/static/chunks/app/api/v1/search/route-fe947d4ab19df968.js +0 -1
  772. package/.next/static/chunks/app/api/v1/systemone/route-fe947d4ab19df968.js +0 -1
  773. package/.next/static/chunks/app/api/v1/videos/[id]/route-fe947d4ab19df968.js +0 -1
  774. package/.next/static/chunks/app/api/v1/videos/edits/route-fe947d4ab19df968.js +0 -1
  775. package/.next/static/chunks/app/api/v1/videos/extensions/route-fe947d4ab19df968.js +0 -1
  776. package/.next/static/chunks/app/api/v1/videos/generations/route-fe947d4ab19df968.js +0 -1
  777. package/.next/static/chunks/app/api/v1/web/fetch/route-fe947d4ab19df968.js +0 -1
  778. package/.next/static/chunks/app/api/v1beta/models/[...path]/route-fe947d4ab19df968.js +0 -1
  779. package/.next/static/chunks/app/api/v1beta/models/route-fe947d4ab19df968.js +0 -1
  780. package/.next/static/chunks/app/api/version/route-fe947d4ab19df968.js +0 -1
  781. package/.next/static/chunks/app/api/version/shutdown/route-fe947d4ab19df968.js +0 -1
  782. package/.next/static/chunks/app/api/version/update/route-fe947d4ab19df968.js +0 -1
  783. package/.next/static/chunks/app/manifest.webmanifest/route-fe947d4ab19df968.js +0 -1
  784. package/.next/static/chunks/app/page-fe947d4ab19df968.js +0 -1
  785. package/.next/static/chunks/next/dist/client/components/builtin/app-error-fe947d4ab19df968.js +0 -1
  786. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-fe947d4ab19df968.js +0 -1
  787. package/.next/static/chunks/next/dist/client/components/builtin/not-found-fe947d4ab19df968.js +0 -1
  788. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-fe947d4ab19df968.js +0 -1
  789. package/.next/static/css/7698ede81d1862e2.css +0 -1
  790. /package/.next/static/{P0IikrdjxpmTneD33YPWQ → iz7psrsEuHZGPvj7rbSWc}/_ssgManifest.js +0 -0
@@ -0,0 +1,221 @@
1
+ "use client";
2
+
3
+ import { useEffect, useState } from "react";
4
+ import { Badge } from "@/components/ui/badge";
5
+ import { Card, CardContent } from "@/components/ui/card";
6
+ import Icon from "@/shared/components/Icon";
7
+
8
+ type HealthStatus = "healthy" | "degraded" | "down" | "cooldown" | "idle";
9
+
10
+ interface ProviderEntry {
11
+ provider: string;
12
+ connectionId: string;
13
+ connectionName: string;
14
+ requests: number;
15
+ errors: number;
16
+ detailErrors: number;
17
+ successRate: number | null;
18
+ p50LatencyMs: number | null;
19
+ lastError: string | null;
20
+ lastErrorAt: string | null;
21
+ cooldownUntil: string | null;
22
+ status: HealthStatus;
23
+ }
24
+
25
+ interface FailureEntry {
26
+ timestamp: string;
27
+ provider: string;
28
+ model: string;
29
+ connectionId: string | null;
30
+ connectionName: string | null;
31
+ status: string;
32
+ latencyMs: number | null;
33
+ error: string | null;
34
+ }
35
+
36
+ const STATUS_META: Record<HealthStatus, { label: string; className: string }> = {
37
+ down: { label: "Down", className: "bg-destructive/10 text-destructive" },
38
+ cooldown: { label: "Cooldown", className: "bg-amber-500/10 text-amber-600" },
39
+ degraded: { label: "Degraded", className: "bg-amber-500/10 text-amber-600" },
40
+ healthy: { label: "Healthy", className: "bg-emerald-500/10 text-emerald-600" },
41
+ idle: { label: "Idle", className: "bg-muted text-muted-foreground" },
42
+ };
43
+
44
+ function fmtPct(rate: number | null): string {
45
+ if (rate == null) return "—";
46
+ return `${Math.round(rate * 100)}%`;
47
+ }
48
+
49
+ function fmtLatency(ms: number | null): string {
50
+ if (ms == null) return "—";
51
+ if (ms < 1000) return `${Math.round(ms)}ms`;
52
+ return `${(ms / 1000).toFixed(1)}s`;
53
+ }
54
+
55
+ function fmtTime(iso: string | null): string {
56
+ if (!iso) return "—";
57
+ const diffMins = Math.floor((Date.now() - new Date(iso).getTime()) / 60000);
58
+ if (diffMins < 1) return "Just now";
59
+ if (diffMins < 60) return `${diffMins}m ago`;
60
+ if (diffMins < 1440) return `${Math.floor(diffMins / 60)}h ago`;
61
+ return new Date(iso).toLocaleDateString();
62
+ }
63
+
64
+ export default function ProviderHealth() {
65
+ const [entries, setEntries] = useState<ProviderEntry[]>([]);
66
+ const [failures, setFailures] = useState<FailureEntry[]>([]);
67
+ const [loading, setLoading] = useState(true);
68
+
69
+ useEffect(() => {
70
+ let cancelled = false;
71
+ fetch("/api/usage/health")
72
+ .then((r) => (r.ok ? r.json() : null))
73
+ .then((data) => {
74
+ if (cancelled || !data) return;
75
+ setEntries(data.providers || []);
76
+ setFailures(data.recentFailures || []);
77
+ })
78
+ .catch(() => {})
79
+ .finally(() => {
80
+ if (!cancelled) setLoading(false);
81
+ });
82
+ return () => {
83
+ cancelled = true;
84
+ };
85
+ }, []);
86
+
87
+ const problemCount = entries.filter(
88
+ (e) => e.status === "down" || e.status === "cooldown" || e.status === "degraded",
89
+ ).length;
90
+
91
+ return (
92
+ <Card className="flex min-w-0 flex-col overflow-hidden" style={{ paddingBlock: 0, gap: 0 }}>
93
+ <div className="flex shrink-0 items-center gap-2 border-b border-border bg-card/80 px-4 py-3 backdrop-blur">
94
+ <span className="text-xs font-semibold uppercase tracking-wide text-muted-foreground">
95
+ Fallback Health
96
+ </span>
97
+ <span className="text-[11px] text-muted-foreground">24h · per account</span>
98
+ {!loading && (
99
+ <Badge variant="secondary" className="ml-auto text-xs">
100
+ {problemCount === 0 ? "all healthy" : `${problemCount} need attention`}
101
+ </Badge>
102
+ )}
103
+ </div>
104
+ <CardContent className="flex min-h-0 flex-1 flex-col p-0">
105
+ {loading ? (
106
+ <div className="flex items-center justify-center py-8 text-muted-foreground">
107
+ <Icon name="progress_activity" className="text-[24px] animate-spin" />
108
+ </div>
109
+ ) : entries.length === 0 ? (
110
+ <div className="flex flex-col items-center justify-center gap-2 py-8 text-muted-foreground">
111
+ <Icon name="history" className="text-2xl opacity-50" />
112
+ <p className="text-xs">No provider traffic in the last 24h.</p>
113
+ </div>
114
+ ) : (
115
+ <div className="overflow-x-auto">
116
+ <table className="w-full text-left text-sm">
117
+ <thead className="border-b border-border/60 text-muted-foreground">
118
+ <tr>
119
+ <th className="px-4 py-2 text-[11px] font-semibold uppercase tracking-wide">
120
+ Account
121
+ </th>
122
+ <th className="px-4 py-2 text-right text-[11px] font-semibold uppercase tracking-wide">
123
+ Requests
124
+ </th>
125
+ <th className="px-4 py-2 text-right text-[11px] font-semibold uppercase tracking-wide">
126
+ Success
127
+ </th>
128
+ <th className="px-4 py-2 text-right text-[11px] font-semibold uppercase tracking-wide">
129
+ p50
130
+ </th>
131
+ <th className="px-4 py-2 text-[11px] font-semibold uppercase tracking-wide">
132
+ Last error
133
+ </th>
134
+ <th className="px-4 py-2 text-right text-[11px] font-semibold uppercase tracking-wide">
135
+ Status
136
+ </th>
137
+ </tr>
138
+ </thead>
139
+ <tbody className="divide-y divide-border/40">
140
+ {entries.slice(0, 12).map((e) => {
141
+ const meta = STATUS_META[e.status];
142
+ return (
143
+ <tr key={`${e.provider}-${e.connectionId}`} className="hover:bg-accent/60">
144
+ <td className="px-4 py-2.5">
145
+ <div className="flex min-w-0 flex-col">
146
+ <span className="truncate font-mono text-xs font-medium">
147
+ {e.connectionName}
148
+ </span>
149
+ <span className="truncate text-[11px] text-muted-foreground">
150
+ {e.provider}
151
+ </span>
152
+ </div>
153
+ </td>
154
+ <td className="px-4 py-2.5 text-right text-xs tabular-nums">
155
+ {e.requests + e.detailErrors}
156
+ </td>
157
+ <td className="px-4 py-2.5 text-right text-xs tabular-nums">
158
+ {fmtPct(e.successRate)}
159
+ </td>
160
+ <td className="px-4 py-2.5 text-right text-xs tabular-nums">
161
+ {fmtLatency(e.p50LatencyMs)}
162
+ </td>
163
+ <td className="max-w-64 px-4 py-2.5">
164
+ {e.lastError ? (
165
+ <span
166
+ className="block truncate text-[11px] text-muted-foreground"
167
+ title={`${e.lastError} (${fmtTime(e.lastErrorAt)})`}
168
+ >
169
+ {e.lastError}
170
+ </span>
171
+ ) : (
172
+ <span className="text-[11px] text-muted-foreground">—</span>
173
+ )}
174
+ </td>
175
+ <td className="px-4 py-2.5 text-right">
176
+ <Badge variant="secondary" className={`text-[11px] ${meta.className}`}>
177
+ {meta.label}
178
+ </Badge>
179
+ </td>
180
+ </tr>
181
+ );
182
+ })}
183
+ </tbody>
184
+ </table>
185
+ {failures.length > 0 && (
186
+ <div className="border-t border-border/60 px-4 py-3">
187
+ <p className="mb-2 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground">
188
+ Recent failures — why fallback triggered
189
+ </p>
190
+ <div className="flex flex-col gap-1.5">
191
+ {failures.slice(0, 5).map((f, i) => (
192
+ <div
193
+ key={`${f.timestamp}-${i}`}
194
+ className="flex min-w-0 items-center gap-2 text-[11px]"
195
+ >
196
+ <span className="h-1.5 w-1.5 shrink-0 rounded-full bg-destructive" />
197
+ <span className="shrink-0 font-mono text-muted-foreground">
198
+ {fmtTime(f.timestamp)}
199
+ </span>
200
+ <span className="shrink-0 font-mono font-medium">
201
+ {f.model || f.provider}
202
+ </span>
203
+ <span
204
+ className="min-w-0 flex-1 truncate text-muted-foreground"
205
+ title={f.error || ""}
206
+ >
207
+ {f.error || f.status} ·{" "}
208
+ {f.connectionName || f.connectionId?.slice(0, 8) || "?"}
209
+ {f.latencyMs != null ? ` · ${fmtLatency(f.latencyMs)}` : ""}
210
+ </span>
211
+ </div>
212
+ ))}
213
+ </div>
214
+ </div>
215
+ )}
216
+ </div>
217
+ )}
218
+ </CardContent>
219
+ </Card>
220
+ );
221
+ }
@@ -0,0 +1,121 @@
1
+ import { NextResponse } from "next/server";
2
+ import { getAdapter } from "@/lib/db/driver.js";
3
+ import { getProviderConnections } from "@/lib/db/index.js";
4
+ import { parseJson } from "@/lib/db/helpers/jsonCol.js";
5
+ import { summarizeProviderHealth } from "@/lib/usageHealth";
6
+
7
+ const HISTORY_LIMIT = 5000;
8
+ const DETAIL_LIMIT = 200;
9
+ const WINDOW_MS = 24 * 60 * 60 * 1000;
10
+
11
+ function extractError(data: any): string | null {
12
+ const r = data?.response;
13
+ if (!r || typeof r !== "object") return null;
14
+ if (typeof r.error === "string") return r.error;
15
+ if (r.error != null) {
16
+ try {
17
+ return JSON.stringify(r.error);
18
+ } catch {
19
+ return String(r.error);
20
+ }
21
+ }
22
+ return null;
23
+ }
24
+
25
+ /**
26
+ * GET /api/usage/health
27
+ * Fallback inspector: per-account success rate, p50 latency, last error,
28
+ * cooldown state + recent failure trace (last 24h window).
29
+ */
30
+ export async function GET() {
31
+ try {
32
+ const db = await getAdapter();
33
+ const cutoffIso = new Date(Date.now() - WINDOW_MS).toISOString();
34
+
35
+ const historyRows = db.all(
36
+ `SELECT provider, connectionId, status, timestamp FROM usageHistory WHERE timestamp >= ? ORDER BY timestamp DESC LIMIT ?`,
37
+ [cutoffIso, HISTORY_LIMIT],
38
+ ) as Array<{
39
+ provider: string | null;
40
+ connectionId: string | null;
41
+ status: string | null;
42
+ timestamp: string;
43
+ }>;
44
+
45
+ const detailRaw = db.all(`SELECT data FROM requestDetails ORDER BY timestamp DESC LIMIT ?`, [
46
+ DETAIL_LIMIT,
47
+ ]) as Array<{ data: string }>;
48
+
49
+ const detailRows: Array<{
50
+ provider?: string | null;
51
+ connectionId?: string | null;
52
+ timestamp?: string;
53
+ status?: string | null;
54
+ latencyMs?: number;
55
+ error?: string | null;
56
+ }> = [];
57
+ for (const row of detailRaw) {
58
+ const data = parseJson(row.data, null) as any;
59
+ if (!data) continue;
60
+ const latencyMs =
61
+ typeof data?.latency?.total === "number"
62
+ ? data.latency.total
63
+ : typeof data?.data?.latency?.total === "number"
64
+ ? data.data.latency.total
65
+ : undefined;
66
+ detailRows.push({
67
+ provider: data.provider || null,
68
+ connectionId: data.connectionId || null,
69
+ timestamp: data.timestamp || "",
70
+ status: data.status || null,
71
+ latencyMs,
72
+ error: extractError(data),
73
+ });
74
+ }
75
+
76
+ // Attach model names to recent failures (cheap second pass over parsed rows).
77
+ const parsedDetails = detailRaw.map((r) => parseJson(r.data, null) as any).filter(Boolean);
78
+
79
+ const connections = await getProviderConnections();
80
+
81
+ const { providers, recentFailures } = summarizeProviderHealth({
82
+ historyRows: historyRows.map((r) => ({
83
+ provider: r.provider,
84
+ connectionId: r.connectionId,
85
+ status: r.status,
86
+ timestamp: r.timestamp,
87
+ })),
88
+ detailRows,
89
+ connections: connections.map((c: any) => ({
90
+ id: c.id,
91
+ provider: c.provider,
92
+ name: c.name || c.email || null,
93
+ rateLimitedUntil: c.rateLimitedUntil || null,
94
+ testStatus: c.testStatus || null,
95
+ lastError: c.lastError ?? null,
96
+ })),
97
+ cutoffIso,
98
+ });
99
+
100
+ const modelByKey = new Map<string, string>();
101
+ for (const d of parsedDetails) {
102
+ if (d?.provider && d?.connectionId && d?.timestamp && d?.model) {
103
+ modelByKey.set(`${d.provider}|||${d.connectionId}|||${d.timestamp}`, d.model);
104
+ }
105
+ }
106
+ const failuresWithModel = recentFailures.map((f) => ({
107
+ ...f,
108
+ model: modelByKey.get(`${f.provider}|||${f.connectionId}|||${f.timestamp}`) || "",
109
+ }));
110
+
111
+ return NextResponse.json({
112
+ generatedAt: new Date().toISOString(),
113
+ window: "24h",
114
+ providers,
115
+ recentFailures: failuresWithModel,
116
+ });
117
+ } catch (error) {
118
+ console.error("[API] Failed to get usage health:", error);
119
+ return NextResponse.json({ error: "Failed to fetch provider health" }, { status: 500 });
120
+ }
121
+ }
@@ -1,10 +1,21 @@
1
- import Database from "better-sqlite3";
1
+ import { createRequire } from "node:module";
2
2
  import { PRAGMA_SQL } from "../schema.js";
3
3
 
4
4
  // Periodic checkpoint to keep WAL file small (avoid huge -wal/-shm growth)
5
5
  const CHECKPOINT_INTERVAL_MS = 60 * 1000;
6
6
 
7
+ function loadBetterSqlite3() {
8
+ // Lazy require (NOT a static import) so Next.js webpack/Turbopack never
9
+ // tries to resolve or bundle it at build time: the package is an optional
10
+ // manual install, absent from dependencies. Specifier is computed to defeat
11
+ // static analysis; missing package → throws → driver.js falls through to
12
+ // node:sqlite / sql.js.
13
+ const pkg = ["better", "sqlite3"].join("-");
14
+ return createRequire(import.meta.url)(pkg);
15
+ }
16
+
7
17
  export function createBetterSqliteAdapter(filePath) {
18
+ const Database = loadBetterSqlite3();
8
19
  const db = new Database(filePath);
9
20
  db.exec(PRAGMA_SQL);
10
21
  // Schema is created/synced by migrate.js after adapter init
@@ -17,6 +17,9 @@ async function tryBunSqlite() {
17
17
  }
18
18
 
19
19
  async function tryBetterSqlite() {
20
+ // Optional manual install only — NOT shipped (avoids native build +
21
+ // npm install-script warnings on `npm i -g`). If present it is used as a
22
+ // fast path on Node < 24; otherwise node:sqlite / sql.js cover all runtimes.
20
23
  // Skip on Bun — better-sqlite3 native bindings unsupported
21
24
  if (process.versions.bun) return null;
22
25
  // Skip on Node >= 24: the native addon SIGSEGVs on load there, which is a
@@ -60,7 +63,7 @@ async function initAdapter() {
60
63
  ensureDirs();
61
64
  // Order per runtime:
62
65
  // Bun: bun:sqlite → sql.js
63
- // Node: better-sqlite3 → node:sqlite (≥22.5) → sql.js
66
+ // Node: better-sqlite3 (manual opt-in only) → node:sqlite (≥22.5) → sql.js
64
67
  let adapter = await tryBunSqlite();
65
68
  if (!adapter) adapter = await tryBetterSqlite();
66
69
  if (!adapter) adapter = await tryNodeSqlite();
@@ -0,0 +1,219 @@
1
+ export interface HealthHistoryRow {
2
+ provider?: string | null;
3
+ connectionId?: string | null;
4
+ status?: string | null;
5
+ timestamp?: string;
6
+ }
7
+
8
+ export interface HealthDetailRow {
9
+ provider?: string | null;
10
+ connectionId?: string | null;
11
+ timestamp?: string;
12
+ status?: string | null;
13
+ latencyMs?: number;
14
+ error?: string | null;
15
+ }
16
+
17
+ export interface HealthConnection {
18
+ id: string;
19
+ provider: string;
20
+ name?: string | null;
21
+ rateLimitedUntil?: string | null;
22
+ testStatus?: string | null;
23
+ lastError?: unknown;
24
+ }
25
+
26
+ export type HealthStatus = "healthy" | "degraded" | "down" | "cooldown" | "idle";
27
+
28
+ export interface ProviderHealthEntry {
29
+ provider: string;
30
+ connectionId: string;
31
+ connectionName: string;
32
+ requests: number;
33
+ errors: number;
34
+ detailErrors: number;
35
+ successRate: number | null;
36
+ p50LatencyMs: number | null;
37
+ lastError: string | null;
38
+ lastErrorAt: string | null;
39
+ cooldownUntil: string | null;
40
+ status: HealthStatus;
41
+ }
42
+
43
+ export interface RecentFailure {
44
+ timestamp: string;
45
+ provider: string;
46
+ model: string;
47
+ connectionId: string | null;
48
+ connectionName: string | null;
49
+ status: string;
50
+ latencyMs: number | null;
51
+ error: string | null;
52
+ }
53
+
54
+ function isOkStatus(status: unknown): boolean {
55
+ if (!status) return true;
56
+ const s = String(status).toLowerCase();
57
+ return s === "ok" || s === "success";
58
+ }
59
+
60
+ function percentile(sorted: number[], p: number): number | null {
61
+ if (!sorted.length) return null;
62
+ const idx = Math.min(sorted.length - 1, Math.floor(p * sorted.length));
63
+ return sorted[idx];
64
+ }
65
+
66
+ function shortError(value: unknown, max = 220): string | null {
67
+ if (value == null) return null;
68
+ const s = typeof value === "string" ? value : JSON.stringify(value);
69
+ const clean = s.replace(/\s+/g, " ").trim();
70
+ if (!clean) return null;
71
+ return clean.length > max ? `${clean.slice(0, max)}…` : clean;
72
+ }
73
+
74
+ export function summarizeProviderHealth(input: {
75
+ historyRows: HealthHistoryRow[];
76
+ detailRows: HealthDetailRow[];
77
+ connections: HealthConnection[];
78
+ cutoffIso: string;
79
+ }): { providers: ProviderHealthEntry[]; recentFailures: RecentFailure[] } {
80
+ const cutoffMs = new Date(input.cutoffIso).getTime();
81
+ const connById = new Map<string, HealthConnection>();
82
+ for (const c of input.connections) connById.set(c.id, c);
83
+
84
+ type Acc = {
85
+ provider: string;
86
+ connectionId: string;
87
+ requests: number;
88
+ errors: number;
89
+ detailErrors: number;
90
+ latencies: number[];
91
+ lastError: string | null;
92
+ lastErrorAt: string | null;
93
+ };
94
+ const accs = new Map<string, Acc>();
95
+ const accKey = (provider: string, connectionId: string) => `${provider}|||${connectionId}`;
96
+
97
+ const ensure = (provider: string, connectionId: string): Acc => {
98
+ const key = accKey(provider, connectionId);
99
+ let a = accs.get(key);
100
+ if (!a) {
101
+ a = {
102
+ provider,
103
+ connectionId,
104
+ requests: 0,
105
+ errors: 0,
106
+ detailErrors: 0,
107
+ latencies: [],
108
+ lastError: null,
109
+ lastErrorAt: null,
110
+ };
111
+ accs.set(key, a);
112
+ }
113
+ return a;
114
+ };
115
+
116
+ for (const r of input.historyRows) {
117
+ if (!r.provider || !r.connectionId) continue;
118
+ const ts = r.timestamp ? new Date(r.timestamp).getTime() : 0;
119
+ if (Number.isFinite(cutoffMs) && ts < cutoffMs) continue;
120
+ const a = ensure(r.provider, r.connectionId);
121
+ a.requests += 1;
122
+ if (!isOkStatus(r.status)) a.errors += 1;
123
+ }
124
+
125
+ const failures: RecentFailure[] = [];
126
+ for (const d of input.detailRows) {
127
+ if (!d.provider) continue;
128
+ const connId = d.connectionId || "unknown";
129
+ const ts = d.timestamp || "";
130
+ const tsMs = ts ? new Date(ts).getTime() : 0;
131
+ const inWindow = !Number.isFinite(cutoffMs) || tsMs >= cutoffMs;
132
+ if (inWindow && d.connectionId) {
133
+ const a = ensure(d.provider, d.connectionId);
134
+ if (typeof d.latencyMs === "number" && d.latencyMs >= 0) a.latencies.push(d.latencyMs);
135
+ if (!isOkStatus(d.status)) {
136
+ a.detailErrors += 1;
137
+ const err = shortError(d.error);
138
+ if (err && (!a.lastErrorAt || ts > a.lastErrorAt)) {
139
+ a.lastError = err;
140
+ a.lastErrorAt = ts;
141
+ }
142
+ } else if (typeof d.latencyMs === "number" && d.latencyMs >= 0 && !a.lastErrorAt) {
143
+ // keep lastErrorAt empty on pure success; nothing to do
144
+ }
145
+ }
146
+ if (!isOkStatus(d.status)) {
147
+ const conn = d.connectionId ? connById.get(d.connectionId) : undefined;
148
+ failures.push({
149
+ timestamp: ts,
150
+ provider: d.provider,
151
+ model: "",
152
+ connectionId: d.connectionId || null,
153
+ connectionName: conn?.name || null,
154
+ status: String(d.status || "error"),
155
+ latencyMs: typeof d.latencyMs === "number" ? d.latencyMs : null,
156
+ error: shortError(d.error),
157
+ });
158
+ }
159
+ void connId;
160
+ }
161
+
162
+ // Seed accounts that have connections but zero traffic so the UI shows idle/cooldown rows.
163
+ for (const c of input.connections) {
164
+ ensure(c.provider, c.id);
165
+ }
166
+
167
+ const now = Date.now();
168
+ const providers: ProviderHealthEntry[] = [...accs.values()].map((a) => {
169
+ const conn = connById.get(a.connectionId);
170
+ const cooldownUntil = conn?.rateLimitedUntil || null;
171
+ const cooldownActive = !!cooldownUntil && new Date(cooldownUntil).getTime() > now;
172
+ a.latencies.sort((x, y) => x - y);
173
+ const total = a.requests + a.detailErrors;
174
+ const failed = a.errors + a.detailErrors;
175
+ const successRate =
176
+ a.requests > 0 ? (a.requests - a.errors) / a.requests : total > 0 ? 0 : null;
177
+ let status: HealthStatus;
178
+ if (cooldownActive) status = "cooldown";
179
+ else if (total === 0) status = "idle";
180
+ else if (a.requests === 0 || (successRate !== null && successRate < 0.5)) status = "down";
181
+ else if (failed > 0) status = "degraded";
182
+ else status = "healthy";
183
+ // Surface connection-level lastError when no detail error was captured.
184
+ let lastError = a.lastError;
185
+ let lastErrorAt = a.lastErrorAt;
186
+ if (!lastError && conn?.lastError) {
187
+ lastError = shortError(conn.lastError);
188
+ }
189
+ return {
190
+ provider: a.provider,
191
+ connectionId: a.connectionId,
192
+ connectionName: conn?.name || `${a.connectionId.slice(0, 8)}…`,
193
+ requests: a.requests,
194
+ errors: a.errors,
195
+ detailErrors: a.detailErrors,
196
+ successRate,
197
+ p50LatencyMs: percentile(a.latencies, 0.5),
198
+ lastError,
199
+ lastErrorAt,
200
+ cooldownUntil: cooldownActive ? cooldownUntil : null,
201
+ status,
202
+ };
203
+ });
204
+
205
+ providers.sort((x, y) => {
206
+ const rank: Record<HealthStatus, number> = {
207
+ down: 0,
208
+ cooldown: 1,
209
+ degraded: 2,
210
+ healthy: 3,
211
+ idle: 4,
212
+ };
213
+ if (rank[x.status] !== rank[y.status]) return rank[x.status] - rank[y.status];
214
+ return y.requests + y.detailErrors - (x.requests + x.detailErrors);
215
+ });
216
+
217
+ failures.sort((a, b) => (a.timestamp < b.timestamp ? 1 : -1));
218
+ return { providers, recentFailures: failures.slice(0, 20) };
219
+ }
@@ -32,6 +32,7 @@ const ProviderTopology = dynamic(
32
32
  { ssr: false },
33
33
  );
34
34
  import UsageChart from "@/app/(dashboard)/dashboard/usage/components/UsageChart";
35
+ import ProviderHealth from "@/app/(dashboard)/dashboard/usage/components/ProviderHealth";
35
36
 
36
37
  function timeAgo(timestamp: any) {
37
38
  const diff = Math.floor((Date.now() - new Date(timestamp).getTime()) / 1000);
@@ -664,6 +665,9 @@ export default function UsageStats({
664
665
  {/* Token / Cost chart - sync period */}
665
666
  {loading ? <PanelSkeleton /> : <UsageChart period={period} />}
666
667
 
668
+ {/* Fallback inspector: per-account health + why fallback triggered */}
669
+ {loading ? <PanelSkeleton /> : <ProviderHealth />}
670
+
667
671
  {/* Usage breakdown table, full width */}
668
672
  <div className="flex min-w-0 flex-col gap-3">
669
673
  <div className="flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST=function(e,s,t,a){return{__rewrites:{afterFiles:[{has:e,source:"/v1/v1/:path*",destination:s},{has:e,source:"/v1/v1",destination:t},{has:e,source:"/codex/:path*",destination:a},{has:e,source:"/responses",destination:a},{has:e,source:"/v1beta/:path*",destination:"/api/v1beta/:path*"},{has:e,source:"/v1beta",destination:"/api/v1beta"},{has:e,source:"/v1/:path*",destination:s},{has:e,source:"/v1",destination:t}],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:146,errorRate:1e-4,numBits:2799,numHashes:14,bitArray:[1,1,1,0,1,0,0,0,1,1,1,0,1,1,0,1,1,1,1,0,1,1,0,0,0,1,1,1,1,1,1,1,1,0,0,1,1,1,0,1,1,1,0,1,0,1,0,0,1,1,1,1,1,0,0,0,0,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,1,1,0,0,0,1,1,1,0,0,1,1,1,1,0,0,1,1,1,0,1,1,0,0,1,1,0,0,1,1,0,0,0,1,0,1,1,1,1,1,0,1,0,1,1,1,0,0,0,1,0,1,0,1,0,1,0,0,0,0,0,0,0,1,1,0,0,0,1,0,1,0,1,0,0,1,0,0,0,1,1,1,0,1,0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,1,0,1,0,1,1,0,1,1,1,1,1,0,0,1,1,0,0,0,1,0,1,0,1,1,1,0,0,0,0,0,0,1,0,1,0,1,0,1,0,1,1,0,0,0,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