@amir83nasr/10router 0.1.6 → 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 (805) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +7 -6
  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 +2 -2
  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 +9 -9
  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 +9 -9
  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 +9 -9
  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 +9 -9
  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 +9 -9
  403. package/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
  404. package/.next/server/app/dashboard.segments/_full.segment.rsc +9 -9
  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 +7 -6
  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/2282.js +2 -2
  438. package/.next/server/chunks/2339.js +1 -1
  439. package/.next/server/chunks/2801.js +1 -1
  440. package/.next/server/chunks/3250.js +2 -2
  441. package/.next/server/chunks/3425.js +1 -1
  442. package/.next/server/chunks/4129.js +1 -1
  443. package/.next/server/chunks/537.js +1 -1
  444. package/.next/server/chunks/5412.js +1 -1
  445. package/.next/server/chunks/6056.js +1 -1
  446. package/.next/server/chunks/7348.js +1 -1
  447. package/.next/server/chunks/7816.js +1 -1
  448. package/.next/server/chunks/9429.js +1 -1
  449. package/.next/server/middleware-build-manifest.js +1 -1
  450. package/.next/server/middleware.js +1 -1
  451. package/.next/server/middleware.js.nft.json +1 -1
  452. package/.next/server/pages/404.html +1 -1
  453. package/.next/server/pages/500.html +1 -1
  454. package/.next/server/server-reference-manifest.js +1 -1
  455. package/.next/server/server-reference-manifest.json +1 -1
  456. package/.next/static/chunks/{1278-16cc8ebc3a4c8af5.js → 1278-605cc36f762c2ea7.js} +1 -1
  457. package/.next/static/chunks/{1471-10f225f62f7469cc.js → 1471-69a7c30abf98c656.js} +1 -1
  458. package/.next/static/chunks/{159-39356ce437096d44.js → 159-ec207a220d7d5c16.js} +1 -1
  459. package/.next/static/chunks/{1699-13ee6864a8a31a96.js → 1699-49be310981e2759e.js} +2 -2
  460. package/.next/static/chunks/2836-8e7f4c382297ac97.js +1 -0
  461. package/.next/static/chunks/{3577-cd98d40e3099e1b0.js → 3577-1f02993330d7fba7.js} +1 -1
  462. package/.next/static/chunks/3973-424848b943e2ecab.js +1 -0
  463. package/.next/static/chunks/{5862-f98c2f3d480b80d2.js → 5862-6f3a3a6d4c00100d.js} +1 -1
  464. package/.next/static/chunks/9369-7ef21480b9132957.js +1 -0
  465. package/.next/static/chunks/{9ce8c186-3c7d7dbc5d428052.js → 9ce8c186-6cd204e9c27ecee1.js} +1 -1
  466. package/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-93cc9fc8f8ab938b.js → page-9efe55fed2f7c81f.js} +2 -2
  467. package/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-9dcb29085167b384.js +1 -0
  468. package/.next/static/chunks/app/(dashboard)/dashboard/combos/page-f5db9f681c6bface.js +1 -0
  469. package/.next/static/chunks/app/(dashboard)/dashboard/console-log/{page-30d1f039dfdca294.js → page-d134cc313c9fa0b8.js} +1 -1
  470. package/.next/static/chunks/app/(dashboard)/dashboard/endpoint/{page-13abc5b934c960d3.js → page-f2d1a733e7f841cb.js} +1 -1
  471. package/.next/static/chunks/app/(dashboard)/dashboard/media-providers/systemone/[id]/{page-fb90d8451f40b8b3.js → page-0d6e623de6134598.js} +1 -1
  472. package/.next/static/chunks/app/(dashboard)/dashboard/{page-85118ef708c624e6.js → page-e8f1d8be5e294fb0.js} +1 -1
  473. package/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-36659d3f8756c897.js → page-c96cbcc4f5736e36.js} +1 -1
  474. package/.next/static/chunks/app/(dashboard)/dashboard/providers/new/{page-fc4d1c1291545177.js → page-cc51346e464158b1.js} +1 -1
  475. package/.next/static/chunks/app/(dashboard)/dashboard/providers/page-1ee147fbe0693dc1.js +1 -0
  476. package/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-247f59d088891437.js → page-2287b1915fa887fc.js} +2 -2
  477. package/.next/static/chunks/app/(dashboard)/dashboard/quota/page-54a329d725734a1f.js +1 -0
  478. package/.next/static/chunks/app/(dashboard)/dashboard/usage/page-a81f78bb43042c30.js +1 -0
  479. package/.next/static/chunks/app/(dashboard)/{layout-667f17706a5e1896.js → layout-c199eb2ad56ae96a.js} +1 -1
  480. package/.next/static/chunks/app/_global-error/{page-fe947d4ab19df968.js → page-9a2a13ac6b89ba91.js} +1 -1
  481. package/.next/static/chunks/app/api/auth/login/{route-fe947d4ab19df968.js → route-9a2a13ac6b89ba91.js} +1 -1
  482. package/.next/static/chunks/app/api/auth/logout/{route-fe947d4ab19df968.js → route-9a2a13ac6b89ba91.js} +1 -1
  483. package/.next/static/chunks/app/api/auth/oidc/callback/{route-fe947d4ab19df968.js → route-9a2a13ac6b89ba91.js} +1 -1
  484. package/.next/static/chunks/app/api/auth/oidc/start/route-9a2a13ac6b89ba91.js +1 -0
  485. package/.next/static/chunks/app/api/auth/oidc/test/route-9a2a13ac6b89ba91.js +1 -0
  486. package/.next/static/chunks/app/api/auth/reset-password/route-9a2a13ac6b89ba91.js +1 -0
  487. package/.next/static/chunks/app/api/auth/saml/acs/route-9a2a13ac6b89ba91.js +1 -0
  488. package/.next/static/chunks/app/api/auth/saml/metadata/route-9a2a13ac6b89ba91.js +1 -0
  489. package/.next/static/chunks/app/api/auth/saml/start/route-9a2a13ac6b89ba91.js +1 -0
  490. package/.next/static/chunks/app/api/auth/saml/test/route-9a2a13ac6b89ba91.js +1 -0
  491. package/.next/static/chunks/app/api/auth/status/route-9a2a13ac6b89ba91.js +1 -0
  492. package/.next/static/chunks/app/api/changelog/route-9a2a13ac6b89ba91.js +1 -0
  493. package/.next/static/chunks/app/api/cli-tools/all-statuses/route-9a2a13ac6b89ba91.js +1 -0
  494. package/.next/static/chunks/app/api/cli-tools/claude-settings/route-9a2a13ac6b89ba91.js +1 -0
  495. package/.next/static/chunks/app/api/cli-tools/codex-settings/route-9a2a13ac6b89ba91.js +1 -0
  496. package/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-9a2a13ac6b89ba91.js +1 -0
  497. package/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-9a2a13ac6b89ba91.js +1 -0
  498. package/.next/static/chunks/app/api/cli-tools/cowork-settings/route-9a2a13ac6b89ba91.js +1 -0
  499. package/.next/static/chunks/app/api/cli-tools/dsh-settings/route-9a2a13ac6b89ba91.js +1 -0
  500. package/.next/static/chunks/app/api/cli-tools/opencode-settings/route-9a2a13ac6b89ba91.js +1 -0
  501. package/.next/static/chunks/app/api/combos/[id]/route-9a2a13ac6b89ba91.js +1 -0
  502. package/.next/static/chunks/app/api/combos/route-9a2a13ac6b89ba91.js +1 -0
  503. package/.next/static/chunks/app/api/headroom/extras/route-9a2a13ac6b89ba91.js +1 -0
  504. package/.next/static/chunks/app/api/headroom/proxy/[...path]/route-9a2a13ac6b89ba91.js +1 -0
  505. package/.next/static/chunks/app/api/headroom/restart/route-9a2a13ac6b89ba91.js +1 -0
  506. package/.next/static/chunks/app/api/headroom/start/route-9a2a13ac6b89ba91.js +1 -0
  507. package/.next/static/chunks/app/api/headroom/status/route-9a2a13ac6b89ba91.js +1 -0
  508. package/.next/static/chunks/app/api/headroom/stop/route-9a2a13ac6b89ba91.js +1 -0
  509. package/.next/static/chunks/app/api/health/route-9a2a13ac6b89ba91.js +1 -0
  510. package/.next/static/chunks/app/api/init/route-9a2a13ac6b89ba91.js +1 -0
  511. package/.next/static/chunks/app/api/keys/[id]/route-9a2a13ac6b89ba91.js +1 -0
  512. package/.next/static/chunks/app/api/keys/route-9a2a13ac6b89ba91.js +1 -0
  513. package/.next/static/chunks/app/api/locale/route-9a2a13ac6b89ba91.js +1 -0
  514. package/.next/static/chunks/app/api/mcp/[plugin]/message/route-9a2a13ac6b89ba91.js +1 -0
  515. package/.next/static/chunks/app/api/mcp/[plugin]/sse/route-9a2a13ac6b89ba91.js +1 -0
  516. package/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-9a2a13ac6b89ba91.js +1 -0
  517. package/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-9a2a13ac6b89ba91.js +1 -0
  518. package/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-9a2a13ac6b89ba91.js +1 -0
  519. package/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-9a2a13ac6b89ba91.js +1 -0
  520. package/.next/static/chunks/app/api/media-providers/tts/voices/route-9a2a13ac6b89ba91.js +1 -0
  521. package/.next/static/chunks/app/api/models/alias/route-9a2a13ac6b89ba91.js +1 -0
  522. package/.next/static/chunks/app/api/models/availability/route-9a2a13ac6b89ba91.js +1 -0
  523. package/.next/static/chunks/app/api/models/catalog-sync/route-9a2a13ac6b89ba91.js +1 -0
  524. package/.next/static/chunks/app/api/models/custom/route-9a2a13ac6b89ba91.js +1 -0
  525. package/.next/static/chunks/app/api/models/disabled/route-9a2a13ac6b89ba91.js +1 -0
  526. package/.next/static/chunks/app/api/models/route-9a2a13ac6b89ba91.js +1 -0
  527. package/.next/static/chunks/app/api/models/test/route-9a2a13ac6b89ba91.js +1 -0
  528. package/.next/static/chunks/app/api/oauth/[provider]/[action]/route-9a2a13ac6b89ba91.js +1 -0
  529. package/.next/static/chunks/app/api/oauth/codex/bulk-import/route-9a2a13ac6b89ba91.js +1 -0
  530. package/.next/static/chunks/app/api/oauth/codex/import-token/route-9a2a13ac6b89ba91.js +1 -0
  531. package/.next/static/chunks/app/api/oauth/cursor/auto-import/route-9a2a13ac6b89ba91.js +1 -0
  532. package/.next/static/chunks/app/api/oauth/cursor/import/route-9a2a13ac6b89ba91.js +1 -0
  533. package/.next/static/chunks/app/api/oauth/gitlab/pat/route-9a2a13ac6b89ba91.js +1 -0
  534. package/.next/static/chunks/app/api/oauth/grok-cli/bulk-import/route-9a2a13ac6b89ba91.js +1 -0
  535. package/.next/static/chunks/app/api/oauth/iflow/cookie/route-9a2a13ac6b89ba91.js +1 -0
  536. package/.next/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-9a2a13ac6b89ba91.js +1 -0
  537. package/.next/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-9a2a13ac6b89ba91.js +1 -0
  538. package/.next/static/chunks/app/api/pricing/route-9a2a13ac6b89ba91.js +1 -0
  539. package/.next/static/chunks/app/api/provider-nodes/[id]/route-9a2a13ac6b89ba91.js +1 -0
  540. package/.next/static/chunks/app/api/provider-nodes/route-9a2a13ac6b89ba91.js +1 -0
  541. package/.next/static/chunks/app/api/provider-nodes/validate/route-9a2a13ac6b89ba91.js +1 -0
  542. package/.next/static/chunks/app/api/providers/[id]/models/route-9a2a13ac6b89ba91.js +1 -0
  543. package/.next/static/chunks/app/api/providers/[id]/route-9a2a13ac6b89ba91.js +1 -0
  544. package/.next/static/chunks/app/api/providers/[id]/test/route-9a2a13ac6b89ba91.js +1 -0
  545. package/.next/static/chunks/app/api/providers/[id]/test-models/route-9a2a13ac6b89ba91.js +1 -0
  546. package/.next/static/chunks/app/api/providers/client/route-9a2a13ac6b89ba91.js +1 -0
  547. package/.next/static/chunks/app/api/providers/kilo/free-models/route-9a2a13ac6b89ba91.js +1 -0
  548. package/.next/static/chunks/app/api/providers/route-9a2a13ac6b89ba91.js +1 -0
  549. package/.next/static/chunks/app/api/providers/suggested-models/route-9a2a13ac6b89ba91.js +1 -0
  550. package/.next/static/chunks/app/api/providers/test-batch/route-9a2a13ac6b89ba91.js +1 -0
  551. package/.next/static/chunks/app/api/providers/validate/route-9a2a13ac6b89ba91.js +1 -0
  552. package/.next/static/chunks/app/api/proxy-pools/[id]/route-9a2a13ac6b89ba91.js +1 -0
  553. package/.next/static/chunks/app/api/proxy-pools/[id]/test/route-9a2a13ac6b89ba91.js +1 -0
  554. package/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-9a2a13ac6b89ba91.js +1 -0
  555. package/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-9a2a13ac6b89ba91.js +1 -0
  556. package/.next/static/chunks/app/api/proxy-pools/route-9a2a13ac6b89ba91.js +1 -0
  557. package/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-9a2a13ac6b89ba91.js +1 -0
  558. package/.next/static/chunks/app/api/pxpipe/health/route-9a2a13ac6b89ba91.js +1 -0
  559. package/.next/static/chunks/app/api/pxpipe/install/route-9a2a13ac6b89ba91.js +1 -0
  560. package/.next/static/chunks/app/api/pxpipe/logs/route-9a2a13ac6b89ba91.js +1 -0
  561. package/.next/static/chunks/app/api/pxpipe/restart/route-9a2a13ac6b89ba91.js +1 -0
  562. package/.next/static/chunks/app/api/pxpipe/start/route-9a2a13ac6b89ba91.js +1 -0
  563. package/.next/static/chunks/app/api/pxpipe/stats/route-9a2a13ac6b89ba91.js +1 -0
  564. package/.next/static/chunks/app/api/pxpipe/status/route-9a2a13ac6b89ba91.js +1 -0
  565. package/.next/static/chunks/app/api/pxpipe/stop/route-9a2a13ac6b89ba91.js +1 -0
  566. package/.next/static/chunks/app/api/settings/database/route-9a2a13ac6b89ba91.js +1 -0
  567. package/.next/static/chunks/app/api/settings/proxy-test/route-9a2a13ac6b89ba91.js +1 -0
  568. package/.next/static/chunks/app/api/settings/require-login/route-9a2a13ac6b89ba91.js +1 -0
  569. package/.next/static/chunks/app/api/settings/route-9a2a13ac6b89ba91.js +1 -0
  570. package/.next/static/chunks/app/api/shutdown/route-9a2a13ac6b89ba91.js +1 -0
  571. package/.next/static/chunks/app/api/tags/route-9a2a13ac6b89ba91.js +1 -0
  572. package/.next/static/chunks/app/api/translator/console-logs/route-9a2a13ac6b89ba91.js +1 -0
  573. package/.next/static/chunks/app/api/translator/console-logs/stream/route-9a2a13ac6b89ba91.js +1 -0
  574. package/.next/static/chunks/app/api/translator/load/route-9a2a13ac6b89ba91.js +1 -0
  575. package/.next/static/chunks/app/api/translator/save/route-9a2a13ac6b89ba91.js +1 -0
  576. package/.next/static/chunks/app/api/translator/send/route-9a2a13ac6b89ba91.js +1 -0
  577. package/.next/static/chunks/app/api/translator/translate/route-9a2a13ac6b89ba91.js +1 -0
  578. package/.next/static/chunks/app/api/tunnel/disable/route-9a2a13ac6b89ba91.js +1 -0
  579. package/.next/static/chunks/app/api/tunnel/enable/route-9a2a13ac6b89ba91.js +1 -0
  580. package/.next/static/chunks/app/api/tunnel/status/route-9a2a13ac6b89ba91.js +1 -0
  581. package/.next/static/chunks/app/api/tunnel/tailscale-check/route-9a2a13ac6b89ba91.js +1 -0
  582. package/.next/static/chunks/app/api/tunnel/tailscale-disable/route-9a2a13ac6b89ba91.js +1 -0
  583. package/.next/static/chunks/app/api/tunnel/tailscale-enable/route-9a2a13ac6b89ba91.js +1 -0
  584. package/.next/static/chunks/app/api/tunnel/tailscale-install/route-9a2a13ac6b89ba91.js +1 -0
  585. package/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-9a2a13ac6b89ba91.js +1 -0
  586. package/.next/static/chunks/app/api/usage/[connectionId]/route-9a2a13ac6b89ba91.js +1 -0
  587. package/.next/static/chunks/app/api/usage/chart/route-9a2a13ac6b89ba91.js +1 -0
  588. package/.next/static/chunks/app/api/usage/health/route-9a2a13ac6b89ba91.js +1 -0
  589. package/.next/static/chunks/app/api/usage/history/route-9a2a13ac6b89ba91.js +1 -0
  590. package/.next/static/chunks/app/api/usage/logs/route-9a2a13ac6b89ba91.js +1 -0
  591. package/.next/static/chunks/app/api/usage/providers/route-9a2a13ac6b89ba91.js +1 -0
  592. package/.next/static/chunks/app/api/usage/request-details/route-9a2a13ac6b89ba91.js +1 -0
  593. package/.next/static/chunks/app/api/usage/request-logs/route-9a2a13ac6b89ba91.js +1 -0
  594. package/.next/static/chunks/app/api/usage/stats/route-9a2a13ac6b89ba91.js +1 -0
  595. package/.next/static/chunks/app/api/usage/stream/route-9a2a13ac6b89ba91.js +1 -0
  596. package/.next/static/chunks/app/api/v1/api/chat/route-9a2a13ac6b89ba91.js +1 -0
  597. package/.next/static/chunks/app/api/v1/audio/speech/route-9a2a13ac6b89ba91.js +1 -0
  598. package/.next/static/chunks/app/api/v1/audio/transcriptions/route-9a2a13ac6b89ba91.js +1 -0
  599. package/.next/static/chunks/app/api/v1/audio/voices/route-9a2a13ac6b89ba91.js +1 -0
  600. package/.next/static/chunks/app/api/v1/chat/completions/route-9a2a13ac6b89ba91.js +1 -0
  601. package/.next/static/chunks/app/api/v1/embeddings/route-9a2a13ac6b89ba91.js +1 -0
  602. package/.next/static/chunks/app/api/v1/images/generations/route-9a2a13ac6b89ba91.js +1 -0
  603. package/.next/static/chunks/app/api/v1/messages/count_tokens/route-9a2a13ac6b89ba91.js +1 -0
  604. package/.next/static/chunks/app/api/v1/messages/route-9a2a13ac6b89ba91.js +1 -0
  605. package/.next/static/chunks/app/api/v1/models/[...model]/route-9a2a13ac6b89ba91.js +1 -0
  606. package/.next/static/chunks/app/api/v1/models/info/route-9a2a13ac6b89ba91.js +1 -0
  607. package/.next/static/chunks/app/api/v1/models/route-9a2a13ac6b89ba91.js +1 -0
  608. package/.next/static/chunks/app/api/v1/responses/compact/route-9a2a13ac6b89ba91.js +1 -0
  609. package/.next/static/chunks/app/api/v1/responses/route-9a2a13ac6b89ba91.js +1 -0
  610. package/.next/static/chunks/app/api/v1/route-9a2a13ac6b89ba91.js +1 -0
  611. package/.next/static/chunks/app/api/v1/search/route-9a2a13ac6b89ba91.js +1 -0
  612. package/.next/static/chunks/app/api/v1/systemone/route-9a2a13ac6b89ba91.js +1 -0
  613. package/.next/static/chunks/app/api/v1/videos/[id]/route-9a2a13ac6b89ba91.js +1 -0
  614. package/.next/static/chunks/app/api/v1/videos/edits/route-9a2a13ac6b89ba91.js +1 -0
  615. package/.next/static/chunks/app/api/v1/videos/extensions/route-9a2a13ac6b89ba91.js +1 -0
  616. package/.next/static/chunks/app/api/v1/videos/generations/route-9a2a13ac6b89ba91.js +1 -0
  617. package/.next/static/chunks/app/api/v1/web/fetch/route-9a2a13ac6b89ba91.js +1 -0
  618. package/.next/static/chunks/app/api/v1beta/models/[...path]/route-9a2a13ac6b89ba91.js +1 -0
  619. package/.next/static/chunks/app/api/v1beta/models/route-9a2a13ac6b89ba91.js +1 -0
  620. package/.next/static/chunks/app/api/version/route-9a2a13ac6b89ba91.js +1 -0
  621. package/.next/static/chunks/app/api/version/shutdown/route-9a2a13ac6b89ba91.js +1 -0
  622. package/.next/static/chunks/app/api/version/update/route-9a2a13ac6b89ba91.js +1 -0
  623. package/.next/static/chunks/app/{layout-43bf918527d2f137.js → layout-9bd5877ae6198856.js} +1 -1
  624. package/.next/static/chunks/app/manifest.webmanifest/route-9a2a13ac6b89ba91.js +1 -0
  625. package/.next/static/chunks/app/page-9a2a13ac6b89ba91.js +1 -0
  626. package/.next/static/chunks/next/dist/client/components/builtin/app-error-9a2a13ac6b89ba91.js +1 -0
  627. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-9a2a13ac6b89ba91.js +1 -0
  628. package/.next/static/chunks/next/dist/client/components/builtin/not-found-9a2a13ac6b89ba91.js +1 -0
  629. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-9a2a13ac6b89ba91.js +1 -0
  630. package/.next/static/css/c66cbd684164cacf.css +1 -0
  631. package/.next/static/iz7psrsEuHZGPvj7rbSWc/_buildManifest.js +1 -0
  632. package/CHANGELOG.md +12 -0
  633. package/bin/update-check.mjs +5 -1
  634. package/open-sse/executors/opencode-go.js +1 -1
  635. package/open-sse/executors/opencode-zen.js +2 -2
  636. package/open-sse/executors/opencode.js +7 -6
  637. package/open-sse/providers/registry/opencode-go.js +6 -6
  638. package/open-sse/providers/registry/opencode-zen.js +7 -7
  639. package/open-sse/providers/registry/opencode.js +2 -2
  640. package/open-sse/services/usage/opencode-go.js +1 -1
  641. package/open-sse/utils/opencodeFingerprint.js +1 -1
  642. package/package.json +1 -5
  643. package/src/app/(dashboard)/dashboard/usage/components/ProviderHealth.tsx +221 -0
  644. package/src/app/api/providers/[id]/test/testUtils.js +3 -3
  645. package/src/app/api/providers/validate/route.js +1 -1
  646. package/src/app/api/usage/health/route.ts +121 -0
  647. package/src/lib/db/adapters/betterSqliteAdapter.js +12 -1
  648. package/src/lib/db/driver.js +4 -1
  649. package/src/lib/usageHealth.ts +219 -0
  650. package/src/shared/components/UsageStats.tsx +4 -0
  651. package/.next/static/chunks/208-521a3242b62d6c07.js +0 -1
  652. package/.next/static/chunks/2836-38406d658ad8caa9.js +0 -1
  653. package/.next/static/chunks/9369-b8c9520bc2536ff2.js +0 -1
  654. package/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-1c54f83c69f02add.js +0 -1
  655. package/.next/static/chunks/app/(dashboard)/dashboard/combos/page-853f4e08f4982dbe.js +0 -1
  656. package/.next/static/chunks/app/(dashboard)/dashboard/providers/page-b9dafab69096fa76.js +0 -1
  657. package/.next/static/chunks/app/(dashboard)/dashboard/quota/page-5d2e8d9a126c2769.js +0 -1
  658. package/.next/static/chunks/app/(dashboard)/dashboard/usage/page-cf503287fe99e910.js +0 -1
  659. package/.next/static/chunks/app/api/auth/oidc/start/route-fe947d4ab19df968.js +0 -1
  660. package/.next/static/chunks/app/api/auth/oidc/test/route-fe947d4ab19df968.js +0 -1
  661. package/.next/static/chunks/app/api/auth/reset-password/route-fe947d4ab19df968.js +0 -1
  662. package/.next/static/chunks/app/api/auth/saml/acs/route-fe947d4ab19df968.js +0 -1
  663. package/.next/static/chunks/app/api/auth/saml/metadata/route-fe947d4ab19df968.js +0 -1
  664. package/.next/static/chunks/app/api/auth/saml/start/route-fe947d4ab19df968.js +0 -1
  665. package/.next/static/chunks/app/api/auth/saml/test/route-fe947d4ab19df968.js +0 -1
  666. package/.next/static/chunks/app/api/auth/status/route-fe947d4ab19df968.js +0 -1
  667. package/.next/static/chunks/app/api/changelog/route-fe947d4ab19df968.js +0 -1
  668. package/.next/static/chunks/app/api/cli-tools/all-statuses/route-fe947d4ab19df968.js +0 -1
  669. package/.next/static/chunks/app/api/cli-tools/claude-settings/route-fe947d4ab19df968.js +0 -1
  670. package/.next/static/chunks/app/api/cli-tools/codex-settings/route-fe947d4ab19df968.js +0 -1
  671. package/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-fe947d4ab19df968.js +0 -1
  672. package/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-fe947d4ab19df968.js +0 -1
  673. package/.next/static/chunks/app/api/cli-tools/cowork-settings/route-fe947d4ab19df968.js +0 -1
  674. package/.next/static/chunks/app/api/cli-tools/dsh-settings/route-fe947d4ab19df968.js +0 -1
  675. package/.next/static/chunks/app/api/cli-tools/opencode-settings/route-fe947d4ab19df968.js +0 -1
  676. package/.next/static/chunks/app/api/combos/[id]/route-fe947d4ab19df968.js +0 -1
  677. package/.next/static/chunks/app/api/combos/route-fe947d4ab19df968.js +0 -1
  678. package/.next/static/chunks/app/api/headroom/extras/route-fe947d4ab19df968.js +0 -1
  679. package/.next/static/chunks/app/api/headroom/proxy/[...path]/route-fe947d4ab19df968.js +0 -1
  680. package/.next/static/chunks/app/api/headroom/restart/route-fe947d4ab19df968.js +0 -1
  681. package/.next/static/chunks/app/api/headroom/start/route-fe947d4ab19df968.js +0 -1
  682. package/.next/static/chunks/app/api/headroom/status/route-fe947d4ab19df968.js +0 -1
  683. package/.next/static/chunks/app/api/headroom/stop/route-fe947d4ab19df968.js +0 -1
  684. package/.next/static/chunks/app/api/health/route-fe947d4ab19df968.js +0 -1
  685. package/.next/static/chunks/app/api/init/route-fe947d4ab19df968.js +0 -1
  686. package/.next/static/chunks/app/api/keys/[id]/route-fe947d4ab19df968.js +0 -1
  687. package/.next/static/chunks/app/api/keys/route-fe947d4ab19df968.js +0 -1
  688. package/.next/static/chunks/app/api/locale/route-fe947d4ab19df968.js +0 -1
  689. package/.next/static/chunks/app/api/mcp/[plugin]/message/route-fe947d4ab19df968.js +0 -1
  690. package/.next/static/chunks/app/api/mcp/[plugin]/sse/route-fe947d4ab19df968.js +0 -1
  691. package/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-fe947d4ab19df968.js +0 -1
  692. package/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-fe947d4ab19df968.js +0 -1
  693. package/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-fe947d4ab19df968.js +0 -1
  694. package/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-fe947d4ab19df968.js +0 -1
  695. package/.next/static/chunks/app/api/media-providers/tts/voices/route-fe947d4ab19df968.js +0 -1
  696. package/.next/static/chunks/app/api/models/alias/route-fe947d4ab19df968.js +0 -1
  697. package/.next/static/chunks/app/api/models/availability/route-fe947d4ab19df968.js +0 -1
  698. package/.next/static/chunks/app/api/models/catalog-sync/route-fe947d4ab19df968.js +0 -1
  699. package/.next/static/chunks/app/api/models/custom/route-fe947d4ab19df968.js +0 -1
  700. package/.next/static/chunks/app/api/models/disabled/route-fe947d4ab19df968.js +0 -1
  701. package/.next/static/chunks/app/api/models/route-fe947d4ab19df968.js +0 -1
  702. package/.next/static/chunks/app/api/models/test/route-fe947d4ab19df968.js +0 -1
  703. package/.next/static/chunks/app/api/oauth/[provider]/[action]/route-fe947d4ab19df968.js +0 -1
  704. package/.next/static/chunks/app/api/oauth/codex/bulk-import/route-fe947d4ab19df968.js +0 -1
  705. package/.next/static/chunks/app/api/oauth/codex/import-token/route-fe947d4ab19df968.js +0 -1
  706. package/.next/static/chunks/app/api/oauth/cursor/auto-import/route-fe947d4ab19df968.js +0 -1
  707. package/.next/static/chunks/app/api/oauth/cursor/import/route-fe947d4ab19df968.js +0 -1
  708. package/.next/static/chunks/app/api/oauth/gitlab/pat/route-fe947d4ab19df968.js +0 -1
  709. package/.next/static/chunks/app/api/oauth/grok-cli/bulk-import/route-fe947d4ab19df968.js +0 -1
  710. package/.next/static/chunks/app/api/oauth/iflow/cookie/route-fe947d4ab19df968.js +0 -1
  711. package/.next/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-fe947d4ab19df968.js +0 -1
  712. package/.next/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-fe947d4ab19df968.js +0 -1
  713. package/.next/static/chunks/app/api/pricing/route-fe947d4ab19df968.js +0 -1
  714. package/.next/static/chunks/app/api/provider-nodes/[id]/route-fe947d4ab19df968.js +0 -1
  715. package/.next/static/chunks/app/api/provider-nodes/route-fe947d4ab19df968.js +0 -1
  716. package/.next/static/chunks/app/api/provider-nodes/validate/route-fe947d4ab19df968.js +0 -1
  717. package/.next/static/chunks/app/api/providers/[id]/models/route-fe947d4ab19df968.js +0 -1
  718. package/.next/static/chunks/app/api/providers/[id]/route-fe947d4ab19df968.js +0 -1
  719. package/.next/static/chunks/app/api/providers/[id]/test/route-fe947d4ab19df968.js +0 -1
  720. package/.next/static/chunks/app/api/providers/[id]/test-models/route-fe947d4ab19df968.js +0 -1
  721. package/.next/static/chunks/app/api/providers/client/route-fe947d4ab19df968.js +0 -1
  722. package/.next/static/chunks/app/api/providers/kilo/free-models/route-fe947d4ab19df968.js +0 -1
  723. package/.next/static/chunks/app/api/providers/route-fe947d4ab19df968.js +0 -1
  724. package/.next/static/chunks/app/api/providers/suggested-models/route-fe947d4ab19df968.js +0 -1
  725. package/.next/static/chunks/app/api/providers/test-batch/route-fe947d4ab19df968.js +0 -1
  726. package/.next/static/chunks/app/api/providers/validate/route-fe947d4ab19df968.js +0 -1
  727. package/.next/static/chunks/app/api/proxy-pools/[id]/route-fe947d4ab19df968.js +0 -1
  728. package/.next/static/chunks/app/api/proxy-pools/[id]/test/route-fe947d4ab19df968.js +0 -1
  729. package/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-fe947d4ab19df968.js +0 -1
  730. package/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-fe947d4ab19df968.js +0 -1
  731. package/.next/static/chunks/app/api/proxy-pools/route-fe947d4ab19df968.js +0 -1
  732. package/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-fe947d4ab19df968.js +0 -1
  733. package/.next/static/chunks/app/api/pxpipe/health/route-fe947d4ab19df968.js +0 -1
  734. package/.next/static/chunks/app/api/pxpipe/install/route-fe947d4ab19df968.js +0 -1
  735. package/.next/static/chunks/app/api/pxpipe/logs/route-fe947d4ab19df968.js +0 -1
  736. package/.next/static/chunks/app/api/pxpipe/restart/route-fe947d4ab19df968.js +0 -1
  737. package/.next/static/chunks/app/api/pxpipe/start/route-fe947d4ab19df968.js +0 -1
  738. package/.next/static/chunks/app/api/pxpipe/stats/route-fe947d4ab19df968.js +0 -1
  739. package/.next/static/chunks/app/api/pxpipe/status/route-fe947d4ab19df968.js +0 -1
  740. package/.next/static/chunks/app/api/pxpipe/stop/route-fe947d4ab19df968.js +0 -1
  741. package/.next/static/chunks/app/api/settings/database/route-fe947d4ab19df968.js +0 -1
  742. package/.next/static/chunks/app/api/settings/proxy-test/route-fe947d4ab19df968.js +0 -1
  743. package/.next/static/chunks/app/api/settings/require-login/route-fe947d4ab19df968.js +0 -1
  744. package/.next/static/chunks/app/api/settings/route-fe947d4ab19df968.js +0 -1
  745. package/.next/static/chunks/app/api/shutdown/route-fe947d4ab19df968.js +0 -1
  746. package/.next/static/chunks/app/api/tags/route-fe947d4ab19df968.js +0 -1
  747. package/.next/static/chunks/app/api/translator/console-logs/route-fe947d4ab19df968.js +0 -1
  748. package/.next/static/chunks/app/api/translator/console-logs/stream/route-fe947d4ab19df968.js +0 -1
  749. package/.next/static/chunks/app/api/translator/load/route-fe947d4ab19df968.js +0 -1
  750. package/.next/static/chunks/app/api/translator/save/route-fe947d4ab19df968.js +0 -1
  751. package/.next/static/chunks/app/api/translator/send/route-fe947d4ab19df968.js +0 -1
  752. package/.next/static/chunks/app/api/translator/translate/route-fe947d4ab19df968.js +0 -1
  753. package/.next/static/chunks/app/api/tunnel/disable/route-fe947d4ab19df968.js +0 -1
  754. package/.next/static/chunks/app/api/tunnel/enable/route-fe947d4ab19df968.js +0 -1
  755. package/.next/static/chunks/app/api/tunnel/status/route-fe947d4ab19df968.js +0 -1
  756. package/.next/static/chunks/app/api/tunnel/tailscale-check/route-fe947d4ab19df968.js +0 -1
  757. package/.next/static/chunks/app/api/tunnel/tailscale-disable/route-fe947d4ab19df968.js +0 -1
  758. package/.next/static/chunks/app/api/tunnel/tailscale-enable/route-fe947d4ab19df968.js +0 -1
  759. package/.next/static/chunks/app/api/tunnel/tailscale-install/route-fe947d4ab19df968.js +0 -1
  760. package/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-fe947d4ab19df968.js +0 -1
  761. package/.next/static/chunks/app/api/usage/[connectionId]/route-fe947d4ab19df968.js +0 -1
  762. package/.next/static/chunks/app/api/usage/chart/route-fe947d4ab19df968.js +0 -1
  763. package/.next/static/chunks/app/api/usage/history/route-fe947d4ab19df968.js +0 -1
  764. package/.next/static/chunks/app/api/usage/logs/route-fe947d4ab19df968.js +0 -1
  765. package/.next/static/chunks/app/api/usage/providers/route-fe947d4ab19df968.js +0 -1
  766. package/.next/static/chunks/app/api/usage/request-details/route-fe947d4ab19df968.js +0 -1
  767. package/.next/static/chunks/app/api/usage/request-logs/route-fe947d4ab19df968.js +0 -1
  768. package/.next/static/chunks/app/api/usage/stats/route-fe947d4ab19df968.js +0 -1
  769. package/.next/static/chunks/app/api/usage/stream/route-fe947d4ab19df968.js +0 -1
  770. package/.next/static/chunks/app/api/v1/api/chat/route-fe947d4ab19df968.js +0 -1
  771. package/.next/static/chunks/app/api/v1/audio/speech/route-fe947d4ab19df968.js +0 -1
  772. package/.next/static/chunks/app/api/v1/audio/transcriptions/route-fe947d4ab19df968.js +0 -1
  773. package/.next/static/chunks/app/api/v1/audio/voices/route-fe947d4ab19df968.js +0 -1
  774. package/.next/static/chunks/app/api/v1/chat/completions/route-fe947d4ab19df968.js +0 -1
  775. package/.next/static/chunks/app/api/v1/embeddings/route-fe947d4ab19df968.js +0 -1
  776. package/.next/static/chunks/app/api/v1/images/generations/route-fe947d4ab19df968.js +0 -1
  777. package/.next/static/chunks/app/api/v1/messages/count_tokens/route-fe947d4ab19df968.js +0 -1
  778. package/.next/static/chunks/app/api/v1/messages/route-fe947d4ab19df968.js +0 -1
  779. package/.next/static/chunks/app/api/v1/models/[...model]/route-fe947d4ab19df968.js +0 -1
  780. package/.next/static/chunks/app/api/v1/models/info/route-fe947d4ab19df968.js +0 -1
  781. package/.next/static/chunks/app/api/v1/models/route-fe947d4ab19df968.js +0 -1
  782. package/.next/static/chunks/app/api/v1/responses/compact/route-fe947d4ab19df968.js +0 -1
  783. package/.next/static/chunks/app/api/v1/responses/route-fe947d4ab19df968.js +0 -1
  784. package/.next/static/chunks/app/api/v1/route-fe947d4ab19df968.js +0 -1
  785. package/.next/static/chunks/app/api/v1/search/route-fe947d4ab19df968.js +0 -1
  786. package/.next/static/chunks/app/api/v1/systemone/route-fe947d4ab19df968.js +0 -1
  787. package/.next/static/chunks/app/api/v1/videos/[id]/route-fe947d4ab19df968.js +0 -1
  788. package/.next/static/chunks/app/api/v1/videos/edits/route-fe947d4ab19df968.js +0 -1
  789. package/.next/static/chunks/app/api/v1/videos/extensions/route-fe947d4ab19df968.js +0 -1
  790. package/.next/static/chunks/app/api/v1/videos/generations/route-fe947d4ab19df968.js +0 -1
  791. package/.next/static/chunks/app/api/v1/web/fetch/route-fe947d4ab19df968.js +0 -1
  792. package/.next/static/chunks/app/api/v1beta/models/[...path]/route-fe947d4ab19df968.js +0 -1
  793. package/.next/static/chunks/app/api/v1beta/models/route-fe947d4ab19df968.js +0 -1
  794. package/.next/static/chunks/app/api/version/route-fe947d4ab19df968.js +0 -1
  795. package/.next/static/chunks/app/api/version/shutdown/route-fe947d4ab19df968.js +0 -1
  796. package/.next/static/chunks/app/api/version/update/route-fe947d4ab19df968.js +0 -1
  797. package/.next/static/chunks/app/manifest.webmanifest/route-fe947d4ab19df968.js +0 -1
  798. package/.next/static/chunks/app/page-fe947d4ab19df968.js +0 -1
  799. package/.next/static/chunks/next/dist/client/components/builtin/app-error-fe947d4ab19df968.js +0 -1
  800. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-fe947d4ab19df968.js +0 -1
  801. package/.next/static/chunks/next/dist/client/components/builtin/not-found-fe947d4ab19df968.js +0 -1
  802. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-fe947d4ab19df968.js +0 -1
  803. package/.next/static/css/7698ede81d1862e2.css +0 -1
  804. package/.next/static/kcbgqbQp7PqJfusgfYenC/_buildManifest.js +0 -1
  805. /package/.next/static/{kcbgqbQp7PqJfusgfYenC → iz7psrsEuHZGPvj7rbSWc}/_ssgManifest.js +0 -0
@@ -17,29 +17,29 @@ export default {
17
17
  },
18
18
  category: "apikey",
19
19
  transport: {
20
- baseUrl: "https://opencode.ai/zen/v1/chat/completions",
20
+ baseUrl: "https://opencode.ai/inference/openai/v1/chat/completions",
21
21
  headers: {},
22
22
  usage: {
23
23
  url: "https://opencode.ai/zen/v1/usage",
24
24
  },
25
25
  },
26
26
  // Multi-endpoint: pick the transport matching the client sourceFormat to skip
27
- // translation. Mirrors opencode-go, pointed at /zen/v1 (endpoint families per
27
+ // translation. Mirrors opencode-go, pointed at /inference (endpoint families per
28
28
  // https://opencode.ai/v2/docs/console/inference, Go table at /v2/docs/console/go).
29
29
  transports: [
30
30
  {
31
31
  format: "openai",
32
- baseUrl: "https://opencode.ai/zen/v1/chat/completions",
32
+ baseUrl: "https://opencode.ai/inference/openai/v1/chat/completions",
33
33
  auth: { combined: true, header: "Authorization", scheme: "bearer" },
34
34
  },
35
35
  {
36
36
  format: "claude",
37
- baseUrl: "https://opencode.ai/zen/v1/messages",
37
+ baseUrl: "https://opencode.ai/inference/anthropic/v1/messages",
38
38
  auth: { combined: true, header: "x-api-key", scheme: "raw", anthropicVersion: true },
39
39
  },
40
40
  {
41
41
  format: "openai-responses",
42
- baseUrl: "https://opencode.ai/zen/v1/responses",
42
+ baseUrl: "https://opencode.ai/inference/openai/v1/responses",
43
43
  auth: { combined: true, header: "Authorization", scheme: "bearer" },
44
44
  },
45
45
  ],
@@ -283,10 +283,10 @@ export default {
283
283
  ],
284
284
  serviceKinds: ["llm", "systemone"],
285
285
  systemoneConfig: {
286
- baseUrl: "https://opencode.ai/zen/v1/systemone",
286
+ baseUrl: "https://opencode.ai/inference/v1/systemone",
287
287
  headers: {
288
288
  "x-opencode-client": "cli",
289
- "User-Agent": "opencode/1.18.35",
289
+ "User-Agent": "opencode/latest/2.0.26/cli",
290
290
  },
291
291
  },
292
292
  // Live catalog per https://opencode.ai/v2/docs/console/inference (unauth GET).
@@ -43,10 +43,10 @@ export default {
43
43
  ],
44
44
  serviceKinds: ["llm", "systemone"],
45
45
  systemoneConfig: {
46
- baseUrl: "https://opencode.ai/zen/v1/systemone",
46
+ baseUrl: "https://opencode.ai/inference/v1/systemone",
47
47
  headers: {
48
48
  "x-opencode-client": "cli",
49
- "User-Agent": "opencode/1.18.35",
49
+ "User-Agent": "opencode/latest/2.0.26/cli",
50
50
  },
51
51
  },
52
52
  // Live catalog per https://opencode.ai/v2/docs/console/inference (unauth GET).
@@ -1,5 +1,5 @@
1
1
  /**
2
- * OpenCode Go usage — GET https://opencode.ai/zen/go/v1/usage
2
+ * OpenCode Go usage — GET https://opencode.ai/inference/go/v1/usage
3
3
  * Auth: Bearer <apiKey>
4
4
  */
5
5
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Helpers for the OpenCode free-tier client fingerprint.
3
3
  *
4
- * Live upstream probes (OpenCode v2, /inference/v1) show that free-tier
4
+ * Live upstream probes (OpenCode v2, /inference/openai|anthropic/v1) show that free-tier
5
5
  * requests must declare OpenCode's own `read` and `shell` tools with their exact
6
6
  * descriptions and parameter schemas; stubbed descriptions, renamed schemas or
7
7
  * tool_choice "none" are answered with 403 FreeTierError. Caller tools are sent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amir83nasr/10router",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Amir83Nasr/10Router.git"
@@ -79,10 +79,6 @@
79
79
  "uuid": "^13.0.0",
80
80
  "zustand": "^5.0.10"
81
81
  },
82
- "optionalDependencies": {
83
- "better-sqlite3": "^12.6.2"
84
- },
85
- "comment_better_sqlite3": "kept in optionalDependencies so npm install doesn't fail on systems without build tools — sql.js is used as fallback at runtime",
86
82
  "devDependencies": {
87
83
  "@tailwindcss/postcss": "^4.1.18",
88
84
  "@types/node": "^26.6.1",
@@ -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
+ }
@@ -901,12 +901,12 @@ async function testApiKeyConnection(connection, effectiveProxy = null) {
901
901
  case "opencode": {
902
902
  // Connectivity-only probe: GET /inference/v1/models never exercises the Responses
903
903
  // tool path, so a green dashboard test does NOT rule out 403
904
- // FreeTierError on POST /zen/v1/responses with tools (requires
904
+ // FreeTierError on POST /inference/openai/v1/responses with tools (requires
905
905
  // bash+read decoys + tool_choice auto — see OpenCodeExecutor).
906
906
  const res = await fetchWithConnectionProxy(
907
907
  "https://opencode.ai/inference/v1/models",
908
908
  {
909
- headers: { "User-Agent": "opencode/1.18.35" },
909
+ headers: { "User-Agent": "opencode/latest/2.0.26/cli" },
910
910
  },
911
911
  effectiveProxy,
912
912
  );
@@ -914,7 +914,7 @@ async function testApiKeyConnection(connection, effectiveProxy = null) {
914
914
  }
915
915
  case "opencode-go": {
916
916
  const res = await fetchWithConnectionProxy(
917
- "https://opencode.ai/zen/go/v1/chat/completions",
917
+ "https://opencode.ai/inference/go/v1/chat/completions",
918
918
  {
919
919
  method: "POST",
920
920
  headers: {
@@ -454,7 +454,7 @@ export async function POST(request) {
454
454
  }
455
455
 
456
456
  case "opencode-go": {
457
- const res = await fetch("https://opencode.ai/zen/go/v1/chat/completions", {
457
+ const res = await fetch("https://opencode.ai/inference/go/v1/chat/completions", {
458
458
  method: "POST",
459
459
  headers: { "Content-Type": "application/json", Authorization: `Bearer ${apiKey}` },
460
460
  body: JSON.stringify({
@@ -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();