@rsalmn/extremerouter 0.7.4 → 0.7.6

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 (850) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +4 -1
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/routes-manifest.json +20 -0
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/alerts/page.js +2 -2
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/alerts/page.js.nft.json +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/alerts/page_client-reference-manifest.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page.js +2 -2
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page.js.nft.json +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/overview/page.js +2 -2
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/overview/page.js.nft.json +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/overview/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +2 -2
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +4 -4
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/swarm/page.js +2 -2
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/swarm/page.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/swarm/page_client-reference-manifest.js +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  82. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  83. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  84. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  86. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  87. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  88. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  89. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  90. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  91. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  92. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  93. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  94. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  95. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  96. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  97. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  98. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  100. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  101. package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
  102. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
  103. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  104. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +5 -5
  105. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  106. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  107. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  108. package/app/.next-cli-build/server/app/api/alerts/test/route.js +2 -2
  109. package/app/.next-cli-build/server/app/api/alerts/test/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cache/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/cache/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
  127. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  141. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  143. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  147. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  149. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  153. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  155. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/dashboard/stream/route.js +5 -0
  165. package/app/.next-cli-build/server/app/api/dashboard/stream/route.js.nft.json +1 -0
  166. package/app/.next-cli-build/server/app/api/dashboard/stream/route_client-reference-manifest.js +1 -0
  167. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +2 -2
  172. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/health/providers/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/health/providers/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/health/stream/route.js +2 -2
  178. package/app/.next-cli-build/server/app/api/health/stream/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  188. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  190. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  220. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/providers/[id]/freebuff-profile/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/providers/[id]/freebuff-profile/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/providers/[id]/health-timeline/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/providers/[id]/health-timeline/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/providers/[id]/inxora-profile/route.js +1 -0
  252. package/app/.next-cli-build/server/app/api/providers/[id]/inxora-profile/route.js.nft.json +1 -0
  253. package/app/.next-cli-build/server/app/api/providers/[id]/inxora-profile/route_client-reference-manifest.js +1 -0
  254. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/providers/[id]/qwencloud-profile/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/providers/[id]/qwencloud-profile/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/providers/[id]/v0-profile/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/providers/[id]/v0-profile/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/providers/[id]/vault-pool/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/providers/[id]/vault-pool/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/providers/[id]/zenmux-plans/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/providers/[id]/zenmux-plans/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  271. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  273. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  277. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  283. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  285. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  287. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  289. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  293. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  295. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  297. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  301. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/swarm/active/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/swarm/active/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/swarm/stream/route.js +2 -2
  311. package/app/.next-cli-build/server/app/api/swarm/stream/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  317. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  343. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  345. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  347. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/usage/leaderboard/route.js +1 -0
  349. package/app/.next-cli-build/server/app/api/usage/leaderboard/route.js.nft.json +1 -0
  350. package/app/.next-cli-build/server/app/api/usage/leaderboard/route_client-reference-manifest.js +1 -0
  351. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/usage/meta/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/usage/meta/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/usage/retry-stats/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/usage/retry-stats/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  366. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  382. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  386. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  402. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  406. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  412. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  414. package/app/.next-cli-build/server/app/callback.html +1 -1
  415. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  416. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  417. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  418. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +5 -5
  419. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  420. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  421. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  422. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  423. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  424. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  425. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  426. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  427. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  428. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  429. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +5 -5
  430. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  431. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  432. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  433. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  434. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  435. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  436. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  437. package/app/.next-cli-build/server/app/index.html +1 -1
  438. package/app/.next-cli-build/server/app/index.rsc +5 -5
  439. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  440. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
  441. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  442. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +5 -5
  443. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  444. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  445. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  446. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  447. package/app/.next-cli-build/server/app/landing.html +1 -1
  448. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  449. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  450. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  451. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +5 -5
  452. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  453. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  454. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  455. package/app/.next-cli-build/server/app/login/page.js +2 -2
  456. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  457. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  458. package/app/.next-cli-build/server/app/login.html +1 -1
  459. package/app/.next-cli-build/server/app/login.rsc +6 -6
  460. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
  461. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  462. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +5 -5
  463. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  464. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  465. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  466. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  467. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  468. package/app/.next-cli-build/server/app/page.js +2 -2
  469. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  470. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  471. package/app/.next-cli-build/server/app-paths-manifest.json +4 -1
  472. package/app/.next-cli-build/server/chunks/1051.js +1 -1
  473. package/app/.next-cli-build/server/chunks/1173.js +75 -0
  474. package/app/.next-cli-build/server/chunks/1350.js +1 -1
  475. package/app/.next-cli-build/server/chunks/1719.js +1 -1
  476. package/app/.next-cli-build/server/chunks/212.js +1 -1
  477. package/app/.next-cli-build/server/chunks/2231.js +1 -1
  478. package/app/.next-cli-build/server/chunks/2701.js +1 -1
  479. package/app/.next-cli-build/server/chunks/318.js +7 -7
  480. package/app/.next-cli-build/server/chunks/4040.js +2 -2
  481. package/app/.next-cli-build/server/chunks/412.js +2 -2
  482. package/app/.next-cli-build/server/chunks/5612.js +1 -1
  483. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  484. package/app/.next-cli-build/server/chunks/5699.js +1 -1
  485. package/app/.next-cli-build/server/chunks/5961.js +1 -1
  486. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  487. package/app/.next-cli-build/server/chunks/615.js +1 -1
  488. package/app/.next-cli-build/server/chunks/6316.js +2 -2
  489. package/app/.next-cli-build/server/chunks/7872.js +1 -0
  490. package/app/.next-cli-build/server/chunks/788.js +1 -1
  491. package/app/.next-cli-build/server/chunks/7914.js +1 -1
  492. package/app/.next-cli-build/server/chunks/8238.js +1 -1
  493. package/app/.next-cli-build/server/chunks/8271.js +1 -1
  494. package/app/.next-cli-build/server/chunks/8895.js +7 -7
  495. package/app/.next-cli-build/server/chunks/9422.js +2 -2
  496. package/app/.next-cli-build/server/chunks/9630.js +1 -1
  497. package/app/.next-cli-build/server/chunks/964.js +1 -0
  498. package/app/.next-cli-build/server/chunks/9703.js +4 -4
  499. package/app/.next-cli-build/server/chunks/9903.js +1 -1
  500. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  501. package/app/.next-cli-build/server/middleware.js +3 -3
  502. package/app/.next-cli-build/server/pages/404.html +1 -1
  503. package/app/.next-cli-build/server/pages/500.html +1 -1
  504. package/app/.next-cli-build/static/GZ-78K5tlyWItqwZpG22j/_buildManifest.js +1 -0
  505. package/app/.next-cli-build/static/chunks/1321-27f4790ac6ad4567.js +1 -0
  506. package/app/.next-cli-build/static/chunks/5497-c5c5e821654f54c1.js +7 -0
  507. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-783ab7461aca504e.js +1 -0
  508. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/overview/page-d75417b0f8c41834.js +1 -0
  509. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-c9e6d2b03ed95619.js +10 -0
  510. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-e71aac08cb013b28.js +1 -0
  511. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-da7dccb599243439.js +1 -0
  512. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-1927a7bec7dfec9e.js +1 -0
  513. package/app/.next-cli-build/static/chunks/app/_global-error/page-e4e5f60bd2215699.js +1 -0
  514. package/app/.next-cli-build/static/chunks/app/api/alerts/test/route-e4e5f60bd2215699.js +1 -0
  515. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-e4e5f60bd2215699.js +1 -0
  516. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-e4e5f60bd2215699.js +1 -0
  517. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-e4e5f60bd2215699.js +1 -0
  518. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-e4e5f60bd2215699.js +1 -0
  519. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-e4e5f60bd2215699.js +1 -0
  520. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-e4e5f60bd2215699.js +1 -0
  521. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-e4e5f60bd2215699.js +1 -0
  522. package/app/.next-cli-build/static/chunks/app/api/cache/route-e4e5f60bd2215699.js +1 -0
  523. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-e4e5f60bd2215699.js +1 -0
  524. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-e4e5f60bd2215699.js +1 -0
  525. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-e4e5f60bd2215699.js +1 -0
  526. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-e4e5f60bd2215699.js +1 -0
  527. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-e4e5f60bd2215699.js +1 -0
  528. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-e4e5f60bd2215699.js +1 -0
  529. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-e4e5f60bd2215699.js +1 -0
  530. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-e4e5f60bd2215699.js +1 -0
  531. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-e4e5f60bd2215699.js +1 -0
  532. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-e4e5f60bd2215699.js +1 -0
  533. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-e4e5f60bd2215699.js +1 -0
  534. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-e4e5f60bd2215699.js +1 -0
  535. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-e4e5f60bd2215699.js +1 -0
  536. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-e4e5f60bd2215699.js +1 -0
  537. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-e4e5f60bd2215699.js +1 -0
  538. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-e4e5f60bd2215699.js +1 -0
  539. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-e4e5f60bd2215699.js +1 -0
  540. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-e4e5f60bd2215699.js +1 -0
  541. package/app/.next-cli-build/static/chunks/app/api/combos/route-e4e5f60bd2215699.js +1 -0
  542. package/app/.next-cli-build/static/chunks/app/api/dashboard/stream/route-e4e5f60bd2215699.js +1 -0
  543. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-e4e5f60bd2215699.js +1 -0
  544. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-e4e5f60bd2215699.js +1 -0
  545. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-e4e5f60bd2215699.js +1 -0
  546. package/app/.next-cli-build/static/chunks/app/api/health/providers/route-e4e5f60bd2215699.js +1 -0
  547. package/app/.next-cli-build/static/chunks/app/api/health/route-e4e5f60bd2215699.js +1 -0
  548. package/app/.next-cli-build/static/chunks/app/api/health/stream/route-e4e5f60bd2215699.js +1 -0
  549. package/app/.next-cli-build/static/chunks/app/api/init/route-e4e5f60bd2215699.js +1 -0
  550. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-e4e5f60bd2215699.js +1 -0
  551. package/app/.next-cli-build/static/chunks/app/api/keys/route-e4e5f60bd2215699.js +1 -0
  552. package/app/.next-cli-build/static/chunks/app/api/locale/route-e4e5f60bd2215699.js +1 -0
  553. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-e4e5f60bd2215699.js +1 -0
  554. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-e4e5f60bd2215699.js +1 -0
  555. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-e4e5f60bd2215699.js +1 -0
  556. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-e4e5f60bd2215699.js +1 -0
  557. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-e4e5f60bd2215699.js +1 -0
  558. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-e4e5f60bd2215699.js +1 -0
  559. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-e4e5f60bd2215699.js +1 -0
  560. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-e4e5f60bd2215699.js +1 -0
  561. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-e4e5f60bd2215699.js +1 -0
  562. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-e4e5f60bd2215699.js +1 -0
  563. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-e4e5f60bd2215699.js +1 -0
  564. package/app/.next-cli-build/static/chunks/app/api/models/route-e4e5f60bd2215699.js +1 -0
  565. package/app/.next-cli-build/static/chunks/app/api/models/test/route-e4e5f60bd2215699.js +1 -0
  566. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-e4e5f60bd2215699.js +1 -0
  567. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-e4e5f60bd2215699.js +1 -0
  568. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-e4e5f60bd2215699.js +1 -0
  569. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-e4e5f60bd2215699.js +1 -0
  570. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-e4e5f60bd2215699.js +1 -0
  571. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-e4e5f60bd2215699.js +1 -0
  572. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-e4e5f60bd2215699.js +1 -0
  573. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-e4e5f60bd2215699.js +1 -0
  574. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-e4e5f60bd2215699.js +1 -0
  575. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-e4e5f60bd2215699.js +1 -0
  576. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-e4e5f60bd2215699.js +1 -0
  577. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-e4e5f60bd2215699.js +1 -0
  578. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-e4e5f60bd2215699.js +1 -0
  579. package/app/.next-cli-build/static/chunks/app/api/pricing/route-e4e5f60bd2215699.js +1 -0
  580. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-e4e5f60bd2215699.js +1 -0
  581. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-e4e5f60bd2215699.js +1 -0
  582. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-e4e5f60bd2215699.js +1 -0
  583. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/freebuff-profile/route-e4e5f60bd2215699.js +1 -0
  584. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/health-timeline/route-e4e5f60bd2215699.js +1 -0
  585. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/inxora-profile/route-e4e5f60bd2215699.js +1 -0
  586. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-e4e5f60bd2215699.js +1 -0
  587. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/qwencloud-profile/route-e4e5f60bd2215699.js +1 -0
  588. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-e4e5f60bd2215699.js +1 -0
  589. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-e4e5f60bd2215699.js +1 -0
  590. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-e4e5f60bd2215699.js +1 -0
  591. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/v0-profile/route-e4e5f60bd2215699.js +1 -0
  592. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/vault-pool/route-e4e5f60bd2215699.js +1 -0
  593. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/zenmux-plans/route-e4e5f60bd2215699.js +1 -0
  594. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-e4e5f60bd2215699.js +1 -0
  595. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-e4e5f60bd2215699.js +1 -0
  596. package/app/.next-cli-build/static/chunks/app/api/providers/route-e4e5f60bd2215699.js +1 -0
  597. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-e4e5f60bd2215699.js +1 -0
  598. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-e4e5f60bd2215699.js +1 -0
  599. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-e4e5f60bd2215699.js +1 -0
  600. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-e4e5f60bd2215699.js +1 -0
  601. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-e4e5f60bd2215699.js +1 -0
  602. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-e4e5f60bd2215699.js +1 -0
  603. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-e4e5f60bd2215699.js +1 -0
  604. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-e4e5f60bd2215699.js +1 -0
  605. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-e4e5f60bd2215699.js +1 -0
  606. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-e4e5f60bd2215699.js +1 -0
  607. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-e4e5f60bd2215699.js +1 -0
  608. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-e4e5f60bd2215699.js +1 -0
  609. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-e4e5f60bd2215699.js +1 -0
  610. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-e4e5f60bd2215699.js +1 -0
  611. package/app/.next-cli-build/static/chunks/app/api/settings/route-e4e5f60bd2215699.js +1 -0
  612. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-e4e5f60bd2215699.js +1 -0
  613. package/app/.next-cli-build/static/chunks/app/api/swarm/active/route-e4e5f60bd2215699.js +1 -0
  614. package/app/.next-cli-build/static/chunks/app/api/swarm/stream/route-e4e5f60bd2215699.js +1 -0
  615. package/app/.next-cli-build/static/chunks/app/api/tags/route-e4e5f60bd2215699.js +1 -0
  616. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-e4e5f60bd2215699.js +1 -0
  617. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-e4e5f60bd2215699.js +1 -0
  618. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-e4e5f60bd2215699.js +1 -0
  619. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-e4e5f60bd2215699.js +1 -0
  620. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-e4e5f60bd2215699.js +1 -0
  621. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-e4e5f60bd2215699.js +1 -0
  622. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-e4e5f60bd2215699.js +1 -0
  623. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-e4e5f60bd2215699.js +1 -0
  624. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-e4e5f60bd2215699.js +1 -0
  625. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-e4e5f60bd2215699.js +1 -0
  626. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-e4e5f60bd2215699.js +1 -0
  627. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-e4e5f60bd2215699.js +1 -0
  628. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-e4e5f60bd2215699.js +1 -0
  629. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-e4e5f60bd2215699.js +1 -0
  630. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-e4e5f60bd2215699.js +1 -0
  631. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-e4e5f60bd2215699.js +1 -0
  632. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-e4e5f60bd2215699.js +1 -0
  633. package/app/.next-cli-build/static/chunks/app/api/usage/leaderboard/route-e4e5f60bd2215699.js +1 -0
  634. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-e4e5f60bd2215699.js +1 -0
  635. package/app/.next-cli-build/static/chunks/app/api/usage/meta/route-e4e5f60bd2215699.js +1 -0
  636. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-e4e5f60bd2215699.js +1 -0
  637. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-e4e5f60bd2215699.js +1 -0
  638. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-e4e5f60bd2215699.js +1 -0
  639. package/app/.next-cli-build/static/chunks/app/api/usage/retry-stats/route-e4e5f60bd2215699.js +1 -0
  640. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-e4e5f60bd2215699.js +1 -0
  641. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-e4e5f60bd2215699.js +1 -0
  642. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-e4e5f60bd2215699.js +1 -0
  643. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-e4e5f60bd2215699.js +1 -0
  644. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-e4e5f60bd2215699.js +1 -0
  645. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-e4e5f60bd2215699.js +1 -0
  646. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-e4e5f60bd2215699.js +1 -0
  647. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-e4e5f60bd2215699.js +1 -0
  648. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-e4e5f60bd2215699.js +1 -0
  649. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-e4e5f60bd2215699.js +1 -0
  650. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-e4e5f60bd2215699.js +1 -0
  651. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-e4e5f60bd2215699.js +1 -0
  652. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-e4e5f60bd2215699.js +1 -0
  653. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-e4e5f60bd2215699.js +1 -0
  654. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-e4e5f60bd2215699.js +1 -0
  655. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-e4e5f60bd2215699.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/api/v1/route-e4e5f60bd2215699.js +1 -0
  657. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-e4e5f60bd2215699.js +1 -0
  658. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-e4e5f60bd2215699.js +1 -0
  659. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-e4e5f60bd2215699.js +1 -0
  660. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-e4e5f60bd2215699.js +1 -0
  661. package/app/.next-cli-build/static/chunks/app/api/version/route-e4e5f60bd2215699.js +1 -0
  662. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-e4e5f60bd2215699.js +1 -0
  663. package/app/.next-cli-build/static/chunks/app/api/version/update/route-e4e5f60bd2215699.js +1 -0
  664. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-e4e5f60bd2215699.js +1 -0
  665. package/app/.next-cli-build/static/chunks/app/page-e4e5f60bd2215699.js +1 -0
  666. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-e4e5f60bd2215699.js +1 -0
  667. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-e4e5f60bd2215699.js +1 -0
  668. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-e4e5f60bd2215699.js +1 -0
  669. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-e4e5f60bd2215699.js +1 -0
  670. package/app/.next-cli-build/static/css/b0fc55ef939fe0cb.css +1 -0
  671. package/app/cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-shm +0 -0
  672. package/app/cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-wal +0 -0
  673. package/app/package.json +4 -5
  674. package/app/public/providers/agentrouter.png +0 -0
  675. package/app/public/providers/bynara.svg +22 -0
  676. package/app/public/providers/infron.svg +1 -0
  677. package/app/public/providers/inxorastudio-web.svg +4 -0
  678. package/app/public/providers/inxorastudio.svg +4 -0
  679. package/package.json +1 -1
  680. package/app/.next-cli-build/server/chunks/3571.js +0 -1
  681. package/app/.next-cli-build/server/chunks/6763.js +0 -1
  682. package/app/.next-cli-build/server/chunks/8833.js +0 -75
  683. package/app/.next-cli-build/server/chunks/8920.js +0 -1
  684. package/app/.next-cli-build/static/chunks/1321-b29070c75a1bf41b.js +0 -1
  685. package/app/.next-cli-build/static/chunks/5497-2bcb49ea235529a8.js +0 -7
  686. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-70b66ef1b070a378.js +0 -1
  687. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/overview/page-4ffb884f6b54afb0.js +0 -1
  688. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-0cb65a048e0ac91a.js +0 -10
  689. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-0fb5e4d7aabfb5d2.js +0 -1
  690. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-80f241f97889edc2.js +0 -1
  691. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-ac93a6a5df6b898f.js +0 -1
  692. package/app/.next-cli-build/static/chunks/app/_global-error/page-ef8b722482bf88a8.js +0 -1
  693. package/app/.next-cli-build/static/chunks/app/api/alerts/test/route-ef8b722482bf88a8.js +0 -1
  694. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-ef8b722482bf88a8.js +0 -1
  695. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-ef8b722482bf88a8.js +0 -1
  696. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-ef8b722482bf88a8.js +0 -1
  697. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-ef8b722482bf88a8.js +0 -1
  698. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-ef8b722482bf88a8.js +0 -1
  699. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-ef8b722482bf88a8.js +0 -1
  700. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-ef8b722482bf88a8.js +0 -1
  701. package/app/.next-cli-build/static/chunks/app/api/cache/route-ef8b722482bf88a8.js +0 -1
  702. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-ef8b722482bf88a8.js +0 -1
  703. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-ef8b722482bf88a8.js +0 -1
  704. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-ef8b722482bf88a8.js +0 -1
  705. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-ef8b722482bf88a8.js +0 -1
  706. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-ef8b722482bf88a8.js +0 -1
  707. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-ef8b722482bf88a8.js +0 -1
  708. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-ef8b722482bf88a8.js +0 -1
  709. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-ef8b722482bf88a8.js +0 -1
  710. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-ef8b722482bf88a8.js +0 -1
  711. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-ef8b722482bf88a8.js +0 -1
  712. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-ef8b722482bf88a8.js +0 -1
  713. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-ef8b722482bf88a8.js +0 -1
  714. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-ef8b722482bf88a8.js +0 -1
  715. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-ef8b722482bf88a8.js +0 -1
  716. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-ef8b722482bf88a8.js +0 -1
  717. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-ef8b722482bf88a8.js +0 -1
  718. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-ef8b722482bf88a8.js +0 -1
  719. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-ef8b722482bf88a8.js +0 -1
  720. package/app/.next-cli-build/static/chunks/app/api/combos/route-ef8b722482bf88a8.js +0 -1
  721. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-ef8b722482bf88a8.js +0 -1
  722. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-ef8b722482bf88a8.js +0 -1
  723. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-ef8b722482bf88a8.js +0 -1
  724. package/app/.next-cli-build/static/chunks/app/api/health/providers/route-ef8b722482bf88a8.js +0 -1
  725. package/app/.next-cli-build/static/chunks/app/api/health/route-ef8b722482bf88a8.js +0 -1
  726. package/app/.next-cli-build/static/chunks/app/api/health/stream/route-ef8b722482bf88a8.js +0 -1
  727. package/app/.next-cli-build/static/chunks/app/api/init/route-ef8b722482bf88a8.js +0 -1
  728. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-ef8b722482bf88a8.js +0 -1
  729. package/app/.next-cli-build/static/chunks/app/api/keys/route-ef8b722482bf88a8.js +0 -1
  730. package/app/.next-cli-build/static/chunks/app/api/locale/route-ef8b722482bf88a8.js +0 -1
  731. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-ef8b722482bf88a8.js +0 -1
  732. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-ef8b722482bf88a8.js +0 -1
  733. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-ef8b722482bf88a8.js +0 -1
  734. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-ef8b722482bf88a8.js +0 -1
  735. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-ef8b722482bf88a8.js +0 -1
  736. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-ef8b722482bf88a8.js +0 -1
  737. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-ef8b722482bf88a8.js +0 -1
  738. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-ef8b722482bf88a8.js +0 -1
  739. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-ef8b722482bf88a8.js +0 -1
  740. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-ef8b722482bf88a8.js +0 -1
  741. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-ef8b722482bf88a8.js +0 -1
  742. package/app/.next-cli-build/static/chunks/app/api/models/route-ef8b722482bf88a8.js +0 -1
  743. package/app/.next-cli-build/static/chunks/app/api/models/test/route-ef8b722482bf88a8.js +0 -1
  744. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-ef8b722482bf88a8.js +0 -1
  745. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-ef8b722482bf88a8.js +0 -1
  746. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-ef8b722482bf88a8.js +0 -1
  747. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-ef8b722482bf88a8.js +0 -1
  748. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-ef8b722482bf88a8.js +0 -1
  749. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-ef8b722482bf88a8.js +0 -1
  750. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-ef8b722482bf88a8.js +0 -1
  751. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-ef8b722482bf88a8.js +0 -1
  752. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-ef8b722482bf88a8.js +0 -1
  753. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-ef8b722482bf88a8.js +0 -1
  754. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-ef8b722482bf88a8.js +0 -1
  755. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-ef8b722482bf88a8.js +0 -1
  756. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-ef8b722482bf88a8.js +0 -1
  757. package/app/.next-cli-build/static/chunks/app/api/pricing/route-ef8b722482bf88a8.js +0 -1
  758. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-ef8b722482bf88a8.js +0 -1
  759. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-ef8b722482bf88a8.js +0 -1
  760. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-ef8b722482bf88a8.js +0 -1
  761. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/freebuff-profile/route-ef8b722482bf88a8.js +0 -1
  762. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/health-timeline/route-ef8b722482bf88a8.js +0 -1
  763. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-ef8b722482bf88a8.js +0 -1
  764. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/qwencloud-profile/route-ef8b722482bf88a8.js +0 -1
  765. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-ef8b722482bf88a8.js +0 -1
  766. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-ef8b722482bf88a8.js +0 -1
  767. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-ef8b722482bf88a8.js +0 -1
  768. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/v0-profile/route-ef8b722482bf88a8.js +0 -1
  769. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/vault-pool/route-ef8b722482bf88a8.js +0 -1
  770. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/zenmux-plans/route-ef8b722482bf88a8.js +0 -1
  771. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-ef8b722482bf88a8.js +0 -1
  772. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-ef8b722482bf88a8.js +0 -1
  773. package/app/.next-cli-build/static/chunks/app/api/providers/route-ef8b722482bf88a8.js +0 -1
  774. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-ef8b722482bf88a8.js +0 -1
  775. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-ef8b722482bf88a8.js +0 -1
  776. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-ef8b722482bf88a8.js +0 -1
  777. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-ef8b722482bf88a8.js +0 -1
  778. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-ef8b722482bf88a8.js +0 -1
  779. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-ef8b722482bf88a8.js +0 -1
  780. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-ef8b722482bf88a8.js +0 -1
  781. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-ef8b722482bf88a8.js +0 -1
  782. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-ef8b722482bf88a8.js +0 -1
  783. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-ef8b722482bf88a8.js +0 -1
  784. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-ef8b722482bf88a8.js +0 -1
  785. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-ef8b722482bf88a8.js +0 -1
  786. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-ef8b722482bf88a8.js +0 -1
  787. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-ef8b722482bf88a8.js +0 -1
  788. package/app/.next-cli-build/static/chunks/app/api/settings/route-ef8b722482bf88a8.js +0 -1
  789. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-ef8b722482bf88a8.js +0 -1
  790. package/app/.next-cli-build/static/chunks/app/api/swarm/active/route-ef8b722482bf88a8.js +0 -1
  791. package/app/.next-cli-build/static/chunks/app/api/swarm/stream/route-ef8b722482bf88a8.js +0 -1
  792. package/app/.next-cli-build/static/chunks/app/api/tags/route-ef8b722482bf88a8.js +0 -1
  793. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-ef8b722482bf88a8.js +0 -1
  794. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-ef8b722482bf88a8.js +0 -1
  795. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-ef8b722482bf88a8.js +0 -1
  796. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-ef8b722482bf88a8.js +0 -1
  797. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-ef8b722482bf88a8.js +0 -1
  798. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-ef8b722482bf88a8.js +0 -1
  799. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-ef8b722482bf88a8.js +0 -1
  800. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-ef8b722482bf88a8.js +0 -1
  801. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-ef8b722482bf88a8.js +0 -1
  802. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-ef8b722482bf88a8.js +0 -1
  803. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-ef8b722482bf88a8.js +0 -1
  804. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-ef8b722482bf88a8.js +0 -1
  805. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-ef8b722482bf88a8.js +0 -1
  806. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-ef8b722482bf88a8.js +0 -1
  807. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-ef8b722482bf88a8.js +0 -1
  808. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-ef8b722482bf88a8.js +0 -1
  809. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-ef8b722482bf88a8.js +0 -1
  810. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-ef8b722482bf88a8.js +0 -1
  811. package/app/.next-cli-build/static/chunks/app/api/usage/meta/route-ef8b722482bf88a8.js +0 -1
  812. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-ef8b722482bf88a8.js +0 -1
  813. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-ef8b722482bf88a8.js +0 -1
  814. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-ef8b722482bf88a8.js +0 -1
  815. package/app/.next-cli-build/static/chunks/app/api/usage/retry-stats/route-ef8b722482bf88a8.js +0 -1
  816. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-ef8b722482bf88a8.js +0 -1
  817. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-ef8b722482bf88a8.js +0 -1
  818. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-ef8b722482bf88a8.js +0 -1
  819. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-ef8b722482bf88a8.js +0 -1
  820. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-ef8b722482bf88a8.js +0 -1
  821. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-ef8b722482bf88a8.js +0 -1
  822. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-ef8b722482bf88a8.js +0 -1
  823. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-ef8b722482bf88a8.js +0 -1
  824. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-ef8b722482bf88a8.js +0 -1
  825. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-ef8b722482bf88a8.js +0 -1
  826. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-ef8b722482bf88a8.js +0 -1
  827. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-ef8b722482bf88a8.js +0 -1
  828. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-ef8b722482bf88a8.js +0 -1
  829. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-ef8b722482bf88a8.js +0 -1
  830. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-ef8b722482bf88a8.js +0 -1
  831. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-ef8b722482bf88a8.js +0 -1
  832. package/app/.next-cli-build/static/chunks/app/api/v1/route-ef8b722482bf88a8.js +0 -1
  833. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-ef8b722482bf88a8.js +0 -1
  834. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-ef8b722482bf88a8.js +0 -1
  835. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-ef8b722482bf88a8.js +0 -1
  836. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-ef8b722482bf88a8.js +0 -1
  837. package/app/.next-cli-build/static/chunks/app/api/version/route-ef8b722482bf88a8.js +0 -1
  838. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-ef8b722482bf88a8.js +0 -1
  839. package/app/.next-cli-build/static/chunks/app/api/version/update/route-ef8b722482bf88a8.js +0 -1
  840. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-ef8b722482bf88a8.js +0 -1
  841. package/app/.next-cli-build/static/chunks/app/page-ef8b722482bf88a8.js +0 -1
  842. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-ef8b722482bf88a8.js +0 -1
  843. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-ef8b722482bf88a8.js +0 -1
  844. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-ef8b722482bf88a8.js +0 -1
  845. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-ef8b722482bf88a8.js +0 -1
  846. package/app/.next-cli-build/static/css/f99fd82ccc97a1ed.css +0 -1
  847. package/app/.next-cli-build/static/fsglpkHqAEeF3CQ_z_ynh/_buildManifest.js +0 -1
  848. package/app/cli/.build-home/AppData/Roaming/extremerouter/db/backups/upgrade-0.7.0-to-0.7.1-0.7.1-20260718-003406/data.sqlite +0 -0
  849. /package/app/.next-cli-build/static/{fsglpkHqAEeF3CQ_z_ynh → GZ-78K5tlyWItqwZpG22j}/_ssgManifest.js +0 -0
  850. /package/app/cli/.build-home/AppData/Roaming/extremerouter/db/backups/{upgrade-0.6.9-to-0.7.0-0.7.0-20260715-111110 → upgrade-0.7.4-to-0.7.5-0.7.5-20260722-212802}/data.sqlite +0 -0
@@ -1,5 +1,5 @@
1
1
  "use strict";exports.id=9703,exports.ids=[9703],exports.modules={644:(a,b,c)=>{function d(a,b=null){if(null==a)return b;if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return b}}function e(a){return JSON.stringify(a??null)}c.d(b,{q:()=>d,s:()=>e})},36366:(a,b,c)=>{c.d(b,{c:()=>k});var d=c(95658);global._dbAdapter||(global._dbAdapter={instance:null,initPromise:null,logged:!1});let e=global._dbAdapter;async function f(){if(!process.versions.bun)return null;try{let{createBunSqliteAdapter:a}=await c.e(4739).then(c.bind(c,24739));return await a(d.AL)}catch(a){return console.warn(`[DB] bun:sqlite unavailable: ${a.message}`),null}}async function g(){if(process.versions.bun)return null;try{let{createBetterSqliteAdapter:a}=await c.e(5258).then(c.bind(c,25258));return a(d.AL)}catch(a){return console.warn(`[DB] better-sqlite3 unavailable: ${a.message}`),null}}async function h(){if(process.versions.bun)return null;let[a,b]=process.versions.node.split(".").map(Number);if(a<22||22===a&&b<5)return null;try{let{createNodeSqliteAdapter:a}=await c.e(8520).then(c.bind(c,88520));return await a(d.AL)}catch(a){return console.warn(`[DB] node:sqlite unavailable: ${a.message}`),null}}async function i(){try{let{createSqlJsAdapter:a}=await c.e(3593).then(c.bind(c,53593));return await a(d.AL)}catch(a){return console.warn(`[DB] sql.js unavailable: ${a.message}`),null}}async function j(){(0,d.Jh)();let a=await f();if(a||(a=await g()),a||(a=await h()),a||(a=await i()),!a)throw Error("[DB] No SQLite driver available (bun/better/node/sql.js all failed)");e.logged||(console.log(`[DB] Driver: ${a.driver} | file: ${d.AL}`),e.logged=!0);let{runMigrationOnce:b}=await c.e(5217).then(c.bind(c,45217));return await b(a),a}async function k(){return e.instance?e.instance:(e.initPromise||(e.initPromise=j().then(a=>(e.instance=a,a))),e.initPromise)}},58273:(a,b,c)=>{c.d(b,{n:()=>r});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h),j=c(76760),k=c.n(j),l=c(48161),m=c.n(l);function n(a){if(!a)return!1;try{let b=k().join(a,".migrated-from");if(e().existsSync(b))return!1;let c="win32"===process.platform?k().join(process.env.APPDATA||k().join(m().homedir(),"AppData","Roaming"),"9router"):k().join(m().homedir(),".9router");if(!c||!e().existsSync(c))return e().mkdirSync(a,{recursive:!0}),e().writeFileSync(b,"none\n"),!1;if(function(a){let b=["db.sqlite","db.json","usage.json","settings.json"],c=[];try{for(let d of e().readdirSync(a))b.includes(d)&&c.push(d)}catch{}return c}(a).length>0)return e().writeFileSync(b,"skipped: new dir already populated\n"),!1;return e().mkdirSync(a,{recursive:!0}),function a(b,c){for(let d of(e().mkdirSync(c,{recursive:!0}),e().readdirSync(b,{withFileTypes:!0}))){if("runtime"===d.name)continue;let f=k().join(b,d.name),g=k().join(c,d.name);d.isDirectory()?a(f,g):e().copyFileSync(f,g)}}(c,a),e().writeFileSync(b,`${c}
2
- `),console.log(`[extremerouter] migrated data from ${c} → ${a}`),!0}catch(a){return console.warn(`[extremerouter] data migration skipped: ${a?.message||a}`),!1}}let o="extremerouter";function p(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),o):g().join(i().homedir(),`.${o}`)}function q(){let a=p();return e().mkdirSync(a,{recursive:!0}),n(a),a}let r=function(){let a=process.env.DATA_DIR,b=a||p();if("win32"===process.platform&&a&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),q();try{return e().mkdirSync(b,{recursive:!0}),a||n(b),b}catch(a){if(a?.code==="EACCES"||a?.code==="EPERM")return console.warn(`[DATA_DIR] '${b}' not writable → fallback ~/.${o}`),q();throw a}}()},62674:(a,b,c)=>{c.d(b,{IQ:()=>e,dy:()=>f,np:()=>g});var d=c(36366);async function e(a,b=null){let c=(await (0,d.c)()).get("SELECT value FROM _meta WHERE key = ?",[a]);return c?c.value:b}function f(a,b,c=null){let d=a.get("SELECT value FROM _meta WHERE key = ?",[b]);return d?d.value:c}function g(a,b,c){a.run("INSERT INTO _meta(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[b,String(c)])}},95658:(a,b,c)=>{c.d(b,{AL:()=>j,HG:()=>i,Jh:()=>m,KQ:()=>k,Or:()=>l});var d=c(76760),e=c.n(d),f=c(73024),g=c.n(f),h=c(58273);let i=e().join(h.n,"db"),j=e().join(i,"data.sqlite"),k=e().join(i,"backups"),l={main:e().join(h.n,"db.json"),usage:e().join(h.n,"usage.json"),disabled:e().join(h.n,"disabledModels.json"),details:e().join(h.n,"request-details.json")};function m(){for(let a of[h.n,i,k])g().existsSync(a)||g().mkdirSync(a,{recursive:!0})}},99703:(a,b,c)=>{c.d(b,{BY:()=>x,E5:()=>E,G9:()=>H,Q5:()=>B,R0:()=>C,Re:()=>D,Rh:()=>G,Zx:()=>F,_V:()=>n,j$:()=>z,rg:()=>u,sZ:()=>v,uw:()=>t});var d=c(94735),e=c(36366),f=c(644);function g(a){return a&&"string"==typeof a?a.length<=8?a.charAt(0)+"***":a.slice(0,8)+"***":null}c(62674);global._pendingRequests||(global._pendingRequests={byModel:{},byAccount:{}}),global._lastErrorProvider||(global._lastErrorProvider={provider:"",ts:0}),global._statsEmitter||(global._statsEmitter=new d.EventEmitter,global._statsEmitter.setMaxListeners(50)),global._pendingTimers||(global._pendingTimers={}),global._recentRing||(global._recentRing={items:[],initialized:!1}),global._connectionMapCache||(global._connectionMapCache={map:{},ts:0}),global._statsEmitTimers||(global._statsEmitTimers={pending:null,update:null});let h=global._pendingRequests,i=global._lastErrorProvider,j=global._pendingTimers,k=global._recentRing,l=global._connectionMapCache,m=global._statsEmitTimers,n=global._statsEmitter;function o(a,b=150){let c="update"===a?"update":"pending";m[c]||(m[c]=setTimeout(()=>{m[c]=null,n.emit(a)},b),m[c]?.unref?.())}function p(a,b,c){a[b]||(a[b]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),a[b].requests+=c.requests||1,a[b].promptTokens+=c.promptTokens||0,a[b].completionTokens+=c.completionTokens||0,a[b].cachedTokens+=c.cachedTokens||0,a[b].cost+=c.cost||0,c.meta&&Object.assign(a[b],c.meta)}async function q(){if(Date.now()-l.ts<3e4)return l.map;try{let{getProviderConnections:a}=await c.e(5781).then(c.bind(c,5781)),b=await a(),d={};for(let a of b)d[a.id]=a.name||a.email||a.id;l.map=d,l.ts=Date.now()}catch{}return l.map}async function r(){if(!k.initialized){k.initialized=!0;try{k.items=(await (0,e.c)()).all("SELECT timestamp, provider, model, connectionId, apiKey, endpoint, cost, status, tokens FROM usageHistory ORDER BY id DESC LIMIT ?",[50]).reverse().map(a=>({timestamp:a.timestamp,provider:a.provider,model:a.model,connectionId:a.connectionId,apiKey:a.apiKey,endpoint:a.endpoint,cost:a.cost,status:a.status,tokens:(0,f.q)(a.tokens,{})}))}catch{}}}async function s(a,b,d){if(!d||!a||!b)return 0;try{let{getPricingForModel:e}=await c.e(7914).then(c.bind(c,97914)),f=await e(a,b);if(!f)return 0;let{calculateCostFromTokens:g}=await c.e(8920).then(c.bind(c,58920));return g(d,f)}catch(a){return console.error("Error calculating cost:",a),0}}function t(a,b,c,d,e=!1){let f=b?`${a} (${b})`:a,g=`${c}|${f}`;h.byModel[f]||(h.byModel[f]=0),h.byModel[f]=Math.max(0,h.byModel[f]+(d?1:-1)),0===h.byModel[f]&&delete h.byModel[f],c&&(h.byAccount[c]||(h.byAccount[c]={}),h.byAccount[c][f]||(h.byAccount[c][f]=0),h.byAccount[c][f]=Math.max(0,h.byAccount[c][f]+(d?1:-1)),0===h.byAccount[c][f]&&(delete h.byAccount[c][f],0===Object.keys(h.byAccount[c]).length&&delete h.byAccount[c])),d?(clearTimeout(j[g]),j[g]=setTimeout(()=>{delete j[g],h.byModel[f]>0&&(h.byModel[f]=0),c&&h.byAccount[c]?.[f]>0&&(h.byAccount[c][f]=0),o("pending")},6e4)):(clearTimeout(j[g]),delete j[g]),!d&&e&&b&&(i.provider=b.toLowerCase(),i.ts=Date.now());let k=new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});console.log(`[${k}] [PENDING] ${d?"START":"END"}${e?" (ERROR)":""} | provider=${b} | model=${a}`),o("pending")}async function u(){let a=[],b=await q();for(let[c,d]of Object.entries(h.byAccount))for(let[e,f]of Object.entries(d))if(f>0){let d=b[c]||`Account ${c.slice(0,8)}...`,g=e.match(/^(.*) \((.*)\)$/);a.push({model:g?g[1]:e,provider:g?g[2]:"unknown",account:d,count:f})}await r();let c=new Set;return{activeRequests:a,recentRequests:[...k.items].sort((a,b)=>new Date(b.timestamp)-new Date(a.timestamp)).map(a=>{let b=a.tokens||{};return{timestamp:a.timestamp,model:a.model,provider:a.provider||"",promptTokens:b.prompt_tokens||b.input_tokens||0,completionTokens:b.completion_tokens||b.output_tokens||0,status:a.status||"ok"}}).filter(a=>{if(0===a.promptTokens&&0===a.completionTokens)return!1;let b=a.timestamp?a.timestamp.slice(0,16):"",d=`${a.model}|${a.provider}|${a.promptTokens}|${a.completionTokens}|${b}`;return!c.has(d)&&(c.add(d),!0)}).slice(0,20),errorProvider:Date.now()-i.ts<1e4?i.provider:""}}async function v(a){try{let b=await (0,e.c)();a.timestamp||(a.timestamp=new Date().toISOString()),a.cost=await s(a.provider,a.model,a.tokens);let c=a.tokens||{},d=c.prompt_tokens||c.input_tokens||0,g=c.completion_tokens||c.output_tokens||0,h=!1;(b.transaction(()=>{var e;let i,j,k,l,m,n,o,q,r,s,t,u,v=b.get(`SELECT id, endpoint FROM usageHistory
2
+ `),console.log(`[extremerouter] migrated data from ${c} → ${a}`),!0}catch(a){return console.warn(`[extremerouter] data migration skipped: ${a?.message||a}`),!1}}let o="extremerouter";function p(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),o):g().join(i().homedir(),`.${o}`)}function q(){let a=p();return e().mkdirSync(a,{recursive:!0}),n(a),a}let r=function(){let a=process.env.DATA_DIR,b=a||p();if("win32"===process.platform&&a&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),q();try{return e().mkdirSync(b,{recursive:!0}),a||n(b),b}catch(a){if(a?.code==="EACCES"||a?.code==="EPERM")return console.warn(`[DATA_DIR] '${b}' not writable → fallback ~/.${o}`),q();throw a}}()},58920:(a,b,c)=>{c.d(b,{PROVIDER_PRICING:()=>e,ad:()=>i,calculateCostFromTokens:()=>j,gH:()=>g,getPricingForModel:()=>h});let d={"claude-opus-4-6":{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25},"claude-opus-4-5-20251101":{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25},"claude-sonnet-4-6":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75},"claude-sonnet-4-5-20250929":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75},"claude-haiku-4-5-20251001":{input:1,output:5,cached:.1,reasoning:5,cache_creation:1.25},"claude-sonnet-4-20250514":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-opus-4-20250514":{input:15,output:25,cached:7.5,reasoning:112.5,cache_creation:15},"claude-3-5-sonnet-20241022":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-haiku-4.5":{input:.5,output:2.5,cached:.05,reasoning:3.75,cache_creation:.5},"claude-opus-4.1":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4.5":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4.6":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-sonnet-4":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-sonnet-4.5":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-sonnet-4.6":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-opus-4-5-thinking":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4-6-thinking":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4.7":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4.8":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-sonnet-5":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-sonnet-5-thinking":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-fable-5":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"gpt-3.5-turbo":{input:.5,output:1.5,cached:.25,reasoning:2.25,cache_creation:.5},"gpt-4":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-4-turbo":{input:10,output:30,cached:5,reasoning:45,cache_creation:10},"gpt-4o":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-4o-mini":{input:.15,output:.6,cached:.075,reasoning:.9,cache_creation:.15},"gpt-4.1":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-5":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"gpt-5-mini":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"gpt-5-codex":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"gpt-5.1":{input:4,output:16,cached:2,reasoning:24,cache_creation:4},"gpt-5.1-codex":{input:4,output:16,cached:2,reasoning:24,cache_creation:4},"gpt-5.1-codex-mini":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"gpt-5.1-codex-mini-high":{input:2,output:8,cached:1,reasoning:12,cache_creation:2},"gpt-5.1-codex-max":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},"gpt-5.2":{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},"gpt-5.2-codex":{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},"gpt-5.3-codex":{input:6,output:24,cached:3,reasoning:36,cache_creation:6},"gpt-5.3-codex-xhigh":{input:10,output:40,cached:5,reasoning:60,cache_creation:10},"gpt-5.3-codex-high":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},"gpt-5.3-codex-low":{input:4,output:16,cached:2,reasoning:24,cache_creation:4},"gpt-5.3-codex-none":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"gpt-5.3-codex-spark":{input:3,output:12,cached:.3,reasoning:12,cache_creation:3},"gpt-5.4":{input:6,output:24,cached:3,reasoning:36,cache_creation:6},"gpt-5.4-mini":{input:2,output:8,cached:1,reasoning:12,cache_creation:2},"gpt-5.4-nano":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"gpt-5.5":{input:7,output:28,cached:3.5,reasoning:42,cache_creation:7},"gpt-5.6-luna":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},"gpt-5.6-sol":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},"gpt-5.6-terra":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},o1:{input:15,output:60,cached:7.5,reasoning:90,cache_creation:15},"o1-mini":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"gemini-3-flash-preview":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-low":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-high":{input:4,output:18,cached:.5,reasoning:27,cache_creation:4},"gemini-pro-agent":{input:4,output:18,cached:.5,reasoning:27,cache_creation:4},"gemini-3-flash-agent":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3.5-flash-low":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3.5-flash-extra-low":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-flash":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-2.5-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-flash":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3},"gemini-2.5-flash-lite":{input:.15,output:1.25,cached:.015,reasoning:1.875,cache_creation:.15},"qwen3-coder-plus":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"qwen3-coder-flash":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"kimi-k2":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-k2-thinking":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"kimi-k2.5":{input:1.2,output:4.8,cached:.6,reasoning:7.2,cache_creation:1.2},"kimi-k2.5-thinking":{input:1.8,output:7.2,cached:.9,reasoning:10.8,cache_creation:1.8},"kimi-latest":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"deepseek-chat":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-reasoner":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-r1":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v3.2-chat":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v3.2-reasoner":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v4-flash":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v4-pro":{input:.435,output:.87,cached:.003625,reasoning:.87,cache_creation:.435},"glm-4.6":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"glm-4.6v":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"glm-4.7":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"glm-5":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"MiniMax-M3":{input:.3,output:1.2,cached:.06,reasoning:1.8,cache_creation:.3},"MiniMax-M2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M2.5":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M2.7":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"minimax-m2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"minimax-m2.5":{input:.6,output:2.4,cached:.3,reasoning:3.6,cache_creation:.6},"grok-code-fast-1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},auto:{input:2,output:8,cached:1,reasoning:12,cache_creation:2},"oswe-vscode-prime":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"gpt-oss-120b-medium":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"vision-model":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"coder-model":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},e={gh:{"gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},forge:{"gpt-5.6-sol":{input:5,output:30},"gpt-5.6-terra":{input:2.5,output:15},"gpt-5.6-luna":{input:1,output:6},"gpt-5.5":{input:5,output:40},"gpt-5.3-codex":{input:1.75,output:14},"claude-opus-4-5-20251101":{input:5,output:25},"claude-sonnet-4-5-20250929":{input:3,output:15},"claude-haiku-4-5-20251001":{input:1,output:5},"claude-sonnet-4-6":{input:3,output:15},"claude-sonnet-4-6-thinking":{input:3,output:15},"claude-sonnet-5":{input:2,output:10},"claude-fable-5":{input:10,output:50},"grok-4.5":{input:2,output:6},"grok-4.3":{input:1.25,output:2.5},"grok-build-0.1":{input:1,output:2},"deepseek-r1":{input:.401,output:1.605},"deepseek-v4-flash":{input:.098,output:.196},"deepseek-v4-pro":{input:.304,output:.609},"deepseek-v3.2":{input:.2,output:.301},"deepseek-v3.1":{input:.401,output:1.204},"deepseek-v3":{input:.2,output:.802},"kimi-k3":{input:3,output:15},"kimi-k2.7-code":{input:.625,output:2.599},"kimi-k2.6":{input:.625,output:2.599},"kimi-k2.5":{input:.401,output:2.107},"gemini-3-pro-preview":{input:2,output:12},"gemini-3.5-flash":{input:1.5,output:9},"tencent/hy3":{input:.2,output:.8},"mimo-v2.5":{input:.1,output:.2},"mimo-v2.5-pro":{input:.3,output:.6},"MiniMax-M3":{input:.21,output:.84},"MiniMax-M2.5":{input:.21,output:.84},"glm-5.2":{input:.77,output:2.695}}},f=[{pattern:"*-codex-xhigh",pricing:{input:10,output:40,cached:5,reasoning:60,cache_creation:10}},{pattern:"*-codex-high",pricing:{input:8,output:32,cached:4,reasoning:48,cache_creation:8}},{pattern:"*-codex-max",pricing:{input:8,output:32,cached:4,reasoning:48,cache_creation:8}},{pattern:"*-codex-mini-*",pricing:{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},{pattern:"*-codex-mini",pricing:{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},{pattern:"*-codex-low",pricing:{input:4,output:16,cached:2,reasoning:24,cache_creation:4}},{pattern:"*-codex-none",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"*-codex-spark",pricing:{input:3,output:12,cached:.3,reasoning:12,cache_creation:3}},{pattern:"codex-*",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"*-codex",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"claude-opus-*",pricing:{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25}},{pattern:"claude-sonnet-*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75}},{pattern:"claude-haiku-*",pricing:{input:1,output:5,cached:.1,reasoning:5,cache_creation:1.25}},{pattern:"claude-*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75}},{pattern:"gemini-*-flash-lite",pricing:{input:.15,output:1.25,cached:.015,reasoning:1.875,cache_creation:.15}},{pattern:"gemini-*-flash",pricing:{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3}},{pattern:"gemini-*-pro",pricing:{input:2,output:12,cached:.25,reasoning:18,cache_creation:2}},{pattern:"gemini-3-*",pricing:{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5}},{pattern:"gemini-2.5-*",pricing:{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3}},{pattern:"gemini-*",pricing:{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5}},{pattern:"gpt-5.3-*",pricing:{input:6,output:24,cached:3,reasoning:36,cache_creation:6}},{pattern:"gpt-5.2-*",pricing:{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5}},{pattern:"gpt-5.1-*",pricing:{input:4,output:16,cached:2,reasoning:24,cache_creation:4}},{pattern:"gpt-5-*",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"gpt-5*",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"gpt-4o-*",pricing:{input:.15,output:.6,cached:.075,reasoning:.9,cache_creation:.15}},{pattern:"gpt-4o",pricing:{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5}},{pattern:"gpt-4*",pricing:{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5}},{pattern:"o1-*",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"o1",pricing:{input:15,output:60,cached:7.5,reasoning:90,cache_creation:15}},{pattern:"o3-*",pricing:{input:10,output:40,cached:5,reasoning:60,cache_creation:10}},{pattern:"o4-*",pricing:{input:2,output:8,cached:1,reasoning:12,cache_creation:2}},{pattern:"qwen3-coder-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"qwen*-coder-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"qwen*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"kimi-*-thinking",pricing:{input:1.8,output:7.2,cached:.9,reasoning:10.8,cache_creation:1.8}},{pattern:"kimi-k2*",pricing:{input:1.2,output:4.8,cached:.6,reasoning:7.2,cache_creation:1.2}},{pattern:"kimi-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"deepseek-*reasoner*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-r*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-v*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"glm-5*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"glm-4*",pricing:{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75}},{pattern:"glm-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"MiniMax-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"minimax-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"grok-code-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"grok-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}}];function g(a,b){return RegExp("^"+a.split("*").map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*")+"$","i").test(b)}function h(a,b){if(!b)return null;if(a&&e[a]?.[b])return e[a][b];let c=b.includes("/")?b.split("/").pop():b;if(d[c])return d[c];if(d[b])return d[b];for(let{pattern:a,pricing:d}of f)if(g(a,c)||g(a,b))return d;return null}function i(){return e}function j(a,b){if(!a||!b)return 0;let c=0,d=a.prompt_tokens||a.input_tokens||0,e=a.cached_tokens||a.cache_read_input_tokens||0,f=a.cache_creation_input_tokens||0;c+=Math.max(0,d-e-f)*(b.input/1e6),e>0&&(c+=e*((b.cached||b.input)/1e6)),c+=(a.completion_tokens||a.output_tokens||0)*(b.output/1e6);let g=a.reasoning_tokens||0;return g>0&&(c+=g*((b.reasoning||b.output)/1e6)),f>0&&(c+=f*((b.cache_creation||b.input)/1e6)),c}},62674:(a,b,c)=>{c.d(b,{IQ:()=>e,dy:()=>f,np:()=>g});var d=c(36366);async function e(a,b=null){let c=(await (0,d.c)()).get("SELECT value FROM _meta WHERE key = ?",[a]);return c?c.value:b}function f(a,b,c=null){let d=a.get("SELECT value FROM _meta WHERE key = ?",[b]);return d?d.value:c}function g(a,b,c){a.run("INSERT INTO _meta(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[b,String(c)])}},95658:(a,b,c)=>{c.d(b,{AL:()=>j,HG:()=>i,Jh:()=>m,KQ:()=>k,Or:()=>l});var d=c(76760),e=c.n(d),f=c(73024),g=c.n(f),h=c(58273);let i=e().join(h.n,"db"),j=e().join(i,"data.sqlite"),k=e().join(i,"backups"),l={main:e().join(h.n,"db.json"),usage:e().join(h.n,"usage.json"),disabled:e().join(h.n,"disabledModels.json"),details:e().join(h.n,"request-details.json")};function m(){for(let a of[h.n,i,k])g().existsSync(a)||g().mkdirSync(a,{recursive:!0})}},99703:(a,b,c)=>{c.d(b,{BY:()=>A,E5:()=>H,G9:()=>K,M2:()=>y,Q5:()=>E,R0:()=>F,Re:()=>G,Rh:()=>J,Zx:()=>I,_V:()=>p,j$:()=>C,rg:()=>w,sZ:()=>x,uw:()=>v});var d=c(94735),e=c(36366),f=c(644);c(62674);var g=c(58920);function h(a){return a&&"string"==typeof a?a.length<=8?a.charAt(0)+"***":a.slice(0,8)+"***":null}let i={"24h":864e5,"7d":6048e5,"30d":2592e6,"60d":5184e6};global._pendingRequests||(global._pendingRequests={byModel:{},byAccount:{}}),global._lastErrorProvider||(global._lastErrorProvider={provider:"",ts:0}),global._statsEmitter||(global._statsEmitter=new d.EventEmitter,global._statsEmitter.setMaxListeners(50)),global._pendingTimers||(global._pendingTimers={}),global._recentRing||(global._recentRing={items:[],initialized:!1}),global._connectionMapCache||(global._connectionMapCache={map:{},ts:0}),global._statsEmitTimers||(global._statsEmitTimers={pending:null,update:null});let j=global._pendingRequests,k=global._lastErrorProvider,l=global._pendingTimers,m=global._recentRing,n=global._connectionMapCache,o=global._statsEmitTimers,p=global._statsEmitter;function q(a,b=150){let c="update"===a?"update":"pending";o[c]||(o[c]=setTimeout(()=>{o[c]=null,p.emit(a)},b),o[c]?.unref?.())}function r(a,b,c){a[b]||(a[b]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),a[b].requests+=c.requests||1,a[b].promptTokens+=c.promptTokens||0,a[b].completionTokens+=c.completionTokens||0,a[b].cachedTokens+=c.cachedTokens||0,a[b].cost+=c.cost||0,c.meta&&Object.assign(a[b],c.meta)}async function s(){if(Date.now()-n.ts<3e4)return n.map;try{let{getProviderConnections:a}=await c.e(5781).then(c.bind(c,5781)),b=await a(),d={};for(let a of b)d[a.id]=a.name||a.email||a.id;n.map=d,n.ts=Date.now()}catch{}return n.map}async function t(){if(!m.initialized){m.initialized=!0;try{m.items=(await (0,e.c)()).all("SELECT timestamp, provider, model, connectionId, apiKey, endpoint, cost, status, tokens FROM usageHistory ORDER BY id DESC LIMIT ?",[50]).reverse().map(a=>({timestamp:a.timestamp,provider:a.provider,model:a.model,connectionId:a.connectionId,apiKey:a.apiKey,endpoint:a.endpoint,cost:a.cost,status:a.status,tokens:(0,f.q)(a.tokens,{})}))}catch{}}}async function u(a,b,d){if(!d||!a||!b)return 0;try{let{getPricingForModel:e}=await c.e(7914).then(c.bind(c,97914)),f=await e(a,b);if(!f)return 0;let{calculateCostFromTokens:g}=await Promise.resolve().then(c.bind(c,58920));return g(d,f)}catch(a){return console.error("Error calculating cost:",a),0}}function v(a,b,c,d,e=!1){let f=b?`${a} (${b})`:a,g=`${c}|${f}`;j.byModel[f]||(j.byModel[f]=0),j.byModel[f]=Math.max(0,j.byModel[f]+(d?1:-1)),0===j.byModel[f]&&delete j.byModel[f],c&&(j.byAccount[c]||(j.byAccount[c]={}),j.byAccount[c][f]||(j.byAccount[c][f]=0),j.byAccount[c][f]=Math.max(0,j.byAccount[c][f]+(d?1:-1)),0===j.byAccount[c][f]&&(delete j.byAccount[c][f],0===Object.keys(j.byAccount[c]).length&&delete j.byAccount[c])),d?(clearTimeout(l[g]),l[g]=setTimeout(()=>{delete l[g],j.byModel[f]>0&&(j.byModel[f]=0),c&&j.byAccount[c]?.[f]>0&&(j.byAccount[c][f]=0),q("pending")},6e4)):(clearTimeout(l[g]),delete l[g]),!d&&e&&b&&(k.provider=b.toLowerCase(),k.ts=Date.now());let h=new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});console.log(`[${h}] [PENDING] ${d?"START":"END"}${e?" (ERROR)":""} | provider=${b} | model=${a}`),q("pending")}async function w(){let a=[],b=await s();for(let[c,d]of Object.entries(j.byAccount))for(let[e,f]of Object.entries(d))if(f>0){let d=b[c]||`Account ${c.slice(0,8)}...`,g=e.match(/^(.*) \((.*)\)$/);a.push({model:g?g[1]:e,provider:g?g[2]:"unknown",account:d,count:f})}await t();let c=new Set;return{activeRequests:a,recentRequests:[...m.items].sort((a,b)=>new Date(b.timestamp)-new Date(a.timestamp)).map(a=>{let b=a.tokens||{};return{timestamp:a.timestamp,model:a.model,provider:a.provider||"",promptTokens:b.prompt_tokens||b.input_tokens||0,completionTokens:b.completion_tokens||b.output_tokens||0,status:a.status||"ok"}}).filter(a=>{if(0===a.promptTokens&&0===a.completionTokens)return!1;let b=a.timestamp?a.timestamp.slice(0,16):"",d=`${a.model}|${a.provider}|${a.promptTokens}|${a.completionTokens}|${b}`;return!c.has(d)&&(c.add(d),!0)}).slice(0,20),errorProvider:Date.now()-k.ts<1e4?k.provider:""}}async function x(a){try{let b=await (0,e.c)();a.timestamp||(a.timestamp=new Date().toISOString()),a.cost=await u(a.provider,a.model,a.tokens);let c=a.tokens||{},d=c.prompt_tokens||c.input_tokens||0,h=c.completion_tokens||c.output_tokens||0,i=!1;(b.transaction(()=>{var e;let j,k,l,m,n,o,p,q,s,t,u,v,w=b.get(`SELECT id, endpoint FROM usageHistory
3
3
  WHERE timestamp = ?
4
4
  AND COALESCE(provider, '') = COALESCE(?, '')
5
5
  AND COALESCE(model, '') = COALESCE(?, '')
@@ -7,8 +7,8 @@
7
7
  AND COALESCE(apiKey, '') = COALESCE(?, '')
8
8
  AND promptTokens = ?
9
9
  AND completionTokens = ?
10
- ORDER BY id DESC LIMIT 1`,[a.timestamp,a.provider||null,a.model||null,a.connectionId||null,a.apiKey||null,d,g]);if(v){!v.endpoint&&a.endpoint&&b.run("UPDATE usageHistory SET endpoint = ? WHERE id = ?",[a.endpoint,v.id]);return}b.run("INSERT INTO usageHistory(timestamp, provider, model, connectionId, apiKey, endpoint, promptTokens, completionTokens, cost, status, tokens, meta, latencyTtftMs, latencyTotalMs) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[a.timestamp,a.provider||null,a.model||null,a.connectionId||null,a.apiKey||null,a.endpoint||null,d,g,a.cost||0,a.status||"ok",(0,f.s)(c),(0,f.s)((i={},a.savedTokens&&(i.savedTokens=a.savedTokens),a.savedTokensByMechanism&&"object"==typeof a.savedTokensByMechanism&&(i.savings=a.savedTokensByMechanism),a.fromCache&&(i.fromCache=!0),a.retryCount&&(i.retryCount=a.retryCount),i)),Math.max(0,Math.round(a.latency?.ttft||0)),Math.max(0,Math.round(a.latency?.total||0))]);let w=(j=(e=a.timestamp)?new Date(e):new Date,`${j.getFullYear()}-${String(j.getMonth()+1).padStart(2,"0")}-${String(j.getDate()).padStart(2,"0")}`),x=b.get("SELECT data FROM usageDaily WHERE dateKey = ?",[w]),y=x?(0,f.q)(x.data,{}):{requests:0,promptTokens:0,completionTokens:0,cost:0,byProvider:{},byModel:{},byAccount:{},byApiKey:{},byEndpoint:{}};k=a.tokens?.prompt_tokens||a.tokens?.input_tokens||0,l=a.tokens?.completion_tokens||a.tokens?.output_tokens||0,m=a.tokens?.cached_tokens||a.tokens?.cache_read_input_tokens||0,n=a.cost||0,o={promptTokens:k,completionTokens:l,cachedTokens:m,cost:n},y.requests=(y.requests||0)+1,y.promptTokens=(y.promptTokens||0)+k,y.completionTokens=(y.completionTokens||0)+l,y.cachedTokens=(y.cachedTokens||0)+m,y.cost=(y.cost||0)+n,y.savedTokens=(y.savedTokens||0)+(a.savedTokens||0),y.byProvider||={},y.byModel||={},y.byAccount||={},y.byApiKey||={},y.byEndpoint||={},a.provider&&p(y.byProvider,a.provider,o),q=a.provider?`${a.model}|${a.provider}`:a.model,p(y.byModel,q,{...o,meta:{rawModel:a.model,provider:a.provider}}),a.connectionId&&p(y.byAccount,a.connectionId,{...o,meta:{rawModel:a.model,provider:a.provider}}),r=a.apiKey&&"string"==typeof a.apiKey?a.apiKey:"local-no-key",s=`${r}|${a.model}|${a.provider||"unknown"}`,p(y.byApiKey,s,{...o,meta:{rawModel:a.model,provider:a.provider,apiKey:a.apiKey||null}}),t=a.endpoint||"Unknown",u=`${t}|${a.model}|${a.provider||"unknown"}`,p(y.byEndpoint,u,{...o,meta:{endpoint:t,rawModel:a.model,provider:a.provider}}),b.run("INSERT INTO usageDaily(dateKey, data) VALUES(?, ?) ON CONFLICT(dateKey) DO UPDATE SET data = excluded.data",[w,(0,f.s)(y)]);let z=b.get("SELECT value FROM _meta WHERE key = 'totalRequestsLifetime'"),A=(z?parseInt(z.value,10):0)+1;if(b.run("INSERT INTO _meta(key, value) VALUES('totalRequestsLifetime', ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[String(A)]),a.savedTokens>0){let c=b.get("SELECT value FROM _meta WHERE key = 'tokensSavedLifetime'"),d=(c?parseInt(c.value,10):0)+a.savedTokens;b.run("INSERT INTO _meta(key, value) VALUES('tokensSavedLifetime', ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[String(d)])}if(a.savedTokensByMechanism&&"object"==typeof a.savedTokensByMechanism)for(let[c,d]of Object.entries(a.savedTokensByMechanism)){let a=Number(d);if(!Number.isFinite(a)||a<=0)continue;let e=`tokensSavedLifetime.${c}`,f=b.get("SELECT value FROM _meta WHERE key = ?",[e]),g=(f?parseInt(f.value,10):0)+a;b.run("INSERT INTO _meta(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[e,String(g)])}if(a.fromCache){let a=b.get("SELECT value FROM _meta WHERE key = 'semanticCacheHitsLifetime'"),c=(a?parseInt(a.value,10):0)+1;b.run("INSERT INTO _meta(key, value) VALUES('semanticCacheHitsLifetime', ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[String(c)])}h=!0}),h)&&(k.items.push(a),k.items.length>50&&(k.items=k.items.slice(-50)),o("update",250))}catch(a){console.error("Failed to save usage stats:",a)}}function w(a,b){if(null==b)return a.all("SELECT dateKey, data FROM usageDaily");let c=new Date,d=new Date(c.getFullYear(),c.getMonth(),c.getDate()-b+1),e=`${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,"0")}-${String(d.getDate()).padStart(2,"0")}`;return a.all("SELECT dateKey, data FROM usageDaily WHERE dateKey >= ?",[e])}async function x(a="all"){let b=await (0,e.c)(),[{getProviderConnections:d},{getApiKeys:j},{getProviderNodes:k}]=await Promise.all([c.e(5781).then(c.bind(c,5781)),c.e(4452).then(c.bind(c,74452)),c.e(1129).then(c.bind(c,1129))]),l=[];try{l=await d()}catch{}let m={};for(let a of l)m[a.id]=a.name||a.email||a.id;let n={};try{for(let a of(await k()))a.id&&a.name&&(n[a.id]=a.name)}catch{}let o=[];try{o=await j()}catch{}let p={};for(let a of o)p[a.key]={name:a.name,id:a.id,createdAt:a.createdAt};let q=b.all("SELECT timestamp, provider, model, tokens, status FROM usageHistory ORDER BY id DESC LIMIT 100"),r=new Set,s={totalRequests:0,totalPromptTokens:0,totalCompletionTokens:0,totalCachedTokens:0,totalCost:0,byProvider:{},byModel:{},byAccount:{},byApiKey:{},byEndpoint:{},last10Minutes:[],pending:h,activeRequests:[],recentRequests:q.map(a=>{let b=(0,f.q)(a.tokens,{})||{};return{timestamp:a.timestamp,model:a.model,provider:a.provider||"",promptTokens:b.prompt_tokens||b.input_tokens||0,completionTokens:b.completion_tokens||b.output_tokens||0,cachedTokens:b.cached_tokens||b.cache_read_input_tokens||0,status:a.status||"ok"}}).filter(a=>{if(0===a.promptTokens&&0===a.completionTokens)return!1;let b=a.timestamp?a.timestamp.slice(0,16):"",c=`${a.model}|${a.provider}|${a.promptTokens}|${a.completionTokens}|${b}`;return!r.has(c)&&(r.add(c),!0)}).slice(0,20),errorProvider:Date.now()-i.ts<1e4?i.provider:""};for(let[a,b]of Object.entries(h.byAccount))for(let[c,d]of Object.entries(b))if(d>0){let b=m[a]||`Account ${a.slice(0,8)}...`,e=c.match(/^(.*) \((.*)\)$/);s.activeRequests.push({model:e?e[1]:c,provider:e?e[2]:"unknown",account:b,count:d})}let t=new Date,u=new Date(6e4*Math.floor(t.getTime()/6e4)),v=new Date(u.getTime()-54e4),z={};for(let a=0;a<10;a++){let b=u.getTime()-(9-a)*6e4;z[b]={requests:0,promptTokens:0,completionTokens:0,cost:0},s.last10Minutes.push(z[b])}for(let a of b.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ? AND timestamp <= ?",[v.toISOString(),t.toISOString()])){let b=6e4*Math.floor(new Date(a.timestamp).getTime()/6e4);z[b]&&(z[b].requests++,z[b].promptTokens+=a.promptTokens||0,z[b].completionTokens+=a.completionTokens||0,z[b].cost+=a.cost||0)}if("24h"!==a&&"today"!==a){let c={"7d":7,"30d":30,"60d":60}[a]||null;for(let a of w(b,c)){let b=a.dateKey,c=(0,f.q)(a.data,{});for(let[a,b]of(s.totalPromptTokens+=c.promptTokens||0,s.totalCompletionTokens+=c.completionTokens||0,s.totalCachedTokens+=c.cachedTokens||0,s.totalCost+=c.cost||0,Object.entries(c.byProvider||{})))s.byProvider[a]||(s.byProvider[a]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),s.byProvider[a].requests+=b.requests||0,s.byProvider[a].promptTokens+=b.promptTokens||0,s.byProvider[a].completionTokens+=b.completionTokens||0,s.byProvider[a].cachedTokens+=b.cachedTokens||0,s.byProvider[a].cost+=b.cost||0;for(let[a,d]of Object.entries(c.byModel||{})){let c=d.rawModel||a.split("|")[0],e=d.provider||a.split("|")[1]||"",f=e?`${c} (${e})`:c,g=n[e]||e;s.byModel[f]||(s.byModel[f]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:c,provider:g,lastUsed:b}),s.byModel[f].requests+=d.requests||0,s.byModel[f].promptTokens+=d.promptTokens||0,s.byModel[f].completionTokens+=d.completionTokens||0,s.byModel[f].cachedTokens+=d.cachedTokens||0,s.byModel[f].cost+=d.cost||0,b>(s.byModel[f].lastUsed||"")&&(s.byModel[f].lastUsed=b)}for(let[a,d]of Object.entries(c.byAccount||{})){let c=m[a]||`Account ${a.slice(0,8)}...`,e=d.rawModel||"",f=d.provider||"",g=n[f]||f,h=`${e} (${f} - ${c})`;s.byAccount[h]||(s.byAccount[h]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:e,provider:g,connectionId:a,accountName:c,lastUsed:b}),s.byAccount[h].requests+=d.requests||0,s.byAccount[h].promptTokens+=d.promptTokens||0,s.byAccount[h].completionTokens+=d.completionTokens||0,s.byAccount[h].cachedTokens+=d.cachedTokens||0,s.byAccount[h].cost+=d.cost||0,b>(s.byAccount[h].lastUsed||"")&&(s.byAccount[h].lastUsed=b)}for(let[a,d]of Object.entries(c.byApiKey||{})){let c=d.rawModel||"",e=d.provider||"",f=n[e]||e,h=d.apiKey,i=h?p[h]:null,j=i?.name||(h?h.slice(0,8)+"...":"Local (No API Key)"),k=g(h),l=k||"local-no-key";s.byApiKey[a]||(s.byApiKey[a]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:c,provider:f,apiKeyMasked:k,keyName:j,apiKeyKey:l,lastUsed:b}),s.byApiKey[a].requests+=d.requests||0,s.byApiKey[a].promptTokens+=d.promptTokens||0,s.byApiKey[a].completionTokens+=d.completionTokens||0,s.byApiKey[a].cachedTokens+=d.cachedTokens||0,s.byApiKey[a].cost+=d.cost||0,b>(s.byApiKey[a].lastUsed||"")&&(s.byApiKey[a].lastUsed=b)}for(let[a,d]of Object.entries(c.byEndpoint||{})){let c=d.endpoint||a.split("|")[0]||"Unknown",e=d.rawModel||"",f=d.provider||"",g=n[f]||f;s.byEndpoint[a]||(s.byEndpoint[a]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,endpoint:c,rawModel:e,provider:g,lastUsed:b}),s.byEndpoint[a].requests+=d.requests||0,s.byEndpoint[a].promptTokens+=d.promptTokens||0,s.byEndpoint[a].completionTokens+=d.completionTokens||0,s.byEndpoint[a].cachedTokens+=d.cachedTokens||0,s.byEndpoint[a].cost+=d.cost||0,b>(s.byEndpoint[a].lastUsed||"")&&(s.byEndpoint[a].lastUsed=b)}}let d=c?Date.now()-864e5*c:0;for(let a of b.all("SELECT timestamp, provider, model, connectionId, apiKey, endpoint FROM usageHistory WHERE timestamp >= ?",[new Date(d).toISOString()])){let b=a.timestamp,c=a.provider?`${a.model} (${a.provider})`:a.model;if(s.byModel[c]&&new Date(b)>new Date(s.byModel[c].lastUsed)&&(s.byModel[c].lastUsed=b),a.connectionId){let c=m[a.connectionId]||`Account ${a.connectionId.slice(0,8)}...`,d=`${a.model} (${a.provider} - ${c})`;s.byAccount[d]&&new Date(b)>new Date(s.byAccount[d].lastUsed)&&(s.byAccount[d].lastUsed=b)}let d=a.apiKey&&"string"==typeof a.apiKey?`${a.apiKey}|${a.model}|${a.provider||"unknown"}`:"local-no-key";s.byApiKey[d]&&new Date(b)>new Date(s.byApiKey[d].lastUsed)&&(s.byApiKey[d].lastUsed=b);let e=a.endpoint||"Unknown",f=`${e}|${a.model}|${a.provider||"unknown"}`;s.byEndpoint[f]&&new Date(b)>new Date(s.byEndpoint[f].lastUsed)&&(s.byEndpoint[f].lastUsed=b)}}else{let c;if("today"===a){let a=new Date;a.setHours(0,0,0,0),c=a.toISOString()}else c=new Date(Date.now()-864e5).toISOString();for(let a of b.all("SELECT timestamp, provider, model, connectionId, apiKey, endpoint, promptTokens, completionTokens, cost, tokens FROM usageHistory WHERE timestamp >= ?",[c])){let b=(0,f.q)(a.tokens,{})||{},c=b.prompt_tokens||0,d=b.completion_tokens||0,e=b.cached_tokens||b.cache_read_input_tokens||0,h=a.cost||0,i=n[a.provider]||a.provider;s.totalPromptTokens+=c,s.totalCompletionTokens+=d,s.totalCachedTokens+=e,s.totalCost+=h,s.byProvider[a.provider]||(s.byProvider[a.provider]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),s.byProvider[a.provider].requests++,s.byProvider[a.provider].promptTokens+=c,s.byProvider[a.provider].completionTokens+=d,s.byProvider[a.provider].cachedTokens+=e,s.byProvider[a.provider].cost+=h;let j=a.provider?`${a.model} (${a.provider})`:a.model;if(s.byModel[j]||(s.byModel[j]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:i,lastUsed:a.timestamp}),s.byModel[j].requests++,s.byModel[j].promptTokens+=c,s.byModel[j].completionTokens+=d,s.byModel[j].cachedTokens+=e,s.byModel[j].cost+=h,new Date(a.timestamp)>new Date(s.byModel[j].lastUsed)&&(s.byModel[j].lastUsed=a.timestamp),a.connectionId){let b=m[a.connectionId]||`Account ${a.connectionId.slice(0,8)}...`,f=`${a.model} (${a.provider} - ${b})`;s.byAccount[f]||(s.byAccount[f]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:i,connectionId:a.connectionId,accountName:b,lastUsed:a.timestamp}),s.byAccount[f].requests++,s.byAccount[f].promptTokens+=c,s.byAccount[f].completionTokens+=d,s.byAccount[f].cachedTokens+=e,s.byAccount[f].cost+=h,new Date(a.timestamp)>new Date(s.byAccount[f].lastUsed)&&(s.byAccount[f].lastUsed=a.timestamp)}if(a.apiKey&&"string"==typeof a.apiKey){let b=p[a.apiKey],f=b?.name||a.apiKey.slice(0,8)+"...",j=g(a.apiKey),k=`${j}|${a.model}|${a.provider||"unknown"}`;s.byApiKey[k]||(s.byApiKey[k]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:i,apiKeyMasked:j,keyName:f,apiKeyKey:j,lastUsed:a.timestamp});let l=s.byApiKey[k];l.requests++,l.promptTokens+=c,l.completionTokens+=d,l.cachedTokens+=e,l.cost+=h,new Date(a.timestamp)>new Date(l.lastUsed)&&(l.lastUsed=a.timestamp)}else{s.byApiKey["local-no-key"]||(s.byApiKey["local-no-key"]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:i,apiKeyMasked:null,keyName:"Local (No API Key)",apiKeyKey:"local-no-key",lastUsed:a.timestamp});let b=s.byApiKey["local-no-key"];b.requests++,b.promptTokens+=c,b.completionTokens+=d,b.cachedTokens+=e,b.cost+=h,new Date(a.timestamp)>new Date(b.lastUsed)&&(b.lastUsed=a.timestamp)}let k=a.endpoint||"Unknown",l=`${k}|${a.model}|${a.provider||"unknown"}`;s.byEndpoint[l]||(s.byEndpoint[l]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,endpoint:k,rawModel:a.model,provider:i,lastUsed:a.timestamp});let o=s.byEndpoint[l];o.requests++,o.promptTokens+=c,o.completionTokens+=d,o.cachedTokens+=e,o.cost+=h,new Date(a.timestamp)>new Date(o.lastUsed)&&(o.lastUsed=a.timestamp)}}s.totalRequests=Object.values(s.byProvider).reduce((a,b)=>a+(b.requests||0),0);try{let{startTs:c}=y(a),d=b.all("SELECT status, COUNT(*) AS n FROM usageHistory WHERE timestamp >= ? GROUP BY status",[c]),e={},f=0;for(let a of d){let b=String(a.status||"ok").toLowerCase();e[b]=(e[b]||0)+a.n,f+=a.n}s.statusCounts=e;let g=new Set(["error","failed","unauthorized","forbidden","timeout","blocked"]),h=0;for(let[a,b]of Object.entries(e))g.has(a)&&(h+=b);s.errorRate=f>0?h/f:0,s.errorCount=h;let i=b.all(`SELECT latencyTotalMs FROM usageHistory
10
+ ORDER BY id DESC LIMIT 1`,[a.timestamp,a.provider||null,a.model||null,a.connectionId||null,a.apiKey||null,d,h]);if(w){!w.endpoint&&a.endpoint&&b.run("UPDATE usageHistory SET endpoint = ? WHERE id = ?",[a.endpoint,w.id]);return}b.run("INSERT INTO usageHistory(timestamp, provider, model, connectionId, apiKey, endpoint, promptTokens, completionTokens, cost, status, tokens, meta, latencyTtftMs, latencyTotalMs) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[a.timestamp,a.provider||null,a.model||null,a.connectionId||null,a.apiKey||null,a.endpoint||null,d,h,a.cost||0,a.status||"ok",(0,f.s)(c),(0,f.s)((j={},a.savedTokens&&(j.savedTokens=a.savedTokens),a.savedTokensByMechanism&&"object"==typeof a.savedTokensByMechanism&&(j.savings=a.savedTokensByMechanism),a.fromCache&&(j.fromCache=!0),a.retryCount&&(j.retryCount=a.retryCount),j)),Math.max(0,Math.round(a.latency?.ttft||0)),Math.max(0,Math.round(a.latency?.total||0))]);let x=(k=(e=a.timestamp)?new Date(e):new Date,`${k.getFullYear()}-${String(k.getMonth()+1).padStart(2,"0")}-${String(k.getDate()).padStart(2,"0")}`),y=b.get("SELECT data FROM usageDaily WHERE dateKey = ?",[x]),z=y?(0,f.q)(y.data,{}):{requests:0,promptTokens:0,completionTokens:0,cost:0,byProvider:{},byModel:{},byAccount:{},byApiKey:{},byEndpoint:{}};l=a.tokens?.prompt_tokens||a.tokens?.input_tokens||0,m=a.tokens?.completion_tokens||a.tokens?.output_tokens||0,n=a.tokens?.cached_tokens||a.tokens?.cache_read_input_tokens||0,o=a.cost||0,p={promptTokens:l,completionTokens:m,cachedTokens:n,cost:o},z.requests=(z.requests||0)+1,z.promptTokens=(z.promptTokens||0)+l,z.completionTokens=(z.completionTokens||0)+m,z.cachedTokens=(z.cachedTokens||0)+n,z.cost=(z.cost||0)+o,z.savedTokens=(z.savedTokens||0)+(a.savedTokens||0),z.byProvider||={},z.byModel||={},z.byAccount||={},z.byApiKey||={},z.byEndpoint||={},a.provider&&r(z.byProvider,a.provider,p),q=a.provider?`${a.model}|${a.provider}`:a.model,r(z.byModel,q,{...p,meta:{rawModel:a.model,provider:a.provider}}),a.connectionId&&r(z.byAccount,a.connectionId,{...p,meta:{rawModel:a.model,provider:a.provider}}),s=a.apiKey&&"string"==typeof a.apiKey?a.apiKey:"local-no-key",t=`${s}|${a.model}|${a.provider||"unknown"}`,r(z.byApiKey,t,{...p,meta:{rawModel:a.model,provider:a.provider,apiKey:a.apiKey||null}}),u=a.endpoint||"Unknown",v=`${u}|${a.model}|${a.provider||"unknown"}`,r(z.byEndpoint,v,{...p,meta:{endpoint:u,rawModel:a.model,provider:a.provider}}),b.run("INSERT INTO usageDaily(dateKey, data) VALUES(?, ?) ON CONFLICT(dateKey) DO UPDATE SET data = excluded.data",[x,(0,f.s)(z)]);let A=b.get("SELECT value FROM _meta WHERE key = 'totalRequestsLifetime'"),B=(A?parseInt(A.value,10):0)+1;if(b.run("INSERT INTO _meta(key, value) VALUES('totalRequestsLifetime', ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[String(B)]),a.savedTokens>0){let c=b.get("SELECT value FROM _meta WHERE key = 'tokensSavedLifetime'"),d=(c?parseInt(c.value,10):0)+a.savedTokens;b.run("INSERT INTO _meta(key, value) VALUES('tokensSavedLifetime', ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[String(d)]);let e=(0,g.getPricingForModel)(a.provider,a.model);if(e?.input){let c=a.savedTokens*(e.input/1e6),d=b.get("SELECT value FROM _meta WHERE key = 'costSavedLifetime'"),f=(d?parseFloat(d.value):0)+c;b.run("INSERT INTO _meta(key, value) VALUES('costSavedLifetime', ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[String(f.toFixed(6))])}}if(a.savedTokensByMechanism&&"object"==typeof a.savedTokensByMechanism){let c=(0,g.getPricingForModel)(a.provider,a.model);for(let[d,e]of Object.entries(a.savedTokensByMechanism)){let a=Number(e);if(!Number.isFinite(a)||a<=0)continue;let f=`tokensSavedLifetime.${d}`,g=b.get("SELECT value FROM _meta WHERE key = ?",[f]),h=(g?parseInt(g.value,10):0)+a;if(b.run("INSERT INTO _meta(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[f,String(h)]),c?.input){let e=a*(c.input/1e6),f=`costSavedLifetime.${d}`,g=b.get("SELECT value FROM _meta WHERE key = ?",[f]),h=(g?parseFloat(g.value):0)+e;b.run("INSERT INTO _meta(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[f,String(h.toFixed(6))])}}}if(a.fromCache){let a=b.get("SELECT value FROM _meta WHERE key = 'semanticCacheHitsLifetime'"),c=(a?parseInt(a.value,10):0)+1;b.run("INSERT INTO _meta(key, value) VALUES('semanticCacheHitsLifetime', ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[String(c)])}i=!0}),i)&&(m.items.push(a),m.items.length>50&&(m.items=m.items.slice(-50)),q("update",250))}catch(a){console.error("Failed to save usage stats:",a)}}async function y(a={}){let b=await (0,e.c)(),c=[],d=[];if(a.provider&&(c.push("provider = ?"),d.push(a.provider)),a.model&&(c.push("model = ?"),d.push(a.model)),a.period&&!a.startDate){let b=i[a.period];b&&(a.startDate=Date.now()-b)}a.startDate&&(c.push("timestamp >= ?"),d.push(new Date(a.startDate).toISOString())),a.endDate&&(c.push("timestamp <= ?"),d.push(new Date(a.endDate).toISOString()));let g=c.length?`WHERE ${c.join(" AND ")}`:"";return b.all(`SELECT timestamp, provider, model, connectionId, apiKey, endpoint, cost, status, tokens, latencyTtftMs, latencyTotalMs FROM usageHistory ${g} ORDER BY id ASC`,d).map(a=>({timestamp:a.timestamp,provider:a.provider,model:a.model,connectionId:a.connectionId,apiKeyMasked:h(a.apiKey),endpoint:a.endpoint,cost:a.cost,status:a.status,tokens:(0,f.q)(a.tokens,{}),latencyTtftMs:a.latencyTtftMs||0,latencyTotalMs:a.latencyTotalMs||0}))}function z(a,b){if(null==b)return a.all("SELECT dateKey, data FROM usageDaily");let c=new Date,d=new Date(c.getFullYear(),c.getMonth(),c.getDate()-b+1),e=`${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,"0")}-${String(d.getDate()).padStart(2,"0")}`;return a.all("SELECT dateKey, data FROM usageDaily WHERE dateKey >= ?",[e])}async function A(a="all"){let b=await (0,e.c)(),[{getProviderConnections:d},{getApiKeys:g},{getProviderNodes:l}]=await Promise.all([c.e(5781).then(c.bind(c,5781)),c.e(4452).then(c.bind(c,74452)),c.e(1129).then(c.bind(c,1129))]),m=[];try{m=await d()}catch{}let n={};for(let a of m)n[a.id]=a.name||a.email||a.id;let o={};try{for(let a of(await l()))a.id&&a.name&&(o[a.id]=a.name)}catch{}let p=[];try{p=await g()}catch{}let q={};for(let a of p)q[a.key]={name:a.name,id:a.id,createdAt:a.createdAt};let r=b.all("SELECT timestamp, provider, model, tokens, status FROM usageHistory ORDER BY id DESC LIMIT 100"),s=new Set,t={totalRequests:0,totalPromptTokens:0,totalCompletionTokens:0,totalCachedTokens:0,totalCost:0,byProvider:{},byModel:{},byAccount:{},byApiKey:{},byEndpoint:{},last10Minutes:[],pending:j,activeRequests:[],recentRequests:r.map(a=>{let b=(0,f.q)(a.tokens,{})||{};return{timestamp:a.timestamp,model:a.model,provider:a.provider||"",promptTokens:b.prompt_tokens||b.input_tokens||0,completionTokens:b.completion_tokens||b.output_tokens||0,cachedTokens:b.cached_tokens||b.cache_read_input_tokens||0,status:a.status||"ok"}}).filter(a=>{if(0===a.promptTokens&&0===a.completionTokens)return!1;let b=a.timestamp?a.timestamp.slice(0,16):"",c=`${a.model}|${a.provider}|${a.promptTokens}|${a.completionTokens}|${b}`;return!s.has(c)&&(s.add(c),!0)}).slice(0,20),errorProvider:Date.now()-k.ts<1e4?k.provider:""};for(let[a,b]of Object.entries(j.byAccount))for(let[c,d]of Object.entries(b))if(d>0){let b=n[a]||`Account ${a.slice(0,8)}...`,e=c.match(/^(.*) \((.*)\)$/);t.activeRequests.push({model:e?e[1]:c,provider:e?e[2]:"unknown",account:b,count:d})}let u=new Date,v=new Date(6e4*Math.floor(u.getTime()/6e4)),w=new Date(v.getTime()-54e4),x={};for(let a=0;a<10;a++){let b=v.getTime()-(9-a)*6e4;x[b]={requests:0,promptTokens:0,completionTokens:0,cost:0},t.last10Minutes.push(x[b])}for(let a of b.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ? AND timestamp <= ?",[w.toISOString(),u.toISOString()])){let b=6e4*Math.floor(new Date(a.timestamp).getTime()/6e4);x[b]&&(x[b].requests++,x[b].promptTokens+=a.promptTokens||0,x[b].completionTokens+=a.completionTokens||0,x[b].cost+=a.cost||0)}if("24h"!==a&&"today"!==a){let c={"7d":7,"30d":30,"60d":60}[a]||null;for(let a of z(b,c)){let b=a.dateKey,c=(0,f.q)(a.data,{});for(let[a,b]of(t.totalPromptTokens+=c.promptTokens||0,t.totalCompletionTokens+=c.completionTokens||0,t.totalCachedTokens+=c.cachedTokens||0,t.totalCost+=c.cost||0,Object.entries(c.byProvider||{})))t.byProvider[a]||(t.byProvider[a]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),t.byProvider[a].requests+=b.requests||0,t.byProvider[a].promptTokens+=b.promptTokens||0,t.byProvider[a].completionTokens+=b.completionTokens||0,t.byProvider[a].cachedTokens+=b.cachedTokens||0,t.byProvider[a].cost+=b.cost||0;for(let[a,d]of Object.entries(c.byModel||{})){let c=d.rawModel||a.split("|")[0],e=d.provider||a.split("|")[1]||"",f=e?`${c} (${e})`:c,g=o[e]||e;t.byModel[f]||(t.byModel[f]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:c,provider:g,lastUsed:b}),t.byModel[f].requests+=d.requests||0,t.byModel[f].promptTokens+=d.promptTokens||0,t.byModel[f].completionTokens+=d.completionTokens||0,t.byModel[f].cachedTokens+=d.cachedTokens||0,t.byModel[f].cost+=d.cost||0,b>(t.byModel[f].lastUsed||"")&&(t.byModel[f].lastUsed=b)}for(let[a,d]of Object.entries(c.byAccount||{})){let c=n[a]||`Account ${a.slice(0,8)}...`,e=d.rawModel||"",f=d.provider||"",g=o[f]||f,h=`${e} (${f} - ${c})`;t.byAccount[h]||(t.byAccount[h]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:e,provider:g,connectionId:a,accountName:c,lastUsed:b}),t.byAccount[h].requests+=d.requests||0,t.byAccount[h].promptTokens+=d.promptTokens||0,t.byAccount[h].completionTokens+=d.completionTokens||0,t.byAccount[h].cachedTokens+=d.cachedTokens||0,t.byAccount[h].cost+=d.cost||0,b>(t.byAccount[h].lastUsed||"")&&(t.byAccount[h].lastUsed=b)}for(let[a,d]of Object.entries(c.byApiKey||{})){let c=d.rawModel||"",e=d.provider||"",f=o[e]||e,g=d.apiKey,i=g?q[g]:null,j=i?.name||(g?g.slice(0,8)+"...":"Local (No API Key)"),k=h(g),l=k||"local-no-key";t.byApiKey[a]||(t.byApiKey[a]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:c,provider:f,apiKeyMasked:k,keyName:j,apiKeyKey:l,lastUsed:b}),t.byApiKey[a].requests+=d.requests||0,t.byApiKey[a].promptTokens+=d.promptTokens||0,t.byApiKey[a].completionTokens+=d.completionTokens||0,t.byApiKey[a].cachedTokens+=d.cachedTokens||0,t.byApiKey[a].cost+=d.cost||0,b>(t.byApiKey[a].lastUsed||"")&&(t.byApiKey[a].lastUsed=b)}for(let[a,d]of Object.entries(c.byEndpoint||{})){let c=d.endpoint||a.split("|")[0]||"Unknown",e=d.rawModel||"",f=d.provider||"",g=o[f]||f;t.byEndpoint[a]||(t.byEndpoint[a]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,endpoint:c,rawModel:e,provider:g,lastUsed:b}),t.byEndpoint[a].requests+=d.requests||0,t.byEndpoint[a].promptTokens+=d.promptTokens||0,t.byEndpoint[a].completionTokens+=d.completionTokens||0,t.byEndpoint[a].cachedTokens+=d.cachedTokens||0,t.byEndpoint[a].cost+=d.cost||0,b>(t.byEndpoint[a].lastUsed||"")&&(t.byEndpoint[a].lastUsed=b)}}let d=c?Date.now()-864e5*c:0;for(let a of b.all("SELECT timestamp, provider, model, connectionId, apiKey, endpoint FROM usageHistory WHERE timestamp >= ?",[new Date(d).toISOString()])){let b=a.timestamp,c=a.provider?`${a.model} (${a.provider})`:a.model;if(t.byModel[c]&&new Date(b)>new Date(t.byModel[c].lastUsed)&&(t.byModel[c].lastUsed=b),a.connectionId){let c=n[a.connectionId]||`Account ${a.connectionId.slice(0,8)}...`,d=`${a.model} (${a.provider} - ${c})`;t.byAccount[d]&&new Date(b)>new Date(t.byAccount[d].lastUsed)&&(t.byAccount[d].lastUsed=b)}let d=a.apiKey&&"string"==typeof a.apiKey?`${a.apiKey}|${a.model}|${a.provider||"unknown"}`:"local-no-key";t.byApiKey[d]&&new Date(b)>new Date(t.byApiKey[d].lastUsed)&&(t.byApiKey[d].lastUsed=b);let e=a.endpoint||"Unknown",f=`${e}|${a.model}|${a.provider||"unknown"}`;t.byEndpoint[f]&&new Date(b)>new Date(t.byEndpoint[f].lastUsed)&&(t.byEndpoint[f].lastUsed=b)}}else{let c;if("today"===a){let a=new Date;a.setHours(0,0,0,0),c=a.toISOString()}else c=new Date(Date.now()-i["24h"]).toISOString();for(let a of b.all("SELECT timestamp, provider, model, connectionId, apiKey, endpoint, promptTokens, completionTokens, cost, tokens FROM usageHistory WHERE timestamp >= ?",[c])){let b=(0,f.q)(a.tokens,{})||{},c=b.prompt_tokens||0,d=b.completion_tokens||0,e=b.cached_tokens||b.cache_read_input_tokens||0,g=a.cost||0,i=o[a.provider]||a.provider;t.totalPromptTokens+=c,t.totalCompletionTokens+=d,t.totalCachedTokens+=e,t.totalCost+=g,t.byProvider[a.provider]||(t.byProvider[a.provider]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),t.byProvider[a.provider].requests++,t.byProvider[a.provider].promptTokens+=c,t.byProvider[a.provider].completionTokens+=d,t.byProvider[a.provider].cachedTokens+=e,t.byProvider[a.provider].cost+=g;let j=a.provider?`${a.model} (${a.provider})`:a.model;if(t.byModel[j]||(t.byModel[j]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:i,lastUsed:a.timestamp}),t.byModel[j].requests++,t.byModel[j].promptTokens+=c,t.byModel[j].completionTokens+=d,t.byModel[j].cachedTokens+=e,t.byModel[j].cost+=g,new Date(a.timestamp)>new Date(t.byModel[j].lastUsed)&&(t.byModel[j].lastUsed=a.timestamp),a.connectionId){let b=n[a.connectionId]||`Account ${a.connectionId.slice(0,8)}...`,f=`${a.model} (${a.provider} - ${b})`;t.byAccount[f]||(t.byAccount[f]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:i,connectionId:a.connectionId,accountName:b,lastUsed:a.timestamp}),t.byAccount[f].requests++,t.byAccount[f].promptTokens+=c,t.byAccount[f].completionTokens+=d,t.byAccount[f].cachedTokens+=e,t.byAccount[f].cost+=g,new Date(a.timestamp)>new Date(t.byAccount[f].lastUsed)&&(t.byAccount[f].lastUsed=a.timestamp)}if(a.apiKey&&"string"==typeof a.apiKey){let b=q[a.apiKey],f=b?.name||a.apiKey.slice(0,8)+"...",j=h(a.apiKey),k=`${j}|${a.model}|${a.provider||"unknown"}`;t.byApiKey[k]||(t.byApiKey[k]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:i,apiKeyMasked:j,keyName:f,apiKeyKey:j,lastUsed:a.timestamp});let l=t.byApiKey[k];l.requests++,l.promptTokens+=c,l.completionTokens+=d,l.cachedTokens+=e,l.cost+=g,new Date(a.timestamp)>new Date(l.lastUsed)&&(l.lastUsed=a.timestamp)}else{t.byApiKey["local-no-key"]||(t.byApiKey["local-no-key"]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:i,apiKeyMasked:null,keyName:"Local (No API Key)",apiKeyKey:"local-no-key",lastUsed:a.timestamp});let b=t.byApiKey["local-no-key"];b.requests++,b.promptTokens+=c,b.completionTokens+=d,b.cachedTokens+=e,b.cost+=g,new Date(a.timestamp)>new Date(b.lastUsed)&&(b.lastUsed=a.timestamp)}let k=a.endpoint||"Unknown",l=`${k}|${a.model}|${a.provider||"unknown"}`;t.byEndpoint[l]||(t.byEndpoint[l]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,endpoint:k,rawModel:a.model,provider:i,lastUsed:a.timestamp});let m=t.byEndpoint[l];m.requests++,m.promptTokens+=c,m.completionTokens+=d,m.cachedTokens+=e,m.cost+=g,new Date(a.timestamp)>new Date(m.lastUsed)&&(m.lastUsed=a.timestamp)}}t.totalRequests=Object.values(t.byProvider).reduce((a,b)=>a+(b.requests||0),0);try{let{startTs:c}=B(a),d=b.all("SELECT status, COUNT(*) AS n FROM usageHistory WHERE timestamp >= ? GROUP BY status",[c]),e={},f=0;for(let a of d){let b=String(a.status||"ok").toLowerCase();e[b]=(e[b]||0)+a.n,f+=a.n}t.statusCounts=e;let g=new Set(["error","failed","unauthorized","forbidden","timeout","blocked"]),h=0;for(let[a,b]of Object.entries(e))g.has(a)&&(h+=b);t.errorRate=f>0?h/f:0,t.errorCount=h;let i=b.all(`SELECT latencyTotalMs FROM usageHistory
11
11
  WHERE timestamp >= ? AND latencyTotalMs > 0
12
- ORDER BY latencyTotalMs ASC`,[c]);if(i.length>0){let a=i.map(a=>a.latencyTotalMs),b=a.reduce((a,b)=>a+b,0),c=b=>a[Math.min(a.length-1,Math.floor(b/100*a.length))];s.latency={avg:Math.round(b/a.length),p50:c(50),p95:c(95),sampleCount:a.length}}else s.latency={avg:0,p50:0,p95:0,sampleCount:0}}catch{s.statusCounts=s.statusCounts||{},s.errorRate=0,s.errorCount=0,s.latency={avg:0,p50:0,p95:0,sampleCount:0}}return s}function y(a){let b,c=Date.now();if("today"===a){let a=new Date;a.setHours(0,0,0,0),b=a.getTime()}else b="24h"===a?c-864e5:"7d"===a?c-6048e5:"30d"===a?c-2592e6:"60d"===a?c-5184e6:c-31536e6;return{startTs:new Date(b).toISOString()}}async function z(a="7d"){let b=await (0,e.c)(),c=Date.now();if("today"===a){let a=new Date;a.setHours(0,0,0,0);let c=a.getTime(),d=c+864e5,e=Array.from({length:24},(a,b)=>({label:new Date(c+36e5*b).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),tokens:0,cost:0}));for(let a of b.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ?",[new Date(c).toISOString()])){let b=new Date(a.timestamp).getTime();if(b<c||b>=d)continue;let f=Math.floor((b-c)/36e5);f>=0&&f<24&&(e[f].tokens+=(a.promptTokens||0)+(a.completionTokens||0),e[f].cost+=a.cost||0)}return e}if("24h"===a){let a=c-864e5,d=Array.from({length:24},(b,c)=>({label:new Date(a+36e5*c).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),tokens:0,cost:0}));for(let e of b.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ?",[new Date(a).toISOString()])){let b=new Date(e.timestamp).getTime();if(b<a||b>c)continue;let f=Math.min(Math.floor((b-a)/36e5),23);d[f].tokens+=(e.promptTokens||0)+(e.completionTokens||0),d[f].cost+=e.cost||0}return d}let d="7d"===a?7:"30d"===a?30:60,g=new Date,h=w(b,d),i={};for(let a of h)i[a.dateKey]=(0,f.q)(a.data,{});return Array.from({length:d},(a,b)=>{let c=new Date(g);c.setDate(c.getDate()-(d-1-b));let e=i[`${c.getFullYear()}-${String(c.getMonth()+1).padStart(2,"0")}-${String(c.getDate()).padStart(2,"0")}`];return{label:c.toLocaleDateString("en-US",{month:"short",day:"numeric"}),tokens:e?(e.promptTokens||0)+(e.completionTokens||0):0,cost:e&&e.cost||0}})}function A(a){let b=Date.now();if("today"===a){let a=new Date;a.setHours(0,0,0,0);let c=a.getTime();return{buckets:Array.from({length:24},(a,b)=>{let d=c+36e5*b;return{label:new Date(d).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),startMs:d,endMs:d+36e5}}),fromMs:c,toMs:b}}if("24h"===a){let a=b-864e5;return{buckets:Array.from({length:24},(b,c)=>{let d=a+36e5*c;return{label:new Date(d).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),startMs:d,endMs:d+36e5}}),fromMs:a,toMs:b}}let c="7d"===a?7:"30d"===a?30:60,d=new Date;d.setHours(0,0,0,0);let e=Array.from({length:c},(a,b)=>{let e=new Date(d);e.setDate(e.getDate()-(c-1-b));let f=e.getTime();return{label:e.toLocaleDateString("en-US",{month:"short",day:"numeric"}),startMs:f,endMs:f+864e5}});return{buckets:e,fromMs:e[0].startMs,toMs:b}}async function B(a="7d"){let b=await (0,e.c)(),{buckets:c,fromMs:d}=A(a),f=b.all("SELECT timestamp, provider, promptTokens, completionTokens FROM usageHistory WHERE timestamp >= ?",[new Date(d).toISOString()]),g={};for(let a of c)a.providers={};for(let a of f){let b=new Date(a.timestamp).getTime(),d=c.findIndex(a=>b>=a.startMs&&b<a.endMs);if(d<0)continue;let e=a.provider||"unknown",f=(a.promptTokens||0)+(a.completionTokens||0);c[d].providers[e]=(c[d].providers[e]||0)+f,g[e]=(g[e]||0)+f}let h=Object.entries(g).sort((a,b)=>b[1]-a[1]).slice(0,8).map(([a])=>a);return c.map(a=>{let b={label:a.label},c=0;for(let[d,e]of Object.entries(a.providers||{}))h.includes(d)?b[d]=e:c+=e;return c>0&&(b.Other=c),b})}async function C(a="7d"){let b=await (0,e.c)(),{buckets:c,fromMs:d}=A(a),f=b.all("SELECT timestamp, latencyTotalMs FROM usageHistory WHERE timestamp >= ? AND latencyTotalMs > 0",[new Date(d).toISOString()]),g=c.map(()=>[]);for(let a of f){let b=new Date(a.timestamp).getTime(),d=c.findIndex(a=>b>=a.startMs&&b<a.endMs);d<0||g[d].push(a.latencyTotalMs)}return c.map((a,b)=>{let c=g[b];if(0===c.length)return{label:a.label,avgMs:0,p95Ms:0,samples:0};let d=[...c].sort((a,b)=>a-b),e=d.reduce((a,b)=>a+b,0);return{label:a.label,avgMs:Math.round(e/d.length),p95Ms:d[Math.min(d.length-1,Math.floor(.95*d.length))],samples:d.length}})}async function D(a="7d"){let b=await (0,e.c)(),{buckets:c,fromMs:d}=A(a),f=new Set(["error","failed","unauthorized","forbidden","timeout","blocked"]);for(let a of b.all("SELECT timestamp, status FROM usageHistory WHERE timestamp >= ?",[new Date(d).toISOString()])){let b=new Date(a.timestamp).getTime(),d=c.findIndex(a=>b>=a.startMs&&b<a.endMs);d<0||(f.has(String(a.status||"ok").toLowerCase())?c[d].error=(c[d].error||0)+1:c[d].ok=(c[d].ok||0)+1)}return c.map(a=>({label:a.label,ok:a.ok||0,error:a.error||0}))}async function E(){}async function F(a=200){try{let b=(await (0,e.c)()).all("SELECT timestamp, provider, model, connectionId, promptTokens, completionTokens, status, tokens, latencyTtftMs, latencyTotalMs FROM usageHistory ORDER BY id DESC LIMIT ?",[a]);if(!b.length)return[];let d={};try{let{getProviderConnections:a}=await c.e(5781).then(c.bind(c,5781));for(let b of(await a()))d[b.id]=b.name||b.email||""}catch{}return b.map(a=>{let b=a.tokens?(0,f.q)(a.tokens,{}):{},c=d[a.connectionId]||(a.connectionId?a.connectionId.slice(0,8):"");return{timestamp:a.timestamp,model:a.model||"",provider:a.provider||"",providerLabel:a.provider?.toUpperCase()||"",account:c,connectionId:a.connectionId||"",promptTokens:a.promptTokens??b.prompt_tokens??0,completionTokens:a.completionTokens??b.completion_tokens??0,cachedTokens:b.cached_tokens||b.cache_read_input_tokens||0,status:a.status||"ok",latencyTotalMs:a.latencyTotalMs||0,latencyTtftMs:a.latencyTtftMs||0}})}catch(a){return console.error("[usageRepo] getRecentLogs failed:",a.message),[]}}async function G(a,b=24){let c=await (0,e.c)(),d=Date.now()-60*b*6e4,f=new Date(d).toISOString();try{let e=c.all(`SELECT timestamp, status, latencyTotalMs FROM usageHistory
12
+ ORDER BY latencyTotalMs ASC`,[c]);if(i.length>0){let a=i.map(a=>a.latencyTotalMs),b=a.reduce((a,b)=>a+b,0),c=b=>a[Math.min(a.length-1,Math.floor(b/100*a.length))];t.latency={avg:Math.round(b/a.length),p50:c(50),p95:c(95),sampleCount:a.length}}else t.latency={avg:0,p50:0,p95:0,sampleCount:0}}catch{t.statusCounts=t.statusCounts||{},t.errorRate=0,t.errorCount=0,t.latency={avg:0,p50:0,p95:0,sampleCount:0}}return t}function B(a){let b,c=Date.now();if("today"===a){let a=new Date;a.setHours(0,0,0,0),b=a.getTime()}else b="24h"===a?c-864e5:"7d"===a?c-6048e5:"30d"===a?c-2592e6:"60d"===a?c-5184e6:c-31536e6;return{startTs:new Date(b).toISOString()}}async function C(a="7d"){let b=await (0,e.c)(),c=Date.now();if("today"===a){let a=new Date;a.setHours(0,0,0,0);let c=a.getTime(),d=c+864e5,e=Array.from({length:24},(a,b)=>({label:new Date(c+36e5*b).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),tokens:0,cost:0}));for(let a of b.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ?",[new Date(c).toISOString()])){let b=new Date(a.timestamp).getTime();if(b<c||b>=d)continue;let f=Math.floor((b-c)/36e5);f>=0&&f<24&&(e[f].tokens+=(a.promptTokens||0)+(a.completionTokens||0),e[f].cost+=a.cost||0)}return e}if("24h"===a){let a=c-864e5,d=Array.from({length:24},(b,c)=>({label:new Date(a+36e5*c).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),tokens:0,cost:0}));for(let e of b.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ?",[new Date(a).toISOString()])){let b=new Date(e.timestamp).getTime();if(b<a||b>c)continue;let f=Math.min(Math.floor((b-a)/36e5),23);d[f].tokens+=(e.promptTokens||0)+(e.completionTokens||0),d[f].cost+=e.cost||0}return d}let d="7d"===a?7:"30d"===a?30:60,g=new Date,h=z(b,d),i={};for(let a of h)i[a.dateKey]=(0,f.q)(a.data,{});return Array.from({length:d},(a,b)=>{let c=new Date(g);c.setDate(c.getDate()-(d-1-b));let e=i[`${c.getFullYear()}-${String(c.getMonth()+1).padStart(2,"0")}-${String(c.getDate()).padStart(2,"0")}`];return{label:c.toLocaleDateString("en-US",{month:"short",day:"numeric"}),tokens:e?(e.promptTokens||0)+(e.completionTokens||0):0,cost:e&&e.cost||0}})}function D(a){let b=Date.now();if("today"===a){let a=new Date;a.setHours(0,0,0,0);let c=a.getTime();return{buckets:Array.from({length:24},(a,b)=>{let d=c+36e5*b;return{label:new Date(d).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),startMs:d,endMs:d+36e5}}),fromMs:c,toMs:b}}if("24h"===a){let a=b-864e5;return{buckets:Array.from({length:24},(b,c)=>{let d=a+36e5*c;return{label:new Date(d).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),startMs:d,endMs:d+36e5}}),fromMs:a,toMs:b}}let c="7d"===a?7:"30d"===a?30:60,d=new Date;d.setHours(0,0,0,0);let e=Array.from({length:c},(a,b)=>{let e=new Date(d);e.setDate(e.getDate()-(c-1-b));let f=e.getTime();return{label:e.toLocaleDateString("en-US",{month:"short",day:"numeric"}),startMs:f,endMs:f+864e5}});return{buckets:e,fromMs:e[0].startMs,toMs:b}}async function E(a="7d"){let b=await (0,e.c)(),{buckets:c,fromMs:d}=D(a),f=b.all("SELECT timestamp, provider, promptTokens, completionTokens FROM usageHistory WHERE timestamp >= ?",[new Date(d).toISOString()]),g={};for(let a of c)a.providers={};for(let a of f){let b=new Date(a.timestamp).getTime(),d=c.findIndex(a=>b>=a.startMs&&b<a.endMs);if(d<0)continue;let e=a.provider||"unknown",f=(a.promptTokens||0)+(a.completionTokens||0);c[d].providers[e]=(c[d].providers[e]||0)+f,g[e]=(g[e]||0)+f}let h=Object.entries(g).sort((a,b)=>b[1]-a[1]).slice(0,8).map(([a])=>a);return c.map(a=>{let b={label:a.label},c=0;for(let[d,e]of Object.entries(a.providers||{}))h.includes(d)?b[d]=e:c+=e;return c>0&&(b.Other=c),b})}async function F(a="7d"){let b=await (0,e.c)(),{buckets:c,fromMs:d}=D(a),f=b.all("SELECT timestamp, latencyTotalMs FROM usageHistory WHERE timestamp >= ? AND latencyTotalMs > 0",[new Date(d).toISOString()]),g=c.map(()=>[]);for(let a of f){let b=new Date(a.timestamp).getTime(),d=c.findIndex(a=>b>=a.startMs&&b<a.endMs);d<0||g[d].push(a.latencyTotalMs)}return c.map((a,b)=>{let c=g[b];if(0===c.length)return{label:a.label,avgMs:0,p95Ms:0,samples:0};let d=[...c].sort((a,b)=>a-b),e=d.reduce((a,b)=>a+b,0);return{label:a.label,avgMs:Math.round(e/d.length),p95Ms:d[Math.min(d.length-1,Math.floor(.95*d.length))],samples:d.length}})}async function G(a="7d"){let b=await (0,e.c)(),{buckets:c,fromMs:d}=D(a),f=new Set(["error","failed","unauthorized","forbidden","timeout","blocked"]);for(let a of b.all("SELECT timestamp, status FROM usageHistory WHERE timestamp >= ?",[new Date(d).toISOString()])){let b=new Date(a.timestamp).getTime(),d=c.findIndex(a=>b>=a.startMs&&b<a.endMs);d<0||(f.has(String(a.status||"ok").toLowerCase())?c[d].error=(c[d].error||0)+1:c[d].ok=(c[d].ok||0)+1)}return c.map(a=>({label:a.label,ok:a.ok||0,error:a.error||0}))}async function H(){}async function I(a=200){try{let b=(await (0,e.c)()).all("SELECT timestamp, provider, model, connectionId, promptTokens, completionTokens, status, tokens, latencyTtftMs, latencyTotalMs FROM usageHistory ORDER BY id DESC LIMIT ?",[a]);if(!b.length)return[];let d={};try{let{getProviderConnections:a}=await c.e(5781).then(c.bind(c,5781));for(let b of(await a()))d[b.id]=b.name||b.email||""}catch{}return b.map(a=>{let b=a.tokens?(0,f.q)(a.tokens,{}):{},c=d[a.connectionId]||(a.connectionId?a.connectionId.slice(0,8):"");return{timestamp:a.timestamp,model:a.model||"",provider:a.provider||"",providerLabel:a.provider?.toUpperCase()||"",account:c,connectionId:a.connectionId||"",promptTokens:a.promptTokens??b.prompt_tokens??0,completionTokens:a.completionTokens??b.completion_tokens??0,cachedTokens:b.cached_tokens||b.cache_read_input_tokens||0,status:a.status||"ok",latencyTotalMs:a.latencyTotalMs||0,latencyTtftMs:a.latencyTtftMs||0}})}catch(a){return console.error("[usageRepo] getRecentLogs failed:",a.message),[]}}async function J(a,b=24){let c=await (0,e.c)(),d=Date.now()-60*b*6e4,f=new Date(d).toISOString();try{let e=c.all(`SELECT timestamp, status, latencyTotalMs FROM usageHistory
13
13
  WHERE provider = ? AND timestamp >= ?
14
- ORDER BY timestamp ASC`,[a,f]),g=new Map;for(let a of e){let b=new Date(a.timestamp).getTime(),c=36e5*Math.floor(b/36e5);g.has(c)||g.set(c,{ts:new Date(c).toISOString(),ok:0,err:0,latSum:0,latCount:0});let d=g.get(c),e=Number(a.status);e>=200&&e<400?d.ok++:d.err++,a.latencyTotalMs>0&&(d.latSum+=a.latencyTotalMs,d.latCount++)}let h=[],i=Math.ceil(b);for(let a=0;a<i;a++){let b=36e5*Math.floor((d+60*a*6e4)/36e5),c=g.get(b);c?h.push({ts:c.ts,ok:c.ok,err:c.err,latency:c.latCount>0?Math.round(c.latSum/c.latCount):0}):h.push({ts:new Date(b).toISOString(),ok:0,err:0,latency:0})}return h}catch(a){return console.error("[usageRepo] getProviderHealthTimeline failed:",a.message),[]}}async function H(a="7d"){let b=await (0,e.c)(),{startTs:c}=y(a);try{let a=b.all("SELECT provider, meta FROM usageHistory WHERE timestamp >= ? AND meta IS NOT NULL",[c]),d=0,e=0,f=0,g={};for(let b of a){d++;try{let a=JSON.parse(b.meta);if(a.retryCount&&a.retryCount>0){e++,f+=a.retryCount;let c=b.provider||"unknown";g[c]||(g[c]={provider:c,requests:0,retries:0}),g[c].requests++,g[c].retries+=a.retryCount}}catch{}}return{totalRequests:d,retriedRequests:e,totalRetries:f,retryRate:d>0?Math.round(e/d*100):0,byProvider:Object.values(g).sort((a,b)=>b.retries-a.retries).slice(0,10)}}catch(a){return console.error("[usageRepo] getRetryStats failed:",a.message),{totalRequests:0,retriedRequests:0,totalRetries:0,retryRate:0,byProvider:[]}}}}};
14
+ ORDER BY timestamp ASC`,[a,f]),g=new Map;for(let a of e){let b=new Date(a.timestamp).getTime(),c=36e5*Math.floor(b/36e5);g.has(c)||g.set(c,{ts:new Date(c).toISOString(),ok:0,err:0,latSum:0,latCount:0});let d=g.get(c),e=Number(a.status);e>=200&&e<400?d.ok++:d.err++,a.latencyTotalMs>0&&(d.latSum+=a.latencyTotalMs,d.latCount++)}let h=[],i=Math.ceil(b);for(let a=0;a<i;a++){let b=36e5*Math.floor((d+60*a*6e4)/36e5),c=g.get(b);c?h.push({ts:c.ts,ok:c.ok,err:c.err,latency:c.latCount>0?Math.round(c.latSum/c.latCount):0}):h.push({ts:new Date(b).toISOString(),ok:0,err:0,latency:0})}return h}catch(a){return console.error("[usageRepo] getProviderHealthTimeline failed:",a.message),[]}}async function K(a="7d"){let b=await (0,e.c)(),{startTs:c}=B(a);try{let a=b.all("SELECT provider, meta FROM usageHistory WHERE timestamp >= ? AND meta IS NOT NULL",[c]),d=0,e=0,f=0,g={};for(let b of a){d++;try{let a=JSON.parse(b.meta);if(a.retryCount&&a.retryCount>0){e++,f+=a.retryCount;let c=b.provider||"unknown";g[c]||(g[c]={provider:c,requests:0,retries:0}),g[c].requests++,g[c].retries+=a.retryCount}}catch{}}return{totalRequests:d,retriedRequests:e,totalRetries:f,retryRate:d>0?Math.round(e/d*100):0,byProvider:Object.values(g).sort((a,b)=>b.retries-a.retries).slice(0,10)}}catch(a){return console.error("[usageRepo] getRetryStats failed:",a.message),{totalRequests:0,retriedRequests:0,totalRetries:0,retryRate:0,byProvider:[]}}}}};
@@ -1,2 +1,2 @@
1
- "use strict";exports.id=9903,exports.ids=[9573,9903],exports.modules={24467:(a,b,c)=>{c.d(b,{MX:()=>k,X6:()=>f,aS:()=>n,hy:()=>h,i5:()=>m,j8:()=>l});var d=c(78474);global._circuitBreakers||(global._circuitBreakers=new Map,global._breakerEmitter=new d.EventEmitter,global._breakerEmitter.setMaxListeners(50));let e=global._circuitBreakers,f=global._breakerEmitter,g={enabled:!0,failureThreshold:5,windowMs:6e4,cooldownMs:3e4,halfOpenMaxCalls:1};function h(a){let b=Number(a)||0;return 0===b||429===b||b>=500}function i(a){let b=e.get(a);return b||(b={provider:a,state:"closed",failures:[],openedAt:null,cooldownEndsAt:null,halfOpenCalls:0},e.set(a,b)),b}function j(a){let b=e.get(a);b&&f.emit("breaker:update",{provider:b.provider,state:b.state,failures:b.failures.length,openedAt:b.openedAt,cooldownEndsAt:b.cooldownEndsAt})}function k(a,b={}){let c={...g,...b?.circuitBreaker||{}};if(!c.enabled)return!1;let d=i(a),e=Date.now();if("open"===d.state)if(!d.cooldownEndsAt||!(e>=d.cooldownEndsAt))return!0;else d.state="halfOpen",d.halfOpenCalls=0,j(a);if("halfOpen"===d.state){if(d.halfOpenCalls>=c.halfOpenMaxCalls)return!0;d.halfOpenCalls++}return!1}function l(a,b={}){if(!({...g,...b?.circuitBreaker||{}}).enabled)return;let c=i(a);("closed"!==c.state||c.failures.length>0)&&(c.state="closed",c.failures=[],c.openedAt=null,c.cooldownEndsAt=null,c.halfOpenCalls=0,j(a))}function m(a,b,c={}){let d={...g,...c?.circuitBreaker||{}};if(!d.enabled)return;let e=i(a),f=Date.now();if("halfOpen"===e.state){e.state="open",e.openedAt=f,e.cooldownEndsAt=f+d.cooldownMs,e.halfOpenCalls=0,e.failures=[{ts:f,status:b}],j(a);return}if("closed"===e.state){e.failures.push({ts:f,status:b});let c=f-d.windowMs;e.failures=e.failures.filter(a=>a.ts>=c),e.failures.length>=d.failureThreshold&&(e.state="open",e.openedAt=f,e.cooldownEndsAt=f+d.cooldownMs,j(a))}}function n(a){let b=monitors.get(a);b&&"halfOpen"===b.state&&b.halfOpenCalls>0&&b.halfOpenCalls--}},49573:(a,b,c)=>{c.r(b),c.d(b,{dispatchAlert:()=>j,initAlertService:()=>i});var d=c(89718),e=c(24467);let f={provider_down:0xef4444,rate_limited:0xf59e0b,health_degraded:0xf59e0b,budget_exceeded:0xef4444,test:3900150},g={provider_down:"\uD83D\uDD34 Provider Down",rate_limited:"⚠️ Rate Limited",health_degraded:"⚠️ Health Degraded",budget_exceeded:"\uD83D\uDD34 Budget Exceeded",test:"\uD83D\uDD14 Test Alert"};global._alertService||(global._alertService={initialized:!1,lastAlert:new Map});let h=global._alertService;function i(){h.initialized||(h.initialized=!0,e.X6.on("breaker:update",a=>{"open"===a.state&&j("provider_down",{provider:a.provider,failures:a.failures,message:`Circuit Breaker OPEN for "${a.provider}" — ${a.failures} failures in window. Provider is now bypassed.`}).catch(()=>{})}),console.log("[AlertService] initialized — subscribed to breaker events"))}async function j(a,b={}){try{let c=await (0,d.mt)();if(!c.webhookEnabled)return;let e=c.webhookAlertEvents||{},i=a.replace(/_([a-z])/g,(a,b)=>b.toUpperCase());if("test"!==a&&!e[i]&&!e[a])return;let j=`${a}:${b.provider||"global"}`,n=Date.now(),o=h.lastAlert.get(j);if(o&&n-o<3e5)return;h.lastAlert.set(j,n);let p=g[a]||`🔔 ${a}`,q=b.message||JSON.stringify(b),r=f[a]||7041664,s=b.provider?`[${b.provider}]`:"",t=`${p} ${s}
1
+ "use strict";exports.id=9903,exports.ids=[9573,9903],exports.modules={24467:(a,b,c)=>{c.d(b,{GK:()=>l,MX:()=>k,X6:()=>f,aS:()=>o,hy:()=>h,i5:()=>n,j8:()=>m});var d=c(78474);global._circuitBreakers||(global._circuitBreakers=new Map,global._breakerEmitter=new d.EventEmitter,global._breakerEmitter.setMaxListeners(50));let e=global._circuitBreakers,f=global._breakerEmitter,g={enabled:!0,failureThreshold:5,windowMs:6e4,cooldownMs:3e4,halfOpenMaxCalls:1};function h(a){let b=Number(a)||0;return 0===b||429===b||b>=500}function i(a){let b=e.get(a);return b||(b={provider:a,state:"closed",failures:[],openedAt:null,cooldownEndsAt:null,halfOpenCalls:0},e.set(a,b)),b}function j(a){let b=e.get(a);b&&f.emit("breaker:update",{provider:b.provider,state:b.state,failures:b.failures.length,openedAt:b.openedAt,cooldownEndsAt:b.cooldownEndsAt})}function k(a,b={}){let c={...g,...b?.circuitBreaker||{}};if(!c.enabled)return!1;let d=i(a),e=Date.now();if("open"===d.state)if(!d.cooldownEndsAt||!(e>=d.cooldownEndsAt))return!0;else d.state="halfOpen",d.halfOpenCalls=0,j(a);if("halfOpen"===d.state){if(d.halfOpenCalls>=c.halfOpenMaxCalls)return!0;d.halfOpenCalls++}return!1}function l(a,b={}){let c={...g,...b?.circuitBreaker||{}};if(!c.enabled)return!1;let d=e.get(a);if(!d)return!1;let f=Date.now();return"open"===d.state?!d.cooldownEndsAt||!(f>=d.cooldownEndsAt):"halfOpen"===d.state&&d.halfOpenCalls>=c.halfOpenMaxCalls}function m(a,b={}){if(!({...g,...b?.circuitBreaker||{}}).enabled)return;let c=i(a);("closed"!==c.state||c.failures.length>0)&&(c.state="closed",c.failures=[],c.openedAt=null,c.cooldownEndsAt=null,c.halfOpenCalls=0,j(a))}function n(a,b,c={}){let d={...g,...c?.circuitBreaker||{}};if(!d.enabled)return;let e=i(a),f=Date.now();if("halfOpen"===e.state){e.state="open",e.openedAt=f,e.cooldownEndsAt=f+d.cooldownMs,e.halfOpenCalls=0,e.failures=[{ts:f,status:b}],j(a);return}if("closed"===e.state){e.failures.push({ts:f,status:b});let c=f-d.windowMs;e.failures=e.failures.filter(a=>a.ts>=c),e.failures.length>=d.failureThreshold&&(e.state="open",e.openedAt=f,e.cooldownEndsAt=f+d.cooldownMs,j(a))}}function o(a){let b=e.get(a);b&&"halfOpen"===b.state&&b.halfOpenCalls>0&&b.halfOpenCalls--}},49573:(a,b,c)=>{c.r(b),c.d(b,{dispatchAlert:()=>j,initAlertService:()=>i});var d=c(89718),e=c(24467);let f={provider_down:0xef4444,rate_limited:0xf59e0b,health_degraded:0xf59e0b,budget_exceeded:0xef4444,test:3900150},g={provider_down:"\uD83D\uDD34 Provider Down",rate_limited:"⚠️ Rate Limited",health_degraded:"⚠️ Health Degraded",budget_exceeded:"\uD83D\uDD34 Budget Exceeded",test:"\uD83D\uDD14 Test Alert"};global._alertService||(global._alertService={initialized:!1,lastAlert:new Map});let h=global._alertService;function i(){h.initialized||(h.initialized=!0,e.X6.on("breaker:update",a=>{"open"===a.state&&j("provider_down",{provider:a.provider,failures:a.failures,message:`Circuit Breaker OPEN for "${a.provider}" — ${a.failures} failures in window. Provider is now bypassed.`}).catch(()=>{})}),console.log("[AlertService] initialized — subscribed to breaker events"))}async function j(a,b={}){try{let c=await (0,d.mt)();if(!c.webhookEnabled)return;let e=c.webhookAlertEvents||{},i=a.replace(/_([a-z])/g,(a,b)=>b.toUpperCase());if("test"!==a&&!e[i]&&!e[a])return;let j=`${a}:${b.provider||"global"}`,n=Date.now(),o=h.lastAlert.get(j);if(o&&n-o<3e5)return;h.lastAlert.set(j,n);let p=g[a]||`🔔 ${a}`,q=b.message||JSON.stringify(b),r=f[a]||7041664,s=b.provider?`[${b.provider}]`:"",t=`${p} ${s}
2
2
  ${q}`,u=[];c.webhookDiscordUrl&&u.push(k(c.webhookDiscordUrl,{title:p,description:q,color:r})),c.webhookTelegramToken&&c.webhookTelegramChatId&&u.push(l(c.webhookTelegramToken,c.webhookTelegramChatId,t)),c.webhookGenericUrl&&u.push(m(c.webhookGenericUrl,{eventType:a,title:p,description:q,...b,timestamp:new Date().toISOString()})),await Promise.allSettled(u)}catch(a){console.warn("[AlertService] dispatch error:",a?.message||String(a))}}async function k(a,{title:b,description:d,color:e}){try{let{proxyAwareFetch:f}=await c.e(9609).then(c.bind(c,39609));await f(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:"ExtremeRouter",embeds:[{title:b,description:d,color:e,timestamp:new Date().toISOString(),footer:{text:"ExtremeRouter Gateway"}}]})},null)}catch(a){console.warn("[AlertService] Discord delivery failed:",a?.message)}}async function l(a,b,d){try{let{proxyAwareFetch:e}=await c.e(9609).then(c.bind(c,39609));await e(`https://api.telegram.org/bot${a}/sendMessage`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({chat_id:b,text:d,parse_mode:"HTML",disable_web_page_preview:!0})},null)}catch(a){console.warn("[AlertService] Telegram delivery failed:",a?.message)}}async function m(a,b){try{let{proxyAwareFetch:d}=await c.e(9609).then(c.bind(c,39609));await d(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)},null)}catch(a){console.warn("[AlertService] Generic webhook delivery failed:",a?.message)}}},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mY:()=>d.mY,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(39422)},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};
@@ -1 +1 @@
1
- globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/fsglpkHqAEeF3CQ_z_ynh/_buildManifest.js","static/fsglpkHqAEeF3CQ_z_ynh/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-a990cabb6976f421.js","static/chunks/4bd1b696-e356ca5ba0218e27.js","static/chunks/3794-c66b3d8325973459.js","static/chunks/main-app-705d8c306f358a5f.js"],rootMainFilesTree:{},pages:{"/_app":[]}};
1
+ globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/GZ-78K5tlyWItqwZpG22j/_buildManifest.js","static/GZ-78K5tlyWItqwZpG22j/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-a990cabb6976f421.js","static/chunks/4bd1b696-e356ca5ba0218e27.js","static/chunks/3794-c66b3d8325973459.js","static/chunks/main-app-705d8c306f358a5f.js"],rootMainFilesTree:{},pages:{"/_app":[]}};