@rabbi696/ezrouter 0.6.29 → 0.6.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (909) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +8 -8
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/ha/page.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/ha/page.js.nft.json +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/ha/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js.nft.json +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +6 -6
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +26 -26
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  82. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +1 -1
  83. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
  84. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
  85. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  86. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  88. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  89. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  90. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  91. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  92. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  94. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  95. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  97. package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page.js +1 -1
  98. package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page_client-reference-manifest.js +1 -1
  100. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  102. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  103. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  104. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  105. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  106. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  107. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  108. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  109. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  110. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  111. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  113. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  114. package/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  115. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  116. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  117. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +3 -3
  118. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  119. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  120. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  121. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +2 -2
  161. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/ha/resolve/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/ha/status/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/mcp-gateway/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/mcp-gateway/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/models/enabled/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/models/enabled/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/models-dev/import/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/models-dev/import/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/models-dev/refresh/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/models-dev/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/models-dev/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  289. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/oauth/callback/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/oauth/callback/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  301. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  343. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  345. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  347. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  352. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  353. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  355. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  356. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  357. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  358. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  359. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  360. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
  361. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  362. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +1 -1
  363. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +1 -1
  365. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  367. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  368. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
  369. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  374. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  380. package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
  381. package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  383. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/settings/provider-order/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/settings/provider-order/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -1
  398. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  401. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  405. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  409. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  411. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  413. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  415. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  416. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  417. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  418. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  419. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  421. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  422. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  423. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  424. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  425. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  426. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  427. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  428. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  429. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  430. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
  431. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  432. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  433. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  434. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  435. package/app/.next-cli-build/server/app/api/usage/models/route.js +1 -1
  436. package/app/.next-cli-build/server/app/api/usage/models/route.js.nft.json +1 -1
  437. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  438. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  439. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  440. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  441. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  442. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  443. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  444. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  445. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  446. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  447. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
  448. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
  449. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  450. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  451. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  452. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  453. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  454. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  455. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  456. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  457. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  458. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  459. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
  460. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
  461. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
  462. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
  463. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
  464. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
  465. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
  466. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
  467. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
  468. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
  469. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
  470. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
  471. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
  472. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
  473. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  474. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  475. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
  476. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  477. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  478. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  479. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  480. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  481. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  482. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  483. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  484. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  485. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  486. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  487. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  488. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  489. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  490. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  491. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  492. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  493. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  494. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  495. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  496. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  497. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  498. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  499. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  500. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  501. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  502. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  503. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  504. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  505. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  506. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  507. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  508. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  509. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  510. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  511. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  512. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  513. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  514. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  515. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  516. package/app/.next-cli-build/server/app/api/wakeup/route.js +1 -1
  517. package/app/.next-cli-build/server/app/api/wakeup/route.js.nft.json +1 -1
  518. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  519. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  520. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  521. package/app/.next-cli-build/server/app/callback.html +1 -1
  522. package/app/.next-cli-build/server/app/callback.rsc +3 -3
  523. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  524. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  525. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +3 -3
  526. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  527. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  528. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  529. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  530. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
  531. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  532. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  533. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  534. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  535. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  536. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  537. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +3 -3
  538. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  539. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  540. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  541. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  542. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  543. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  544. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  545. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  546. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  547. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +3 -3
  548. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  549. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  550. package/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  551. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  552. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  553. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  554. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  555. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  556. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  557. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +3 -3
  558. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
  560. package/app/.next-cli-build/server/app/dashboard/convoy.rsc +5 -5
  561. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
  562. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
  563. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  564. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  565. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +5 -5
  566. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
  567. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +3 -3
  568. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +1 -1
  569. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  570. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
  571. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  572. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  573. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  574. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  575. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  576. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  577. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +3 -3
  578. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  579. package/app/.next-cli-build/server/app/dashboard/ha.html +1 -1
  580. package/app/.next-cli-build/server/app/dashboard/ha.rsc +4 -4
  581. package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard/ha/__PAGE__.segment.rsc +1 -1
  582. package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard/ha.segment.rsc +1 -1
  583. package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  584. package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  585. package/app/.next-cli-build/server/app/dashboard/ha.segments/_full.segment.rsc +4 -4
  586. package/app/.next-cli-build/server/app/dashboard/ha.segments/_head.segment.rsc +1 -1
  587. package/app/.next-cli-build/server/app/dashboard/ha.segments/_index.segment.rsc +3 -3
  588. package/app/.next-cli-build/server/app/dashboard/ha.segments/_tree.segment.rsc +1 -1
  589. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.html +1 -1
  590. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.rsc +5 -5
  591. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys/__PAGE__.segment.rsc +2 -2
  592. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys.segment.rsc +1 -1
  593. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  594. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  595. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  596. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_full.segment.rsc +5 -5
  597. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_head.segment.rsc +1 -1
  598. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_index.segment.rsc +3 -3
  599. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_tree.segment.rsc +1 -1
  600. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.html +1 -1
  601. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.rsc +5 -5
  602. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers/__PAGE__.segment.rsc +2 -2
  603. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers.segment.rsc +1 -1
  604. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  605. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  606. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  607. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_full.segment.rsc +5 -5
  608. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_head.segment.rsc +1 -1
  609. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_index.segment.rsc +3 -3
  610. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_tree.segment.rsc +1 -1
  611. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.html +1 -1
  612. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.rsc +5 -5
  613. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/__PAGE__.segment.rsc +2 -2
  614. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  615. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  616. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  617. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_full.segment.rsc +5 -5
  618. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_head.segment.rsc +1 -1
  619. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_index.segment.rsc +3 -3
  620. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_tree.segment.rsc +1 -1
  621. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  622. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  623. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  624. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  625. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  626. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  627. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  628. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  629. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  630. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +3 -3
  631. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  632. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  633. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  634. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  635. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  636. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  637. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  638. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  639. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  640. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +3 -3
  641. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  642. package/app/.next-cli-build/server/app/dashboard/models.html +1 -1
  643. package/app/.next-cli-build/server/app/dashboard/models.rsc +5 -5
  644. package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard/models/__PAGE__.segment.rsc +2 -2
  645. package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard/models.segment.rsc +1 -1
  646. package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  647. package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  648. package/app/.next-cli-build/server/app/dashboard/models.segments/_full.segment.rsc +5 -5
  649. package/app/.next-cli-build/server/app/dashboard/models.segments/_head.segment.rsc +1 -1
  650. package/app/.next-cli-build/server/app/dashboard/models.segments/_index.segment.rsc +3 -3
  651. package/app/.next-cli-build/server/app/dashboard/models.segments/_tree.segment.rsc +1 -1
  652. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  653. package/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
  654. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  655. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  656. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  657. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  658. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  659. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  660. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +3 -3
  661. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  662. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  663. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
  664. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  665. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  666. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  667. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  668. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  669. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  670. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  671. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +3 -3
  672. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  673. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  674. package/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  675. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  676. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  677. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  678. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  679. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  680. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  681. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +3 -3
  682. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  683. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  684. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  685. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  686. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  687. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  688. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  689. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  690. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  691. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +3 -3
  692. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  693. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  694. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
  695. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  696. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  697. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  698. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  699. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
  700. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  701. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +3 -3
  702. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  703. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  704. package/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
  705. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  706. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  707. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  708. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  709. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
  710. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  711. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +3 -3
  712. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  713. package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
  714. package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +5 -5
  715. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
  716. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
  717. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  718. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  719. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +5 -5
  720. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
  721. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +3 -3
  722. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +1 -1
  723. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  724. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  725. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  726. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  727. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  728. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  729. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  730. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +3 -3
  731. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  732. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  733. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  734. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  735. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  736. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  737. package/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
  738. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  739. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  740. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  741. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  742. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
  743. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  744. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +3 -3
  745. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  746. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  747. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
  748. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  749. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  750. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  751. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  752. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
  753. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  754. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +3 -3
  755. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  756. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  757. package/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
  758. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  759. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  760. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  761. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  762. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  763. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  764. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +3 -3
  765. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  766. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  767. package/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  768. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  769. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  770. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  771. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  772. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  773. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  774. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +3 -3
  775. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  776. package/app/.next-cli-build/server/app/dashboard/wakeup.html +1 -1
  777. package/app/.next-cli-build/server/app/dashboard/wakeup.rsc +4 -4
  778. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard/wakeup/__PAGE__.segment.rsc +1 -1
  779. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard/wakeup.segment.rsc +1 -1
  780. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  781. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  782. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_full.segment.rsc +4 -4
  783. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_head.segment.rsc +1 -1
  784. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_index.segment.rsc +3 -3
  785. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_tree.segment.rsc +1 -1
  786. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  787. package/app/.next-cli-build/server/app/dashboard.rsc +5 -5
  788. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  789. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  790. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  791. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
  792. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  793. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +3 -3
  794. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  795. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  796. package/app/.next-cli-build/server/app/index.html +1 -1
  797. package/app/.next-cli-build/server/app/index.rsc +3 -3
  798. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  799. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  800. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  801. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +3 -3
  802. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  803. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  804. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  805. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  806. package/app/.next-cli-build/server/app/landing.html +1 -1
  807. package/app/.next-cli-build/server/app/landing.rsc +3 -3
  808. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  809. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  810. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +3 -3
  811. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  812. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  813. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  814. package/app/.next-cli-build/server/app/login/page.js +1 -1
  815. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  816. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  817. package/app/.next-cli-build/server/app/login.html +1 -1
  818. package/app/.next-cli-build/server/app/login.rsc +4 -4
  819. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
  820. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  821. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +3 -3
  822. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  823. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  824. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  825. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  826. package/app/.next-cli-build/server/app/page.js +1 -1
  827. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  828. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  829. package/app/.next-cli-build/server/app-paths-manifest.json +8 -8
  830. package/app/.next-cli-build/server/chunks/1253.js +1 -1
  831. package/app/.next-cli-build/server/chunks/1708.js +2 -2
  832. package/app/.next-cli-build/server/chunks/1847.js +1 -1
  833. package/app/.next-cli-build/server/chunks/1923.js +1 -1
  834. package/app/.next-cli-build/server/chunks/2072.js +15 -15
  835. package/app/.next-cli-build/server/chunks/2269.js +1 -1
  836. package/app/.next-cli-build/server/chunks/2364.js +1 -1
  837. package/app/.next-cli-build/server/chunks/2791.js +1 -1
  838. package/app/.next-cli-build/server/chunks/2898.js +1 -1
  839. package/app/.next-cli-build/server/chunks/2937.js +1 -1
  840. package/app/.next-cli-build/server/chunks/321.js +1 -1
  841. package/app/.next-cli-build/server/chunks/322.js +1 -0
  842. package/app/.next-cli-build/server/chunks/3378.js +1 -0
  843. package/app/.next-cli-build/server/chunks/3428.js +2 -2
  844. package/app/.next-cli-build/server/chunks/3576.js +1 -0
  845. package/app/.next-cli-build/server/chunks/369.js +24 -24
  846. package/app/.next-cli-build/server/chunks/37.js +1 -0
  847. package/app/.next-cli-build/server/chunks/412.js +1 -1
  848. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  849. package/app/.next-cli-build/server/chunks/4646.js +1 -1
  850. package/app/.next-cli-build/server/chunks/5172.js +1 -0
  851. package/app/.next-cli-build/server/chunks/5461.js +1 -1
  852. package/app/.next-cli-build/server/chunks/5578.js +1 -0
  853. package/app/.next-cli-build/server/chunks/5703.js +1 -1
  854. package/app/.next-cli-build/server/chunks/6038.js +1 -1
  855. package/app/.next-cli-build/server/chunks/615.js +1 -1
  856. package/app/.next-cli-build/server/chunks/6283.js +1 -1
  857. package/app/.next-cli-build/server/chunks/6328.js +1 -1
  858. package/app/.next-cli-build/server/chunks/6401.js +1 -1
  859. package/app/.next-cli-build/server/chunks/6723.js +2 -2
  860. package/app/.next-cli-build/server/chunks/7302.js +4 -4
  861. package/app/.next-cli-build/server/chunks/7699.js +2 -2
  862. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  863. package/app/.next-cli-build/server/chunks/7775.js +1 -1
  864. package/app/.next-cli-build/server/chunks/7811.js +1 -1
  865. package/app/.next-cli-build/server/chunks/8032.js +1 -0
  866. package/app/.next-cli-build/server/chunks/8129.js +1 -1
  867. package/app/.next-cli-build/server/chunks/8238.js +1 -1
  868. package/app/.next-cli-build/server/chunks/8243.js +2 -2
  869. package/app/.next-cli-build/server/chunks/8391.js +1 -1
  870. package/app/.next-cli-build/server/chunks/8595.js +1 -0
  871. package/app/.next-cli-build/server/chunks/869.js +1 -0
  872. package/app/.next-cli-build/server/chunks/8881.js +1 -1
  873. package/app/.next-cli-build/server/chunks/9278.js +1 -0
  874. package/app/.next-cli-build/server/chunks/9303.js +1 -1
  875. package/app/.next-cli-build/server/chunks/9485.js +1 -1
  876. package/app/.next-cli-build/server/chunks/9726.js +1 -1
  877. package/app/.next-cli-build/server/chunks/9761.js +2 -2
  878. package/app/.next-cli-build/server/chunks/9898.js +2 -2
  879. package/app/.next-cli-build/server/chunks/9900.js +15 -15
  880. package/app/.next-cli-build/server/instrumentation.js +1 -1
  881. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  882. package/app/.next-cli-build/server/middleware.js +4 -4
  883. package/app/.next-cli-build/server/pages/404.html +1 -1
  884. package/app/.next-cli-build/server/pages/500.html +1 -1
  885. package/app/.next-cli-build/static/chunks/1321-9ec58cb59d5ecf7b.js +1 -0
  886. package/app/.next-cli-build/static/chunks/{5497-6d8e5deee33dd8c2.js → 5497-415a2bbd06f5cf8e.js} +1 -1
  887. package/app/.next-cli-build/static/chunks/8105-32d90d29662365cc.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-e5303063878dbfe5.js +93 -0
  889. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-c571f1962363d85a.js +27 -0
  890. package/app/CHANGELOG.md +24 -0
  891. package/app/package.json +1 -1
  892. package/app/public/CHANGELOG.md +24 -0
  893. package/app/public/providers/nace.png +0 -0
  894. package/package.json +1 -1
  895. package/app/.next-cli-build/server/chunks/4370.js +0 -1
  896. package/app/.next-cli-build/server/chunks/447.js +0 -1
  897. package/app/.next-cli-build/server/chunks/4757.js +0 -1
  898. package/app/.next-cli-build/server/chunks/5749.js +0 -1
  899. package/app/.next-cli-build/server/chunks/5752.js +0 -1
  900. package/app/.next-cli-build/server/chunks/6587.js +0 -1
  901. package/app/.next-cli-build/server/chunks/6644.js +0 -1
  902. package/app/.next-cli-build/server/chunks/9296.js +0 -1
  903. package/app/.next-cli-build/server/chunks/9476.js +0 -1
  904. package/app/.next-cli-build/static/chunks/1321-88eef55748a0ed6d.js +0 -1
  905. package/app/.next-cli-build/static/chunks/8105-7223feec2e3f1a09.js +0 -1
  906. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-b12366cd7a47c746.js +0 -93
  907. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-04e7788a14f993ed.js +0 -27
  908. /package/app/.next-cli-build/static/{yb9jsXtBeHMoPmMsOqYn_ → mFI4SG1R1XmhR9CNfZvPv}/_buildManifest.js +0 -0
  909. /package/app/.next-cli-build/static/{yb9jsXtBeHMoPmMsOqYn_ → mFI4SG1R1XmhR9CNfZvPv}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";exports.id=1253,exports.ids=[1253],exports.modules={71253:(a,b,c)=>{c.d(b,{PROVIDER_PRICING:()=>g,calculateCostFromTokens:()=>l,gH:()=>i,getPricingForModel:()=>j});let d=["cline-free/"],e={input:0,output:0,cached:0,reasoning:0,cache_creation:0},f={"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-5-5-thinking":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-high":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-medium":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-low":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-fable-5":{input:10,output:50,cached:1,reasoning:50,cache_creation:12.5},"claude-sonnet-5-5":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-thinking":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-high":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-medium":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-low":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"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:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5-mini":{input:.25,output:2,cached:.125,reasoning:2,cache_creation:.25},"gpt-5-codex":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5.1":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5.1-codex":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"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:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.2-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.3-codex-spark":{input:3,output:12,cached:.3,reasoning:12,cache_creation:3},"gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5,long_context:{threshold:272e3,input:5,output:22.5,cached:.5,reasoning:22.5,cache_creation:5}},"gpt-5.4-mini":{input:.75,output:4.5,cached:.075,reasoning:4.5,cache_creation:.75},"gpt-5.4-nano":{input:.2,output:1.25,cached:.02,reasoning:1.25,cache_creation:.2},"gpt-5.5":{input:5,output:30,cached:.5,reasoning:30,cache_creation:5,long_context:{threshold:272e3,input:10,output:45,cached:1,reasoning:45,cache_creation:10}},"gpt-5.6":{input:4,output:20,cached:.4,reasoning:20,cache_creation:5,long_context:{threshold:272e3,input:8,output:30,cached:.8,reasoning:30,cache_creation:10}},"gpt-5.6-luna":{input:.2,output:1.2,cached:.02,reasoning:1.2,cache_creation:.25,long_context:{threshold:272e3,input:.4,output:1.8,cached:.04,reasoning:1.8,cache_creation:.5}},"gpt-5.6-terra":{input:2,output:12,cached:.2,reasoning:12,cache_creation:2.5,long_context:{threshold:272e3,input:4,output:18,cached:.4,reasoning:18,cache_creation:5}},"gpt-5.6-sol":{input:4,output:20,cached:.4,reasoning:20,cache_creation:5,long_context:{threshold:272e3,input:8,output:30,cached:.8,reasoning:30,cache_creation:10}},"gpt-6-astra":{input:10,output:50,cached:1,reasoning:50,cache_creation:12.5,long_context:{threshold:272e3,input:20,output:75,cached:2,reasoning:75,cache_creation:25}},"gpt-6.1-sol":{input:2,output:10,cached:.1,reasoning:10,cache_creation:2.5},"gpt-6-sol":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"gpt-6-luna":{input:.1,output:.5,cached:.01,reasoning:.5,cache_creation:.125},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},"agnes-3.0-pro":{input:.45,output:.9,cached:.045},"gemini-4-argon":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.5-flash-lite":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.375},"gemini-3.5-flash-high":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"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},"qwen3-coder-plus":{input:.65,output:3.25,cached:.5,reasoning:3.25,cache_creation:1},"qwen3-coder-flash":{input:.195,output:.975,cached:.25,reasoning:.975,cache_creation:.5},"qwen3-coder-next":{input:.12,output:.8,cached:.06,reasoning:.8,cache_creation:.5},"qwen3.8-max":{input:2,output:6,cached:.25,cache_creation:2.5,reasoning:6},"qwen3.8-27b":{input:.4,output:3,cached:.05,reasoning:3},"qwen3.8-2.4t-a95b":{input:2,output:6,cached:.25,reasoning:6},"qwen3.7-max":{input:1.475,output:4.425,cached:.25,reasoning:4.425},"qwen3.7-plus":{input:.32,output:1.28,cached:.08,reasoning:1.28},"qwen3.6-plus":{input:.325,output:1.95,reasoning:1.95},"qwen3.6-flash":{input:.1875,output:1.125,cached:.01875,cache_creation:.2344,reasoning:1.125},"qwen3.6-35b-a3b":{input:.098,output:.95,reasoning:.95},"qwen3.6-27b":{input:.289,output:2.4,reasoning:2.4},"qwen3.6-max-preview":{input:1.027,output:6.162,reasoning:6.162},"qwen3.5-plus":{input:.3,output:1.8,reasoning:1.8},"qwen3.5-flash":{input:.065,output:.26,reasoning:.26},"qwen3.5-27b":{input:.195,output:1.56,reasoning:1.56},"qwen3.5-35b-a3b":{input:.14,output:1,reasoning:1},"qwen3.5-122b-a10b":{input:.26,output:2.08,reasoning:2.08},"qwen3.5-397b-a17b":{input:.3025,output:1.925,reasoning:1.925},"kimi-k3":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3},k3:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3},"kimi-k3.1-pro":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2},"kimi-k2.7-code":{input:.95,output:4,cached:.19,reasoning:4,cache_creation:.95},"kimi-k2.7-code-highspeed":{input:1.9,output:8,cached:.38,reasoning:8,cache_creation:1.9},"kimi-for-coding":{input:.95,output:4,cached:.19,reasoning:4,cache_creation:.95},"kimi-for-coding-highspeed":{input:1.9,output:8,cached:.38,reasoning:8,cache_creation:1.9},"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-k2.6":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"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-latest":{input:.04,output:.1,cached:.01,reasoning:.1,cache_creation:.04},"deepseek-v4-flash":{input:.05,output:.16,cached:.013,reasoning:.16,cache_creation:.05},"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},"glm-5.1":{input:.95,output:3.15,cached:.179,reasoning:3.15,cache_creation:.95},"glm-5.3-flash":{input:.15,output:.5,cached:.03,reasoning:.5,cache_creation:.15},"glm-5.3":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"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},"grok-4.5":{input:2,output:6,cached:.3,reasoning:6,cache_creation:2,long_context:{threshold:2e5,inclusive:!0,input:4,output:12,cached:.6,reasoning:12,cache_creation:4}},"grok-4.6":{input:2,output:6,cached:.5,reasoning:6,cache_creation:2,long_context:{threshold:2e5,inclusive:!0,input:4,output:12,cached:1,reasoning:12,cache_creation:4}},"muse-spark-1.3":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.2":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.1":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.3-contributor":{input:.1,output:.2,cached:.002,reasoning:.2,cache_creation:0},"muse-spark-1.2-contributor":{input:.1,output:.2,cached:.002,reasoning:.2,cache_creation:0},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}},g={gh:{"gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},meta:{"muse-spark-1.2":{input:1.25,output:4.25,cached:.15,reasoning:4.25},"muse-spark-1.1":{input:1.25,output:4.25,cached:.15,reasoning:4.25},"muse-spark-1.2-contributor":{input:.1,output:.2,cached:.002,reasoning:.2}},tokenrouter:{"MiniMax-M3":{input:.3,output:1.2,cached:.06,reasoning:1.2},"anthropic/claude-fable-5":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-haiku-4.5":{input:1,output:5,cached:.1,cache_creation:1.25,reasoning:5},"anthropic/claude-opus-4.5":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.6":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.7":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.7-fast":{input:30,output:150,cached:3,reasoning:150},"anthropic/claude-opus-4.8":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.8-fast":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-opus-5":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-5-fast":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-sonnet-4":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-4.5":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-4.6":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-5":{input:2,output:10,cached:.2,reasoning:10},"claude-opus-4-8-m-aws":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"deepseek/deepseek-v3.2":{input:.26,output:.38,cached:.13,reasoning:.38},"deepseek/deepseek-v4-flash":{input:.14,output:.28,cached:.0028,reasoning:.28},"deepseek/deepseek-v4-flash-0731":{input:.14,output:.28,cached:.0028,reasoning:.28},"deepseek/deepseek-v4-pro":{input:.435,output:.87,cached:.003625,reasoning:.87},"ex/gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15},"google/gemini-2.5-flash-image":{input:.3,output:2.5,reasoning:2.5},"google/gemini-3-flash-preview":{input:.5,output:3,cached:.05,cache_creation:.08333,reasoning:3},"google/gemini-3-pro-image-preview":{input:2,output:12,reasoning:12},"google/gemini-3.1-flash-image-preview":{input:.5,output:3,reasoning:3},"google/gemini-3.1-flash-lite-image":{input:.25,output:1.5,reasoning:1.5},"google/gemini-3.1-pro-preview":{input:2,output:12,cached:.2,cache_creation:.375,reasoning:12},"google/gemini-3.5-flash":{input:1.5,output:9,cached:.15,cache_creation:.08333,reasoning:9},"google/gemini-3.5-flash-lite":{input:.3,output:2.5,cached:.03,cache_creation:.08333,reasoning:2.5},"google/gemini-3.6-flash":{input:1.5,output:7.5,cached:.15,cache_creation:.08333,reasoning:7.5},"google/gemini-embedding-2":{input:1,output:6,cached:.1,reasoning:6},"google/gemma-4-26b-a4b-it":{input:.06,output:.33,reasoning:.33},"kling-3.0-turbo":{input:2.1,output:2.1,reasoning:2.1},"microsoft/mai-image-2.5":{input:5,output:47,reasoning:47},"minimax/minimax-m2-her":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.1":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.1-highspeed":{input:.6,output:2.4,cached:.06,reasoning:2.4},"minimax/minimax-m2.5":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.7":{input:.3,output:1.2,cached:.06,reasoning:1.2},"minimax/minimax-m2.7-highspeed":{input:.6,output:2.4,cached:.06,reasoning:2.4},"miromind/mirothinker-1-7-deepresearch":{input:4,output:25,reasoning:25},"miromind/mirothinker-1-7-deepresearch-mini":{input:1.25,output:10,reasoning:10},"mistralai/devstral-2512":{input:.4,output:2,cached:.04,reasoning:2},"mistralai/mistral-medium-3-5":{input:1.5,output:7.5,reasoning:7.5},"mistralai/mistral-small-2603":{input:.15,output:.6,cached:.015,reasoning:.6},"mistralai/voxtral-small-24b-2507":{input:.1,output:.3,cached:.01,reasoning:.3},"moonshotai/kimi-k2.5":{input:.6,output:3,cached:.1,reasoning:3},"moonshotai/kimi-k2.6":{input:.95,output:4,cached:.16,reasoning:4},"moonshotai/kimi-k2.7-code":{input:.9286,output:3.8571,cached:.1857,reasoning:3.8571},"moonshotai/kimi-k3":{input:3,output:15,cached:.3,reasoning:15},"nvidia/nemotron-3-super-120b-a12b":{input:.3,output:.9,cached:.1,reasoning:.9},"openai/gpt-4o-mini":{input:.15,output:.6,cached:.075,reasoning:.6},"openai/gpt-5":{input:1.25,output:10,cached:.125,reasoning:10},"openai/gpt-5-image":{input:10,output:40,cached:2.5,reasoning:40},"openai/gpt-5-image-mini":{input:2.5,output:8,cached:.25,reasoning:8},"openai/gpt-5-mini":{input:.25,output:2,cached:.025,reasoning:2},"openai/gpt-5.2":{input:1.75,output:14,cached:.175,reasoning:14},"openai/gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14},"openai/gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15},"openai/gpt-5.4-image-2":{input:8,output:30,cached:2,reasoning:30},"openai/gpt-5.4-mini":{input:.75,output:4.5,cached:.075,reasoning:4.5},"openai/gpt-5.4-nano":{input:.2,output:1.25,cached:.02,reasoning:1.25},"openai/gpt-5.4-pro":{input:30,output:180,reasoning:180},"openai/gpt-5.5":{input:5,output:30,cached:.5,reasoning:30},"openai/gpt-5.5-pro":{input:30,output:180,reasoning:180},"openai/gpt-5.6-luna":{input:.2,output:1.2,cached:.02,cache_creation:.25,reasoning:1.2},"openai/gpt-5.6-sol":{input:5,output:30,cached:.5,cache_creation:6.25,reasoning:30},"openai/gpt-5.6-terra":{input:2,output:12,cached:.2,cache_creation:2.5,reasoning:12},"openai/gpt-audio":{input:2.5,output:10,reasoning:10},"openai/gpt-audio-mini":{input:.6,output:2.4,reasoning:2.4},"openai/gpt-oss-120b":{input:.039,output:.18,reasoning:.18},"qwen/qwen3-coder-next":{input:.12,output:.75,cached:.06,reasoning:.75},"qwen/qwen3.5-122b-a10b":{input:.26,output:2.08,reasoning:2.08},"qwen/qwen3.5-35b-a3b":{input:.1625,output:1.3,reasoning:1.3},"qwen/qwen3.5-397b-a17b":{input:.39,output:2.34,reasoning:2.34},"qwen/qwen3.5-9b":{input:.1,output:.15,reasoning:.15},"qwen/qwen3.5-flash":{input:.1048,output:.4194,reasoning:.4194},"qwen/qwen3.5-plus-02-15":{input:.26,output:1.56,reasoning:1.56},"qwen/qwen3.6-plus":{input:.54,output:3.21,reasoning:3.21},"qwen/qwen3.7-max":{input:1.25,output:3.75,cached:.25,reasoning:3.75},"qwen/qwen3.7-plus":{input:.4,output:1.6,cached:.08,reasoning:1.6},"qwen/qwen3.8-max":{input:2,output:6,cached:.25,cache_creation:2.5,reasoning:6},"qwen3.5-omni-plus":{input:1,output:5.7143,reasoning:5.7143},"qwen3.6-flash":{input:.171,output:1.029,cached:.017,cache_creation:.214,reasoning:1.029},"sakana/fugu-ultra":{input:5,output:30,cached:.5,reasoning:30},"seed-2-0-code-preview-260328":{input:1,output:6,cached:.2,cache_creation:.008333,reasoning:6},"seed-2-0-lite-260428":{input:.5,output:4,cached:.1,cache_creation:.008333,reasoning:4},"seed-2-0-mini-260428":{input:.2,output:.8,cached:.04,cache_creation:.00833,reasoning:.8},"seed-2-0-pro-260328":{input:1,output:6,cached:.2,cache_creation:.008333,reasoning:6},"stepfun/step-3.5-flash":{input:.1,output:.3,cached:.02,reasoning:.3},"stepfun/step-3.7-flash":{input:.2,output:1.15,cached:.04,reasoning:1.15},"tencent/hy3-preview":{input:.066,output:.26,cached:.029,reasoning:.26},"x-ai/grok-4.1-fast":{input:.2,output:.5,cached:.05,reasoning:.5},"x-ai/grok-4.20-beta":{input:2,output:6,cached:.2,reasoning:6},"x-ai/grok-4.3":{input:1.25,output:2.5,cached:.2,reasoning:2.5},"x-ai/grok-4.5":{input:2,output:6,cached:.5,reasoning:6},"x-ai/grok-build-0.1":{input:1,output:2,cached:.2,reasoning:2},"xiaomi/mimo-v2-flash":{input:.1,output:.3,cached:.01,reasoning:.3},"xiaomi/mimo-v2-omni":{input:.4,output:2,cached:.08,reasoning:2},"xiaomi/mimo-v2-pro":{input:1,output:3,cached:.2,reasoning:3},"xiaomi/mimo-v2.5":{input:.4,output:2,cached:.08,reasoning:2},"xiaomi/mimo-v2.5-pro":{input:1,output:3,cached:.2,reasoning:3},"z-ai/glm-4.5-air":{input:.13,output:.85,cached:.025,reasoning:.85},"z-ai/glm-4.6":{input:.6,output:2.2,cached:.11,reasoning:2.2},"z-ai/glm-4.6v":{input:.3,output:.9,reasoning:.9},"z-ai/glm-4.7":{input:.6,output:2.2,cached:.11,reasoning:2.2},"z-ai/glm-5":{input:1,output:3.2,cached:.2,reasoning:3.2},"z-ai/glm-5-turbo":{input:1.2,output:4,cached:.24,reasoning:4},"z-ai/glm-5.1":{input:1.05,output:3.5,cached:.525,reasoning:3.5},"z-ai/glm-5.2":{input:1.4,output:4.4,cached:.26,reasoning:4.4},"z-ai/glm-5.3-free":{input:0,output:0,cached:0,reasoning:0}}},h=[{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:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex-none",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex-spark",pricing:{input:3,output:12,cached:.3,reasoning:12,cache_creation:3}},{pattern:"codex-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{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.6-*",pricing:{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5}},{pattern:"gpt-5.3-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"gpt-5.2-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"gpt-5.1-*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{pattern:"gpt-5-*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{pattern:"gpt-5*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{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-k3*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3}},{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-v4-flash*",pricing:{input:.04,output:.1,cached:.01,reasoning:.1,cache_creation:.04}},{pattern:"deepseek-v4-pro*",pricing:{input:.435,output:.87,cached:.003625,reasoning:.87,cache_creation:.435}},{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.3-flash*",pricing:{input:.15,output:.5,cached:.075,reasoning:.5,cache_creation:.15}},{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}},{pattern:"*muse-spark*contributor*",pricing:{input:.1,output:.2,cached:.002,reasoning:.3,cache_creation:.1}},{pattern:"*muse-spark*",pricing:{input:1.25,output:4.25,cached:.15,reasoning:6.375,cache_creation:1.25}},{pattern:"*muse-glimmer*",pricing:{input:.3,output:1.2,cached:.04,reasoning:1.8,cache_creation:.3}},{pattern:"*muse*",pricing:{input:1.25,output:4.25,cached:.15,reasoning:6.375,cache_creation:1.25}}];function i(a,b){let c=i._cache||(i._cache=new Map),d=c.get(a);return void 0===d&&(d=RegExp("^"+a.split("*").map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*")+"$","i"),c.set(a,d)),d.test(b)}function j(a,b){if(!b)return null;if(a&&g[a]?.[b])return g[a][b];if(function(a){if(!a)return!1;let b=String(a).toLowerCase();return d.some(a=>b.startsWith(a))}(b))return e;let c=b.includes("/")?b.split("/").pop():b;if(f[c])return f[c];if(f[b])return f[b];for(let{pattern:a,pricing:d}of h)if(i(a,c)||i(a,b))return d;return null}function k(a){if(null==a||""===a)return null;let b=Number(a);return Number.isFinite(b)&&b>=0?b:null}function l(a,b){if(!a)return 0;let c=k(a.cost_usd??a.cost_in_usd);if(null!==c)return c;let d=k(a.cost_in_usd_ticks);if(null!==d)return d/1e10;if(!b)return 0;let e=0,f=a.prompt_tokens||a.input_tokens||0,g=a.cached_tokens||a.cache_read_input_tokens||0,h=a.cache_creation_input_tokens||0;e+=Math.max(0,f-g-h)*(b.input/1e6),g>0&&(e+=g*((b.cached||b.input)/1e6)),e+=(a.completion_tokens||a.output_tokens||0)*(b.output/1e6);let i=a.reasoning_tokens||0;i>0&&(e+=i*((b.reasoning||b.output)/1e6)),h>0&&(e+=h*((b.cache_creation||b.input)/1e6));let j=Number(a.pricing_multiplier);return e*(Number.isFinite(j)&&j>0?j:1)}}};
1
+ "use strict";exports.id=1253,exports.ids=[1253],exports.modules={71253:(a,b,c)=>{c.d(b,{PROVIDER_PRICING:()=>g,calculateCostFromTokens:()=>l,gH:()=>i,getPricingForModel:()=>j});let d=["cline-free/"],e={input:0,output:0,cached:0,reasoning:0,cache_creation:0},f={"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-5-5-thinking":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-high":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-medium":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-opus-5-5-low":{input:4,output:20,cached:.2,reasoning:20,cache_creation:5},"claude-fable-5":{input:10,output:50,cached:1,reasoning:50,cache_creation:12.5},"claude-sonnet-5-5":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-thinking":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-high":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-medium":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5-5-low":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"claude-sonnet-5":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"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:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5-mini":{input:.25,output:2,cached:.125,reasoning:2,cache_creation:.25},"gpt-5-codex":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5.1":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"gpt-5.1-codex":{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25},"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:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.2-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75},"gpt-5.3-codex-spark":{input:3,output:12,cached:.3,reasoning:12,cache_creation:3},"gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5,long_context:{threshold:272e3,input:5,output:22.5,cached:.5,reasoning:22.5,cache_creation:5}},"gpt-5.4-mini":{input:.75,output:4.5,cached:.075,reasoning:4.5,cache_creation:.75},"gpt-5.4-nano":{input:.2,output:1.25,cached:.02,reasoning:1.25,cache_creation:.2},"gpt-5.5":{input:5,output:30,cached:.5,reasoning:30,cache_creation:5,long_context:{threshold:272e3,input:10,output:45,cached:1,reasoning:45,cache_creation:10}},"gpt-5.6":{input:4,output:20,cached:.4,reasoning:20,cache_creation:5,long_context:{threshold:272e3,input:8,output:30,cached:.8,reasoning:30,cache_creation:10}},"gpt-5.6-luna":{input:.2,output:1.2,cached:.02,reasoning:1.2,cache_creation:.25,long_context:{threshold:272e3,input:.4,output:1.8,cached:.04,reasoning:1.8,cache_creation:.5}},"gpt-5.6-terra":{input:2,output:12,cached:.2,reasoning:12,cache_creation:2.5,long_context:{threshold:272e3,input:4,output:18,cached:.4,reasoning:18,cache_creation:5}},"gpt-5.6-sol":{input:4,output:20,cached:.4,reasoning:20,cache_creation:5,long_context:{threshold:272e3,input:8,output:30,cached:.8,reasoning:30,cache_creation:10}},"gpt-6-astra":{input:10,output:50,cached:1,reasoning:50,cache_creation:12.5,long_context:{threshold:272e3,input:20,output:75,cached:2,reasoning:75,cache_creation:25}},"gpt-6.1-sol":{input:2,output:10,cached:.1,reasoning:10,cache_creation:2.5},"gpt-6.1-terra":{input:1,output:5,cached:.05,reasoning:5,cache_creation:1.25},"gpt-6-sol":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2.5},"gpt-6-luna":{input:.1,output:.5,cached:.01,reasoning:.5,cache_creation:.125},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},"agnes-3.0-pro":{input:.45,output:.9,cached:.045},"gemini-4-argon":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-4-argon-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.8-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.7-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-high":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-medium":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.6-flash-low":{input:1.5,output:7.5,cached:.15,reasoning:11.25,cache_creation:1.875},"gemini-3.5-flash-lite":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.375},"gemini-3.5-flash-high":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"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},"qwen3-coder-plus":{input:.65,output:3.25,cached:.5,reasoning:3.25,cache_creation:1},"qwen3-coder-flash":{input:.195,output:.975,cached:.25,reasoning:.975,cache_creation:.5},"qwen3-coder-next":{input:.12,output:.8,cached:.06,reasoning:.8,cache_creation:.5},"qwen3.8-max":{input:2,output:6,cached:.25,cache_creation:2.5,reasoning:6},"qwen3.8-27b":{input:.4,output:3,cached:.05,reasoning:3},"qwen3.8-2.4t-a95b":{input:2,output:6,cached:.25,reasoning:6},"qwen3.7-max":{input:1.475,output:4.425,cached:.25,reasoning:4.425},"qwen3.7-plus":{input:.32,output:1.28,cached:.08,reasoning:1.28},"qwen3.6-plus":{input:.325,output:1.95,reasoning:1.95},"qwen3.6-flash":{input:.1875,output:1.125,cached:.01875,cache_creation:.2344,reasoning:1.125},"qwen3.6-35b-a3b":{input:.098,output:.95,reasoning:.95},"qwen3.6-27b":{input:.289,output:2.4,reasoning:2.4},"qwen3.6-max-preview":{input:1.027,output:6.162,reasoning:6.162},"qwen3.5-plus":{input:.3,output:1.8,reasoning:1.8},"qwen3.5-flash":{input:.065,output:.26,reasoning:.26},"qwen3.5-27b":{input:.195,output:1.56,reasoning:1.56},"qwen3.5-35b-a3b":{input:.14,output:1,reasoning:1},"qwen3.5-122b-a10b":{input:.26,output:2.08,reasoning:2.08},"qwen3.5-397b-a17b":{input:.3025,output:1.925,reasoning:1.925},"kimi-k3":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3},k3:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3},"kimi-k3.1-pro":{input:2,output:10,cached:.2,reasoning:10,cache_creation:2},"kimi-k2.7-code":{input:.95,output:4,cached:.19,reasoning:4,cache_creation:.95},"kimi-k2.7-code-highspeed":{input:1.9,output:8,cached:.38,reasoning:8,cache_creation:1.9},"kimi-for-coding":{input:.95,output:4,cached:.19,reasoning:4,cache_creation:.95},"kimi-for-coding-highspeed":{input:1.9,output:8,cached:.38,reasoning:8,cache_creation:1.9},"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-k2.6":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"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-latest":{input:.04,output:.1,cached:.01,reasoning:.1,cache_creation:.04},"deepseek-v4-flash":{input:.05,output:.16,cached:.013,reasoning:.16,cache_creation:.05},"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},"glm-5.1":{input:.95,output:3.15,cached:.179,reasoning:3.15,cache_creation:.95},"glm-5.3-flash":{input:.15,output:.5,cached:.03,reasoning:.5,cache_creation:.15},"glm-5.3":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"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},"grok-4.5":{input:2,output:6,cached:.3,reasoning:6,cache_creation:2,long_context:{threshold:2e5,inclusive:!0,input:4,output:12,cached:.6,reasoning:12,cache_creation:4}},"grok-4.6":{input:2,output:6,cached:.5,reasoning:6,cache_creation:2,long_context:{threshold:2e5,inclusive:!0,input:4,output:12,cached:1,reasoning:12,cache_creation:4}},"muse-spark-1.3":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.2":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.1":{input:1.25,output:4.25,cached:.15,reasoning:4.25,cache_creation:0},"muse-spark-1.3-contributor":{input:.1,output:.2,cached:.002,reasoning:.2,cache_creation:0},"muse-spark-1.2-contributor":{input:.1,output:.2,cached:.002,reasoning:.2,cache_creation:0},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}},g={gh:{"gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},meta:{"muse-spark-1.2":{input:1.25,output:4.25,cached:.15,reasoning:4.25},"muse-spark-1.1":{input:1.25,output:4.25,cached:.15,reasoning:4.25},"muse-spark-1.2-contributor":{input:.1,output:.2,cached:.002,reasoning:.2}},tokenrouter:{"MiniMax-M3":{input:.3,output:1.2,cached:.06,reasoning:1.2},"anthropic/claude-fable-5":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-haiku-4.5":{input:1,output:5,cached:.1,cache_creation:1.25,reasoning:5},"anthropic/claude-opus-4.5":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.6":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.7":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.7-fast":{input:30,output:150,cached:3,reasoning:150},"anthropic/claude-opus-4.8":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-4.8-fast":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-opus-5":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"anthropic/claude-opus-5-fast":{input:10,output:50,cached:1,cache_creation:12.5,reasoning:50},"anthropic/claude-sonnet-4":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-4.5":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-4.6":{input:3,output:15,cached:.3,cache_creation:3.75,reasoning:15},"anthropic/claude-sonnet-5":{input:2,output:10,cached:.2,reasoning:10},"claude-opus-4-8-m-aws":{input:5,output:25,cached:.5,cache_creation:6.25,reasoning:25},"deepseek/deepseek-v3.2":{input:.26,output:.38,cached:.13,reasoning:.38},"deepseek/deepseek-v4-flash":{input:.14,output:.28,cached:.0028,reasoning:.28},"deepseek/deepseek-v4-flash-0731":{input:.14,output:.28,cached:.0028,reasoning:.28},"deepseek/deepseek-v4-pro":{input:.435,output:.87,cached:.003625,reasoning:.87},"ex/gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15},"google/gemini-2.5-flash-image":{input:.3,output:2.5,reasoning:2.5},"google/gemini-3-flash-preview":{input:.5,output:3,cached:.05,cache_creation:.08333,reasoning:3},"google/gemini-3-pro-image-preview":{input:2,output:12,reasoning:12},"google/gemini-3.1-flash-image-preview":{input:.5,output:3,reasoning:3},"google/gemini-3.1-flash-lite-image":{input:.25,output:1.5,reasoning:1.5},"google/gemini-3.1-pro-preview":{input:2,output:12,cached:.2,cache_creation:.375,reasoning:12},"google/gemini-3.5-flash":{input:1.5,output:9,cached:.15,cache_creation:.08333,reasoning:9},"google/gemini-3.5-flash-lite":{input:.3,output:2.5,cached:.03,cache_creation:.08333,reasoning:2.5},"google/gemini-3.6-flash":{input:1.5,output:7.5,cached:.15,cache_creation:.08333,reasoning:7.5},"google/gemini-embedding-2":{input:1,output:6,cached:.1,reasoning:6},"google/gemma-4-26b-a4b-it":{input:.06,output:.33,reasoning:.33},"kling-3.0-turbo":{input:2.1,output:2.1,reasoning:2.1},"microsoft/mai-image-2.5":{input:5,output:47,reasoning:47},"minimax/minimax-m2-her":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.1":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.1-highspeed":{input:.6,output:2.4,cached:.06,reasoning:2.4},"minimax/minimax-m2.5":{input:.3,output:1.2,cached:.03,reasoning:1.2},"minimax/minimax-m2.7":{input:.3,output:1.2,cached:.06,reasoning:1.2},"minimax/minimax-m2.7-highspeed":{input:.6,output:2.4,cached:.06,reasoning:2.4},"miromind/mirothinker-1-7-deepresearch":{input:4,output:25,reasoning:25},"miromind/mirothinker-1-7-deepresearch-mini":{input:1.25,output:10,reasoning:10},"mistralai/devstral-2512":{input:.4,output:2,cached:.04,reasoning:2},"mistralai/mistral-medium-3-5":{input:1.5,output:7.5,reasoning:7.5},"mistralai/mistral-small-2603":{input:.15,output:.6,cached:.015,reasoning:.6},"mistralai/voxtral-small-24b-2507":{input:.1,output:.3,cached:.01,reasoning:.3},"moonshotai/kimi-k2.5":{input:.6,output:3,cached:.1,reasoning:3},"moonshotai/kimi-k2.6":{input:.95,output:4,cached:.16,reasoning:4},"moonshotai/kimi-k2.7-code":{input:.9286,output:3.8571,cached:.1857,reasoning:3.8571},"moonshotai/kimi-k3":{input:3,output:15,cached:.3,reasoning:15},"nvidia/nemotron-3-super-120b-a12b":{input:.3,output:.9,cached:.1,reasoning:.9},"openai/gpt-4o-mini":{input:.15,output:.6,cached:.075,reasoning:.6},"openai/gpt-5":{input:1.25,output:10,cached:.125,reasoning:10},"openai/gpt-5-image":{input:10,output:40,cached:2.5,reasoning:40},"openai/gpt-5-image-mini":{input:2.5,output:8,cached:.25,reasoning:8},"openai/gpt-5-mini":{input:.25,output:2,cached:.025,reasoning:2},"openai/gpt-5.2":{input:1.75,output:14,cached:.175,reasoning:14},"openai/gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14},"openai/gpt-5.4":{input:2.5,output:15,cached:.25,reasoning:15},"openai/gpt-5.4-image-2":{input:8,output:30,cached:2,reasoning:30},"openai/gpt-5.4-mini":{input:.75,output:4.5,cached:.075,reasoning:4.5},"openai/gpt-5.4-nano":{input:.2,output:1.25,cached:.02,reasoning:1.25},"openai/gpt-5.4-pro":{input:30,output:180,reasoning:180},"openai/gpt-5.5":{input:5,output:30,cached:.5,reasoning:30},"openai/gpt-5.5-pro":{input:30,output:180,reasoning:180},"openai/gpt-5.6-luna":{input:.2,output:1.2,cached:.02,cache_creation:.25,reasoning:1.2},"openai/gpt-5.6-sol":{input:5,output:30,cached:.5,cache_creation:6.25,reasoning:30},"openai/gpt-5.6-terra":{input:2,output:12,cached:.2,cache_creation:2.5,reasoning:12},"openai/gpt-audio":{input:2.5,output:10,reasoning:10},"openai/gpt-audio-mini":{input:.6,output:2.4,reasoning:2.4},"openai/gpt-oss-120b":{input:.039,output:.18,reasoning:.18},"qwen/qwen3-coder-next":{input:.12,output:.75,cached:.06,reasoning:.75},"qwen/qwen3.5-122b-a10b":{input:.26,output:2.08,reasoning:2.08},"qwen/qwen3.5-35b-a3b":{input:.1625,output:1.3,reasoning:1.3},"qwen/qwen3.5-397b-a17b":{input:.39,output:2.34,reasoning:2.34},"qwen/qwen3.5-9b":{input:.1,output:.15,reasoning:.15},"qwen/qwen3.5-flash":{input:.1048,output:.4194,reasoning:.4194},"qwen/qwen3.5-plus-02-15":{input:.26,output:1.56,reasoning:1.56},"qwen/qwen3.6-plus":{input:.54,output:3.21,reasoning:3.21},"qwen/qwen3.7-max":{input:1.25,output:3.75,cached:.25,reasoning:3.75},"qwen/qwen3.7-plus":{input:.4,output:1.6,cached:.08,reasoning:1.6},"qwen/qwen3.8-max":{input:2,output:6,cached:.25,cache_creation:2.5,reasoning:6},"qwen3.5-omni-plus":{input:1,output:5.7143,reasoning:5.7143},"qwen3.6-flash":{input:.171,output:1.029,cached:.017,cache_creation:.214,reasoning:1.029},"sakana/fugu-ultra":{input:5,output:30,cached:.5,reasoning:30},"seed-2-0-code-preview-260328":{input:1,output:6,cached:.2,cache_creation:.008333,reasoning:6},"seed-2-0-lite-260428":{input:.5,output:4,cached:.1,cache_creation:.008333,reasoning:4},"seed-2-0-mini-260428":{input:.2,output:.8,cached:.04,cache_creation:.00833,reasoning:.8},"seed-2-0-pro-260328":{input:1,output:6,cached:.2,cache_creation:.008333,reasoning:6},"stepfun/step-3.5-flash":{input:.1,output:.3,cached:.02,reasoning:.3},"stepfun/step-3.7-flash":{input:.2,output:1.15,cached:.04,reasoning:1.15},"tencent/hy3-preview":{input:.066,output:.26,cached:.029,reasoning:.26},"x-ai/grok-4.1-fast":{input:.2,output:.5,cached:.05,reasoning:.5},"x-ai/grok-4.20-beta":{input:2,output:6,cached:.2,reasoning:6},"x-ai/grok-4.3":{input:1.25,output:2.5,cached:.2,reasoning:2.5},"x-ai/grok-4.5":{input:2,output:6,cached:.5,reasoning:6},"x-ai/grok-build-0.1":{input:1,output:2,cached:.2,reasoning:2},"xiaomi/mimo-v2-flash":{input:.1,output:.3,cached:.01,reasoning:.3},"xiaomi/mimo-v2-omni":{input:.4,output:2,cached:.08,reasoning:2},"xiaomi/mimo-v2-pro":{input:1,output:3,cached:.2,reasoning:3},"xiaomi/mimo-v2.5":{input:.4,output:2,cached:.08,reasoning:2},"xiaomi/mimo-v2.5-pro":{input:1,output:3,cached:.2,reasoning:3},"z-ai/glm-4.5-air":{input:.13,output:.85,cached:.025,reasoning:.85},"z-ai/glm-4.6":{input:.6,output:2.2,cached:.11,reasoning:2.2},"z-ai/glm-4.6v":{input:.3,output:.9,reasoning:.9},"z-ai/glm-4.7":{input:.6,output:2.2,cached:.11,reasoning:2.2},"z-ai/glm-5":{input:1,output:3.2,cached:.2,reasoning:3.2},"z-ai/glm-5-turbo":{input:1.2,output:4,cached:.24,reasoning:4},"z-ai/glm-5.1":{input:1.05,output:3.5,cached:.525,reasoning:3.5},"z-ai/glm-5.2":{input:1.4,output:4.4,cached:.26,reasoning:4.4},"z-ai/glm-5.3-free":{input:0,output:0,cached:0,reasoning:0}}},h=[{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:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex-none",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex-spark",pricing:{input:3,output:12,cached:.3,reasoning:12,cache_creation:3}},{pattern:"codex-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"*-codex",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{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.6-*",pricing:{input:2.5,output:15,cached:.25,reasoning:15,cache_creation:2.5}},{pattern:"gpt-5.3-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"gpt-5.2-*",pricing:{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}},{pattern:"gpt-5.1-*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{pattern:"gpt-5-*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{pattern:"gpt-5*",pricing:{input:1.25,output:10,cached:.625,reasoning:10,cache_creation:1.25}},{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-k3*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3}},{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-v4-flash*",pricing:{input:.04,output:.1,cached:.01,reasoning:.1,cache_creation:.04}},{pattern:"deepseek-v4-pro*",pricing:{input:.435,output:.87,cached:.003625,reasoning:.87,cache_creation:.435}},{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.3-flash*",pricing:{input:.15,output:.5,cached:.075,reasoning:.5,cache_creation:.15}},{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}},{pattern:"*muse-spark*contributor*",pricing:{input:.1,output:.2,cached:.002,reasoning:.3,cache_creation:.1}},{pattern:"*muse-spark*",pricing:{input:1.25,output:4.25,cached:.15,reasoning:6.375,cache_creation:1.25}},{pattern:"*muse-glimmer*",pricing:{input:.3,output:1.2,cached:.04,reasoning:1.8,cache_creation:.3}},{pattern:"*muse*",pricing:{input:1.25,output:4.25,cached:.15,reasoning:6.375,cache_creation:1.25}}];function i(a,b){let c=i._cache||(i._cache=new Map),d=c.get(a);return void 0===d&&(d=RegExp("^"+a.split("*").map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*")+"$","i"),c.set(a,d)),d.test(b)}function j(a,b){if(!b)return null;if(a&&g[a]?.[b])return g[a][b];if(function(a){if(!a)return!1;let b=String(a).toLowerCase();return d.some(a=>b.startsWith(a))}(b))return e;let c=b.includes("/")?b.split("/").pop():b;if(f[c])return f[c];if(f[b])return f[b];for(let{pattern:a,pricing:d}of h)if(i(a,c)||i(a,b))return d;return null}function k(a){if(null==a||""===a)return null;let b=Number(a);return Number.isFinite(b)&&b>=0?b:null}function l(a,b){if(!a)return 0;let c=k(a.cost_usd??a.cost_in_usd);if(null!==c)return c;let d=k(a.cost_in_usd_ticks);if(null!==d)return d/1e10;if(!b)return 0;let e=0,f=a.prompt_tokens||a.input_tokens||0,g=a.cached_tokens||a.cache_read_input_tokens||0,h=a.cache_creation_input_tokens||0;e+=Math.max(0,f-g-h)*(b.input/1e6),g>0&&(e+=g*((b.cached||b.input)/1e6)),e+=(a.completion_tokens||a.output_tokens||0)*(b.output/1e6);let i=a.reasoning_tokens||0;i>0&&(e+=i*((b.reasoning||b.output)/1e6)),h>0&&(e+=h*((b.cache_creation||b.input)/1e6));let j=Number(a.pricing_multiplier);return e*(Number.isFinite(j)&&j>0?j:1)}}};
@@ -23,7 +23,7 @@ ${k.join("\n")}`);a=l,b=a=>Array.isArray(a)?a.map(e):a,l={...a,run:(c,d=[])=>a.r
23
23
  AND promptTokens = ?
24
24
  AND completionTokens = ?
25
25
  AND COALESCE(endpoint, '') = ''
26
- ORDER BY id DESC LIMIT 1`,[a.timestamp,a.provider||null,a.model||null,a.connectionId||null,a.apiKey||null,f,g]):null;if(t)return void b.run("UPDATE usageHistory SET endpoint = ? WHERE id = ?",[a.endpoint,t.id]);b.run("INSERT INTO usageHistory(timestamp, provider, model, connectionId, apiKey, endpoint, promptTokens, completionTokens, cost, status, tokens, meta) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[a.timestamp,a.provider||null,a.model||null,a.connectionId||null,a.apiKey||null,a.endpoint||null,f,g,a.cost||0,a.status||"ok",(0,e.s)(c),(0,e.s)({requestedModel:a.requestedModel||null})]);let u=(i=(d=a.timestamp)?new Date(d):new Date,`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")}`),v=b.get("SELECT data FROM usageDaily WHERE dateKey = ?",[u]),w=v?(0,e.q)(v.data,{}):{requests:0,promptTokens:0,completionTokens:0,cost:0,byProvider:{},byModel:{},byAccount:{},byApiKey:{},byEndpoint:{}};j=a.tokens?.prompt_tokens||a.tokens?.input_tokens||0,k=a.tokens?.completion_tokens||a.tokens?.output_tokens||0,l=a.tokens?.cached_tokens||a.tokens?.cache_read_input_tokens||0,m=a.cost||0,n={promptTokens:j,completionTokens:k,cachedTokens:l,cost:m},w.requests=(w.requests||0)+1,w.promptTokens=(w.promptTokens||0)+j,w.completionTokens=(w.completionTokens||0)+k,w.cachedTokens=(w.cachedTokens||0)+l,w.cost=(w.cost||0)+m,w.byProvider||={},w.byModel||={},w.byAccount||={},w.byApiKey||={},w.byEndpoint||={},a.provider&&am(w.byProvider,a.provider,n),o=a.provider?`${a.model}|${a.provider}`:a.model,am(w.byModel,o,{...n,meta:{rawModel:a.model,provider:a.provider}}),a.connectionId&&am(w.byAccount,a.connectionId,{...n,meta:{rawModel:a.model,provider:a.provider}}),p=a.apiKey&&"string"==typeof a.apiKey?a.apiKey:"local-no-key",q=`${p}|${a.model}|${a.provider||"unknown"}`,am(w.byApiKey,q,{...n,meta:{rawModel:a.model,provider:a.provider,apiKey:a.apiKey||null}}),r=a.endpoint||"Unknown",s=`${r}|${a.model}|${a.provider||"unknown"}`,am(w.byEndpoint,s,{...n,meta:{endpoint:r,rawModel:a.model,provider:a.provider}}),b.run("INSERT INTO usageDaily(dateKey, data) VALUES(?, ?) ON CONFLICT(dateKey) DO UPDATE SET data = excluded.data",[u,(0,e.s)(w)]);let x=b.get("SELECT value FROM _meta WHERE key = 'totalRequestsLifetime'"),y=(x?parseInt(x.value,10):0)+1;b.run("INSERT INTO _meta(key, value) VALUES('totalRequestsLifetime', ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[String(y)]),h=!0}),h)&&(ah.items.push(a),ah.items.length>50&&(ah.items=ah.items.slice(-50)),al("update",250))}catch(a){console.error("Failed to save usage stats:",a)}}function au(a,b){if(null==b)return a.all("SELECT dateKey, data FROM usageDaily ORDER BY dateKey ASC");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 >= ? ORDER BY dateKey ASC",[e])}async function av(a="all"){let b=await (0,d.getAdapter)(),[{getProviderConnections:f},{getApiKeys:g},{getProviderNodes:h}]=await Promise.all([Promise.resolve().then(c.bind(c,5781)),Promise.resolve().then(c.bind(c,74452)),Promise.resolve().then(c.bind(c,1129))]),i=[];try{i=await f()}catch{}let j={};for(let a of i)j[a.id]=a.name||a.email||a.id;let k={};try{for(let a of(await h()))a.id&&a.name&&(k[a.id]=a.name)}catch{}let l=[];try{l=await g()}catch{}let m={};for(let a of l)a.key&&(m[a.key.trim()]={name:a.name,id:a.id,createdAt:a.createdAt});let n=b.all("SELECT timestamp, provider, model, tokens, status, meta FROM usageHistory ORDER BY id DESC LIMIT 100"),o=new Set,p={totalRequests:0,totalPromptTokens:0,totalCompletionTokens:0,totalCachedTokens:0,totalCost:0,byProvider:{},byModel:{},byAccount:{},byApiKey:{},byEndpoint:{},last10Minutes:[],pending:ae,activeRequests:[],recentRequests:n.map(ar).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!o.has(c)&&(o.add(c),!0)}).slice(0,20),errorProvider:Date.now()-af.ts<1e4?af.provider:""};for(let[a,b]of Object.entries(ae.byAccount))for(let[c,d]of Object.entries(b))if(d>0){let b=j[a]||`Account ${a.slice(0,8)}...`,e=c.match(/^(.*) \((.*)\)$/);p.activeRequests.push({model:e?e[1]:c,provider:e?e[2]:"unknown",account:b,count:d})}let q=new Date,r=new Date(6e4*Math.floor(q.getTime()/6e4)),s=new Date(r.getTime()-54e4),t={};for(let a=0;a<10;a++){let b=r.getTime()-(9-a)*6e4;t[b]={requests:0,promptTokens:0,completionTokens:0,cost:0},p.last10Minutes.push(t[b])}for(let a of b.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ? AND timestamp <= ?",[s.toISOString(),q.toISOString()])){let b=6e4*Math.floor(new Date(a.timestamp).getTime()/6e4);t[b]&&(t[b].requests++,t[b].promptTokens+=a.promptTokens||0,t[b].completionTokens+=a.completionTokens||0,t[b].cost+=a.cost||0)}if("24h"!==a&&"today"!==a){let c={"7d":7,"30d":30,"60d":60,"90d":90,"180d":180,"365d":365}[a]||null;for(let a of au(b,c)){let b=a.dateKey,c=(0,e.q)(a.data,{});for(let[a,b]of(p.totalPromptTokens+=c.promptTokens||0,p.totalCompletionTokens+=c.completionTokens||0,p.totalCachedTokens+=c.cachedTokens||0,p.totalCost+=c.cost||0,Object.entries(c.byProvider||{})))p.byProvider[a]||(p.byProvider[a]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),p.byProvider[a].requests+=b.requests||0,p.byProvider[a].promptTokens+=b.promptTokens||0,p.byProvider[a].completionTokens+=b.completionTokens||0,p.byProvider[a].cachedTokens+=b.cachedTokens||0,p.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=k[e]||e;p.byModel[f]||(p.byModel[f]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:c,provider:g,lastUsed:b}),p.byModel[f].requests+=d.requests||0,p.byModel[f].promptTokens+=d.promptTokens||0,p.byModel[f].completionTokens+=d.completionTokens||0,p.byModel[f].cachedTokens+=d.cachedTokens||0,p.byModel[f].cost+=d.cost||0,b>(p.byModel[f].lastUsed||"")&&(p.byModel[f].lastUsed=b)}for(let[a,d]of Object.entries(c.byAccount||{})){let c=j[a]||`Account ${a.slice(0,8)}...`,e=d.rawModel||"",f=d.provider||"",g=k[f]||f,h=`${e} (${f} - ${c})`;p.byAccount[h]||(p.byAccount[h]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:e,provider:g,connectionId:a,accountName:c,lastUsed:b}),p.byAccount[h].requests+=d.requests||0,p.byAccount[h].promptTokens+=d.promptTokens||0,p.byAccount[h].completionTokens+=d.completionTokens||0,p.byAccount[h].cachedTokens+=d.cachedTokens||0,p.byAccount[h].cost+=d.cost||0,b>(p.byAccount[h].lastUsed||"")&&(p.byAccount[h].lastUsed=b)}for(let[,a]of Object.entries(c.byApiKey||{})){let c=a.rawModel||"",d=a.provider||"",e=k[d]||d,f=a.apiKey?a.apiKey.trim():null,g=f?m[f]:null,h=ac(f),i=g?.name||(f?h||f.slice(0,8)+"...":"Local (No API Key)"),j=h||"local-no-key",l=`${ad(f,g)}|${c}|${d||"unknown"}`;p.byApiKey[l]||(p.byApiKey[l]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:c,provider:e,apiKeyMasked:h,keyName:i,apiKeyKey:j,lastUsed:b}),p.byApiKey[l].requests+=a.requests||0,p.byApiKey[l].promptTokens+=a.promptTokens||0,p.byApiKey[l].completionTokens+=a.completionTokens||0,p.byApiKey[l].cachedTokens+=a.cachedTokens||0,p.byApiKey[l].cost+=a.cost||0,b>(p.byApiKey[l].lastUsed||"")&&(p.byApiKey[l].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=k[f]||f;p.byEndpoint[a]||(p.byEndpoint[a]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,endpoint:c,rawModel:e,provider:g,lastUsed:b}),p.byEndpoint[a].requests+=d.requests||0,p.byEndpoint[a].promptTokens+=d.promptTokens||0,p.byEndpoint[a].completionTokens+=d.completionTokens||0,p.byEndpoint[a].cachedTokens+=d.cachedTokens||0,p.byEndpoint[a].cost+=d.cost||0,b>(p.byEndpoint[a].lastUsed||"")&&(p.byEndpoint[a].lastUsed=b)}}let d=Math.max(c?Date.now()-864e5*c:0,Date.now()-1728e5);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(p.byModel[c]&&new Date(b)>new Date(p.byModel[c].lastUsed)&&(p.byModel[c].lastUsed=b),a.connectionId){let c=j[a.connectionId]||`Account ${a.connectionId.slice(0,8)}...`,d=`${a.model} (${a.provider} - ${c})`;p.byAccount[d]&&new Date(b)>new Date(p.byAccount[d].lastUsed)&&(p.byAccount[d].lastUsed=b)}let d=a.apiKey&&"string"==typeof a.apiKey?`${ad(a.apiKey,m[a.apiKey])}|${a.model}|${a.provider||"unknown"}`:"local-no-key";p.byApiKey[d]&&new Date(b)>new Date(p.byApiKey[d].lastUsed)&&(p.byApiKey[d].lastUsed=b);let e=a.endpoint||"Unknown",f=`${e}|${a.model}|${a.provider||"unknown"}`;p.byEndpoint[f]&&new Date(b)>new Date(p.byEndpoint[f].lastUsed)&&(p.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,e.q)(a.tokens,{})||{},c=b.prompt_tokens||b.input_tokens||a.promptTokens||0,d=b.completion_tokens||b.output_tokens||a.completionTokens||0,f=b.cached_tokens||b.cache_read_input_tokens||0,g=a.cost||0,h=k[a.provider]||a.provider;p.totalPromptTokens+=c,p.totalCompletionTokens+=d,p.totalCachedTokens+=f,p.totalCost+=g,p.byProvider[a.provider]||(p.byProvider[a.provider]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),p.byProvider[a.provider].requests++,p.byProvider[a.provider].promptTokens+=c,p.byProvider[a.provider].completionTokens+=d,p.byProvider[a.provider].cachedTokens+=f,p.byProvider[a.provider].cost+=g;let i=a.provider?`${a.model} (${a.provider})`:a.model;if(p.byModel[i]||(p.byModel[i]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:h,lastUsed:a.timestamp}),p.byModel[i].requests++,p.byModel[i].promptTokens+=c,p.byModel[i].completionTokens+=d,p.byModel[i].cachedTokens+=f,p.byModel[i].cost+=g,new Date(a.timestamp)>new Date(p.byModel[i].lastUsed)&&(p.byModel[i].lastUsed=a.timestamp),a.connectionId){let b=j[a.connectionId]||`Account ${a.connectionId.slice(0,8)}...`,e=`${a.model} (${a.provider} - ${b})`;p.byAccount[e]||(p.byAccount[e]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:h,connectionId:a.connectionId,accountName:b,lastUsed:a.timestamp}),p.byAccount[e].requests++,p.byAccount[e].promptTokens+=c,p.byAccount[e].completionTokens+=d,p.byAccount[e].cachedTokens+=f,p.byAccount[e].cost+=g,new Date(a.timestamp)>new Date(p.byAccount[e].lastUsed)&&(p.byAccount[e].lastUsed=a.timestamp)}if(a.apiKey&&"string"==typeof a.apiKey){let b=a.apiKey.trim(),e=m[b],i=ac(b),j=e?.name||i||b.slice(0,8)+"...",k=`${ad(b,e)}|${a.model}|${a.provider||"unknown"}`;p.byApiKey[k]||(p.byApiKey[k]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:h,apiKeyMasked:i,keyName:j,apiKeyKey:i,lastUsed:a.timestamp});let l=p.byApiKey[k];l.requests++,l.promptTokens+=c,l.completionTokens+=d,l.cachedTokens+=f,l.cost+=g,new Date(a.timestamp)>new Date(l.lastUsed)&&(l.lastUsed=a.timestamp)}let l=a.endpoint||"Unknown",n=`${l}|${a.model}|${a.provider||"unknown"}`;p.byEndpoint[n]||(p.byEndpoint[n]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,endpoint:l,rawModel:a.model,provider:h,lastUsed:a.timestamp});let o=p.byEndpoint[n];o.requests++,o.promptTokens+=c,o.completionTokens+=d,o.cachedTokens+=f,o.cost+=g,new Date(a.timestamp)>new Date(o.lastUsed)&&(o.lastUsed=a.timestamp)}}return p.totalRequests=Object.values(p.byProvider).reduce((a,b)=>a+(b.requests||0),0),p}async function aw(a="7d",b){let c=await (0,d.getAdapter)(),f=Date.now(),g=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(b)?void 0:b;if("today"===a){var h;let a,b,d,e,i=g?(h=new Date(f),b=Date.UTC((a=new Intl.DateTimeFormat("en-US",{timeZone:g,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(h).reduce((a,b)=>(a[b.type]=b.value,a),{})).year,a.month-1,a.day,a.hour,a.minute,a.second)-h.getTime(),(d=new Date(h.getTime()+b)).setUTCHours(0,0,0,0),d.getTime()-b):((e=new Date).setHours(0,0,0,0),e.getTime()),j=i+864e5,k=Array.from({length:24},(a,b)=>({label:new Date(i+36e5*b).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1,...g?{timeZone:g}:{}}),tokens:0,cost:0,requests:0}));for(let a of c.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ?",[new Date(i).toISOString()])){let b=new Date(a.timestamp).getTime();if(b<i||b>=j)continue;let c=Math.floor((b-i)/36e5);c>=0&&c<24&&(k[c].tokens+=(a.promptTokens||0)+(a.completionTokens||0),k[c].cost+=a.cost||0,k[c].requests+=1)}return k}if("24h"===a){let a=f-864e5,b=Array.from({length:24},(b,c)=>({label:new Date(a+36e5*c).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1,...g?{timeZone:g}:{}}),tokens:0,cost:0,requests:0}));for(let d of c.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ?",[new Date(a).toISOString()])){let c=new Date(d.timestamp).getTime();if(c<a||c>f)continue;let e=Math.min(Math.floor((c-a)/36e5),23);b[e].tokens+=(d.promptTokens||0)+(d.completionTokens||0),b[e].cost+=d.cost||0,b[e].requests+=1}return b}let i=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric"});if("all"===a){let a=au(c,null);if(!a.length)return[];let b={};for(let c of a)b[c.dateKey]=(0,e.q)(c.data,{});let d=new Date(a[0].dateKey+"T00:00:00"),f=new Date;return f.setHours(0,0,0,0),Array.from({length:Math.max(1,Math.round((f-d)/864e5)+1)},(a,c)=>{let e=new Date(d);e.setDate(e.getDate()+c);let f=b[`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`];return{label:i(e),tokens:f?(f.promptTokens||0)+(f.completionTokens||0):0,cost:f&&f.cost||0,requests:f&&f.requests||0}})}let j={"7d":7,"30d":30,"60d":60,"90d":90,"180d":180,"365d":365}[a]||7,k=new Date,l=au(c,j),m={};for(let a of l)m[a.dateKey]=(0,e.q)(a.data,{});return Array.from({length:j},(a,b)=>{let c=new Date(k);c.setDate(c.getDate()-(j-1-b));let d=m[`${c.getFullYear()}-${String(c.getMonth()+1).padStart(2,"0")}-${String(c.getDate()).padStart(2,"0")}`];return{label:i(c),tokens:d?(d.promptTokens||0)+(d.completionTokens||0):0,cost:d&&d.cost||0,requests:d&&d.requests||0}})}async function ax(){}async function ay(a=200){try{let b=(await (0,d.getAdapter)()).all("SELECT timestamp, provider, model, connectionId, promptTokens, completionTokens, status, tokens, meta FROM usageHistory ORDER BY id DESC LIMIT ?",[a]);if(!b.length)return[];let f={};try{let{getProviderConnections:a}=await Promise.resolve().then(c.bind(c,5781));for(let b of(await a()))f[b.id]=b.name||b.email||""}catch{}return b.map(a=>{let b=function(a=new Date){let b=a=>String(a).padStart(2,"0");return`${b(a.getDate())}-${b(a.getMonth()+1)}-${a.getFullYear()} ${b(a.getHours())}:${b(a.getMinutes())}:${b(a.getSeconds())}`}(new Date(a.timestamp)),c=a.provider?.toUpperCase()||"-",d=(a.meta?(0,e.q)(a.meta,{}):{}).requestedModel||null,g=d&&d!==a.model?`${d} → ${a.model}`:a.model||"-",h=f[a.connectionId]||(a.connectionId?a.connectionId.slice(0,8):"-"),i=a.tokens?(0,e.q)(a.tokens,{}):{},j=a.promptTokens??i.prompt_tokens??"-",k=a.completionTokens??i.completion_tokens??"-";return`${b} | ${g} | ${c} | ${h} | ${j} | ${k} | ${a.status||"-"}`})}catch(a){return console.error("[usageRepo] getRecentLogs failed:",a.message),[]}}var az=c(16329);let aA=null,aB=0;function aC(a,b){let c=a[b];return void 0===c||""===c.trim()?null:"true"===c.trim().toLowerCase()}async function aD(){if(aA&&Date.now()-aB<5e3)return aA;try{let{getSettings:a}=await Promise.resolve().then(c.bind(c,42655)),b=await a();aA={enabled:function(a,b=process.env){let c=aC(b,"OBSERVABILITY_ENABLED");if(null!==c)return c;let d=aC(b,"ENABLE_REQUEST_LOGS");return null!==d?d:a?.enableObservability===!0}(b),maxRecords:b.observabilityMaxRecords||parseInt(process.env.OBSERVABILITY_MAX_RECORDS||String(200),10),batchSize:b.observabilityBatchSize||parseInt(process.env.OBSERVABILITY_BATCH_SIZE||String(20),10),flushIntervalMs:b.observabilityFlushIntervalMs||parseInt(process.env.OBSERVABILITY_FLUSH_INTERVAL_MS||String(5e3),10),maxJsonSize:1024*(b.observabilityMaxJsonSize||parseInt(process.env.OBSERVABILITY_MAX_JSON_SIZE||"5",10))}}catch{aA={enabled:!1,maxRecords:200,batchSize:20,flushIntervalMs:5e3,maxJsonSize:5120}}return aB=Date.now(),aA}let aE=[],aF=null,aG=!1;function aH(a,b){let c=JSON.stringify(a||{});return c.length>b?{_truncated:!0,_originalSize:c.length,_preview:c.substring(0,200)}:a||{}}function aI(a,b){let c=aH(a,b);return c?._truncated&&a&&"object"==typeof a&&void 0!==a.tools?{...c,tools:aH(a.tools,65536)}:c}async function aJ(){if(!aG&&0!==aE.length){aG=!0;try{for(;aE.length>0;){let a=aE.splice(0,aE.length),b=await (0,d.getAdapter)(),c=await aD();b.transaction(()=>{for(let d of a){d.id||(d.id=function(a){let b=new Date().toISOString(),c=Math.random().toString(36).substring(2,8),d=a?a.replace(/[^a-zA-Z0-9-]/g,"-"):"unknown";return`${b}-${c}-${d}`}(d.model)),d.timestamp||(d.timestamp=new Date().toISOString()),d.request?.headers&&(d.request.headers=function(a){if(!a||"object"!=typeof a)return{};let b=["authorization","x-api-key","cookie","token","api-key"],c={...a};for(let a of Object.keys(c))b.some(b=>a.toLowerCase().includes(b))&&delete c[a];return c}(d.request.headers));let a={id:d.id,provider:d.provider||null,model:d.model||null,connectionId:d.connectionId||null,apiKey:d.apiKey||null,timestamp:d.timestamp,status:d.status||null,latency:d.latency||{},tokens:d.tokens||{},request:aI(d.request,c.maxJsonSize),providerRequest:aI(d.providerRequest,c.maxJsonSize),providerResponse:aH(d.providerResponse,c.maxJsonSize),response:aH(d.response,c.maxJsonSize),pxpipe:d.pxpipe||void 0,convoy:d.convoy||void 0};b.run("INSERT INTO requestDetails(id, timestamp, provider, model, connectionId, status, data) VALUES(?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET timestamp = excluded.timestamp, provider = excluded.provider, model = excluded.model, connectionId = excluded.connectionId, status = excluded.status, data = excluded.data",[a.id,a.timestamp,a.provider,a.model,a.connectionId,a.status,(0,e.s)(a)])}}),setImmediate(()=>{aK(b,c.maxRecords).catch(a=>console.error("[requestDetailsRepo] async prune failed:",a))})}}catch(a){console.error("[requestDetailsRepo] Batch write failed:",a)}finally{aG=!1}}}async function aK(a,b){try{let c=a.get("SELECT COUNT(*) as c FROM requestDetails");c&&c.c>b&&a.run("DELETE FROM requestDetails WHERE id IN (SELECT id FROM requestDetails ORDER BY timestamp ASC LIMIT ?)",[c.c-b])}catch(a){console.error("[requestDetailsRepo] pruneOldRecords error:",a)}}async function aL(a){let b=await aD();b.enabled&&(aE.push(a),aE.length>=b.batchSize?(aF&&(clearTimeout(aF),aF=null),aJ().catch(a=>console.error("[requestDetailsRepo] flush err:",a))):aF||(aF=setTimeout(()=>{aF=null,aJ().catch(()=>{})},b.flushIntervalMs)))}async function aM(a={}){let b=await (0,d.getAdapter)(),c=[],f=[];a.provider&&(c.push("provider = ?"),f.push(a.provider)),a.model&&(c.push("model = ?"),f.push(a.model)),a.connectionId&&(c.push("connectionId = ?"),f.push(a.connectionId)),a.status&&(c.push("status = ?"),f.push(a.status)),a.startDate&&(c.push("timestamp >= ?"),f.push(new Date(a.startDate).toISOString())),a.endDate&&(c.push("timestamp <= ?"),f.push(new Date(a.endDate).toISOString()));let g=c.length?`WHERE ${c.join(" AND ")}`:"",h=b.get(`SELECT COUNT(*) as c FROM requestDetails ${g}`,f),i=h?h.c:0,j=a.page||1,k=a.pageSize||50,l=Math.ceil(i/k);return{details:b.all(`SELECT data FROM requestDetails ${g} ORDER BY timestamp DESC LIMIT ? OFFSET ?`,[...f,k,(j-1)*k]).map(a=>(0,e.q)(a.data,{})),pagination:{page:j,pageSize:k,totalItems:i,totalPages:l,hasNext:j<l,hasPrev:j>1}}}async function aN(){return(await (0,d.getAdapter)()).all("SELECT DISTINCT provider FROM requestDetails WHERE provider IS NOT NULL ORDER BY provider ASC").map(a=>a.provider)}async function aO(a=null){let b=await (0,d.getAdapter)();return(a?b.all("SELECT DISTINCT model FROM requestDetails WHERE model IS NOT NULL AND provider = ? ORDER BY model ASC",[a]):b.all("SELECT DISTINCT model FROM requestDetails WHERE model IS NOT NULL ORDER BY model ASC")).map(a=>a.model)}let aP=async()=>{aF&&(clearTimeout(aF),aF=null),aE.length>0&&await aJ()};(0,az.Bb)(aP);let aQ=new Set(["today","24h","7d","30d","60d","365d"]);function aR(a){return`${a.getFullYear()}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")}`}function aS(){return{requestsObserved:0,rtk:{requestsWithHits:0,hits:0,bytesBefore:0,bytesAfter:0,bytesSaved:0},headroom:{compressed:0,skipped:0,disabled:0,tokensBefore:0,tokensAfter:0,tokensSaved:0,bodyBytesBefore:0,bodyBytesAfter:0,messageBytesBefore:0,messageBytesAfter:0,phantomSavings:0,skipReasons:{}},totals:{actualBytesSaved:0}}}async function aT(a="7d"){if(!aQ.has(a))throw Error(`Invalid period: ${a}`);let b=await (0,d.getAdapter)(),c={today:1,"24h":1,"7d":7,"30d":30,"60d":60,"365d":365}[a],f=function(a,b){if(!b)return a.all("SELECT dateKey, data FROM tokenSaverDaily");let c=new Date;c.setDate(c.getDate()-(b-1));let d=aR(c);return a.all("SELECT dateKey, data FROM tokenSaverDaily WHERE dateKey >= ?",[d])}(b,c),g=aS();for(let a of f){let b=(0,e.q)(a.data,aS());if(!function(a,b){a.requestsObserved+=b.requestsObserved,a.rtk.requestsWithHits+=b.rtk.requestsWithHits,a.rtk.hits+=b.rtk.hits,a.rtk.bytesBefore+=b.rtk.bytesBefore,a.rtk.bytesAfter+=b.rtk.bytesAfter,a.rtk.bytesSaved+=b.rtk.bytesSaved;let c=a.headroom;if(c.compressed+=b.headroom.compressed,c.skipped+=b.headroom.skipped,c.disabled+=b.headroom.disabled,c.tokensBefore+=b.headroom.tokensBefore,c.tokensAfter+=b.headroom.tokensAfter,c.tokensSaved+=b.headroom.tokensSaved,c.bodyBytesBefore+=b.headroom.bodyBytesBefore,c.bodyBytesAfter+=b.headroom.bodyBytesAfter,c.messageBytesBefore+=b.headroom.messageBytesBefore,c.messageBytesAfter+=b.headroom.messageBytesAfter,c.phantomSavings+=b.headroom.phantomSavings,b.headroom.skipReasonKey){let a=b.headroom.skipReasonKey;c.skipReasons[a]=(c.skipReasons[a]||0)+1}let d=a.rtk.bytesSaved||0,e=Math.max(0,(a.headroom.bodyBytesBefore||0)-(a.headroom.bodyBytesAfter||0));a.totals.actualBytesSaved=d+e}(g,{state:"compressed",requestsObserved:b.requestsObserved||0,rtk:b.rtk||{},headroom:{...b.headroom,compressed:b.headroom?.compressed||0,skipped:b.headroom?.skipped||0,disabled:b.headroom?.disabled||0,tokensBefore:b.headroom?.tokensBefore||0,tokensAfter:b.headroom?.tokensAfter||0,tokensSaved:b.headroom?.tokensSaved||0,bodyBytesBefore:b.headroom?.bodyBytesBefore||0,bodyBytesAfter:b.headroom?.bodyBytesAfter||0,messageBytesBefore:b.headroom?.messageBytesBefore||0,messageBytesAfter:b.headroom?.messageBytesAfter||0,phantomSavings:b.headroom?.phantomSavings||0,skipReasonKey:null}}),b.headroom?.skipReasons)for(let[a,c]of Object.entries(b.headroom.skipReasons))g.headroom.skipReasons[a]=(g.headroom.skipReasons[a]||0)+(c||0)}let h=Object.fromEntries(f.map(a=>[a.dateKey,(0,e.q)(a.data,aS())])),i=Array.from({length:c},(a,b)=>{let d=new Date;d.setHours(0,0,0,0),d.setDate(d.getDate()-(c-1-b));let e=h[aR(d)]||aS();return{dateKey:aR(d),actualBytesSaved:Math.max(0,(e.rtk?.bytesSaved||0)+((e.headroom?.bodyBytesBefore||0)-(e.headroom?.bodyBytesAfter||0))),rtkBytesSaved:e.rtk?.bytesSaved||0,headroomBytesSaved:Math.max(0,(e.headroom?.bodyBytesBefore||0)-(e.headroom?.bodyBytesAfter||0)),headroomCompressed:e.headroom?.compressed||0}});return{requestsObserved:g.requestsObserved,rtk:g.rtk,headroom:g.headroom,totals:g.totals,dailyPoints:i}}var aU=c(57473);async function aV(){let a=await (0,d.getAdapter)(),{exportSettings:b}=await Promise.resolve().then(c.bind(c,42655)),g={settings:await b(),providerConnections:a.all("SELECT * FROM providerConnections").map(a=>({...(0,e.q)(a.data,{}),id:a.id,provider:a.provider,authType:a.authType,name:a.name,email:a.email,priority:a.priority,isActive:1===a.isActive,createdAt:a.createdAt,updatedAt:a.updatedAt})),providerNodes:a.all("SELECT * FROM providerNodes").map(a=>({...(0,e.q)(a.data,{}),id:a.id,type:a.type,name:a.name,createdAt:a.createdAt,updatedAt:a.updatedAt})),proxyPools:a.all("SELECT * FROM proxyPools").map(a=>({...(0,e.q)(a.data,{}),id:a.id,isActive:1===a.isActive,testStatus:a.testStatus,createdAt:a.createdAt,updatedAt:a.updatedAt})),apiKeys:a.all("SELECT * FROM apiKeys").map(a=>({id:a.id,key:a.key,name:a.name,machineId:a.machineId,isActive:1===a.isActive,expiresAt:a.expiresAt||null,tokenLimit:null==a.tokenLimit?null:Number(a.tokenLimit),tokensUsed:Number(a.tokensUsed||0),tokensReserved:Number(a.tokensReserved||0),allowedModels:(0,e.q)(a.allowedModels,null),scope:a.scope?(0,e.q)(a.scope,null):null,createdAt:a.createdAt,access:(0,f.xE)(a.accessRestricted,a.accessAllow)})),combos:a.all("SELECT * FROM combos").map(a=>({id:a.id,name:a.name,kind:a.kind,models:(0,e.q)(a.models,[]),config:a.config?(0,e.q)(a.config,null):void 0,createdAt:a.createdAt,updatedAt:a.updatedAt})),modelAliases:{},customModels:[],mitmAlias:{},pricing:{},modelCaps:{}};for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'modelAliases'"))g.modelAliases[b.key]=(0,e.q)(b.value);for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'customModels'"))g.customModels.push((0,e.q)(b.value));for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'mitmAlias'"))g.mitmAlias[b.key]=(0,e.q)(b.value);for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'pricing'"))g.pricing[b.key]=(0,e.q)(b.value);for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'modelCaps'"))g.modelCaps[b.key]=(0,e.q)(b.value);return g}async function aW(a){if(!a||"object"!=typeof a||Array.isArray(a))throw Error("Invalid database payload");let b=await (0,d.getAdapter)();return b.transaction(()=>{for(let c of(b.run("DELETE FROM settings"),b.run("DELETE FROM providerConnections"),b.run("DELETE FROM providerNodes"),b.run("DELETE FROM proxyPools"),b.run("DELETE FROM apiKeys"),b.run("DELETE FROM combos"),b.run("DELETE FROM kv WHERE scope IN ('modelAliases', 'customModels', 'mitmAlias', 'pricing', 'modelCaps')"),a.settings&&b.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(a.settings)]),a.providerConnections||[])){let{id:a,provider:d,authType:f,name:g,email:h,priority:i,isActive:j,createdAt:k,updatedAt:l,...m}=c;b.run("INSERT OR REPLACE INTO providerConnections(id, provider, authType, name, email, priority, isActive, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[a,d,f||"oauth",g||null,h||null,i||null,+(!1!==j),(0,e.s)(m),k||new Date().toISOString(),l||new Date().toISOString()])}for(let c of a.providerNodes||[]){let{id:a,type:d,name:f,createdAt:g,updatedAt:h,...i}=c;b.run("INSERT OR REPLACE INTO providerNodes(id, type, name, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[a,d||null,f||null,(0,e.s)(i),g||new Date().toISOString(),h||new Date().toISOString()])}for(let c of a.proxyPools||[]){let{id:a,isActive:d,testStatus:f,createdAt:g,updatedAt:h,...i}=c;b.run("INSERT OR REPLACE INTO proxyPools(id, isActive, testStatus, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[a,+(!1!==d),f||"unknown",(0,e.s)(i),g||new Date().toISOString(),h||new Date().toISOString()])}for(let c of a.apiKeys||[]){let a=g.M0;if(void 0!==c.access){let b=(0,f.M7)(c.access);if(!b.ok)throw Error(`apiKeys ${c.id}: ${b.error}`);a=b.value}let d=(0,f.aB)(a);b.run("INSERT OR REPLACE INTO apiKeys(id, key, name, machineId, isActive, expiresAt, tokenLimit, tokensUsed, tokensReserved, allowedModels, createdAt, accessRestricted, accessAllow) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[c.id,c.key,c.name||null,c.machineId||null,+(!1!==c.isActive),c.expiresAt||null,null==c.tokenLimit?null:Number(c.tokenLimit),Number(c.tokensUsed||0),Number(c.tokensReserved||0),(0,e.s)(c.allowedModels||null),c.createdAt||new Date().toISOString(),d.accessRestricted,d.accessAllow])}for(let c of a.combos||[])b.run("INSERT OR REPLACE INTO combos(id, name, kind, models, config, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?, ?)",[c.id,c.name,c.kind||null,(0,e.s)(c.models||[]),c.config?(0,e.s)(c.config):null,c.createdAt||new Date().toISOString(),c.updatedAt||new Date().toISOString()]);for(let[c,d]of Object.entries(a.modelAliases||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('modelAliases', ?, ?)",[c,(0,e.s)(d)]);for(let c of a.customModels||[]){let a=`${c.providerAlias}|${c.id}|${c.type||"llm"}`;b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('customModels', ?, ?)",[a,(0,e.s)(c)])}for(let[c,d]of Object.entries(a.mitmAlias||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('mitmAlias', ?, ?)",[c,(0,e.s)(d||{})]);for(let[c,d]of Object.entries(a.pricing||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('pricing', ?, ?)",[c,(0,e.s)(d||{})]);for(let[c,d]of Object.entries(a.modelCaps||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('modelCaps', ?, ?)",[c,(0,e.s)(d||{})])}),await aV()}},16329:(a,b,c)=>{c.d(b,{Bb:()=>e,Om:()=>g});let d=globalThis.__9routerShutdownState??={flushers:new Set,priorities:new Map,shutdownPromise:null,signalHandler:null,beforeExitHandler:null};function e(a,b=0){if("function"!=typeof a)throw TypeError("shutdown flusher must be a function");return d.flushers.add(a),d.priorities.set(a,Number.isFinite(b)?b:0),d.signalHandler??=()=>g(0),d.beforeExitHandler??=()=>f(),process.listeners("SIGINT").includes(d.signalHandler)||process.once("SIGINT",d.signalHandler),process.listeners("SIGTERM").includes(d.signalHandler)||process.once("SIGTERM",d.signalHandler),process.listeners("beforeExit").includes(d.beforeExitHandler)||process.once("beforeExit",d.beforeExitHandler),()=>{d.flushers.delete(a),d.priorities.delete(a)}}function f(){return d.shutdownPromise||(d.shutdownPromise=(async()=>{let a=new Map;for(let b of d.flushers){let c=d.priorities.get(b)??0;a.has(c)||a.set(c,[]),a.get(c).push(b)}for(let b of[...a.keys()].sort((a,b)=>a-b))for(let c of(await Promise.allSettled(a.get(b).map(a=>Promise.resolve().then(a)))))"rejected"===c.status&&console.error("[Shutdown] flusher failed:",c.reason?.message||c.reason)})()),d.shutdownPromise}async function g(a=0){await f(),process.exit(a)}},22846:(a,b,c)=>{c.d(b,{U:()=>f});var d=c(5684),e=c(644);function f(a){return{async get(b,c=null){let f=(await (0,d.getAdapter)()).get("SELECT value FROM kv WHERE scope = ? AND key = ?",[a,b]);return f?(0,e.q)(f.value,c):c},async getAll(){let b=(await (0,d.getAdapter)()).all("SELECT key, value FROM kv WHERE scope = ?",[a]),c={};for(let a of b)c[a.key]=(0,e.q)(a.value);return c},async set(b,c){(await (0,d.getAdapter)()).run("INSERT INTO kv(scope, key, value) VALUES(?, ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[a,b,(0,e.s)(c)])},async setMany(b){let c=await (0,d.getAdapter)();c.transaction(()=>{for(let[d,f]of Object.entries(b))c.run("INSERT INTO kv(scope, key, value) VALUES(?, ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[a,d,(0,e.s)(f)])})},async remove(b){(await (0,d.getAdapter)()).run("DELETE FROM kv WHERE scope = ? AND key = ?",[a,b])},async clear(){(await (0,d.getAdapter)()).run("DELETE FROM kv WHERE scope = ?",[a])}}}},29485:(a,b,c)=>{c.d(b,{KC:()=>t,OA:()=>p,PROVIDER_MODELS:()=>e.vq,SM:()=>j,V2:()=>q,Xg:()=>s,cY:()=>u,ez:()=>o,fZ:()=>k,kt:()=>r,ux:()=>n});var d=c(49476),e=c(39141),f=c(6595),g=c(8382),h=c(19956);let i=a=>!a||["oc","opencode","ocg","opencode-go","ocz","opencode-zen"].includes(a);function j(a){return e.vq[a]||[]}function k(a){let b=e.vq[a];return b?.[0]?.id||null}let l=new Set(["kr","kiro"]);function m(a,b,c){if(!a)return;let d="string"==typeof b?b.replace(/\([^()]+\)\s*$/,"").trim():b,e=a.find(a=>a.id===b||a.id===d);if(e)return e;if(!l.has(c))return;let g=(0,f.Kq)(d);if(g!==d)return a.find(a=>a.id===g)}function n(a,b){if(i(a)&&(0,g.nh)(b))return h.h.OPENAI_RESPONSES;let c=e.vq[a];if(!c)return null;let d=m(c,b,a);return d?(0,f.gr)(d):i(a)&&(0,g.i8)(b)?.targetFormat||null}function o(a,b){let c=e.vq[a];if(!c)return null;let d=m(c,b,a);return d?(0,f.ec)(d):i(a)?(0,g.i8)(b)?.supportedFormats||[h.h.OPENAI]:null}function p(a,b){let c=e.vq[a];if(!c)return null;let d=m(c,b,a);return d?.kind||d?.type||null}function q(a,b){return m(e.vq[a],b,a)||null}function r(a,b,c=null){let d="string"==typeof b?b.match(/\([^()]+\)\s*$/):null,f=d?d[0]:"",h=f?b.slice(0,d.index).trim():b,i=e.vq[a],j=f?f.slice(1,-1).trim().toLowerCase():"",k="xhigh"===j||"max"===j?"high":"minimal"===j?"low":j;if(!k&&c&&"object"==typeof c){let a=c.reasoning_effort||c.output_config?.effort||("object"==typeof c.reasoning?c.reasoning?.effort:null);if("string"==typeof a&&a){let b=a.toLowerCase().trim();k="xhigh"===b||"max"===b?"high":"minimal"===b?"low":b}else if(c.thinking&&"object"==typeof c.thinking){let a=Number(c.thinking.budget_tokens);Number.isFinite(a)&&a>0&&(k=a>16384?"high":a<=4096?"low":"medium")}}let l=k?`${h}-${k}`:null,n=l&&m(i,l,a)||m(i,h,a),o=n?.upstreamModelId||n?.id;if(o){let a=o.match(/\([^()]+\)\s*$/),b=a?.[0]||"";return(b?o.slice(0,a.index).trim():o)+(f||(b&&k?`(${k})`:b))}return"cx"===a&&"string"==typeof h&&h.endsWith(g.d5)?h.slice(0,-g.d5.length)+f:h+f}Object.fromEntries(d.default.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias]));let s=Object.fromEntries(d.default.map(a=>[a.id,a.alias||a.id]));function t(a){let b=s[a]||a;return e.vq[b]||[]}function u(a,b){return(0,f.g5)(m(e.vq[a],b,a))}},29686:(a,b,c)=>{c.d(b,{MH:()=>h,Uw:()=>g,s7:()=>i});var d=c(40615);function e(a){return!a||"object"!=typeof a}function f(a){return a&&"string"==typeof a?(0,d.rs)(a):a}function g(a,b,c){if(!function(a,b){if(e(a))return!0;let c=a.providers;if(!Array.isArray(c))return!0;let d=f(b);return c.some(a=>f(a)===d)}(a,b))return!1;if(e(a))return!0;let d=a.models;if(!Array.isArray(d)||0===d.length)return!0;let g=f(b);return d.some(a=>{if("string"!=typeof a||!a.includes("/"))return!1;let b=a.indexOf("/"),d=f(a.slice(0,b)),e=a.slice(b+1);return d===g&&e===c})}function h(a,b){if(e(a))return!0;if("string"!=typeof b||!b.includes("/"))return!1;let c=b.indexOf("/");return g(a,b.slice(0,c),b.slice(c+1))}function i(a){if(null==a||"object"!=typeof a)return null;let b={};return(Array.isArray(a.providers)&&(b.providers=a.providers.filter(a=>"string"==typeof a&&""!==a.trim())),Array.isArray(a.models)&&(b.models=a.models.filter(a=>"string"==typeof a&&a.includes("/"))),"providers"in b||"models"in b)?b:null}},33666:(a,b,c)=>{c.d(b,{M7:()=>h,ZC:()=>e,aB:()=>g,xE:()=>f});var d=c(38606);function e(a){if(!Array.isArray(a))return[];let b=new Set,c=[];for(let d of a){if("string"!=typeof d)continue;let a=d.trim();if(!a)continue;let e=a.toLowerCase();b.has(e)||(b.add(e),c.push(a))}return c}function f(a,b){if(1!==a&&!0!==a)return{restricted:!1,allow:[]};let c=[];if("string"==typeof b&&b)try{c=JSON.parse(b)}catch{c=[]}return{restricted:!0,allow:e(c)}}function g(a){let b=a||d.M0;return{accessRestricted:+!!b.restricted,accessAllow:JSON.stringify(b.restricted?e(b.allow):[])}}function h(a){if(!a||"object"!=typeof a||Array.isArray(a))return{ok:!1,error:"access must be an object { restricted, allow }"};let b=Object.keys(a).filter(a=>"restricted"!==a&&"allow"!==a);if(b.length)return{ok:!1,error:`access: unexpected field(s) ${b.join(", ")}`};if("boolean"!=typeof a.restricted)return{ok:!1,error:"access.restricted must be a boolean"};let c=void 0===a.allow?[]:a.allow;return!Array.isArray(c)||c.some(a=>"string"!=typeof a)?{ok:!1,error:"access.allow must be an array of strings"}:c.length>d.lO?{ok:!1,error:`access.allow has more than ${d.lO} entries`}:c.some(a=>a.trim().length>d.AM)?{ok:!1,error:`access.allow entries must be at most ${d.AM} characters`}:{ok:!0,value:{restricted:a.restricted,allow:e(c)}}}},38606:(a,b,c)=>{c.d(b,{AM:()=>e,Cq:()=>j,HR:()=>h,M0:()=>f,WR:()=>i,YR:()=>g,lO:()=>d});let d=200,e=256,f=Object.freeze({restricted:!1,allow:Object.freeze([])}),g=Object.freeze(["webSearch","webFetch"]);function h(a){if("string"!=typeof a||!a.endsWith("/*"))return null;let b=a.slice(0,-2).trim();return b&&!b.includes("/")?b:null}let i="combo";function j(a){return`This API key is not allowed to use model "${a}"`}},40615:(a,b,c)=>{c.d(b,{AI_PROVIDERS:()=>u,js:()=>B,DI:()=>n,fg:()=>k,Pd:()=>o,Vj:()=>p,IS:()=>h,nJ:()=>i,zN:()=>j,JH:()=>m,jO:()=>D,wb:()=>C,br:()=>l,wG:()=>A,zt:()=>v,gb:()=>r,gC:()=>s,AR:()=>t,mq:()=>q,YI:()=>x,rs:()=>w,p5:()=>z});var d=c(49476);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.default.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","systemoneConfig","credentialFallback","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.default.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.fastMode?{fastMode:a.fastMode}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.baseUrlField?{baseUrlField:a.baseUrlField}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.models?{models:a.models}:{},...a.authModes?{authModes:a.authModes}:{},...a.features?{features:{...a.features}}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{},...a.apiKeyOptionalWith?{apiKeyOptionalWith:a.apiKeyOptionalWith}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m="openai-compatible-",n="anthropic-compatible-",o="custom-embedding-",p="custom-video-";function q(a){return"string"==typeof a&&a.startsWith(m)}function r(a){return"string"==typeof a&&a.startsWith(n)}function s(a){return"string"==typeof a&&a.startsWith(o)}function t(a){return"string"==typeof a&&a.startsWith(p)}let u={...h,...i,...j,...k,...l};function v(a){for(let b of Object.values(u))if(b.alias===a||b.id===a)return b;return null}function w(a){let b=v(a);return b?.id||a}function x(a){return!!a&&(!!v(a)||q(a)||r(a))}let y={nvidia:40};function z(a,b){let c=(a?.rpmByProvider||{})[b];if(0===c||"0"===c)return 0;let d=Number(c);return Number.isFinite(d)&&d>0?d:y[b]||0}function A(a){let b=u[a];return b?.alias||a}let B=Object.values(u).reduce((a,b)=>(a[b.alias]=b.id,a),{});Object.values(u).reduce((a,b)=>(a[b.id]=b.alias,a),{});let C=d.default.filter(a=>a.features?.usage).map(a=>a.id),D=d.default.filter(a=>a.features?.usageApikey).map(a=>a.id)},42655:(a,b,c)=>{c.d(b,{Xx:()=>j,exportSettings:()=>k,getSettings:()=>i});var d=c(5684),e=c(644);let f={cloudEnabled:!1,tunnelEnabled:!1,tunnelUrl:"",tunnelProvider:"cloudflare",tailscaleEnabled:!1,tailscaleUrl:"",stickyRoundRobinLimit:3,providerStrategies:{},latencyAwareConfig:{},quotaVisibility:{},retryDelayByProvider:{},rpmByProvider:{},comboStrategy:"fallback",comboStickyRoundRobinLimit:1,comboStrategies:{},exposeComboOnly:!1,requireLogin:!0,tunnelDashboardAccess:!0,authMode:"password",ssoType:"oidc",oidcIssuerUrl:"",oidcClientId:"",oidcClientSecret:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC",oidcAllowedSubjects:[],samlEntryPoint:"",samlIssuer:"urn:ezrouter:sp",samlCert:"",samlLoginLabel:"Sign in with SAML SSO",samlAttributeEmail:"email",samlAttributeName:"name",enableObservability:!0,observabilityMaxRecords:1e3,observabilityBatchSize:20,observabilityFlushIntervalMs:5e3,observabilityMaxJsonSize:5,outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:"",mitmRouterBaseUrl:"http://localhost:20126",dnsToolEnabled:{},rtkEnabled:!0,headroomEnabled:!0,headroomUrl:process.env.HEADROOM_URL||"http://localhost:8787",headroomCompressUserMessages:!1,headroomTimeoutMs:3e3,cavemanEnabled:!0,cavemanLevel:"full",ponytailEnabled:!0,ponytailLevel:"full",customPromptEnabled:!1,customPrompt:"",toolRankEnabled:!1,pxpipeEnabled:!1,pxpipeAutoInstall:!1,pxpipeMinChars:25e3,pxpipeTimeoutMs:15e3,toolDisclosureEnabled:!1,toolDisclosureFilterEnabled:!1,toolDisclosureMaxTools:20,toolHistoryPruning:{enabled:!0,maxToolTurns:15,maxCharsPerResult:3e4,maxTotalChars:15e4,preserveErrors:!0},providerOverrides:{}};async function g(){let a=(await (0,d.getAdapter)()).get("SELECT data FROM settings WHERE id = 1");return a?(0,e.q)(a.data,{}):{}}function h(a){let b={...f,...a||{}};for(let[a,c]of Object.entries(f))void 0===b[a]&&("outboundProxyEnabled"===a&&"string"==typeof b.outboundProxyUrl&&b.outboundProxyUrl.trim()?b[a]=!0:b[a]=c);if(b.capacityAdapter&&"object"==typeof b.capacityAdapter)for(let a of Object.keys(b.capacityAdapter)){let c=b.capacityAdapter[a];Array.isArray(c?.models)&&(c.models=c.models.map(a=>"oc/mimo-v2.5-free"===a?"oc/mimo-v2.6-flash-free":a))}return b}async function i(){return h(await g())}async function j(a){let b,c=await (0,d.getAdapter)();return c.transaction(()=>{let d=c.get("SELECT data FROM settings WHERE id = 1");b={...d?(0,e.q)(d.data,{}):{},...a},c.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(b)])}),h(b)}async function k(){return await g()}},49120:(a,b,c)=>{c.d(b,{n:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="ezrouter";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}let l=function(){let a=process.env.DATA_DIR;if(!a)return k();if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),k();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}()},57473:(a,b,c)=>{c.d(b,{Nb:()=>j,QB:()=>h,oH:()=>i});var d=c(5684),e=c(644),f=c(94755);function g(a,b){if(null==a)return null;let c="string"==typeof a?a:JSON.stringify(a);if(Buffer.byteLength(c,"utf8")<=b)return c;let d=c.slice(0,b);return`${d}…`}async function h(a){let b=await (0,d.getAdapter)(),c=a.id||(0,f.A)(),h={id:c,timestamp:a.timestamp||new Date().toISOString(),endpoint:a.endpoint||null,provider:a.provider||null,model:a.model||null,connectionId:a.connectionId||null,comboName:a.comboName||null,statusCode:null!=a.statusCode?String(a.statusCode):null,errorMessage:"string"==typeof a.errorMessage?a.errorMessage:a.errorMessage?JSON.stringify(a.errorMessage):null,request:g(a.request,5120),providerRequest:g(a.providerRequest,5120),providerResponse:g(a.providerResponse,5120),meta:(0,e.s)({latency:a.latency||{},tokens:a.tokens||{},retryAfter:a.retryAfter||null,retryAfterHuman:a.retryAfterHuman||null,fallback:!!a.fallback,fallbackReason:a.fallbackReason||null,extra:a.meta||{}})};b.run(`INSERT INTO errorLogs(
26
+ ORDER BY id DESC LIMIT 1`,[a.timestamp,a.provider||null,a.model||null,a.connectionId||null,a.apiKey||null,f,g]):null;if(t)return void b.run("UPDATE usageHistory SET endpoint = ? WHERE id = ?",[a.endpoint,t.id]);b.run("INSERT INTO usageHistory(timestamp, provider, model, connectionId, apiKey, endpoint, promptTokens, completionTokens, cost, status, tokens, meta) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[a.timestamp,a.provider||null,a.model||null,a.connectionId||null,a.apiKey||null,a.endpoint||null,f,g,a.cost||0,a.status||"ok",(0,e.s)(c),(0,e.s)({requestedModel:a.requestedModel||null})]);let u=(i=(d=a.timestamp)?new Date(d):new Date,`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")}`),v=b.get("SELECT data FROM usageDaily WHERE dateKey = ?",[u]),w=v?(0,e.q)(v.data,{}):{requests:0,promptTokens:0,completionTokens:0,cost:0,byProvider:{},byModel:{},byAccount:{},byApiKey:{},byEndpoint:{}};j=a.tokens?.prompt_tokens||a.tokens?.input_tokens||0,k=a.tokens?.completion_tokens||a.tokens?.output_tokens||0,l=a.tokens?.cached_tokens||a.tokens?.cache_read_input_tokens||0,m=a.cost||0,n={promptTokens:j,completionTokens:k,cachedTokens:l,cost:m},w.requests=(w.requests||0)+1,w.promptTokens=(w.promptTokens||0)+j,w.completionTokens=(w.completionTokens||0)+k,w.cachedTokens=(w.cachedTokens||0)+l,w.cost=(w.cost||0)+m,w.byProvider||={},w.byModel||={},w.byAccount||={},w.byApiKey||={},w.byEndpoint||={},a.provider&&am(w.byProvider,a.provider,n),o=a.provider?`${a.model}|${a.provider}`:a.model,am(w.byModel,o,{...n,meta:{rawModel:a.model,provider:a.provider}}),a.connectionId&&am(w.byAccount,a.connectionId,{...n,meta:{rawModel:a.model,provider:a.provider}}),p=a.apiKey&&"string"==typeof a.apiKey?a.apiKey:"local-no-key",q=`${p}|${a.model}|${a.provider||"unknown"}`,am(w.byApiKey,q,{...n,meta:{rawModel:a.model,provider:a.provider,apiKey:a.apiKey||null}}),r=a.endpoint||"Unknown",s=`${r}|${a.model}|${a.provider||"unknown"}`,am(w.byEndpoint,s,{...n,meta:{endpoint:r,rawModel:a.model,provider:a.provider}}),b.run("INSERT INTO usageDaily(dateKey, data) VALUES(?, ?) ON CONFLICT(dateKey) DO UPDATE SET data = excluded.data",[u,(0,e.s)(w)]);let x=b.get("SELECT value FROM _meta WHERE key = 'totalRequestsLifetime'"),y=(x?parseInt(x.value,10):0)+1;b.run("INSERT INTO _meta(key, value) VALUES('totalRequestsLifetime', ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[String(y)]),h=!0}),h)&&(ah.items.push(a),ah.items.length>50&&(ah.items=ah.items.slice(-50)),al("update",250))}catch(a){console.error("Failed to save usage stats:",a)}}function au(a,b){if(null==b)return a.all("SELECT dateKey, data FROM usageDaily ORDER BY dateKey ASC");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 >= ? ORDER BY dateKey ASC",[e])}async function av(a="all"){let b=await (0,d.getAdapter)(),[{getProviderConnections:f},{getApiKeys:g},{getProviderNodes:h}]=await Promise.all([Promise.resolve().then(c.bind(c,5781)),Promise.resolve().then(c.bind(c,74452)),Promise.resolve().then(c.bind(c,1129))]),i=[];try{i=await f()}catch{}let j={};for(let a of i)j[a.id]=a.name||a.email||a.id;let k={};try{for(let a of(await h()))a.id&&a.name&&(k[a.id]=a.name)}catch{}let l=[];try{l=await g()}catch{}let m={};for(let a of l)a.key&&(m[a.key.trim()]={name:a.name,id:a.id,createdAt:a.createdAt});let n=b.all("SELECT timestamp, provider, model, tokens, status, meta FROM usageHistory ORDER BY id DESC LIMIT 100"),o=new Set,p={totalRequests:0,totalPromptTokens:0,totalCompletionTokens:0,totalCachedTokens:0,totalCost:0,byProvider:{},byModel:{},byAccount:{},byApiKey:{},byEndpoint:{},last10Minutes:[],pending:ae,activeRequests:[],recentRequests:n.map(ar).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!o.has(c)&&(o.add(c),!0)}).slice(0,20),errorProvider:Date.now()-af.ts<1e4?af.provider:""};for(let[a,b]of Object.entries(ae.byAccount))for(let[c,d]of Object.entries(b))if(d>0){let b=j[a]||`Account ${a.slice(0,8)}...`,e=c.match(/^(.*) \((.*)\)$/);p.activeRequests.push({model:e?e[1]:c,provider:e?e[2]:"unknown",account:b,count:d})}let q=new Date,r=new Date(6e4*Math.floor(q.getTime()/6e4)),s=new Date(r.getTime()-54e4),t={};for(let a=0;a<10;a++){let b=r.getTime()-(9-a)*6e4;t[b]={requests:0,promptTokens:0,completionTokens:0,cost:0},p.last10Minutes.push(t[b])}for(let a of b.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ? AND timestamp <= ?",[s.toISOString(),q.toISOString()])){let b=6e4*Math.floor(new Date(a.timestamp).getTime()/6e4);t[b]&&(t[b].requests++,t[b].promptTokens+=a.promptTokens||0,t[b].completionTokens+=a.completionTokens||0,t[b].cost+=a.cost||0)}if("24h"!==a&&"today"!==a){let c={"7d":7,"30d":30,"60d":60,"90d":90,"180d":180,"365d":365}[a]||null;for(let a of au(b,c)){let b=a.dateKey,c=(0,e.q)(a.data,{});for(let[a,b]of(p.totalPromptTokens+=c.promptTokens||0,p.totalCompletionTokens+=c.completionTokens||0,p.totalCachedTokens+=c.cachedTokens||0,p.totalCost+=c.cost||0,Object.entries(c.byProvider||{})))p.byProvider[a]||(p.byProvider[a]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),p.byProvider[a].requests+=b.requests||0,p.byProvider[a].promptTokens+=b.promptTokens||0,p.byProvider[a].completionTokens+=b.completionTokens||0,p.byProvider[a].cachedTokens+=b.cachedTokens||0,p.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=k[e]||e;p.byModel[f]||(p.byModel[f]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:c,provider:g,lastUsed:b}),p.byModel[f].requests+=d.requests||0,p.byModel[f].promptTokens+=d.promptTokens||0,p.byModel[f].completionTokens+=d.completionTokens||0,p.byModel[f].cachedTokens+=d.cachedTokens||0,p.byModel[f].cost+=d.cost||0,b>(p.byModel[f].lastUsed||"")&&(p.byModel[f].lastUsed=b)}for(let[a,d]of Object.entries(c.byAccount||{})){let c=j[a]||`Account ${a.slice(0,8)}...`,e=d.rawModel||"",f=d.provider||"",g=k[f]||f,h=`${e} (${f} - ${c})`;p.byAccount[h]||(p.byAccount[h]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:e,provider:g,connectionId:a,accountName:c,lastUsed:b}),p.byAccount[h].requests+=d.requests||0,p.byAccount[h].promptTokens+=d.promptTokens||0,p.byAccount[h].completionTokens+=d.completionTokens||0,p.byAccount[h].cachedTokens+=d.cachedTokens||0,p.byAccount[h].cost+=d.cost||0,b>(p.byAccount[h].lastUsed||"")&&(p.byAccount[h].lastUsed=b)}for(let[,a]of Object.entries(c.byApiKey||{})){let c=a.rawModel||"",d=a.provider||"",e=k[d]||d,f=a.apiKey?a.apiKey.trim():null,g=f?m[f]:null,h=ac(f),i=g?.name||(f?h||f.slice(0,8)+"...":"Local (No API Key)"),j=h||"local-no-key",l=`${ad(f,g)}|${c}|${d||"unknown"}`;p.byApiKey[l]||(p.byApiKey[l]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:c,provider:e,apiKeyMasked:h,keyName:i,apiKeyKey:j,lastUsed:b}),p.byApiKey[l].requests+=a.requests||0,p.byApiKey[l].promptTokens+=a.promptTokens||0,p.byApiKey[l].completionTokens+=a.completionTokens||0,p.byApiKey[l].cachedTokens+=a.cachedTokens||0,p.byApiKey[l].cost+=a.cost||0,b>(p.byApiKey[l].lastUsed||"")&&(p.byApiKey[l].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=k[f]||f;p.byEndpoint[a]||(p.byEndpoint[a]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,endpoint:c,rawModel:e,provider:g,lastUsed:b}),p.byEndpoint[a].requests+=d.requests||0,p.byEndpoint[a].promptTokens+=d.promptTokens||0,p.byEndpoint[a].completionTokens+=d.completionTokens||0,p.byEndpoint[a].cachedTokens+=d.cachedTokens||0,p.byEndpoint[a].cost+=d.cost||0,b>(p.byEndpoint[a].lastUsed||"")&&(p.byEndpoint[a].lastUsed=b)}}let d=Math.max(c?Date.now()-864e5*c:0,Date.now()-1728e5);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(p.byModel[c]&&new Date(b)>new Date(p.byModel[c].lastUsed)&&(p.byModel[c].lastUsed=b),a.connectionId){let c=j[a.connectionId]||`Account ${a.connectionId.slice(0,8)}...`,d=`${a.model} (${a.provider} - ${c})`;p.byAccount[d]&&new Date(b)>new Date(p.byAccount[d].lastUsed)&&(p.byAccount[d].lastUsed=b)}let d=a.apiKey&&"string"==typeof a.apiKey?`${ad(a.apiKey,m[a.apiKey])}|${a.model}|${a.provider||"unknown"}`:"local-no-key";p.byApiKey[d]&&new Date(b)>new Date(p.byApiKey[d].lastUsed)&&(p.byApiKey[d].lastUsed=b);let e=a.endpoint||"Unknown",f=`${e}|${a.model}|${a.provider||"unknown"}`;p.byEndpoint[f]&&new Date(b)>new Date(p.byEndpoint[f].lastUsed)&&(p.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,e.q)(a.tokens,{})||{},c=b.prompt_tokens||b.input_tokens||a.promptTokens||0,d=b.completion_tokens||b.output_tokens||a.completionTokens||0,f=b.cached_tokens||b.cache_read_input_tokens||0,g=a.cost||0,h=k[a.provider]||a.provider;p.totalPromptTokens+=c,p.totalCompletionTokens+=d,p.totalCachedTokens+=f,p.totalCost+=g,p.byProvider[a.provider]||(p.byProvider[a.provider]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),p.byProvider[a.provider].requests++,p.byProvider[a.provider].promptTokens+=c,p.byProvider[a.provider].completionTokens+=d,p.byProvider[a.provider].cachedTokens+=f,p.byProvider[a.provider].cost+=g;let i=a.provider?`${a.model} (${a.provider})`:a.model;if(p.byModel[i]||(p.byModel[i]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:h,lastUsed:a.timestamp}),p.byModel[i].requests++,p.byModel[i].promptTokens+=c,p.byModel[i].completionTokens+=d,p.byModel[i].cachedTokens+=f,p.byModel[i].cost+=g,new Date(a.timestamp)>new Date(p.byModel[i].lastUsed)&&(p.byModel[i].lastUsed=a.timestamp),a.connectionId){let b=j[a.connectionId]||`Account ${a.connectionId.slice(0,8)}...`,e=`${a.model} (${a.provider} - ${b})`;p.byAccount[e]||(p.byAccount[e]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:h,connectionId:a.connectionId,accountName:b,lastUsed:a.timestamp}),p.byAccount[e].requests++,p.byAccount[e].promptTokens+=c,p.byAccount[e].completionTokens+=d,p.byAccount[e].cachedTokens+=f,p.byAccount[e].cost+=g,new Date(a.timestamp)>new Date(p.byAccount[e].lastUsed)&&(p.byAccount[e].lastUsed=a.timestamp)}if(a.apiKey&&"string"==typeof a.apiKey){let b=a.apiKey.trim(),e=m[b],i=ac(b),j=e?.name||i||b.slice(0,8)+"...",k=`${ad(b,e)}|${a.model}|${a.provider||"unknown"}`;p.byApiKey[k]||(p.byApiKey[k]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,rawModel:a.model,provider:h,apiKeyMasked:i,keyName:j,apiKeyKey:i,lastUsed:a.timestamp});let l=p.byApiKey[k];l.requests++,l.promptTokens+=c,l.completionTokens+=d,l.cachedTokens+=f,l.cost+=g,new Date(a.timestamp)>new Date(l.lastUsed)&&(l.lastUsed=a.timestamp)}let l=a.endpoint||"Unknown",n=`${l}|${a.model}|${a.provider||"unknown"}`;p.byEndpoint[n]||(p.byEndpoint[n]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0,endpoint:l,rawModel:a.model,provider:h,lastUsed:a.timestamp});let o=p.byEndpoint[n];o.requests++,o.promptTokens+=c,o.completionTokens+=d,o.cachedTokens+=f,o.cost+=g,new Date(a.timestamp)>new Date(o.lastUsed)&&(o.lastUsed=a.timestamp)}}return p.totalRequests=Object.values(p.byProvider).reduce((a,b)=>a+(b.requests||0),0),p}async function aw(a="7d",b){let c=await (0,d.getAdapter)(),f=Date.now(),g=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(b)?void 0:b;if("today"===a){var h;let a,b,d,e,i=g?(h=new Date(f),b=Date.UTC((a=new Intl.DateTimeFormat("en-US",{timeZone:g,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(h).reduce((a,b)=>(a[b.type]=b.value,a),{})).year,a.month-1,a.day,a.hour,a.minute,a.second)-h.getTime(),(d=new Date(h.getTime()+b)).setUTCHours(0,0,0,0),d.getTime()-b):((e=new Date).setHours(0,0,0,0),e.getTime()),j=i+864e5,k=Array.from({length:24},(a,b)=>({label:new Date(i+36e5*b).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1,...g?{timeZone:g}:{}}),tokens:0,cost:0,requests:0}));for(let a of c.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ?",[new Date(i).toISOString()])){let b=new Date(a.timestamp).getTime();if(b<i||b>=j)continue;let c=Math.floor((b-i)/36e5);c>=0&&c<24&&(k[c].tokens+=(a.promptTokens||0)+(a.completionTokens||0),k[c].cost+=a.cost||0,k[c].requests+=1)}return k}if("24h"===a){let a=f-864e5,b=Array.from({length:24},(b,c)=>({label:new Date(a+36e5*c).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1,...g?{timeZone:g}:{}}),tokens:0,cost:0,requests:0}));for(let d of c.all("SELECT timestamp, promptTokens, completionTokens, cost FROM usageHistory WHERE timestamp >= ?",[new Date(a).toISOString()])){let c=new Date(d.timestamp).getTime();if(c<a||c>f)continue;let e=Math.min(Math.floor((c-a)/36e5),23);b[e].tokens+=(d.promptTokens||0)+(d.completionTokens||0),b[e].cost+=d.cost||0,b[e].requests+=1}return b}let i=a=>a.toLocaleDateString("en-US",{month:"short",day:"numeric"});if("all"===a){let a=au(c,null);if(!a.length)return[];let b={};for(let c of a)b[c.dateKey]=(0,e.q)(c.data,{});let d=new Date(a[0].dateKey+"T00:00:00"),f=new Date;return f.setHours(0,0,0,0),Array.from({length:Math.max(1,Math.round((f-d)/864e5)+1)},(a,c)=>{let e=new Date(d);e.setDate(e.getDate()+c);let f=b[`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`];return{label:i(e),tokens:f?(f.promptTokens||0)+(f.completionTokens||0):0,cost:f&&f.cost||0,requests:f&&f.requests||0}})}let j={"7d":7,"30d":30,"60d":60,"90d":90,"180d":180,"365d":365}[a]||7,k=new Date,l=au(c,j),m={};for(let a of l)m[a.dateKey]=(0,e.q)(a.data,{});return Array.from({length:j},(a,b)=>{let c=new Date(k);c.setDate(c.getDate()-(j-1-b));let d=m[`${c.getFullYear()}-${String(c.getMonth()+1).padStart(2,"0")}-${String(c.getDate()).padStart(2,"0")}`];return{label:i(c),tokens:d?(d.promptTokens||0)+(d.completionTokens||0):0,cost:d&&d.cost||0,requests:d&&d.requests||0}})}async function ax(){}async function ay(a=200){try{let b=(await (0,d.getAdapter)()).all("SELECT timestamp, provider, model, connectionId, promptTokens, completionTokens, status, tokens, meta FROM usageHistory ORDER BY id DESC LIMIT ?",[a]);if(!b.length)return[];let f={};try{let{getProviderConnections:a}=await Promise.resolve().then(c.bind(c,5781));for(let b of(await a()))f[b.id]=b.name||b.email||""}catch{}return b.map(a=>{let b=function(a=new Date){let b=a=>String(a).padStart(2,"0");return`${b(a.getDate())}-${b(a.getMonth()+1)}-${a.getFullYear()} ${b(a.getHours())}:${b(a.getMinutes())}:${b(a.getSeconds())}`}(new Date(a.timestamp)),c=a.provider?.toUpperCase()||"-",d=(a.meta?(0,e.q)(a.meta,{}):{}).requestedModel||null,g=d&&d!==a.model?`${d} → ${a.model}`:a.model||"-",h=f[a.connectionId]||(a.connectionId?a.connectionId.slice(0,8):"-"),i=a.tokens?(0,e.q)(a.tokens,{}):{},j=a.promptTokens??i.prompt_tokens??"-",k=a.completionTokens??i.completion_tokens??"-";return`${b} | ${g} | ${c} | ${h} | ${j} | ${k} | ${a.status||"-"}`})}catch(a){return console.error("[usageRepo] getRecentLogs failed:",a.message),[]}}var az=c(16329);let aA=null,aB=0;function aC(a,b){let c=a[b];return void 0===c||""===c.trim()?null:"true"===c.trim().toLowerCase()}async function aD(){if(aA&&Date.now()-aB<5e3)return aA;try{let{getSettings:a}=await Promise.resolve().then(c.bind(c,42655)),b=await a();aA={enabled:function(a,b=process.env){let c=aC(b,"OBSERVABILITY_ENABLED");if(null!==c)return c;let d=aC(b,"ENABLE_REQUEST_LOGS");return null!==d?d:a?.enableObservability===!0}(b),maxRecords:b.observabilityMaxRecords||parseInt(process.env.OBSERVABILITY_MAX_RECORDS||String(200),10),batchSize:b.observabilityBatchSize||parseInt(process.env.OBSERVABILITY_BATCH_SIZE||String(20),10),flushIntervalMs:b.observabilityFlushIntervalMs||parseInt(process.env.OBSERVABILITY_FLUSH_INTERVAL_MS||String(5e3),10),maxJsonSize:1024*(b.observabilityMaxJsonSize||parseInt(process.env.OBSERVABILITY_MAX_JSON_SIZE||"5",10))}}catch{aA={enabled:!1,maxRecords:200,batchSize:20,flushIntervalMs:5e3,maxJsonSize:5120}}return aB=Date.now(),aA}let aE=[],aF=null,aG=!1;function aH(a,b){let c=JSON.stringify(a||{});return c.length>b?{_truncated:!0,_originalSize:c.length,_preview:c.substring(0,200)}:a||{}}function aI(a,b){let c=aH(a,b);return c?._truncated&&a&&"object"==typeof a&&void 0!==a.tools?{...c,tools:aH(a.tools,65536)}:c}async function aJ(){if(!aG&&0!==aE.length){aG=!0;try{for(;aE.length>0;){let a=aE.splice(0,aE.length),b=await (0,d.getAdapter)(),c=await aD();b.transaction(()=>{for(let d of a){d.id||(d.id=function(a){let b=new Date().toISOString(),c=Math.random().toString(36).substring(2,8),d=a?a.replace(/[^a-zA-Z0-9-]/g,"-"):"unknown";return`${b}-${c}-${d}`}(d.model)),d.timestamp||(d.timestamp=new Date().toISOString()),d.request?.headers&&(d.request.headers=function(a){if(!a||"object"!=typeof a)return{};let b=["authorization","x-api-key","cookie","token","api-key"],c={...a};for(let a of Object.keys(c))b.some(b=>a.toLowerCase().includes(b))&&delete c[a];return c}(d.request.headers));let a={id:d.id,provider:d.provider||null,model:d.model||null,connectionId:d.connectionId||null,apiKey:d.apiKey||null,timestamp:d.timestamp,status:d.status||null,latency:d.latency||{},tokens:d.tokens||{},request:aI(d.request,c.maxJsonSize),providerRequest:aI(d.providerRequest,c.maxJsonSize),providerResponse:aH(d.providerResponse,c.maxJsonSize),response:aH(d.response,c.maxJsonSize),pxpipe:d.pxpipe||void 0,convoy:d.convoy||void 0};b.run("INSERT INTO requestDetails(id, timestamp, provider, model, connectionId, status, data) VALUES(?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET timestamp = excluded.timestamp, provider = excluded.provider, model = excluded.model, connectionId = excluded.connectionId, status = excluded.status, data = excluded.data",[a.id,a.timestamp,a.provider,a.model,a.connectionId,a.status,(0,e.s)(a)])}}),setImmediate(()=>{aK(b,c.maxRecords).catch(a=>console.error("[requestDetailsRepo] async prune failed:",a))})}}catch(a){console.error("[requestDetailsRepo] Batch write failed:",a)}finally{aG=!1}}}async function aK(a,b){try{let c=a.get("SELECT COUNT(*) as c FROM requestDetails");c&&c.c>b&&a.run("DELETE FROM requestDetails WHERE id IN (SELECT id FROM requestDetails ORDER BY timestamp ASC LIMIT ?)",[c.c-b])}catch(a){console.error("[requestDetailsRepo] pruneOldRecords error:",a)}}async function aL(a){let b=await aD();b.enabled&&(aE.push(a),aE.length>=b.batchSize?(aF&&(clearTimeout(aF),aF=null),aJ().catch(a=>console.error("[requestDetailsRepo] flush err:",a))):aF||(aF=setTimeout(()=>{aF=null,aJ().catch(()=>{})},b.flushIntervalMs)))}async function aM(a={}){let b=await (0,d.getAdapter)(),c=[],f=[];a.provider&&(c.push("provider = ?"),f.push(a.provider)),a.model&&(c.push("model = ?"),f.push(a.model)),a.connectionId&&(c.push("connectionId = ?"),f.push(a.connectionId)),a.status&&(c.push("status = ?"),f.push(a.status)),a.startDate&&(c.push("timestamp >= ?"),f.push(new Date(a.startDate).toISOString())),a.endDate&&(c.push("timestamp <= ?"),f.push(new Date(a.endDate).toISOString()));let g=c.length?`WHERE ${c.join(" AND ")}`:"",h=b.get(`SELECT COUNT(*) as c FROM requestDetails ${g}`,f),i=h?h.c:0,j=a.page||1,k=a.pageSize||50,l=Math.ceil(i/k);return{details:b.all(`SELECT data FROM requestDetails ${g} ORDER BY timestamp DESC LIMIT ? OFFSET ?`,[...f,k,(j-1)*k]).map(a=>(0,e.q)(a.data,{})),pagination:{page:j,pageSize:k,totalItems:i,totalPages:l,hasNext:j<l,hasPrev:j>1}}}async function aN(){return(await (0,d.getAdapter)()).all("SELECT DISTINCT provider FROM requestDetails WHERE provider IS NOT NULL ORDER BY provider ASC").map(a=>a.provider)}async function aO(a=null){let b=await (0,d.getAdapter)();return(a?b.all("SELECT DISTINCT model FROM requestDetails WHERE model IS NOT NULL AND provider = ? ORDER BY model ASC",[a]):b.all("SELECT DISTINCT model FROM requestDetails WHERE model IS NOT NULL ORDER BY model ASC")).map(a=>a.model)}let aP=async()=>{aF&&(clearTimeout(aF),aF=null),aE.length>0&&await aJ()};(0,az.Bb)(aP);let aQ=new Set(["today","24h","7d","30d","60d","365d"]);function aR(a){return`${a.getFullYear()}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")}`}function aS(){return{requestsObserved:0,rtk:{requestsWithHits:0,hits:0,bytesBefore:0,bytesAfter:0,bytesSaved:0},headroom:{compressed:0,skipped:0,disabled:0,tokensBefore:0,tokensAfter:0,tokensSaved:0,bodyBytesBefore:0,bodyBytesAfter:0,messageBytesBefore:0,messageBytesAfter:0,phantomSavings:0,skipReasons:{}},totals:{actualBytesSaved:0}}}async function aT(a="7d"){if(!aQ.has(a))throw Error(`Invalid period: ${a}`);let b=await (0,d.getAdapter)(),c={today:1,"24h":1,"7d":7,"30d":30,"60d":60,"365d":365}[a],f=function(a,b){if(!b)return a.all("SELECT dateKey, data FROM tokenSaverDaily");let c=new Date;c.setDate(c.getDate()-(b-1));let d=aR(c);return a.all("SELECT dateKey, data FROM tokenSaverDaily WHERE dateKey >= ?",[d])}(b,c),g=aS();for(let a of f){let b=(0,e.q)(a.data,aS());if(!function(a,b){a.requestsObserved+=b.requestsObserved,a.rtk.requestsWithHits+=b.rtk.requestsWithHits,a.rtk.hits+=b.rtk.hits,a.rtk.bytesBefore+=b.rtk.bytesBefore,a.rtk.bytesAfter+=b.rtk.bytesAfter,a.rtk.bytesSaved+=b.rtk.bytesSaved;let c=a.headroom;if(c.compressed+=b.headroom.compressed,c.skipped+=b.headroom.skipped,c.disabled+=b.headroom.disabled,c.tokensBefore+=b.headroom.tokensBefore,c.tokensAfter+=b.headroom.tokensAfter,c.tokensSaved+=b.headroom.tokensSaved,c.bodyBytesBefore+=b.headroom.bodyBytesBefore,c.bodyBytesAfter+=b.headroom.bodyBytesAfter,c.messageBytesBefore+=b.headroom.messageBytesBefore,c.messageBytesAfter+=b.headroom.messageBytesAfter,c.phantomSavings+=b.headroom.phantomSavings,b.headroom.skipReasonKey){let a=b.headroom.skipReasonKey;c.skipReasons[a]=(c.skipReasons[a]||0)+1}let d=a.rtk.bytesSaved||0,e=Math.max(0,(a.headroom.bodyBytesBefore||0)-(a.headroom.bodyBytesAfter||0));a.totals.actualBytesSaved=d+e}(g,{state:"compressed",requestsObserved:b.requestsObserved||0,rtk:b.rtk||{},headroom:{...b.headroom,compressed:b.headroom?.compressed||0,skipped:b.headroom?.skipped||0,disabled:b.headroom?.disabled||0,tokensBefore:b.headroom?.tokensBefore||0,tokensAfter:b.headroom?.tokensAfter||0,tokensSaved:b.headroom?.tokensSaved||0,bodyBytesBefore:b.headroom?.bodyBytesBefore||0,bodyBytesAfter:b.headroom?.bodyBytesAfter||0,messageBytesBefore:b.headroom?.messageBytesBefore||0,messageBytesAfter:b.headroom?.messageBytesAfter||0,phantomSavings:b.headroom?.phantomSavings||0,skipReasonKey:null}}),b.headroom?.skipReasons)for(let[a,c]of Object.entries(b.headroom.skipReasons))g.headroom.skipReasons[a]=(g.headroom.skipReasons[a]||0)+(c||0)}let h=Object.fromEntries(f.map(a=>[a.dateKey,(0,e.q)(a.data,aS())])),i=Array.from({length:c},(a,b)=>{let d=new Date;d.setHours(0,0,0,0),d.setDate(d.getDate()-(c-1-b));let e=h[aR(d)]||aS();return{dateKey:aR(d),actualBytesSaved:Math.max(0,(e.rtk?.bytesSaved||0)+((e.headroom?.bodyBytesBefore||0)-(e.headroom?.bodyBytesAfter||0))),rtkBytesSaved:e.rtk?.bytesSaved||0,headroomBytesSaved:Math.max(0,(e.headroom?.bodyBytesBefore||0)-(e.headroom?.bodyBytesAfter||0)),headroomCompressed:e.headroom?.compressed||0}});return{requestsObserved:g.requestsObserved,rtk:g.rtk,headroom:g.headroom,totals:g.totals,dailyPoints:i}}var aU=c(57473);async function aV(){let a=await (0,d.getAdapter)(),{exportSettings:b}=await Promise.resolve().then(c.bind(c,42655)),g={settings:await b(),providerConnections:a.all("SELECT * FROM providerConnections").map(a=>({...(0,e.q)(a.data,{}),id:a.id,provider:a.provider,authType:a.authType,name:a.name,email:a.email,priority:a.priority,isActive:1===a.isActive,createdAt:a.createdAt,updatedAt:a.updatedAt})),providerNodes:a.all("SELECT * FROM providerNodes").map(a=>({...(0,e.q)(a.data,{}),id:a.id,type:a.type,name:a.name,createdAt:a.createdAt,updatedAt:a.updatedAt})),proxyPools:a.all("SELECT * FROM proxyPools").map(a=>({...(0,e.q)(a.data,{}),id:a.id,isActive:1===a.isActive,testStatus:a.testStatus,createdAt:a.createdAt,updatedAt:a.updatedAt})),apiKeys:a.all("SELECT * FROM apiKeys").map(a=>({id:a.id,key:a.key,name:a.name,machineId:a.machineId,isActive:1===a.isActive,expiresAt:a.expiresAt||null,tokenLimit:null==a.tokenLimit?null:Number(a.tokenLimit),tokensUsed:Number(a.tokensUsed||0),tokensReserved:Number(a.tokensReserved||0),allowedModels:(0,e.q)(a.allowedModels,null),scope:a.scope?(0,e.q)(a.scope,null):null,createdAt:a.createdAt,access:(0,f.xE)(a.accessRestricted,a.accessAllow)})),combos:a.all("SELECT * FROM combos").map(a=>({id:a.id,name:a.name,kind:a.kind,models:(0,e.q)(a.models,[]),config:a.config?(0,e.q)(a.config,null):void 0,createdAt:a.createdAt,updatedAt:a.updatedAt})),modelAliases:{},customModels:[],mitmAlias:{},pricing:{},modelCaps:{}};for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'modelAliases'"))g.modelAliases[b.key]=(0,e.q)(b.value);for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'customModels'"))g.customModels.push((0,e.q)(b.value));for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'mitmAlias'"))g.mitmAlias[b.key]=(0,e.q)(b.value);for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'pricing'"))g.pricing[b.key]=(0,e.q)(b.value);for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'modelCaps'"))g.modelCaps[b.key]=(0,e.q)(b.value);return g}async function aW(a){if(!a||"object"!=typeof a||Array.isArray(a))throw Error("Invalid database payload");let b=await (0,d.getAdapter)();return b.transaction(()=>{for(let c of(b.run("DELETE FROM settings"),b.run("DELETE FROM providerConnections"),b.run("DELETE FROM providerNodes"),b.run("DELETE FROM proxyPools"),b.run("DELETE FROM apiKeys"),b.run("DELETE FROM combos"),b.run("DELETE FROM kv WHERE scope IN ('modelAliases', 'customModels', 'mitmAlias', 'pricing', 'modelCaps')"),a.settings&&b.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(a.settings)]),a.providerConnections||[])){let{id:a,provider:d,authType:f,name:g,email:h,priority:i,isActive:j,createdAt:k,updatedAt:l,...m}=c;b.run("INSERT OR REPLACE INTO providerConnections(id, provider, authType, name, email, priority, isActive, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[a,d,f||"oauth",g||null,h||null,i||null,+(!1!==j),(0,e.s)(m),k||new Date().toISOString(),l||new Date().toISOString()])}for(let c of a.providerNodes||[]){let{id:a,type:d,name:f,createdAt:g,updatedAt:h,...i}=c;b.run("INSERT OR REPLACE INTO providerNodes(id, type, name, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[a,d||null,f||null,(0,e.s)(i),g||new Date().toISOString(),h||new Date().toISOString()])}for(let c of a.proxyPools||[]){let{id:a,isActive:d,testStatus:f,createdAt:g,updatedAt:h,...i}=c;b.run("INSERT OR REPLACE INTO proxyPools(id, isActive, testStatus, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[a,+(!1!==d),f||"unknown",(0,e.s)(i),g||new Date().toISOString(),h||new Date().toISOString()])}for(let c of a.apiKeys||[]){let a=g.M0;if(void 0!==c.access){let b=(0,f.M7)(c.access);if(!b.ok)throw Error(`apiKeys ${c.id}: ${b.error}`);a=b.value}let d=(0,f.aB)(a);b.run("INSERT OR REPLACE INTO apiKeys(id, key, name, machineId, isActive, expiresAt, tokenLimit, tokensUsed, tokensReserved, allowedModels, createdAt, accessRestricted, accessAllow) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[c.id,c.key,c.name||null,c.machineId||null,+(!1!==c.isActive),c.expiresAt||null,null==c.tokenLimit?null:Number(c.tokenLimit),Number(c.tokensUsed||0),Number(c.tokensReserved||0),(0,e.s)(c.allowedModels||null),c.createdAt||new Date().toISOString(),d.accessRestricted,d.accessAllow])}for(let c of a.combos||[])b.run("INSERT OR REPLACE INTO combos(id, name, kind, models, config, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?, ?)",[c.id,c.name,c.kind||null,(0,e.s)(c.models||[]),c.config?(0,e.s)(c.config):null,c.createdAt||new Date().toISOString(),c.updatedAt||new Date().toISOString()]);for(let[c,d]of Object.entries(a.modelAliases||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('modelAliases', ?, ?)",[c,(0,e.s)(d)]);for(let c of a.customModels||[]){let a=`${c.providerAlias}|${c.id}|${c.type||"llm"}`;b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('customModels', ?, ?)",[a,(0,e.s)(c)])}for(let[c,d]of Object.entries(a.mitmAlias||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('mitmAlias', ?, ?)",[c,(0,e.s)(d||{})]);for(let[c,d]of Object.entries(a.pricing||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('pricing', ?, ?)",[c,(0,e.s)(d||{})]);for(let[c,d]of Object.entries(a.modelCaps||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('modelCaps', ?, ?)",[c,(0,e.s)(d||{})])}),await aV()}},16329:(a,b,c)=>{c.d(b,{Bb:()=>e,Om:()=>g});let d=globalThis.__9routerShutdownState??={flushers:new Set,priorities:new Map,shutdownPromise:null,signalHandler:null,beforeExitHandler:null};function e(a,b=0){if("function"!=typeof a)throw TypeError("shutdown flusher must be a function");return d.flushers.add(a),d.priorities.set(a,Number.isFinite(b)?b:0),d.signalHandler??=()=>g(0),d.beforeExitHandler??=()=>f(),process.listeners("SIGINT").includes(d.signalHandler)||process.once("SIGINT",d.signalHandler),process.listeners("SIGTERM").includes(d.signalHandler)||process.once("SIGTERM",d.signalHandler),process.listeners("beforeExit").includes(d.beforeExitHandler)||process.once("beforeExit",d.beforeExitHandler),()=>{d.flushers.delete(a),d.priorities.delete(a)}}function f(){return d.shutdownPromise||(d.shutdownPromise=(async()=>{let a=new Map;for(let b of d.flushers){let c=d.priorities.get(b)??0;a.has(c)||a.set(c,[]),a.get(c).push(b)}for(let b of[...a.keys()].sort((a,b)=>a-b))for(let c of(await Promise.allSettled(a.get(b).map(a=>Promise.resolve().then(a)))))"rejected"===c.status&&console.error("[Shutdown] flusher failed:",c.reason?.message||c.reason)})()),d.shutdownPromise}async function g(a=0){await f(),process.exit(a)}},22846:(a,b,c)=>{c.d(b,{U:()=>f});var d=c(5684),e=c(644);function f(a){return{async get(b,c=null){let f=(await (0,d.getAdapter)()).get("SELECT value FROM kv WHERE scope = ? AND key = ?",[a,b]);return f?(0,e.q)(f.value,c):c},async getAll(){let b=(await (0,d.getAdapter)()).all("SELECT key, value FROM kv WHERE scope = ?",[a]),c={};for(let a of b)c[a.key]=(0,e.q)(a.value);return c},async set(b,c){(await (0,d.getAdapter)()).run("INSERT INTO kv(scope, key, value) VALUES(?, ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[a,b,(0,e.s)(c)])},async setMany(b){let c=await (0,d.getAdapter)();c.transaction(()=>{for(let[d,f]of Object.entries(b))c.run("INSERT INTO kv(scope, key, value) VALUES(?, ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[a,d,(0,e.s)(f)])})},async remove(b){(await (0,d.getAdapter)()).run("DELETE FROM kv WHERE scope = ? AND key = ?",[a,b])},async clear(){(await (0,d.getAdapter)()).run("DELETE FROM kv WHERE scope = ?",[a])}}}},29485:(a,b,c)=>{c.d(b,{KC:()=>t,OA:()=>p,PROVIDER_MODELS:()=>e.vq,SM:()=>j,V2:()=>q,Xg:()=>s,cY:()=>u,ez:()=>o,fZ:()=>k,kt:()=>r,ux:()=>n});var d=c(95578),e=c(39141),f=c(6595),g=c(8382),h=c(19956);let i=a=>!a||["oc","opencode","ocg","opencode-go","ocz","opencode-zen"].includes(a);function j(a){return e.vq[a]||[]}function k(a){let b=e.vq[a];return b?.[0]?.id||null}let l=new Set(["kr","kiro"]);function m(a,b,c){if(!a)return;let d="string"==typeof b?b.replace(/\([^()]+\)\s*$/,"").trim():b,e=a.find(a=>a.id===b||a.id===d);if(e)return e;if(!l.has(c))return;let g=(0,f.Kq)(d);if(g!==d)return a.find(a=>a.id===g)}function n(a,b){if(i(a)&&(0,g.nh)(b))return h.h.OPENAI_RESPONSES;let c=e.vq[a];if(!c)return null;let d=m(c,b,a);return d?(0,f.gr)(d):i(a)&&(0,g.i8)(b)?.targetFormat||null}function o(a,b){let c=e.vq[a];if(!c)return null;let d=m(c,b,a);return d?(0,f.ec)(d):i(a)?(0,g.i8)(b)?.supportedFormats||[h.h.OPENAI]:null}function p(a,b){let c=e.vq[a];if(!c)return null;let d=m(c,b,a);return d?.kind||d?.type||null}function q(a,b){return m(e.vq[a],b,a)||null}function r(a,b,c=null){let d="string"==typeof b?b.match(/\([^()]+\)\s*$/):null,f=d?d[0]:"",h=f?b.slice(0,d.index).trim():b,i=e.vq[a],j=f?f.slice(1,-1).trim().toLowerCase():"",k="xhigh"===j||"max"===j?"high":"minimal"===j?"low":j;if(!k&&c&&"object"==typeof c){let a=c.reasoning_effort||c.output_config?.effort||("object"==typeof c.reasoning?c.reasoning?.effort:null);if("string"==typeof a&&a){let b=a.toLowerCase().trim();k="xhigh"===b||"max"===b?"high":"minimal"===b?"low":b}else if(c.thinking&&"object"==typeof c.thinking){let a=Number(c.thinking.budget_tokens);Number.isFinite(a)&&a>0&&(k=a>16384?"high":a<=4096?"low":"medium")}}let l=k?`${h}-${k}`:null,n=l&&m(i,l,a)||m(i,h,a),o=n?.upstreamModelId||n?.id;if(o){let a=o.match(/\([^()]+\)\s*$/),b=a?.[0]||"";return(b?o.slice(0,a.index).trim():o)+(f||(b&&k?`(${k})`:b))}return"cx"===a&&"string"==typeof h&&h.endsWith(g.d5)?h.slice(0,-g.d5.length)+f:h+f}Object.fromEntries(d.default.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias]));let s=Object.fromEntries(d.default.map(a=>[a.id,a.alias||a.id]));function t(a){let b=s[a]||a;return e.vq[b]||[]}function u(a,b){return(0,f.g5)(m(e.vq[a],b,a))}},29686:(a,b,c)=>{c.d(b,{MH:()=>h,Uw:()=>g,s7:()=>i});var d=c(40615);function e(a){return!a||"object"!=typeof a}function f(a){return a&&"string"==typeof a?(0,d.rs)(a):a}function g(a,b,c){if(!function(a,b){if(e(a))return!0;let c=a.providers;if(!Array.isArray(c))return!0;let d=f(b);return c.some(a=>f(a)===d)}(a,b))return!1;if(e(a))return!0;let d=a.models;if(!Array.isArray(d)||0===d.length)return!0;let g=f(b);return d.some(a=>{if("string"!=typeof a||!a.includes("/"))return!1;let b=a.indexOf("/"),d=f(a.slice(0,b)),e=a.slice(b+1);return d===g&&e===c})}function h(a,b){if(e(a))return!0;if("string"!=typeof b||!b.includes("/"))return!1;let c=b.indexOf("/");return g(a,b.slice(0,c),b.slice(c+1))}function i(a){if(null==a||"object"!=typeof a)return null;let b={};return(Array.isArray(a.providers)&&(b.providers=a.providers.filter(a=>"string"==typeof a&&""!==a.trim())),Array.isArray(a.models)&&(b.models=a.models.filter(a=>"string"==typeof a&&a.includes("/"))),"providers"in b||"models"in b)?b:null}},33666:(a,b,c)=>{c.d(b,{M7:()=>h,ZC:()=>e,aB:()=>g,xE:()=>f});var d=c(38606);function e(a){if(!Array.isArray(a))return[];let b=new Set,c=[];for(let d of a){if("string"!=typeof d)continue;let a=d.trim();if(!a)continue;let e=a.toLowerCase();b.has(e)||(b.add(e),c.push(a))}return c}function f(a,b){if(1!==a&&!0!==a)return{restricted:!1,allow:[]};let c=[];if("string"==typeof b&&b)try{c=JSON.parse(b)}catch{c=[]}return{restricted:!0,allow:e(c)}}function g(a){let b=a||d.M0;return{accessRestricted:+!!b.restricted,accessAllow:JSON.stringify(b.restricted?e(b.allow):[])}}function h(a){if(!a||"object"!=typeof a||Array.isArray(a))return{ok:!1,error:"access must be an object { restricted, allow }"};let b=Object.keys(a).filter(a=>"restricted"!==a&&"allow"!==a);if(b.length)return{ok:!1,error:`access: unexpected field(s) ${b.join(", ")}`};if("boolean"!=typeof a.restricted)return{ok:!1,error:"access.restricted must be a boolean"};let c=void 0===a.allow?[]:a.allow;return!Array.isArray(c)||c.some(a=>"string"!=typeof a)?{ok:!1,error:"access.allow must be an array of strings"}:c.length>d.lO?{ok:!1,error:`access.allow has more than ${d.lO} entries`}:c.some(a=>a.trim().length>d.AM)?{ok:!1,error:`access.allow entries must be at most ${d.AM} characters`}:{ok:!0,value:{restricted:a.restricted,allow:e(c)}}}},38606:(a,b,c)=>{c.d(b,{AM:()=>e,Cq:()=>j,HR:()=>h,M0:()=>f,WR:()=>i,YR:()=>g,lO:()=>d});let d=200,e=256,f=Object.freeze({restricted:!1,allow:Object.freeze([])}),g=Object.freeze(["webSearch","webFetch"]);function h(a){if("string"!=typeof a||!a.endsWith("/*"))return null;let b=a.slice(0,-2).trim();return b&&!b.includes("/")?b:null}let i="combo";function j(a){return`This API key is not allowed to use model "${a}"`}},40615:(a,b,c)=>{c.d(b,{AI_PROVIDERS:()=>u,js:()=>B,DI:()=>n,fg:()=>k,Pd:()=>o,Vj:()=>p,IS:()=>h,nJ:()=>i,zN:()=>j,JH:()=>m,jO:()=>D,wb:()=>C,br:()=>l,wG:()=>A,zt:()=>v,gb:()=>r,gC:()=>s,AR:()=>t,mq:()=>q,YI:()=>x,rs:()=>w,p5:()=>z});var d=c(95578);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.default.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","systemoneConfig","credentialFallback","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.default.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.fastMode?{fastMode:a.fastMode}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.baseUrlField?{baseUrlField:a.baseUrlField}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.models?{models:a.models}:{},...a.authModes?{authModes:a.authModes}:{},...a.features?{features:{...a.features}}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{},...a.apiKeyOptionalWith?{apiKeyOptionalWith:a.apiKeyOptionalWith}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m="openai-compatible-",n="anthropic-compatible-",o="custom-embedding-",p="custom-video-";function q(a){return"string"==typeof a&&a.startsWith(m)}function r(a){return"string"==typeof a&&a.startsWith(n)}function s(a){return"string"==typeof a&&a.startsWith(o)}function t(a){return"string"==typeof a&&a.startsWith(p)}let u={...h,...i,...j,...k,...l};function v(a){for(let b of Object.values(u))if(b.alias===a||b.id===a)return b;return null}function w(a){let b=v(a);return b?.id||a}function x(a){return!!a&&(!!v(a)||q(a)||r(a))}let y={nvidia:40};function z(a,b){let c=(a?.rpmByProvider||{})[b];if(0===c||"0"===c)return 0;let d=Number(c);return Number.isFinite(d)&&d>0?d:y[b]||0}function A(a){let b=u[a];return b?.alias||a}let B=Object.values(u).reduce((a,b)=>(a[b.alias]=b.id,a),{});Object.values(u).reduce((a,b)=>(a[b.id]=b.alias,a),{});let C=d.default.filter(a=>a.features?.usage).map(a=>a.id),D=d.default.filter(a=>a.features?.usageApikey).map(a=>a.id)},42655:(a,b,c)=>{c.d(b,{Xx:()=>j,exportSettings:()=>k,getSettings:()=>i});var d=c(5684),e=c(644);let f={cloudEnabled:!1,tunnelEnabled:!1,tunnelUrl:"",tunnelProvider:"cloudflare",tailscaleEnabled:!1,tailscaleUrl:"",stickyRoundRobinLimit:3,providerStrategies:{},latencyAwareConfig:{},quotaVisibility:{},retryDelayByProvider:{},rpmByProvider:{},comboStrategy:"fallback",comboStickyRoundRobinLimit:1,comboStrategies:{},exposeComboOnly:!1,requireLogin:!0,tunnelDashboardAccess:!0,authMode:"password",ssoType:"oidc",oidcIssuerUrl:"",oidcClientId:"",oidcClientSecret:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC",oidcAllowedSubjects:[],samlEntryPoint:"",samlIssuer:"urn:ezrouter:sp",samlCert:"",samlLoginLabel:"Sign in with SAML SSO",samlAttributeEmail:"email",samlAttributeName:"name",enableObservability:!0,observabilityMaxRecords:1e3,observabilityBatchSize:20,observabilityFlushIntervalMs:5e3,observabilityMaxJsonSize:5,outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:"",mitmRouterBaseUrl:"http://localhost:20126",dnsToolEnabled:{},rtkEnabled:!0,headroomEnabled:!0,headroomUrl:process.env.HEADROOM_URL||"http://localhost:8787",headroomCompressUserMessages:!1,headroomTimeoutMs:3e3,cavemanEnabled:!0,cavemanLevel:"full",ponytailEnabled:!0,ponytailLevel:"full",customPromptEnabled:!1,customPrompt:"",toolRankEnabled:!1,pxpipeEnabled:!1,pxpipeAutoInstall:!1,pxpipeMinChars:25e3,pxpipeTimeoutMs:15e3,toolDisclosureEnabled:!1,toolDisclosureFilterEnabled:!1,toolDisclosureMaxTools:20,toolHistoryPruning:{enabled:!0,maxToolTurns:15,maxCharsPerResult:3e4,maxTotalChars:15e4,preserveErrors:!0},providerOverrides:{}};async function g(){let a=(await (0,d.getAdapter)()).get("SELECT data FROM settings WHERE id = 1");return a?(0,e.q)(a.data,{}):{}}function h(a){let b={...f,...a||{}};for(let[a,c]of Object.entries(f))void 0===b[a]&&("outboundProxyEnabled"===a&&"string"==typeof b.outboundProxyUrl&&b.outboundProxyUrl.trim()?b[a]=!0:b[a]=c);if(b.capacityAdapter&&"object"==typeof b.capacityAdapter)for(let a of Object.keys(b.capacityAdapter)){let c=b.capacityAdapter[a];Array.isArray(c?.models)&&(c.models=c.models.map(a=>"oc/mimo-v2.5-free"===a?"oc/mimo-v2.6-flash-free":a))}return b}async function i(){return h(await g())}async function j(a){let b,c=await (0,d.getAdapter)();return c.transaction(()=>{let d=c.get("SELECT data FROM settings WHERE id = 1");b={...d?(0,e.q)(d.data,{}):{},...a},c.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(b)])}),h(b)}async function k(){return await g()}},49120:(a,b,c)=>{c.d(b,{n:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="ezrouter";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}let l=function(){let a=process.env.DATA_DIR;if(!a)return k();if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),k();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}()},57473:(a,b,c)=>{c.d(b,{Nb:()=>j,QB:()=>h,oH:()=>i});var d=c(5684),e=c(644),f=c(94755);function g(a,b){if(null==a)return null;let c="string"==typeof a?a:JSON.stringify(a);if(Buffer.byteLength(c,"utf8")<=b)return c;let d=c.slice(0,b);return`${d}…`}async function h(a){let b=await (0,d.getAdapter)(),c=a.id||(0,f.A)(),h={id:c,timestamp:a.timestamp||new Date().toISOString(),endpoint:a.endpoint||null,provider:a.provider||null,model:a.model||null,connectionId:a.connectionId||null,comboName:a.comboName||null,statusCode:null!=a.statusCode?String(a.statusCode):null,errorMessage:"string"==typeof a.errorMessage?a.errorMessage:a.errorMessage?JSON.stringify(a.errorMessage):null,request:g(a.request,5120),providerRequest:g(a.providerRequest,5120),providerResponse:g(a.providerResponse,5120),meta:(0,e.s)({latency:a.latency||{},tokens:a.tokens||{},retryAfter:a.retryAfter||null,retryAfterHuman:a.retryAfterHuman||null,fallback:!!a.fallback,fallbackReason:a.fallbackReason||null,extra:a.meta||{}})};b.run(`INSERT INTO errorLogs(
27
27
  id, timestamp, endpoint, provider, model, connectionId, comboName,
28
28
  statusCode, errorMessage, request, providerRequest, providerResponse, meta
29
29
  ) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
@@ -39,7 +39,7 @@ ${k.join("\n")}`);a=l,b=a=>Array.isArray(a)?a.map(e):a,l={...a,run:(c,d=[])=>a.r
39
39
  request = excluded.request,
40
40
  providerRequest = excluded.providerRequest,
41
41
  providerResponse = excluded.providerResponse,
42
- meta = excluded.meta`,[h.id,h.timestamp,h.endpoint,h.provider,h.model,h.connectionId,h.comboName,h.statusCode,h.errorMessage,h.request,h.providerRequest,h.providerResponse,h.meta]);let i=b.get("SELECT COUNT(*) c FROM errorLogs"),j=i?.c||0;return j>200&&b.run("DELETE FROM errorLogs WHERE id IN (SELECT id FROM errorLogs ORDER BY timestamp ASC LIMIT ?)",[j-200]),c}async function i(a={}){let b=await (0,d.getAdapter)(),c=[],f=[];a.provider&&(c.push("provider = ?"),f.push(a.provider)),a.model&&(c.push("model = ?"),f.push(a.model)),a.connectionId&&(c.push("connectionId = ?"),f.push(a.connectionId)),a.comboName&&(c.push("comboName = ?"),f.push(a.comboName)),a.statusCode&&(c.push("statusCode = ?"),f.push(String(a.statusCode))),a.startDate&&(c.push("timestamp >= ?"),f.push(new Date(a.startDate).toISOString())),a.endDate&&(c.push("timestamp <= ?"),f.push(new Date(a.endDate).toISOString()));let g=c.length?`WHERE ${c.join(" AND ")}`:"",h=a.page&&a.page>0?a.page:1,j=a.pageSize&&a.pageSize>0?Math.min(a.pageSize,100):20,k=b.get(`SELECT COUNT(*) c FROM errorLogs ${g}`,f),l=k?.c||0,m=Math.ceil(l/j)||1;return{details:b.all(`SELECT * FROM errorLogs ${g} ORDER BY timestamp DESC LIMIT ? OFFSET ?`,[...f,j,(h-1)*j]).map(a=>({id:a.id,timestamp:a.timestamp,endpoint:a.endpoint,provider:a.provider,model:a.model,connectionId:a.connectionId,comboName:a.comboName,statusCode:a.statusCode,errorMessage:a.errorMessage,request:(0,e.q)(a.request,null),providerRequest:(0,e.q)(a.providerRequest,null),providerResponse:(0,e.q)(a.providerResponse,null),meta:(0,e.q)(a.meta,{})})),pagination:{page:h,pageSize:j,totalItems:l,totalPages:m,hasNext:h<m,hasPrev:h>1}}}async function j(a){let b=(await (0,d.getAdapter)()).get("SELECT * FROM errorLogs WHERE id = ?",[a]);return b?{id:b.id,timestamp:b.timestamp,endpoint:b.endpoint,provider:b.provider,model:b.model,connectionId:b.connectionId,comboName:b.comboName,statusCode:b.statusCode,errorMessage:b.errorMessage,request:(0,e.q)(b.request,null),providerRequest:(0,e.q)(b.providerRequest,null),providerResponse:(0,e.q)(b.providerResponse,null),meta:(0,e.q)(b.meta,{})}:null}},62674:(a,b,c)=>{function d(a,b,c=null){let e=a.get("SELECT value FROM _meta WHERE key = ?",[b]);return e?e.value:c}function e(a,b,c){a.run("INSERT INTO _meta(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[b,String(c)])}c.d(b,{dy:()=>d,np:()=>e}),c(5684)},66451:(a,b,c)=>{c.d(b,{PN:()=>k,Xh:()=>l,ff:()=>i,g2:()=>j,js:()=>n,sc:()=>m});var d=c(49476),e=c(29485);let f={el:"elevenlabs",jina:"jina-ai","jina-ai":"jina-ai",polly:"aws-polly","aws-polly":"aws-polly"};for(let a of d.default)for(let b of(f[a.id]=a.id,a.alias&&(f[a.alias]=a.id),a.aliases||[]))f[b]=a.id;let g={"grok-build":"gcli/grok-build"},h=new Map;for(let a of d.default)a.noAuth&&a.modelsFetcher&&a.alias&&h.set(a.id,a.alias);function i(a,b){let c,d,e;if(a&&"object"==typeof a?(c=a.requestedModel,d=a.provider,e=a.model):(c=a,d=b?.provider,e=b?.model),!c||c.includes("/"))return c;let f=h.get(d);return f?`${f}/${e}`:c}function j(a){return f[a]||a}function k(a){if(!a)return null;let b=[];for(let[c,d]of Object.entries(e.PROVIDER_MODELS))Array.isArray(d)&&d.some(b=>b&&b.id===a)&&b.push(c);if(0===b.length)return null;if(1===b.length)return j(b[0]);let c=b.find(b=>a.startsWith(b));return c?j(c):null}function l(a){if(!a)return{provider:null,model:null,isAlias:!1,providerAlias:null};if(a.includes("/")){let b=a.indexOf("/"),c=a.slice(0,b),d=a.slice(b+1);return{provider:j(c),model:d,isAlias:!1,providerAlias:c}}return{provider:null,model:a,isAlias:!0,providerAlias:null}}function m(a,b){if(!b)return null;let c=b[a];if(!c)return null;if("string"==typeof c&&c.includes("/")){let a=c.indexOf("/");return{provider:j(c.slice(0,a)),model:c.slice(a+1)}}return"object"==typeof c&&c.provider&&c.model?{provider:j(c.provider),model:c.model}:null}async function n(a,b){let c=l(a);if(!c.isAlias)return{provider:c.provider,model:c.model};let d="function"==typeof b?await b():b,e=m(c.model,d)||m(c.model,g);return e||{provider:function(a){if(!a)return"openai";let b=a.toLowerCase();return"default"===b||"auto"===b?"cursor":o.find(([a])=>a.test(b))?.[1]||"openai"}(c.model),model:c.model}}let o=[[/^codex-auto-review$/,"codex"],[/^gpt-[56]\./,"codex"],[/^gpt-6-/,"codex"],[/^gpt-daybreak-/,"codex"],[/^gpt-reserve/,"codex"],[/^claude-/,"anthropic"],[/^gemini-/,"gemini"],[/^gpt-/,"openai"],[/^o[134]/,"openai"],[/^glm-/,"glm"],[/^qwen[-0-9]/,"qwen"],[/^deepseek-/,"deepseek"],[/^kimi-/,"kimi"],[/^moonshot-/,"kimi"],[/^minimax-/,"minimax"],[/^grok-/,"xai"],[/^(mistral|codestral)-/,"mistral"],[/^(cohere|command)-/,"cohere"],[/^(sonar|perplexity)-/,"perplexity"],[/^(llama|meta-llama)-/,"groq"],[/^yi-/,"lingyi"],[/^baichuan-/,"baichuan"],[/^doubao-/,"volcengine-ark"],[/^step-/,"stepfun"]]},74452:(a,b,c)=>{c.r(b),c.d(b,{addKeySpend:()=>x,budgetPeriodMs:()=>w,createApiKey:()=>r,deleteApiKey:()=>t,getApiKeyById:()=>o,getApiKeyByKey:()=>p,getApiKeyBySecret:()=>v,getApiKeyByValue:()=>q,getApiKeyScopeByKey:()=>A,getApiKeys:()=>n,reserveApiKeyTokens:()=>y,settleApiKeyTokens:()=>z,updateApiKey:()=>s,validateApiKey:()=>u});var d=c(94755),e=c(5684),f=c(29686),g=c(33666),h=c(38606);function i(a){if(!a)return null;try{let b=JSON.parse(a);return b&&"object"==typeof b?b:null}catch{return null}}function j(a){if(!Array.isArray(a))return null;let b=[...new Set(a.filter(a=>"string"==typeof a&&a.trim()).map(a=>a.trim()))];return b.length?b:null}function k(a){if(null==a||""===a)return null;let b=Number(a);if(!Number.isSafeInteger(b)||b<1)throw Error("tokenLimit must be a positive integer");return b}function l(a){if(null==a||""===a)return null;let b=new Date(a);if(Number.isNaN(b.getTime()))throw Error("expiresAt must be a valid date");return b.toISOString()}function m(a){return a?{id:a.id,key:a.key,name:a.name,machineId:a.machineId,isActive:1===a.isActive||!0===a.isActive,expiresAt:a.expiresAt||null,tokenLimit:null==a.tokenLimit?null:Number(a.tokenLimit),tokensUsed:Number(a.tokensUsed||0),tokensReserved:Number(a.tokensReserved||0),allowedModels:(()=>{try{return a.allowedModels?JSON.parse(a.allowedModels):null}catch{return null}})(),createdAt:a.createdAt,scope:i(a.scope),access:(0,g.xE)(a.accessRestricted,a.accessAllow)}:null}async function n(){let a=await (0,e.getAdapter)(),b=a.all("SELECT * FROM apiKeys ORDER BY createdAt ASC"),c={};try{for(let b of a.all(`
42
+ meta = excluded.meta`,[h.id,h.timestamp,h.endpoint,h.provider,h.model,h.connectionId,h.comboName,h.statusCode,h.errorMessage,h.request,h.providerRequest,h.providerResponse,h.meta]);let i=b.get("SELECT COUNT(*) c FROM errorLogs"),j=i?.c||0;return j>200&&b.run("DELETE FROM errorLogs WHERE id IN (SELECT id FROM errorLogs ORDER BY timestamp ASC LIMIT ?)",[j-200]),c}async function i(a={}){let b=await (0,d.getAdapter)(),c=[],f=[];a.provider&&(c.push("provider = ?"),f.push(a.provider)),a.model&&(c.push("model = ?"),f.push(a.model)),a.connectionId&&(c.push("connectionId = ?"),f.push(a.connectionId)),a.comboName&&(c.push("comboName = ?"),f.push(a.comboName)),a.statusCode&&(c.push("statusCode = ?"),f.push(String(a.statusCode))),a.startDate&&(c.push("timestamp >= ?"),f.push(new Date(a.startDate).toISOString())),a.endDate&&(c.push("timestamp <= ?"),f.push(new Date(a.endDate).toISOString()));let g=c.length?`WHERE ${c.join(" AND ")}`:"",h=a.page&&a.page>0?a.page:1,j=a.pageSize&&a.pageSize>0?Math.min(a.pageSize,100):20,k=b.get(`SELECT COUNT(*) c FROM errorLogs ${g}`,f),l=k?.c||0,m=Math.ceil(l/j)||1;return{details:b.all(`SELECT * FROM errorLogs ${g} ORDER BY timestamp DESC LIMIT ? OFFSET ?`,[...f,j,(h-1)*j]).map(a=>({id:a.id,timestamp:a.timestamp,endpoint:a.endpoint,provider:a.provider,model:a.model,connectionId:a.connectionId,comboName:a.comboName,statusCode:a.statusCode,errorMessage:a.errorMessage,request:(0,e.q)(a.request,null),providerRequest:(0,e.q)(a.providerRequest,null),providerResponse:(0,e.q)(a.providerResponse,null),meta:(0,e.q)(a.meta,{})})),pagination:{page:h,pageSize:j,totalItems:l,totalPages:m,hasNext:h<m,hasPrev:h>1}}}async function j(a){let b=(await (0,d.getAdapter)()).get("SELECT * FROM errorLogs WHERE id = ?",[a]);return b?{id:b.id,timestamp:b.timestamp,endpoint:b.endpoint,provider:b.provider,model:b.model,connectionId:b.connectionId,comboName:b.comboName,statusCode:b.statusCode,errorMessage:b.errorMessage,request:(0,e.q)(b.request,null),providerRequest:(0,e.q)(b.providerRequest,null),providerResponse:(0,e.q)(b.providerResponse,null),meta:(0,e.q)(b.meta,{})}:null}},62674:(a,b,c)=>{function d(a,b,c=null){let e=a.get("SELECT value FROM _meta WHERE key = ?",[b]);return e?e.value:c}function e(a,b,c){a.run("INSERT INTO _meta(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[b,String(c)])}c.d(b,{dy:()=>d,np:()=>e}),c(5684)},66451:(a,b,c)=>{c.d(b,{PN:()=>k,Xh:()=>l,ff:()=>i,g2:()=>j,js:()=>n,sc:()=>m});var d=c(95578),e=c(29485);let f={el:"elevenlabs",jina:"jina-ai","jina-ai":"jina-ai",polly:"aws-polly","aws-polly":"aws-polly"};for(let a of d.default)for(let b of(f[a.id]=a.id,a.alias&&(f[a.alias]=a.id),a.aliases||[]))f[b]=a.id;let g={"grok-build":"gcli/grok-build"},h=new Map;for(let a of d.default)a.noAuth&&a.modelsFetcher&&a.alias&&h.set(a.id,a.alias);function i(a,b){let c,d,e;if(a&&"object"==typeof a?(c=a.requestedModel,d=a.provider,e=a.model):(c=a,d=b?.provider,e=b?.model),!c||c.includes("/"))return c;let f=h.get(d);return f?`${f}/${e}`:c}function j(a){return f[a]||a}function k(a){if(!a)return null;let b=[];for(let[c,d]of Object.entries(e.PROVIDER_MODELS))Array.isArray(d)&&d.some(b=>b&&b.id===a)&&b.push(c);if(0===b.length)return null;if(1===b.length)return j(b[0]);let c=b.find(b=>a.startsWith(b));return c?j(c):null}function l(a){if(!a)return{provider:null,model:null,isAlias:!1,providerAlias:null};if(a.includes("/")){let b=a.indexOf("/"),c=a.slice(0,b),d=a.slice(b+1);return{provider:j(c),model:d,isAlias:!1,providerAlias:c}}return{provider:null,model:a,isAlias:!0,providerAlias:null}}function m(a,b){if(!b)return null;let c=b[a];if(!c)return null;if("string"==typeof c&&c.includes("/")){let a=c.indexOf("/");return{provider:j(c.slice(0,a)),model:c.slice(a+1)}}return"object"==typeof c&&c.provider&&c.model?{provider:j(c.provider),model:c.model}:null}async function n(a,b){let c=l(a);if(!c.isAlias)return{provider:c.provider,model:c.model};let d="function"==typeof b?await b():b,e=m(c.model,d)||m(c.model,g);return e||{provider:function(a){if(!a)return"openai";let b=a.toLowerCase();return"default"===b||"auto"===b?"cursor":o.find(([a])=>a.test(b))?.[1]||"openai"}(c.model),model:c.model}}let o=[[/^codex-auto-review$/,"codex"],[/^gpt-[56]\./,"codex"],[/^gpt-6-/,"codex"],[/^gpt-daybreak-/,"codex"],[/^gpt-reserve/,"codex"],[/^claude-/,"anthropic"],[/^gemini-/,"gemini"],[/^gpt-/,"openai"],[/^o[134]/,"openai"],[/^glm-/,"glm"],[/^qwen[-0-9]/,"qwen"],[/^deepseek-/,"deepseek"],[/^kimi-/,"kimi"],[/^moonshot-/,"kimi"],[/^minimax-/,"minimax"],[/^grok-/,"xai"],[/^(mistral|codestral)-/,"mistral"],[/^(cohere|command)-/,"cohere"],[/^(sonar|perplexity)-/,"perplexity"],[/^(llama|meta-llama)-/,"groq"],[/^yi-/,"lingyi"],[/^baichuan-/,"baichuan"],[/^doubao-/,"volcengine-ark"],[/^step-/,"stepfun"]]},74452:(a,b,c)=>{c.r(b),c.d(b,{addKeySpend:()=>x,budgetPeriodMs:()=>w,createApiKey:()=>r,deleteApiKey:()=>t,getApiKeyById:()=>o,getApiKeyByKey:()=>p,getApiKeyBySecret:()=>v,getApiKeyByValue:()=>q,getApiKeyScopeByKey:()=>A,getApiKeys:()=>n,reserveApiKeyTokens:()=>y,settleApiKeyTokens:()=>z,updateApiKey:()=>s,validateApiKey:()=>u});var d=c(94755),e=c(5684),f=c(29686),g=c(33666),h=c(38606);function i(a){if(!a)return null;try{let b=JSON.parse(a);return b&&"object"==typeof b?b:null}catch{return null}}function j(a){if(!Array.isArray(a))return null;let b=[...new Set(a.filter(a=>"string"==typeof a&&a.trim()).map(a=>a.trim()))];return b.length?b:null}function k(a){if(null==a||""===a)return null;let b=Number(a);if(!Number.isSafeInteger(b)||b<1)throw Error("tokenLimit must be a positive integer");return b}function l(a){if(null==a||""===a)return null;let b=new Date(a);if(Number.isNaN(b.getTime()))throw Error("expiresAt must be a valid date");return b.toISOString()}function m(a){return a?{id:a.id,key:a.key,name:a.name,machineId:a.machineId,isActive:1===a.isActive||!0===a.isActive,expiresAt:a.expiresAt||null,tokenLimit:null==a.tokenLimit?null:Number(a.tokenLimit),tokensUsed:Number(a.tokensUsed||0),tokensReserved:Number(a.tokensReserved||0),allowedModels:(()=>{try{return a.allowedModels?JSON.parse(a.allowedModels):null}catch{return null}})(),createdAt:a.createdAt,scope:i(a.scope),access:(0,g.xE)(a.accessRestricted,a.accessAllow)}:null}async function n(){let a=await (0,e.getAdapter)(),b=a.all("SELECT * FROM apiKeys ORDER BY createdAt ASC"),c={};try{for(let b of a.all(`
43
43
  SELECT apiKey, COUNT(*) as requests, SUM(COALESCE(promptTokens, 0) + COALESCE(completionTokens, 0)) as totalTokens, MAX(timestamp) as lastUsed
44
44
  FROM usageHistory
45
45
  WHERE apiKey IS NOT NULL AND apiKey != ''