zevairouter 1.1.60 → 1.1.62

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 (855) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +9 -9
  4. package/cli/app/.next-cli-build/build-manifest.json +3 -3
  5. package/cli/app/.next-cli-build/prerender-manifest.json +5 -5
  6. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +1 -1
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  64. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  65. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  66. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  67. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  68. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  69. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  70. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  71. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  72. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
  73. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  74. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  75. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  76. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  77. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  78. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js +2 -2
  79. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  81. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  82. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  83. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  84. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  85. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  86. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  87. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  88. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  89. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  90. package/cli/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  91. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  92. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  93. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  94. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  95. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  96. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  97. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  98. package/cli/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  99. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  100. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  101. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  102. package/cli/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  103. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  104. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
  105. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  106. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +2 -2
  121. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  151. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  153. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  155. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  159. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  161. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  163. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  165. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  167. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  169. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  173. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  175. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  177. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  179. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js +2 -2
  181. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  183. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  185. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  187. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/context/route.js +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/context/test/route.js +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/context/test/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/health/route.js +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +2 -2
  247. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +2 -2
  253. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/metrics/route.js +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +2 -2
  271. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/json-import/route.js +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/json-import/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  380. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
  387. package/cli/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route_client-reference-manifest.js +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  399. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  401. package/cli/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  403. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  404. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  405. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  406. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  407. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  408. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  409. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js +1 -1
  410. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  411. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  412. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  413. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js +1 -1
  414. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js +1 -1
  416. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  417. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js +1 -1
  418. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js.nft.json +1 -1
  419. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js +1 -1
  420. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js.nft.json +1 -1
  421. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js +1 -1
  422. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
  423. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js +1 -1
  424. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -1
  425. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js +1 -1
  426. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -1
  427. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  428. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  429. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js +1 -1
  430. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
  431. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js +1 -1
  432. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
  433. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
  434. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  435. package/cli/app/.next-cli-build/server/app/api/providers/openrouter/discover-models/route.js +1 -1
  436. package/cli/app/.next-cli-build/server/app/api/providers/openrouter/discover-models/route.js.nft.json +1 -1
  437. package/cli/app/.next-cli-build/server/app/api/providers/route.js +2 -2
  438. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  439. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  440. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  441. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  442. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  443. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  444. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  445. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js +1 -1
  446. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  447. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  448. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  449. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  450. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  451. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  452. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  453. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +1 -1
  454. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  455. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  456. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  457. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
  458. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  459. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  460. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  461. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  462. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  463. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  464. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  465. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  466. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  467. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  468. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  469. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  470. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  471. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  472. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  473. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  474. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  475. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  476. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  477. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  478. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  479. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  480. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  481. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  482. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  483. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  484. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  485. package/cli/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  486. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  487. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js +1 -1
  488. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  489. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js +1 -1
  490. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  491. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js +1 -1
  492. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  493. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js +1 -1
  494. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  495. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js +1 -1
  496. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  497. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js +1 -1
  498. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  499. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js +2 -2
  500. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  501. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js +1 -1
  502. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  503. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  504. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  505. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  506. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  507. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  508. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  509. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  510. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  511. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  512. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  513. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  514. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  515. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  516. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  517. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  518. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  519. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  520. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  521. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  522. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  523. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  524. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  525. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  526. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  527. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  528. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  529. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  530. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  531. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  532. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  533. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  534. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  535. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  536. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  537. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  538. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  539. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  540. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  541. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  542. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  543. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  544. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  545. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +2 -2
  546. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  547. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  548. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  549. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  550. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  551. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js +2 -2
  552. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  553. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  554. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  555. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  556. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  557. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  558. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  559. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  560. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  561. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  562. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  563. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  564. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  565. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  566. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  567. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  568. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  569. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  570. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  571. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  572. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  573. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  574. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  575. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  576. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  577. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  578. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  579. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  580. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  581. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  582. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  583. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  584. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  585. package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  586. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  587. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +2 -2
  588. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  589. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  590. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  591. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js +1 -1
  592. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
  593. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  594. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  595. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  596. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  597. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  598. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  599. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  600. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  601. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +2 -2
  602. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  603. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  604. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  605. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  606. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  607. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  608. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  609. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  610. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  611. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  612. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  613. package/cli/app/.next-cli-build/server/app/callback/page.js +1 -1
  614. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  615. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  616. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  617. package/cli/app/.next-cli-build/server/app/callback.rsc +5 -5
  618. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  619. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  620. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
  621. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  622. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +5 -5
  623. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +5 -5
  624. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +5 -5
  625. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  626. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  627. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
  628. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +7 -7
  629. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
  630. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  631. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  632. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  633. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +5 -5
  634. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  635. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  636. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  637. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  638. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +5 -5
  639. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  640. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  641. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  642. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +5 -5
  643. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +5 -5
  644. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +5 -5
  645. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  646. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  647. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
  648. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +7 -7
  649. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
  650. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  651. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  652. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  653. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +5 -5
  654. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  655. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  656. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  657. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  658. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +5 -5
  659. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  660. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  661. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  662. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +7 -7
  663. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +7 -7
  664. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +7 -7
  665. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  666. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  667. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
  668. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +5 -5
  669. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  670. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  671. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  672. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
  673. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +5 -5
  674. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  675. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  676. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  677. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  678. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +5 -5
  679. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  680. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  681. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  682. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  683. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +5 -5
  684. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  685. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  686. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  687. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
  688. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +5 -5
  689. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
  690. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  691. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  692. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +5 -5
  693. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +5 -5
  694. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +5 -5
  695. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  696. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  697. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  698. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
  699. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  700. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  701. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  702. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
  703. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +5 -5
  704. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
  705. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  706. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  707. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
  708. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +5 -5
  709. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
  710. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  711. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  712. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
  713. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +5 -5
  714. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  715. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  716. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  717. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  718. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +5 -5
  719. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  720. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  721. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  722. package/cli/app/.next-cli-build/server/app/dashboard.rsc +7 -7
  723. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +7 -7
  724. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
  725. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  726. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  727. package/cli/app/.next-cli-build/server/app/index.rsc +4 -4
  728. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  729. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  730. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  731. package/cli/app/.next-cli-build/server/app/landing/page.js +1 -1
  732. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  733. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  734. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  735. package/cli/app/.next-cli-build/server/app/landing.rsc +5 -5
  736. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  737. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  738. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
  739. package/cli/app/.next-cli-build/server/app/login/page.js +1 -1
  740. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  741. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  742. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  743. package/cli/app/.next-cli-build/server/app/login.rsc +5 -5
  744. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  745. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  746. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
  747. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  748. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  749. package/cli/app/.next-cli-build/server/app/page.js +1 -1
  750. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  751. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  752. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js +2 -2
  753. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  754. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js +1 -1
  755. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
  756. package/cli/app/.next-cli-build/server/app-paths-manifest.json +9 -9
  757. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  758. package/cli/app/.next-cli-build/server/chunks/1757.js +1 -1
  759. package/cli/app/.next-cli-build/server/chunks/1809.js +1 -0
  760. package/cli/app/.next-cli-build/server/chunks/3190.js +1 -1
  761. package/cli/app/.next-cli-build/server/chunks/3711.js +1 -0
  762. package/cli/app/.next-cli-build/server/chunks/412.js +1 -1
  763. package/cli/app/.next-cli-build/server/chunks/4780.js +1 -1
  764. package/cli/app/.next-cli-build/server/chunks/5019.js +1 -1
  765. package/cli/app/.next-cli-build/server/chunks/5626.js +1 -1
  766. package/cli/app/.next-cli-build/server/chunks/5728.js +1 -1
  767. package/cli/app/.next-cli-build/server/chunks/5905.js +3 -3
  768. package/cli/app/.next-cli-build/server/chunks/{4721.js → 6133.js} +2 -2
  769. package/cli/app/.next-cli-build/server/chunks/7135.js +1 -1
  770. package/cli/app/.next-cli-build/server/chunks/7319.js +9 -9
  771. package/cli/app/.next-cli-build/server/chunks/7401.js +1 -1
  772. package/cli/app/.next-cli-build/server/chunks/7726.js +1 -1
  773. package/cli/app/.next-cli-build/server/chunks/7793.js +1 -1
  774. package/cli/app/.next-cli-build/server/chunks/8238.js +1 -1
  775. package/cli/app/.next-cli-build/server/chunks/8852.js +1 -0
  776. package/cli/app/.next-cli-build/server/chunks/8895.js +4 -4
  777. package/cli/app/.next-cli-build/server/chunks/9679.js +1 -1
  778. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  779. package/cli/app/.next-cli-build/server/middleware.js +8 -8
  780. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  781. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  782. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  783. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  784. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  785. package/cli/app/.next-cli-build/static/chunks/{620-2dbbacd7e6de3def.js → 620-8b24dc33f653e657.js} +1 -1
  786. package/cli/app/.next-cli-build/static/chunks/6202-e364f4d5fefadd3f.js +3 -0
  787. package/cli/app/.next-cli-build/static/chunks/{9126-449f231ec89e0c8b.js → 9041-70659da305d33949.js} +1 -1
  788. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/automation/{page-71a382ed81559482.js → page-bd1157fec388ec95.js} +1 -1
  789. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-59b4e1d04b034922.js +1 -0
  790. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-25b44f613f1ad6ab.js +1 -0
  791. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-2b90c3377dc1b803.js +1 -0
  792. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-b73e02cc2f278a1c.js +1 -0
  793. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-4d578c66f4f83c4b.js +1 -0
  794. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/context/{page-b80f4b05920eb3eb.js → page-e0feb2dcf297b1d3.js} +1 -1
  795. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-14ff4e34b3569e7d.js +1 -0
  796. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-f6d7c9ab2bbcaa0c.js → page-6822935d3352c990.js} +2 -2
  797. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-83103184cbba481f.js → page-6ebcd05a89f2c192.js} +1 -1
  798. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-739bdc9961949f1b.js → page-a4cb0e8fb5edb847.js} +1 -1
  799. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-ce6dece0a314f25b.js +1 -0
  800. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-291c6ac2c795f8c8.js → page-f2473ffe65aa2418.js} +1 -1
  801. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-fc2385100618cb11.js +1 -0
  802. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/playground/page-8345390557a29481.js +1 -0
  803. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-52350091b31c2ec1.js +1 -0
  804. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-7f6579c9e603c1c7.js → page-d9769ad72eaab7ff.js} +2 -2
  805. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-40562bf4cd105f0a.js → page-663d97e32ff4abb9.js} +1 -1
  806. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-542de72fb45553c1.js → page-9eddc754a0ed05c4.js} +1 -1
  807. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-6a803728f5920906.js → page-834c9924ad1adfea.js} +2 -2
  808. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-27b424c2fe11112c.js → page-3e98755c0114d653.js} +1 -1
  809. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-29126aa56241d330.js +1 -0
  810. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/settings/pricing/{page-3ed909159e70307f.js → page-aedd94cfeaef7612.js} +1 -1
  811. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-d401da171aaa05ac.js +1 -0
  812. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/terminal/{page-99f08859cae41572.js → page-f20641b18fe31018.js} +1 -1
  813. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-c70ac5f25262fb6f.js +1 -0
  814. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-a855862272bd37db.js +1 -0
  815. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-a205615e648f47a1.js → page-7ed7a9155f0550b3.js} +1 -1
  816. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-baca0356b5cacc31.js → layout-4cc7b6fd22e7992c.js} +1 -1
  817. package/cli/app/.next-cli-build/static/chunks/app/_not-found/page-2b9bf697de64adcf.js +1 -0
  818. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-de0023d65aebf11f.js +1 -0
  819. package/cli/app/.next-cli-build/static/chunks/app/callback/{page-b1ca389e20348cce.js → page-ba0d852b637994d3.js} +1 -1
  820. package/cli/app/.next-cli-build/static/chunks/app/landing/{page-4e2e956db07b7959.js → page-0a01ecaa2116b10b.js} +1 -1
  821. package/cli/app/.next-cli-build/static/chunks/app/layout-8a7a8baa77f1b488.js +1 -0
  822. package/cli/app/.next-cli-build/static/chunks/app/login/page-dda88ecbdba79a80.js +1 -0
  823. package/cli/app/.next-cli-build/static/chunks/{main-app-88e09177034d71e7.js → main-app-e20479f3b5d674b0.js} +1 -1
  824. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-db43f3befc51b654.js +1 -0
  825. package/cli/app/CHANGELOG.md +16 -0
  826. package/cli/app/package.json +1 -1
  827. package/cli/app/standalone_modules/next/dist/compiled/@next/font/dist/google/find-font-files-in-css.js +23 -0
  828. package/cli/app/standalone_modules/next/dist/compiled/@next/font/dist/google/loader.js +2 -2
  829. package/cli/package.json +1 -1
  830. package/package.json +1 -1
  831. package/cli/app/.next-cli-build/server/chunks/1384.js +0 -1
  832. package/cli/app/.next-cli-build/server/chunks/4039.js +0 -1
  833. package/cli/app/.next-cli-build/server/chunks/5469.js +0 -1
  834. package/cli/app/.next-cli-build/static/chunks/523-3899a7f5cde3f3e8.js +0 -3
  835. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-f7c8c91f9fb6de93.js +0 -1
  836. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-f5fc4b8a8801e804.js +0 -1
  837. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-bccb233dc48b2cf1.js +0 -1
  838. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-a2bfbf57ba4e0369.js +0 -1
  839. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-58c9f8c35b7eaed8.js +0 -1
  840. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-a1e30adbdbf2cafd.js +0 -1
  841. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-39062565f11d2c60.js +0 -1
  842. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-92cf3c5c13a0ea25.js +0 -1
  843. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/playground/page-27ec8458a4c8bcb2.js +0 -1
  844. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-e629adca114de10a.js +0 -1
  845. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-a0e271ee32723312.js +0 -1
  846. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-608c603e6ece959c.js +0 -1
  847. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-b523fbffb64dcdae.js +0 -1
  848. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-511564f8398ceb23.js +0 -1
  849. package/cli/app/.next-cli-build/static/chunks/app/_not-found/page-499de2bdd91e139f.js +0 -1
  850. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-847859b983aaa314.js +0 -1
  851. package/cli/app/.next-cli-build/static/chunks/app/layout-f31fedc5a6f6c6a1.js +0 -1
  852. package/cli/app/.next-cli-build/static/chunks/app/login/page-764e655e11326b92.js +0 -1
  853. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-06f8cd887d9b83e5.js +0 -1
  854. /package/cli/app/.next-cli-build/static/{3-eQhzZSwRODZv8TdZa2x → p5nLDGqmrEZKLp2847bs8}/_buildManifest.js +0 -0
  855. /package/cli/app/.next-cli-build/static/{3-eQhzZSwRODZv8TdZa2x → p5nLDGqmrEZKLp2847bs8}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";exports.id=7401,exports.ids=[7401],exports.modules={9760:(a,b,c)=>{c.d(b,{EE:()=>n,U:()=>h,YR:()=>o,gs:()=>e,x0:()=>l});let d="https://api.blackbox.ai",e=`${d}/v1/models`,f=`${d}/key/info`,g=["/veo","/sora","/flux","/stable-diffusion","/seedream","/imagen","/nano-banana","/image-","/image/","-image","/edit","-edit","/mochi","/ray-","/fast-animatediff","/fast-svd","/cogvideox","/hidream","/recraft","/ideogram","/bria/","/playgroundai/","/luma/photon","/sana","/wan-","/dreamshaper","hunyuan-video"];function h(a){let b=Array.isArray(a)?a:a?.data||a?.models||a?.results||[];return Array.isArray(b)?b.map(a=>{let b="string"==typeof a?a.trim():String(a?.id||a?.model||a?.name||"").trim();return b&&function(a){if("string"!=typeof a||!a.trim())return!1;let b=a.trim().toLowerCase();return!g.some(a=>b.includes(a))}(b)?{..."object"==typeof a&&a?a:{},id:b,name:a?.name||a?.display_name||a?.displayName||b}:null}).filter(Boolean):[]}function i(a){let b={Accept:"application/json","Content-Type":"application/json"};return"string"==typeof a&&a.trim()&&(b.Authorization=`Bearer ${a.trim()}`),b}function j(a={}){return a.signal?a.signal:AbortSignal.timeout(a.timeoutMs||8e3)}async function k(a){try{await a?.body?.cancel?.()}catch{}}async function l(a={},b={}){let c=b.fetchImpl||fetch;try{let d=await c(e,{method:"GET",headers:i(a.apiKey||a.accessToken),signal:j(b)});if(!d.ok)return await k(d),null;let f=h(await d.json());return f.length?{models:f}:null}catch{return null}}async function m(a,b={}){let c=b.fetchImpl||fetch;if("string"!=typeof a||!a.trim())return null;try{let d=await c(f,{method:"GET",headers:i(a),signal:j(b)});if(!d.ok)return await k(d),null;let e=await d.json();return e?.info||e||null}catch{return null}}async function n(a,b={}){let c=await m(a,b);if(!c)return{plan:"Blackbox API",message:"Blackbox spend data is unavailable for this key.",quotas:{},trackingMode:"unavailable"};let d=Number(c.spend),e=Number(c.max_budget),f=Number.isFinite(d)&&d>=0?d:0,g=Number.isFinite(e)&&e>0,h=g?e:0,i=g?Math.max(0,h-f):null,j=g?Math.max(0,Math.min(100,i/h*100)):100;return{plan:"Blackbox API",quotas:{Spend:{used:f,total:h,...null==i?{}:{remaining:i},remainingPercentage:j,unlimited:!1,unit:"USD",resetAt:c.budget_reset_at||c.expires||null,displayName:g?"API Budget":"API Spend"}},trackingMode:"upstream",spend:f,maxBudget:g?e:null}}async function o(a,b={}){let c=b.fetchImpl||fetch;try{let d=await c(f,{method:"GET",headers:i(a),signal:j(b)});if(d.ok||429===d.status)return await k(d),{valid:!0,error:null};if(401===d.status||403===d.status||404===d.status)return await k(d),{valid:!1,error:"Invalid API key"};let e="";try{e=(await d.text()).slice(0,240)}catch{}return{valid:!1,error:e?`Blackbox validation failed (${d.status}): ${e}`:`Blackbox validation failed (${d.status})`}}catch(a){return{valid:!1,error:a?.message||"Blackbox validation failed"}}}},15929:(a,b,c)=>{c.d(b,{A3:()=>s,wu:()=>t});var d=c(51455),e=c(48161),f=c(76760),g=c(19548);let h="@tencent-ai/codebuddy-code",i={codebuddy:["product.json"],"codebuddy-cn":["product.internal.json","product.cloudhosted.json"]},j=new Map;function k(a,b){let c=Number(a);if(Number.isSafeInteger(c)&&!(c<=0)&&!(c>b))return c}function l(a){if(!a||"object"!=typeof a)return null;let b="string"==typeof a.id?a.id.trim():"";if(!b)return null;let c=k(a.maxInputTokens??a.max_input_tokens??a.contextLength??a.context_length,16e6),d=k(a.maxOutputTokens??a.max_output_tokens,1e6);return c||d?{id:b,maxInputTokens:c,maxOutputTokens:d}:null}function m(a,b,c={}){let d=new Map;for(let a of b||[]){let b=l(a);b&&d.set(b.id.toLowerCase(),b)}return(a||[]).map(a=>{let b=d.get(String(a.id||"").toLowerCase()),e=b?.maxInputTokens||a.maxInputTokens,f=b?.maxOutputTokens||a.maxOutputTokens;return{...a,...e?{maxInputTokens:e,contextLength:e,contextWindow:e}:{},...f?{maxOutputTokens:f}:{},...b?{metadataSource:c.source||"codebuddy-cli",...c.version?{metadataVersion:c.version}:{}}:{}}})}function n(a,b){if("string"!=typeof b||!b.trim())return;let c=(0,f.resolve)(b.trim());a.add(c.endsWith(h)?c:(0,f.join)(c,h))}function o(a,b){"string"==typeof b&&b.trim()&&n(a,(0,f.join)(b.trim(),"node_modules"))}async function p(a={}){let b=new Set;n(b,a.packageRoot),n(b,process.env.CODEBUDDY_CLI_ROOT);let c=(0,f.resolve)(a.cwd||process.cwd());for(;;){n(b,(0,f.join)(c,"node_modules"));let a=(0,f.dirname)(c);if(a===c)break;c=a}for(let a of[process.env.npm_config_prefix,process.env.NPM_CONFIG_PREFIX,"/opt/homebrew","/usr/local","/usr",(0,f.join)((0,e.homedir)(),".npm-global")])o(b,(0,f.join)(a||"","lib"));for(let a of String(process.env.PATH||"").split(f.delimiter))if(a){o(b,(0,f.join)((0,f.dirname)(a),"lib"));try{let c=await (0,d.realpath)((0,f.join)(a,"codebuddy"));n(b,(0,f.dirname)((0,f.dirname)(c)))}catch{}}return[...b]}async function q(a,b={}){if(Array.isArray(b.productFiles)&&b.productFiles.length>0)return b.productFiles.map(a=>(0,f.resolve)(a));let c=String(process.env.CODEBUDDY_PRODUCT_JSON||"").split(f.delimiter).map(a=>a.trim()).filter(Boolean).map(a=>(0,f.resolve)(a));if(c.length>0)return c;let d=i[a]||[];return(await p(b)).flatMap(a=>d.map(b=>(0,f.join)(a,b)))}async function r(a,b){try{let c=JSON.parse(await b((0,f.join)((0,f.dirname)(a),"package.json"),"utf8"));return"string"==typeof c.version?c.version:null}catch{return null}}async function s(a,b={}){if(!i[a])return null;let c=b.staticModels||(0,g.KC)(a),e=Date.now();if(!b.forceRefresh&&!b.productFiles&&!b.packageRoot){let b=j.get(a);if(b?.expiresAt>e)return b.value}let f=b.readFile||d.readFile;for(let d of(await q(a,b)))try{let g=JSON.parse(await f(d,"utf8"));if(!Array.isArray(g?.models)||0===g.models.length)continue;let h=await r(d,f),i=g.models.map(l).filter(Boolean),k=new Set(c.map(a=>String(a.id).toLowerCase())),n=i.filter(a=>k.has(a.id.toLowerCase())).length;if(0===n)continue;let o={models:m(c,i,{source:"codebuddy-cli",version:h}),source:"codebuddy-cli",version:h,detectedModelCount:n};return b.productFiles||b.packageRoot||j.set(a,{expiresAt:e+3e5,value:o}),o}catch(a){b.log?.debug?.("CODEBUDDY_MODELS",`Skipping product manifest: ${a?.code||a?.name||"invalid"}`)}let h={models:m(c,[]),source:"static",version:null,detectedModelCount:0};return b.productFiles||b.packageRoot||j.set(a,{expiresAt:e+3e5,value:h}),h}function t(){return{supported_reasoning_levels:["none","low","medium","high","xhigh","max"],default_reasoning_level:"high"}}},28948:(a,b,c)=>{c.d(b,{M:()=>i,P:()=>g});var d=c(15626);async function e(a){let{token:b,isApiKey:c}=(0,d.resolveClineCredential)(a);if(!b)return null;let e=new AbortController,f=setTimeout(()=>e.abort(),5e3);try{let a=await fetch("https://api.cline.bot/api/v1/models",{method:"GET",headers:(0,d.buildClineHeaders)(b,{Accept:"application/json"},{isApiKey:c}),signal:e.signal});if(!a.ok)return null;let f=await a.json(),g=Array.isArray(f)?f:f?.data;return Array.isArray(g)?g:null}catch{return null}finally{clearTimeout(f)}}function f(a){return{id:a.id,name:a.name||a.id}}async function g(a){let b=await e(a);if(!b)return null;let c=b.filter(a=>"string"==typeof a?.id&&a.id.startsWith("cline-pass/")).map(f);return c.length?{models:c}:null}async function h(){let a=new AbortController,b=setTimeout(()=>a.abort(),5e3);try{let b=await fetch("https://api.cline.bot/api/v1/ai/cline/recommended-models",{method:"GET",headers:{Accept:"application/json"},signal:a.signal});if(!b.ok)return null;let c=await b.json(),d=(Array.isArray(c?.free)?c.free:[]).filter(a=>"string"==typeof a?.id&&""!==a.id.trim()).map(f);return d.length?d:null}catch{return null}finally{clearTimeout(b)}}async function i(a){let b=await e(a);if(!b)return null;let c=new Map(b.filter(a=>"string"==typeof a?.id&&""!==a.id.trim()).map(f).map(a=>[a.id,a]));for(let a of await h()||[])c.has(a.id)||c.set(a.id,a);let d=Array.from(c.values());return d.length?{models:d}:null}},38709:(a,b,c)=>{c.d(b,{M:()=>h});var d=c(71164),e=c(35024),f=c(93943),g=c(39609);async function h(a,b={}){let{fetchFn:c=g.proxyAwareFetch,log:i=console,proxyOptions:j=null,onCredentialsRefreshed:k}=b,l=e.xq["grok-cli"]?.modelsUrl,m=a?.accessToken;if(!m||!l)return{models:[],warning:"Grok CLI access token is missing."};let n=b=>c(l,{method:"GET",headers:function(a,b={}){let c={Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":d.f,"x-xai-token-auth":"xai-grok-cli","x-grok-client-identifier":"grok-pager","x-grok-client-version":d.u},e=b?.email,f=b?.userId||b?.principalId;return e&&(c["x-email"]=e),f&&(c["x-userid"]=f),c}(b,a?.providerSpecificData)},j);try{let b=await n(m);if((401===b.status||403===b.status)&&a?.refreshToken){let c=await (0,f.Vq)("grok-cli",a,i);if(c?.accessToken){m=c.accessToken;try{await k?.(c)}catch(a){i?.warn?.("Grok CLI credential persistence failed",a)}b=await n(m)}}if(!b.ok){let a=await b.text().catch(()=>"");return{models:[],warning:`Grok CLI model discovery failed (${b.status})${a?`: ${a.slice(0,160)}`:""}`}}let c=function(a){let b,c=new Set,d=[];for(let[e,f]of Array.isArray(b=Array.isArray(a)?a:a?.data??a?.models??a?.results??[])?b.map(a=>[null,a]):b&&"object"==typeof b?Object.entries(b):[]){let a="string"==typeof f?{id:f}:f;if(!a||"object"!=typeof a||Array.isArray(a))continue;let b=String(a.id??a.model_id??a.modelId??a.model??a.slug??e??a.name??"").trim();if(!b||c.has(b))continue;c.add(b);let g={...a,id:b,name:a.display_name??a.displayName??a.name??b},h=Number(a.context_length??a.contextLength??a.context_window??a.contextWindow),i=Number(a.max_output_tokens??a.maxOutputTokens);Number.isFinite(h)&&h>0&&(g.contextLength=h),Number.isFinite(i)&&i>0&&(g.maxOutputTokens=i),"grok-build"===b&&(g.contextLength||=5e5,g.maxOutputTokens||=64e3),d.push(g)}return d}(await b.json());return c.length?{models:c}:{models:[],warning:"Grok CLI returned no selectable models."}}catch(a){return{models:[],warning:`Grok CLI model discovery failed: ${a.message}`}}}},39326:(a,b,c)=>{c.d(b,{B:()=>h,p:()=>g});var d=c(71998);function e(a){return null==a?"":String(a).trim()}let f=new Map;function g(a,b,c){if(!a||0===a.length)return null;if(1===a.length)return a[0];if("round-robin"===b){let b=f.get(c)||{index:-1};return b.index=(b.index+1)%a.length,f.set(c,b),a[b.index]}return"random"===b?a[Math.floor(Math.random()*a.length)]:a[0]}async function h(a={}){try{let b=e(a?.proxyPoolId),c="__none__"===b?"":b,f=function(a={}){let b=a?.connectionProxyEnabled===!0;return{connectionProxyEnabled:b,connectionProxyUrl:e(a?.connectionProxyUrl),connectionNoProxy:e(a?.connectionNoProxy)}}(a),g=!1;if(c){let a=await (0,d.hr)(c),b=e(a?.proxyUrl),f=e(a?.noProxy),h=a&&!0===a.isActive&&b;if(g=a?.strictProxy===!0,h){if("vercel"===a.type||"cloudflare"===a.type||"deno"===a.type)return{source:a.type,proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:f,strictProxy:!0===a.strictProxy,vercelRelayUrl:b};return{source:"pool",proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!0,connectionProxyUrl:b,connectionNoProxy:f,strictProxy:!0===a.strictProxy}}}if(f.connectionProxyEnabled&&f.connectionProxyUrl)return{source:"legacy",proxyPoolId:c||null,proxyPool:null,strictProxy:g,...f};return{source:"none",proxyPoolId:c||null,proxyPool:null,strictProxy:g,...f}}catch(a){return console.error("[resolveConnectionProxyConfig] Failed to resolve proxy config:",a),{source:"error",proxyPoolId:null,proxyPool:null,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:"",strictProxy:!1}}}},52007:(a,b,c)=>{c.d(b,{av:()=>o,gK:()=>m});var d=c(55511),e=c(39609);let f="https://llm.kimchi.dev",g=new Set([429,500,502,503,504]),h=new Map,i=new Map;function j(a){return(("string"==typeof a?a.trim():"")||f).replace(/\/+$/,"")}function k(a){return a?.accessToken||a?.apiKey||a?.providerSpecificData?.apiKey||null}function l(a){if(!a||"object"!=typeof a)return null;let b=a.slug||a.id||a.model||a.name;if("string"!=typeof b||""===b.trim())return null;let c=Array.isArray(a.input_modalities)?a.input_modalities.filter(a=>"text"===a||"image"===a):[],d=a.limits&&"object"==typeof a.limits?a.limits:{},e=Number(d.context_window||a.contextLength||a.context_length)||void 0,f=Number(d.max_output_tokens||a.maxOutputTokens||a.max_output_tokens)||void 0,g="string"==typeof a.provider?a.provider:"",h=!0===a.reasoning,i=Array.isArray(c)&&c.includes("image")?"imageToText":"llm",j={...a,id:b.trim(),name:String(a.display_name||a.displayName||a.name||b).trim(),provider:g,upstreamProvider:g,reasoning:h,inputModalities:c,kind:i,type:i,capabilities:{vision:c.includes("image"),reasoning:h,...e?{contextWindow:e}:{},...f?{maxOutput:f}:{},...g?{upstreamProvider:g}:{}},...e?{contextLength:e}:{},...f?{maxOutputTokens:f}:{}};return"anthropic"===g&&(j.compat={supportsReasoningEffort:!1,cacheControlFormat:"anthropic"}),j}function m(a){if("string"!=typeof a||""===a.trim())return null;let b=a.includes("/")?a.split("/").pop():a;return i.get(b)||i.get(b.toLowerCase())||null}async function n(a,b,c={}){let d=`${j(b)}/v1/models/metadata?include_in_cli=true`,f=new AbortController,h=setTimeout(()=>f.abort(Error("Kimchi models fetch timeout")),2e4),i=c.signal?AbortSignal.any([c.signal,f.signal]):f.signal;try{let b=await (0,e.proxyAwareFetch)(d,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${a}`,"User-Agent":"kimchi/0.1.40"},cache:"no-store",signal:i},c.proxyOptions||null);if(!b.ok){let a=Error(`Kimchi models ${b.status}: ${b.statusText}`);throw a.status=b.status,a.retryable=g.has(b.status),a}let f=await b.json();return Array.isArray(f?.models)?f.models:[]}finally{clearTimeout(h)}}async function o(a,b={}){let c,e,g,m=k(a);if(!m)return null;let p=a?.providerSpecificData?.kimchiEndpoint||b.endpoint||f,q=(g=(e=a?.providerSpecificData||{}).userId||e.username||a?.refreshToken||k(a)||"anonymous",(0,d.createHash)("sha256").update(`kimchi:${j(p)}:${g}`).digest("hex")),r=Date.now();if(!b.forceRefresh){let a=h.get(q);if(a&&a.expiresAt>r)return a}try{c=await n(m,p,b)}catch(a){return b.log?.warn?.("KIMCHI_MODELS",a.message),null}let s=c.map(l).filter(Boolean);if(0===s.length)return null;for(let a of s||[])a?.id&&(i.set(a.id,a),i.set(a.id.toLowerCase(),a));let t={expiresAt:Date.now()+3e5,models:s,rawModels:c};return h.set(q,t),t}},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(19548);new Set(Object.entries(c(17404).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a));let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))},84534:(a,b,c)=>{c.d(b,{v:()=>i});var d=c(39609),e=c(75924),f=c(12025);let g=new Map;async function h(a,b){let c=new AbortController,f=setTimeout(()=>c.abort(),1e4);try{let f=await (0,d.proxyAwareFetch)("https://api.githubcopilot.com/models",{method:"GET",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json","Copilot-Integration-Id":"vscode-chat","editor-version":`vscode/${e.x0.VSCODE_VERSION}`,"editor-plugin-version":`copilot-chat/${e.x0.COPILOT_CHAT_VERSION}`,"user-agent":e.x0.USER_AGENT,"x-github-api-version":e.x0.API_VERSION},cache:"no-store",signal:b||c.signal});if(!f.ok){let a=Error(`Copilot /models returned ${f.status}`);throw a.status=f.status,a}let g=await f.json();return Array.isArray(g?.data)?g.data:[]}finally{clearTimeout(f)}}async function i(a,b={}){let c,d=a?.providerSpecificData?.copilotToken||a?.accessToken;if(!d)return b.log?.debug?.("COPILOT_MODELS","No copilotToken/accessToken; skipping live fetch"),null;let e=a?.providerSpecificData?.copilotToken||a?.accessToken||"copilot-anonymous",j=Date.now();if(!b.forceRefresh){let a=g.get(e);if(a&&a.expiresAt>j)return{models:a.models}}try{c=await h(d,b.signal)}catch(d){if(!d||401!==d.status&&403!==d.status||!a.accessToken)return b.log?.warn?.("COPILOT_MODELS",`Live model fetch failed: ${d?.message||d}`),null;{b.log?.info?.("COPILOT_MODELS",`Got ${d.status}; refreshing Copilot token`);let e=await (0,f.jR)(a.accessToken);if(!e?.token)return b.log?.warn?.("COPILOT_MODELS","Token refresh did not return a token"),null;if("function"==typeof b.onCredentialsRefreshed)try{await b.onCredentialsRefreshed({copilotToken:e.token,copilotTokenExpiresAt:e.expiresAt})}catch(a){b.log?.warn?.("COPILOT_MODELS",`onCredentialsRefreshed failed: ${a?.message||a}`)}try{c=await h(e.token,b.signal)}catch(a){return b.log?.warn?.("COPILOT_MODELS",`Retry after refresh failed: ${a?.message||a}`),null}}}let k=function(a){let b=new Set,c=[];for(let d of a){if(!d||"object"!=typeof d||d.capabilities?.type!=="chat"||d.policy&&"enabled"!==d.policy.state)continue;let a=d.id;!a||b.has(a)||(b.add(a),c.push({id:a,name:d.name||a}))}return c}(c);return k.length?(g.set(e,{expiresAt:j+3e5,models:k}),{models:k}):null}}};
1
+ "use strict";exports.id=7401,exports.ids=[7401],exports.modules={9760:(a,b,c)=>{c.d(b,{EE:()=>n,U:()=>h,YR:()=>o,gs:()=>e,x0:()=>l});let d="https://api.blackbox.ai",e=`${d}/v1/models`,f=`${d}/key/info`,g=["/veo","/sora","/flux","/stable-diffusion","/seedream","/imagen","/nano-banana","/image-","/image/","-image","/edit","-edit","/mochi","/ray-","/fast-animatediff","/fast-svd","/cogvideox","/hidream","/recraft","/ideogram","/bria/","/playgroundai/","/luma/photon","/sana","/wan-","/dreamshaper","hunyuan-video"];function h(a){let b=Array.isArray(a)?a:a?.data||a?.models||a?.results||[];return Array.isArray(b)?b.map(a=>{let b="string"==typeof a?a.trim():String(a?.id||a?.model||a?.name||"").trim();return b&&function(a){if("string"!=typeof a||!a.trim())return!1;let b=a.trim().toLowerCase();return!g.some(a=>b.includes(a))}(b)?{..."object"==typeof a&&a?a:{},id:b,name:a?.name||a?.display_name||a?.displayName||b}:null}).filter(Boolean):[]}function i(a){let b={Accept:"application/json","Content-Type":"application/json"};return"string"==typeof a&&a.trim()&&(b.Authorization=`Bearer ${a.trim()}`),b}function j(a={}){return a.signal?a.signal:AbortSignal.timeout(a.timeoutMs||8e3)}async function k(a){try{await a?.body?.cancel?.()}catch{}}async function l(a={},b={}){let c=b.fetchImpl||fetch;try{let d=await c(e,{method:"GET",headers:i(a.apiKey||a.accessToken),signal:j(b)});if(!d.ok)return await k(d),null;let f=h(await d.json());return f.length?{models:f}:null}catch{return null}}async function m(a,b={}){let c=b.fetchImpl||fetch;if("string"!=typeof a||!a.trim())return null;try{let d=await c(f,{method:"GET",headers:i(a),signal:j(b)});if(!d.ok)return await k(d),null;let e=await d.json();return e?.info||e||null}catch{return null}}async function n(a,b={}){let c=await m(a,b);if(!c)return{plan:"Blackbox API",message:"Blackbox spend data is unavailable for this key.",quotas:{},trackingMode:"unavailable"};let d=Number(c.spend),e=Number(c.max_budget),f=Number.isFinite(d)&&d>=0?d:0,g=Number.isFinite(e)&&e>0,h=g?e:0,i=g?Math.max(0,h-f):null,j=g?Math.max(0,Math.min(100,i/h*100)):100;return{plan:"Blackbox API",quotas:{Spend:{used:f,total:h,...null==i?{}:{remaining:i},remainingPercentage:j,unlimited:!1,unit:"USD",resetAt:c.budget_reset_at||c.expires||null,displayName:g?"API Budget":"API Spend"}},trackingMode:"upstream",spend:f,maxBudget:g?e:null}}async function o(a,b={}){let c=b.fetchImpl||fetch;try{let d=await c(f,{method:"GET",headers:i(a),signal:j(b)});if(d.ok||429===d.status)return await k(d),{valid:!0,error:null};if(401===d.status||403===d.status||404===d.status)return await k(d),{valid:!1,error:"Invalid API key"};let e="";try{e=(await d.text()).slice(0,240)}catch{}return{valid:!1,error:e?`Blackbox validation failed (${d.status}): ${e}`:`Blackbox validation failed (${d.status})`}}catch(a){return{valid:!1,error:a?.message||"Blackbox validation failed"}}}},15929:(a,b,c)=>{c.d(b,{A3:()=>s,wu:()=>t});var d=c(51455),e=c(48161),f=c(76760),g=c(19548);let h="@tencent-ai/codebuddy-code",i={codebuddy:["product.json"],"codebuddy-cn":["product.internal.json","product.cloudhosted.json"]},j=new Map;function k(a,b){let c=Number(a);if(Number.isSafeInteger(c)&&!(c<=0)&&!(c>b))return c}function l(a){if(!a||"object"!=typeof a)return null;let b="string"==typeof a.id?a.id.trim():"";if(!b)return null;let c=k(a.maxInputTokens??a.max_input_tokens??a.contextLength??a.context_length,16e6),d=k(a.maxOutputTokens??a.max_output_tokens,1e6);return c||d?{id:b,maxInputTokens:c,maxOutputTokens:d}:null}function m(a,b,c={}){let d=new Map;for(let a of b||[]){let b=l(a);b&&d.set(b.id.toLowerCase(),b)}return(a||[]).map(a=>{let b=d.get(String(a.id||"").toLowerCase()),e=b?.maxInputTokens||a.maxInputTokens,f=b?.maxOutputTokens||a.maxOutputTokens;return{...a,...e?{maxInputTokens:e,contextLength:e,contextWindow:e}:{},...f?{maxOutputTokens:f}:{},...b?{metadataSource:c.source||"codebuddy-cli",...c.version?{metadataVersion:c.version}:{}}:{}}})}function n(a,b){if("string"!=typeof b||!b.trim())return;let c=(0,f.resolve)(b.trim());a.add(c.endsWith(h)?c:(0,f.join)(c,h))}function o(a,b){"string"==typeof b&&b.trim()&&n(a,(0,f.join)(b.trim(),"node_modules"))}async function p(a={}){let b=new Set;n(b,a.packageRoot),n(b,process.env.CODEBUDDY_CLI_ROOT);let c=(0,f.resolve)(a.cwd||process.cwd());for(;;){n(b,(0,f.join)(c,"node_modules"));let a=(0,f.dirname)(c);if(a===c)break;c=a}for(let a of[process.env.npm_config_prefix,process.env.NPM_CONFIG_PREFIX,"/opt/homebrew","/usr/local","/usr",(0,f.join)((0,e.homedir)(),".npm-global")])o(b,(0,f.join)(a||"","lib"));for(let a of String(process.env.PATH||"").split(f.delimiter))if(a){o(b,(0,f.join)((0,f.dirname)(a),"lib"));try{let c=await (0,d.realpath)((0,f.join)(a,"codebuddy"));n(b,(0,f.dirname)((0,f.dirname)(c)))}catch{}}return[...b]}async function q(a,b={}){if(Array.isArray(b.productFiles)&&b.productFiles.length>0)return b.productFiles.map(a=>(0,f.resolve)(a));let c=String(process.env.CODEBUDDY_PRODUCT_JSON||"").split(f.delimiter).map(a=>a.trim()).filter(Boolean).map(a=>(0,f.resolve)(a));if(c.length>0)return c;let d=i[a]||[];return(await p(b)).flatMap(a=>d.map(b=>(0,f.join)(a,b)))}async function r(a,b){try{let c=JSON.parse(await b((0,f.join)((0,f.dirname)(a),"package.json"),"utf8"));return"string"==typeof c.version?c.version:null}catch{return null}}async function s(a,b={}){if(!i[a])return null;let c=b.staticModels||(0,g.KC)(a),e=Date.now();if(!b.forceRefresh&&!b.productFiles&&!b.packageRoot){let b=j.get(a);if(b?.expiresAt>e)return b.value}let f=b.readFile||d.readFile;for(let d of(await q(a,b)))try{let g=JSON.parse(await f(d,"utf8"));if(!Array.isArray(g?.models)||0===g.models.length)continue;let h=await r(d,f),i=g.models.map(l).filter(Boolean),k=new Set(c.map(a=>String(a.id).toLowerCase())),n=i.filter(a=>k.has(a.id.toLowerCase())).length;if(0===n)continue;let o={models:m(c,i,{source:"codebuddy-cli",version:h}),source:"codebuddy-cli",version:h,detectedModelCount:n};return b.productFiles||b.packageRoot||j.set(a,{expiresAt:e+3e5,value:o}),o}catch(a){b.log?.debug?.("CODEBUDDY_MODELS",`Skipping product manifest: ${a?.code||a?.name||"invalid"}`)}let h={models:m(c,[]),source:"static",version:null,detectedModelCount:0};return b.productFiles||b.packageRoot||j.set(a,{expiresAt:e+3e5,value:h}),h}function t(){return{supported_reasoning_levels:["none","low","medium","high","xhigh","max"]}}},28948:(a,b,c)=>{c.d(b,{M:()=>i,P:()=>g});var d=c(15626);async function e(a){let{token:b,isApiKey:c}=(0,d.resolveClineCredential)(a);if(!b)return null;let e=new AbortController,f=setTimeout(()=>e.abort(),5e3);try{let a=await fetch("https://api.cline.bot/api/v1/models",{method:"GET",headers:(0,d.buildClineHeaders)(b,{Accept:"application/json"},{isApiKey:c}),signal:e.signal});if(!a.ok)return null;let f=await a.json(),g=Array.isArray(f)?f:f?.data;return Array.isArray(g)?g:null}catch{return null}finally{clearTimeout(f)}}function f(a){return{id:a.id,name:a.name||a.id}}async function g(a){let b=await e(a);if(!b)return null;let c=b.filter(a=>"string"==typeof a?.id&&a.id.startsWith("cline-pass/")).map(f);return c.length?{models:c}:null}async function h(){let a=new AbortController,b=setTimeout(()=>a.abort(),5e3);try{let b=await fetch("https://api.cline.bot/api/v1/ai/cline/recommended-models",{method:"GET",headers:{Accept:"application/json"},signal:a.signal});if(!b.ok)return null;let c=await b.json(),d=(Array.isArray(c?.free)?c.free:[]).filter(a=>"string"==typeof a?.id&&""!==a.id.trim()).map(f);return d.length?d:null}catch{return null}finally{clearTimeout(b)}}async function i(a){let b=await e(a);if(!b)return null;let c=new Map(b.filter(a=>"string"==typeof a?.id&&""!==a.id.trim()).map(f).map(a=>[a.id,a]));for(let a of await h()||[])c.has(a.id)||c.set(a.id,a);let d=Array.from(c.values());return d.length?{models:d}:null}},38709:(a,b,c)=>{c.d(b,{M:()=>h});var d=c(71164),e=c(35024),f=c(93943),g=c(39609);async function h(a,b={}){let{fetchFn:c=g.proxyAwareFetch,log:i=console,proxyOptions:j=null,onCredentialsRefreshed:k}=b,l=e.xq["grok-cli"]?.modelsUrl,m=a?.accessToken;if(!m||!l)return{models:[],warning:"Grok CLI access token is missing."};let n=b=>c(l,{method:"GET",headers:function(a,b={}){let c={Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":d.f,"x-xai-token-auth":"xai-grok-cli","x-grok-client-identifier":"grok-pager","x-grok-client-version":d.u},e=b?.email,f=b?.userId||b?.principalId;return e&&(c["x-email"]=e),f&&(c["x-userid"]=f),c}(b,a?.providerSpecificData)},j);try{let b=await n(m);if((401===b.status||403===b.status)&&a?.refreshToken){let c=await (0,f.Vq)("grok-cli",a,i);if(c?.accessToken){m=c.accessToken;try{await k?.(c)}catch(a){i?.warn?.("Grok CLI credential persistence failed",a)}b=await n(m)}}if(!b.ok){let a=await b.text().catch(()=>"");return{models:[],warning:`Grok CLI model discovery failed (${b.status})${a?`: ${a.slice(0,160)}`:""}`}}let c=function(a){let b,c=new Set,d=[];for(let[e,f]of Array.isArray(b=Array.isArray(a)?a:a?.data??a?.models??a?.results??[])?b.map(a=>[null,a]):b&&"object"==typeof b?Object.entries(b):[]){let a="string"==typeof f?{id:f}:f;if(!a||"object"!=typeof a||Array.isArray(a))continue;let b=String(a.id??a.model_id??a.modelId??a.model??a.slug??e??a.name??"").trim();if(!b||c.has(b))continue;c.add(b);let g={...a,id:b,name:a.display_name??a.displayName??a.name??b},h=Number(a.context_length??a.contextLength??a.context_window??a.contextWindow),i=Number(a.max_output_tokens??a.maxOutputTokens);Number.isFinite(h)&&h>0&&(g.contextLength=h),Number.isFinite(i)&&i>0&&(g.maxOutputTokens=i),"grok-build"===b&&(g.contextLength||=5e5,g.maxOutputTokens||=64e3),d.push(g)}return d}(await b.json());return c.length?{models:c}:{models:[],warning:"Grok CLI returned no selectable models."}}catch(a){return{models:[],warning:`Grok CLI model discovery failed: ${a.message}`}}}},39326:(a,b,c)=>{c.d(b,{B:()=>h,p:()=>g});var d=c(71998);function e(a){return null==a?"":String(a).trim()}let f=new Map;function g(a,b,c){if(!a||0===a.length)return null;if(1===a.length)return a[0];if("round-robin"===b){let b=f.get(c)||{index:-1};return b.index=(b.index+1)%a.length,f.set(c,b),a[b.index]}return"random"===b?a[Math.floor(Math.random()*a.length)]:a[0]}async function h(a={}){try{let b=e(a?.proxyPoolId),c="__none__"===b?"":b,f=function(a={}){let b=a?.connectionProxyEnabled===!0;return{connectionProxyEnabled:b,connectionProxyUrl:e(a?.connectionProxyUrl),connectionNoProxy:e(a?.connectionNoProxy)}}(a),g=!1;if(c){let a=await (0,d.hr)(c),b=e(a?.proxyUrl),f=e(a?.noProxy),h=a&&!0===a.isActive&&b;if(g=a?.strictProxy===!0,h){if("vercel"===a.type||"cloudflare"===a.type||"deno"===a.type)return{source:a.type,proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:f,strictProxy:!0===a.strictProxy,vercelRelayUrl:b};return{source:"pool",proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!0,connectionProxyUrl:b,connectionNoProxy:f,strictProxy:!0===a.strictProxy}}}if(f.connectionProxyEnabled&&f.connectionProxyUrl)return{source:"legacy",proxyPoolId:c||null,proxyPool:null,strictProxy:g,...f};return{source:"none",proxyPoolId:c||null,proxyPool:null,strictProxy:g,...f}}catch(a){return console.error("[resolveConnectionProxyConfig] Failed to resolve proxy config:",a),{source:"error",proxyPoolId:null,proxyPool:null,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:"",strictProxy:!1}}}},52007:(a,b,c)=>{c.d(b,{av:()=>o,gK:()=>m});var d=c(55511),e=c(39609);let f="https://llm.kimchi.dev",g=new Set([429,500,502,503,504]),h=new Map,i=new Map;function j(a){return(("string"==typeof a?a.trim():"")||f).replace(/\/+$/,"")}function k(a){return a?.accessToken||a?.apiKey||a?.providerSpecificData?.apiKey||null}function l(a){if(!a||"object"!=typeof a)return null;let b=a.slug||a.id||a.model||a.name;if("string"!=typeof b||""===b.trim())return null;let c=Array.isArray(a.input_modalities)?a.input_modalities.filter(a=>"text"===a||"image"===a):[],d=a.limits&&"object"==typeof a.limits?a.limits:{},e=Number(d.context_window||a.contextLength||a.context_length)||void 0,f=Number(d.max_output_tokens||a.maxOutputTokens||a.max_output_tokens)||void 0,g="string"==typeof a.provider?a.provider:"",h=!0===a.reasoning,i=Array.isArray(c)&&c.includes("image")?"imageToText":"llm",j={...a,id:b.trim(),name:String(a.display_name||a.displayName||a.name||b).trim(),provider:g,upstreamProvider:g,reasoning:h,inputModalities:c,kind:i,type:i,capabilities:{vision:c.includes("image"),reasoning:h,...e?{contextWindow:e}:{},...f?{maxOutput:f}:{},...g?{upstreamProvider:g}:{}},...e?{contextLength:e}:{},...f?{maxOutputTokens:f}:{}};return"anthropic"===g&&(j.compat={supportsReasoningEffort:!1,cacheControlFormat:"anthropic"}),j}function m(a){if("string"!=typeof a||""===a.trim())return null;let b=a.includes("/")?a.split("/").pop():a;return i.get(b)||i.get(b.toLowerCase())||null}async function n(a,b,c={}){let d=`${j(b)}/v1/models/metadata?include_in_cli=true`,f=new AbortController,h=setTimeout(()=>f.abort(Error("Kimchi models fetch timeout")),2e4),i=c.signal?AbortSignal.any([c.signal,f.signal]):f.signal;try{let b=await (0,e.proxyAwareFetch)(d,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${a}`,"User-Agent":"kimchi/0.1.40"},cache:"no-store",signal:i},c.proxyOptions||null);if(!b.ok){let a=Error(`Kimchi models ${b.status}: ${b.statusText}`);throw a.status=b.status,a.retryable=g.has(b.status),a}let f=await b.json();return Array.isArray(f?.models)?f.models:[]}finally{clearTimeout(h)}}async function o(a,b={}){let c,e,g,m=k(a);if(!m)return null;let p=a?.providerSpecificData?.kimchiEndpoint||b.endpoint||f,q=(g=(e=a?.providerSpecificData||{}).userId||e.username||a?.refreshToken||k(a)||"anonymous",(0,d.createHash)("sha256").update(`kimchi:${j(p)}:${g}`).digest("hex")),r=Date.now();if(!b.forceRefresh){let a=h.get(q);if(a&&a.expiresAt>r)return a}try{c=await n(m,p,b)}catch(a){return b.log?.warn?.("KIMCHI_MODELS",a.message),null}let s=c.map(l).filter(Boolean);if(0===s.length)return null;for(let a of s||[])a?.id&&(i.set(a.id,a),i.set(a.id.toLowerCase(),a));let t={expiresAt:Date.now()+3e5,models:s,rawModels:c};return h.set(q,t),t}},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(19548);new Set(Object.entries(c(17404).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a));let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))},84534:(a,b,c)=>{c.d(b,{v:()=>i});var d=c(39609),e=c(75924),f=c(12025);let g=new Map;async function h(a,b){let c=new AbortController,f=setTimeout(()=>c.abort(),1e4);try{let f=await (0,d.proxyAwareFetch)("https://api.githubcopilot.com/models",{method:"GET",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json","Copilot-Integration-Id":"vscode-chat","editor-version":`vscode/${e.x0.VSCODE_VERSION}`,"editor-plugin-version":`copilot-chat/${e.x0.COPILOT_CHAT_VERSION}`,"user-agent":e.x0.USER_AGENT,"x-github-api-version":e.x0.API_VERSION},cache:"no-store",signal:b||c.signal});if(!f.ok){let a=Error(`Copilot /models returned ${f.status}`);throw a.status=f.status,a}let g=await f.json();return Array.isArray(g?.data)?g.data:[]}finally{clearTimeout(f)}}async function i(a,b={}){let c,d=a?.providerSpecificData?.copilotToken||a?.accessToken;if(!d)return b.log?.debug?.("COPILOT_MODELS","No copilotToken/accessToken; skipping live fetch"),null;let e=a?.providerSpecificData?.copilotToken||a?.accessToken||"copilot-anonymous",j=Date.now();if(!b.forceRefresh){let a=g.get(e);if(a&&a.expiresAt>j)return{models:a.models}}try{c=await h(d,b.signal)}catch(d){if(!d||401!==d.status&&403!==d.status||!a.accessToken)return b.log?.warn?.("COPILOT_MODELS",`Live model fetch failed: ${d?.message||d}`),null;{b.log?.info?.("COPILOT_MODELS",`Got ${d.status}; refreshing Copilot token`);let e=await (0,f.jR)(a.accessToken);if(!e?.token)return b.log?.warn?.("COPILOT_MODELS","Token refresh did not return a token"),null;if("function"==typeof b.onCredentialsRefreshed)try{await b.onCredentialsRefreshed({copilotToken:e.token,copilotTokenExpiresAt:e.expiresAt})}catch(a){b.log?.warn?.("COPILOT_MODELS",`onCredentialsRefreshed failed: ${a?.message||a}`)}try{c=await h(e.token,b.signal)}catch(a){return b.log?.warn?.("COPILOT_MODELS",`Retry after refresh failed: ${a?.message||a}`),null}}}let k=function(a){let b=new Set,c=[];for(let d of a){if(!d||"object"!=typeof d||d.capabilities?.type!=="chat"||d.policy&&"enabled"!==d.policy.state)continue;let a=d.id;!a||b.has(a)||(b.add(a),c.push({id:a,name:d.name||a}))}return c}(c);return k.length?(g.set(e,{expiresAt:j+3e5,models:k}),{models:k}):null}}};
@@ -1 +1 @@
1
- "use strict";exports.id=7726,exports.ids=[7726],exports.modules={37726:(a,b,c)=>{c.d(b,{QoderService:()=>j});var d=c(32185),e=c(55511),f=c.n(e),g=c(71899);function h(a){return a.toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}async function i(a,b={}){let c=new AbortController,d=setTimeout(()=>c.abort("timeout"),15e3);try{return await fetch(a,{...b,signal:c.signal})}finally{clearTimeout(d)}}class j{constructor(a={}){this.config=a}loginUrl(){return this.config.loginUrl||d.rf}deviceTokenUrl(){return this.config.deviceTokenUrl||d.bg}userInfoUrl(){return this.config.userInfoUrl||d._G}generatePkcePair(){let a=h(f().randomBytes(32)),b=h(f().createHash("sha256").update(a).digest());return{verifier:a,challenge:b}}initiateDeviceFlow(){let{verifier:a,challenge:b}=this.generatePkcePair(),c=(0,g.A)(),d=(0,g.A)(),e=new URLSearchParams({challenge:b,challenge_method:"S256",machine_id:d,nonce:c});return{verificationUriComplete:`${this.loginUrl()}?${e.toString()}`,codeVerifier:a,nonce:c,machineId:d}}async pollDeviceToken({nonce:a,codeVerifier:b}){let c;if(!a||!b)throw Error("pollDeviceToken: missing nonce or code verifier");let d=`${this.deviceTokenUrl()}?nonce=${encodeURIComponent(a)}&verifier=${encodeURIComponent(b)}&challenge_method=S256`,e=await i(d,{method:"GET",headers:{Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(202===e.status||404===e.status)return{status:"pending"};let f=await e.text();if(!e.ok){let a=`Qoder device token poll failed: HTTP ${e.status}`;try{let b=JSON.parse(f);b.message&&(a=`Qoder device token poll failed: ${b.message}`)}catch{}throw Error(a)}try{c=JSON.parse(f)}catch(a){throw Error(`Qoder device token poll: invalid JSON response (${a.message})`)}if(!c.token)throw Error("Qoder device token poll returned 200 but no token");let g=j.parseExpiry(c.expires_at,c.expires_in);return{status:"ok",accessToken:c.token,refreshToken:c.refresh_token||"",userId:c.user_id||"",expireTime:g,rawResponse:c}}async fetchUserInfo(a){try{let b=await i(this.userInfoUrl(),{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(!b.ok)return{name:"",email:""};let c=await b.json();return{name:(c.name||c.username||"").trim(),email:(c.email||"").trim(),organizationId:(c.organization_id||"").trim()}}catch{return{name:"",email:""}}}async fetchUserPlan(a){try{let b=await i("https://qoder.com/api/v1/me/userplan",{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(!b.ok)return null;return await b.json()}catch{return null}}static parseExpiry(a,b){if("number"==typeof a&&Number.isFinite(a)&&a>0)return a;let c="string"==typeof a?a.trim():"";if(c){if(/^\d+$/.test(c)){let a=Number.parseInt(c,10);if(Number.isFinite(a)&&a>0)return a}let a=Date.parse(c);if(!Number.isNaN(a))return a}return"number"==typeof b&&Number.isFinite(b)&&b>=0?Date.now()+1e3*b:Date.now()+2592e6}}}};
1
+ "use strict";exports.id=7726,exports.ids=[7726],exports.modules={37726:(a,b,c)=>{c.d(b,{QoderService:()=>j});var d=c(32185),e=c(55511),f=c.n(e),g=c(27137);function h(a){return a.toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}async function i(a,b={}){let c=new AbortController,d=setTimeout(()=>c.abort("timeout"),15e3);try{return await fetch(a,{...b,signal:c.signal})}finally{clearTimeout(d)}}class j{constructor(a={}){this.config=a}loginUrl(){return this.config.loginUrl||d.rf}deviceTokenUrl(){return this.config.deviceTokenUrl||d.bg}userInfoUrl(){return this.config.userInfoUrl||d._G}generatePkcePair(){let a=h(f().randomBytes(32)),b=h(f().createHash("sha256").update(a).digest());return{verifier:a,challenge:b}}initiateDeviceFlow(){let{verifier:a,challenge:b}=this.generatePkcePair(),c=(0,g.A)(),d=(0,g.A)(),e=new URLSearchParams({challenge:b,challenge_method:"S256",machine_id:d,nonce:c});return{verificationUriComplete:`${this.loginUrl()}?${e.toString()}`,codeVerifier:a,nonce:c,machineId:d}}async pollDeviceToken({nonce:a,codeVerifier:b}){let c;if(!a||!b)throw Error("pollDeviceToken: missing nonce or code verifier");let d=`${this.deviceTokenUrl()}?nonce=${encodeURIComponent(a)}&verifier=${encodeURIComponent(b)}&challenge_method=S256`,e=await i(d,{method:"GET",headers:{Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(202===e.status||404===e.status)return{status:"pending"};let f=await e.text();if(!e.ok){let a=`Qoder device token poll failed: HTTP ${e.status}`;try{let b=JSON.parse(f);b.message&&(a=`Qoder device token poll failed: ${b.message}`)}catch{}throw Error(a)}try{c=JSON.parse(f)}catch(a){throw Error(`Qoder device token poll: invalid JSON response (${a.message})`)}if(!c.token)throw Error("Qoder device token poll returned 200 but no token");let g=j.parseExpiry(c.expires_at,c.expires_in);return{status:"ok",accessToken:c.token,refreshToken:c.refresh_token||"",userId:c.user_id||"",expireTime:g,rawResponse:c}}async fetchUserInfo(a){try{let b=await i(this.userInfoUrl(),{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(!b.ok)return{name:"",email:""};let c=await b.json();return{name:(c.name||c.username||"").trim(),email:(c.email||"").trim(),organizationId:(c.organization_id||"").trim()}}catch{return{name:"",email:""}}}async fetchUserPlan(a){try{let b=await i("https://qoder.com/api/v1/me/userplan",{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(!b.ok)return null;return await b.json()}catch{return null}}static parseExpiry(a,b){if("number"==typeof a&&Number.isFinite(a)&&a>0)return a;let c="string"==typeof a?a.trim():"";if(c){if(/^\d+$/.test(c)){let a=Number.parseInt(c,10);if(Number.isFinite(a)&&a>0)return a}let a=Date.parse(c);if(!Number.isNaN(a))return a}return"number"==typeof b&&Number.isFinite(b)&&b>=0?Date.now()+1e3*b:Date.now()+2592e6}}}};
@@ -1 +1 @@
1
- "use strict";exports.id=7793,exports.ids=[7793],exports.modules={428:(a,b,c)=>{c.d(b,{J:()=>i});var d=c(38775),e=c(88967),f=c(58136),g=c(83017),h=c(57874);async function i({body:a,models:b,routerModel:c=h.UH,log:j,timeoutMs:k=h.rc}){if(!Array.isArray(b)||b.length<=1)return null;let l="string"==typeof c&&c.trim()?c.trim():h.UH,m=(0,h.nn)(a);if(!m)return j?.debug?.("COMBO","smart-router: empty prompt state, skipping classification"),null;let n=(0,h.JE)(b);if(0===Object.keys(n).length)return null;try{let a,b,c=await (0,d.mA)(l);if(!c?.provider)return j?.warn?.("COMBO",`smart-router: unrecognized router model "${l}"`),null;let{provider:i,model:o}=c,p=await (0,e.c1)(i,new Set,o);if(!p||p.allRateLimited)return j?.warn?.("COMBO",`smart-router: no credentials available for router provider "${i}"`),null;let q=await (0,f.eU)(i,p),r=new Promise((b,c)=>{a=setTimeout(()=>c(Error(`System One router timed out after ${k}ms`)),k)}),s=(0,g.l)({body:{model:o,state:m,questions:{route:{type:"choice",instructions:"Which of these configured models is the most appropriate for this request?",criteria:n}}},modelInfo:{provider:i,model:o},credentials:q,log:j,onRequestSuccess:()=>{}});try{b=await Promise.race([s,r])}finally{clearTimeout(a)}if(!b?.success||!b.response)return j?.warn?.("COMBO",`smart-router: evaluation failed (${b?.status||"error"})`),null;let t=await b.response.json(),u=(0,h.Kn)(t);if(!u||!u.choice)return j?.warn?.("COMBO","smart-router: response missing valid route choice"),null;return u}catch(a){return j?.warn?.("COMBO",`smart-router: evaluation aborted (${a?.message||String(a)})`),null}}},3359:(a,b,c)=>{c.d(b,{K0:()=>j,Oh:()=>n,c9:()=>q,lL:()=>r,s9:()=>i});var d=c(89718),e=c(19548);let f="gpt-5.6";function g(a){return String(a||"").trim().replace(/^\/+|\/+$/g,"")}function h(a){let b;return`cx/${(b=g(a)).startsWith("cx/")?b.slice(3):b.startsWith("codex/")?b.slice(6):b||f}`}function i(a){let b=g(a);if(!b)return null;if("auto-codex"===b)return{mode:"router",modelString:`cx/${f}`,strictAccount:!1,label:"Auto Codex"};if(b.startsWith("router/")){let a;return{mode:"router",modelString:(a=g(b.slice(7))||f).includes("/")?a:`cx/${a}`,strictAccount:!1,label:"Router Pool"}}if(b.startsWith("original/"))return{mode:"original",modelString:h(b.slice(9)),strictAccount:!0,label:"Original Codex"};if("original"===b)return{mode:"original",modelString:`cx/${f}`,strictAccount:!0,label:"Original Codex"};let c=b.startsWith("account/")?"account/":b.startsWith("codex-account/")?"codex-account/":null;if(c){let a=b.slice(c.length),d=a.indexOf("/"),e=-1===d?a:a.slice(0,d),g=-1===d?f:a.slice(d+1);return e?{mode:"account",accountRef:e,modelString:h(g),strictAccount:!0,label:"Pinned Codex Account"}:null}return null}function j(a){return a?.displayName||a?.name||a?.email||a?.id||"Codex account"}function k(a){let b=String(j(a)).toLowerCase().replace(/@/g,"-").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"account";return`${b}-${String(a?.id||"").slice(0,8)}`}function l(a){return String(a||"").trim().toLowerCase()}function m(a){let b=a?.providerSpecificData||{};return"GPTJson"===b.importedFrom||String(b.tokenSource||"").startsWith("ChatGPT_team")}async function n(a=5e3){let b=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),c=b.slice(0,a).map(a=>({id:a.id,slug:k(a),label:j(a),email:a.email||null,imported:m(a),priority:a.priority||null})),e=o(b);return{accounts:c,original:e?{id:e.id,slug:k(e),label:j(e),email:e.email||null,imported:m(e),priority:e.priority||null}:null}}function o(a){return Array.isArray(a)&&0!==a.length?a.find(a=>!m(a))||a[0]:null}async function p(a){let b=l(a);if(!b)return null;let c=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),e=c.find(a=>l(a.id)===b||k(a)===b||l(a.email)===b||l(a.name)===b||l(a.displayName)===b);if(e)return e;let f=c.filter(a=>l(a.id).startsWith(b)||k(a).startsWith(b));return 1===f.length?f[0]:null}async function q(a){if(!a||"original"!==a.mode&&"account"!==a.mode)return null;if("account"===a.mode)return p(a.accountRef);let b=await (0,d.mt)(),c=b.codexGatewayOriginalConnectionId||b.codexOriginalConnectionId||"";if(c){let a=await p(c);if(a)return a}return o(await (0,d.getProviderConnections)({provider:"codex",isActive:!0}))}function r(a=[]){if(!a.some(a=>"codex"===a.provider&&!1!==a.isActive))return[];let b=[{id:"auto-codex",object:"model",owned_by:"zevai-codex-gateway"},...(e.vq.cx||[]).filter(a=>!a.type||"llm"===a.type).map(a=>a.id).flatMap(a=>[{id:`router/${a}`,object:"model",owned_by:"zevai-codex-gateway"},{id:`original/${a}`,object:"model",owned_by:"zevai-codex-gateway"}])];for(let c of a.filter(a=>"codex"===a.provider&&!1!==a.isActive))b.push({id:`account/${k(c)}`,object:"model",owned_by:"zevai-codex-account"});return b}},7444:(a,b,c)=>{c.d(b,{m:()=>e});let d=Object.freeze({kiroIntegrity:"ZEVAI_V11_KIRO_INTEGRITY",outboundPolicy:"ZEVAI_V11_OUTBOUND_POLICY",compatV11:"ZEVAI_V11_COMPAT",refreshLanes:"ZEVAI_V11_REFRESH_LANES",adaptiveShadow:"ZEVAI_V11_ADAPTIVE_SHADOW",adaptiveRoute:"ZEVAI_V11_ADAPTIVE_ROUTE",registryV2:"ZEVAI_V11_REGISTRY_V2",quotaStreamV2:"ZEVAI_V11_QUOTA_STREAM_V2"});function e(a={},b=process.env){let c=a?.v11Flags&&"object"==typeof a.v11Flags?a.v11Flags:{};return Object.freeze(Object.fromEntries(Object.entries(d).map(([a,d])=>{var e;return[a,("true"===(e=b?.[d])||"1"===e||"false"!==e&&"0"!==e&&null)??!0===c[a]]})))}},7912:(a,b,c)=>{c.d(b,{J:()=>i});var d=c(93930);let e=Object.freeze({health:35,priority:20,quota:20,latency:15,stability:10}),f=Object.freeze({healthy:1,degraded:.25,probing:.4,unhealthy:0});function g(a){return Math.min(1,Math.max(0,a))}function h(a,b,c=!1){if(!Number.isFinite(a))return .5;let d=Number(b?.min),e=Number(b?.max);if(!Number.isFinite(d)||!Number.isFinite(e)||e<=d)return .5;let f=g((a-d)/(e-d));return c?1-f:f}function i({candidates:a=[],legacyCandidateId:b=null,flags:c={},providerActivation:j=!1,context:k={}}={}){let l=function(a=[],b={}){return a.map(a=>{let c=(0,d.Z)(a,b);return c.eligible?Object.freeze({candidate:a,eligibility:c,score:function(a={},b={}){var c;if(!1===(a.eligibility||b.eligibility||(0,d.Z)(a,b)).eligible)return null;let i=Object.freeze({health:Number.isFinite(c=a.health)?g(c):f[c]??.5,priority:h(a.priority,b.priorityRange,!0),quota:function(a){if(!a||"object"!=typeof a)return .5;let b=Number(a.remaining),c=Number(a.total);return Number.isFinite(b)&&Number.isFinite(c)&&!(c<=0)?g(b/c):.5}(a.quota),latency:h(a.latency,b.latencyRange,!0),stability:!0===a.sticky?1:.5}),j=Object.entries(e).reduce((a,[b,c])=>a+i[b]*c,0);return Object.freeze({total:Math.round(1e3*(100*g(("degraded"===a.health?Math.min(j,e.health-.001):j)/100)))/1e3,components:i})}(a,{...b,eligibility:c})}):null}).filter(Boolean).sort((a,b)=>b.score.total-a.score.total||Number(a.candidate.legacyOrder||0)-Number(b.candidate.legacyOrder||0)||String(a.candidate.id||"").localeCompare(String(b.candidate.id||"")))}(a,k),m=Object.freeze(l.map(({candidate:a,score:b})=>Object.freeze({id:a.id,score:b.total,components:b.components}))),n=k.pinnedConnectionId&&a.find(a=>a.id===k.pinnedConnectionId)||a.find(a=>a.id===b)||l[0]?.candidate||null,o=l[0]?.candidate||n,p=!0===c.adaptiveRoute&&!0===j&&!!o,q=!p&&!0===c.adaptiveShadow;return Object.freeze({mode:p?"active":q?"shadow":"legacy",selected:p?o:n,legacyCandidateId:n?.id||null,adaptiveCandidateId:o?.id||null,ranked:m})}},14262:(a,b,c)=>{function d(a){let b=String(a||"").trim();if(!b)return"";let c=b.replace(/\/+$/,"");return c.endsWith("/v1")?c:`${c}/v1`}function e(a){let b=String(a||"").trim();return b?"auto-codex"===b||b.startsWith("router/")||b.startsWith("original/")||b.startsWith("account/")||b.startsWith("codex-account/")?b:b.startsWith("codex/")?`cx/${b.slice(6)}`:b.includes("/")?b:b.startsWith("gpt-")||/^o[134]/i.test(b)?`cx/${b}`:b:"cx/gpt-5.6-sol"}function f(a){let b=e(a);return b.startsWith("cx/")?b.slice(3):b}function g(a,b){return"codex"===b?e(a):a}c.d(b,{Fq:()=>f,Ow:()=>e,eR:()=>g,tb:()=>d,x_:()=>j,zA:()=>i});let h=/^[a-z0-9][a-z0-9_-]{0,63}$/;function i(a){let b="string"==typeof a?a.trim().toLowerCase():"";return"config"!==b&&h.test(b)?b:null}function j(a){let b="string"==typeof a?a.trim():"";if(!b||b.length>256||/[\u0000-\u001f"]/.test(b))return null;let c=e(b);return!c||c.length>256||/[\u0000-\u001f"]/.test(c)?null:c}},17603:(a,b,c)=>{c.d(b,{R8:()=>j,ar:()=>k,vB:()=>h});var d=c(24);let e=["vision","pdf","audioInput","videoInput"],f=new Set(e);function g(a,b){let c=b?.capacityAdapter?.[a];if(!c)return{enabled:!1,roundRobin:!1,models:[]};if(Array.isArray(c)){let a=c.filter(a=>a&&!1!==a.enabled&&"string"==typeof a.model).map(a=>a.model);return{enabled:a.length>0,roundRobin:!1,models:a}}let d=Array.isArray(c.models)?c.models.filter(a=>"string"==typeof a&&a.trim()):[];return{enabled:!0===c.enabled&&d.length>0,roundRobin:!0===c.roundRobin,models:d}}function h(a,b){for(let c of e){if(!a||!a.has?.(c))continue;let{enabled:d}=g(c,b);if(d)return function(a,b){let{enabled:c,roundRobin:d}=g(a,b);return c&&d?"round-robin":"fallback"}(c,b)}return"fallback"}function i(a,b){let c="string"==typeof a?a.indexOf("/"):-1,e=c>0?a.slice(0,c):"",f=c>0?a.slice(c+1):a,g=(0,d.nl)(e,f);return b.every(a=>!0===g[a])}function j(a,b,c){let d=[...b||[]].filter(a=>f.has(a));if(0===d.length||!Array.isArray(a)||0===a.length||a.some(a=>i(a,d)))return a;let h=(function(a){let b=new Set,c=[];for(let d of e){let{enabled:e,models:f}=g(d,a);if(e)for(let a of f)b.has(a)||(b.add(a),c.push(a))}return c})(c).filter(b=>!a.includes(b)&&i(b,d));return 0===h.length?a:[...h,...a]}function k(a,b){let c=new Set(b||[]);return 0===c.size?a:(b,e,...f)=>{if(!c.has(e))return a(b,e,...f);let g="string"==typeof e?e.indexOf("/"):-1,h=g>0?e.slice(0,g):"",i=g>0?e.slice(g+1):e,j=(0,d.nl)(h,i);return a(function(a,b){if(!a||"object"!=typeof a||!Array.isArray(a.messages)||!Number.isFinite(b)||b<=0)return a;let c=a.messages;if(c.length<=7)return a;let d=Math.floor(.8*b*4),e=a=>{try{return JSON.stringify(a).length}catch{return 0}};if(c.reduce((a,b)=>a+e(b),0)<=d)return a;let f=c.slice(0,6),g=[c[c.length-1]],h=[...f,...g].reduce((a,b)=>a+e(b),0),i=[];for(let a=c.length-2;a>=6;a--){let b=e(c[a]);if(h+b>d)break;h+=b,i.unshift(c[a])}return{...a,messages:[...f,...i,...g]}}(b,j?.contextWindow),e,...f)}}},26679:(a,b,c)=>{c.d(b,{B$:()=>aj});var d,e=c(35024),f=c(19548),g=c(17404),h=c(48806),i=c(87098),j=c(17559),k=c(25433),l=c(34204),m=c(15082),n=c(90874),o=c(79875),p=c(91861),q=c(41004),r=c(64991);let s=/^[a-z0-9]+(?:[._-][a-z0-9]+)*$/,t=new Set(["free","freeTier","oauth","apikey"]),u=new Set(["none","oauth","apikey"]),v=new Set(["llm","embedding","image","imageToText","music","stt","tts","video","webFetch","webSearch"]),w=new Set(["antigravity","claude","codex","commandcode","cursor","gemini","gemini-cli","kiro","ollama","openai","openai-response","openai-responses","vertex"]),x=new Set(["public","trusted-local","loopback-service"]),y=new Set(["terminal","kiro-eventstream","none"]),z=["embeddingConfig","imageConfig","imageToTextConfig","musicConfig","sttConfig","ttsConfig","videoConfig"],A=["connectMs","firstEventMs","progressIdleMs","absoluteMs"],B=Object.freeze({quotaSource:Object.freeze({strategy:"none",provenance:"none"}),deadlineProfile:Object.freeze({connectMs:15e3,firstEventMs:6e4,progressIdleMs:6e4,absoluteMs:3e5}),integrityProfile:Object.freeze({mode:"terminal",requireTerminal:!0})});class C extends Error{constructor(a,b){super(`Invalid provider descriptor ${a}: ${b}`),this.name="ProviderDescriptorError",this.path=a}}function D(a,b){throw new C(a,b)}function E(a){return null!==a&&"object"==typeof a&&!Array.isArray(a)}function F(a,b){"string"==typeof a&&s.test(a)||D(b,"must be a stable lowercase ID")}function G(a,b,c){Array.isArray(a)&&0!==a.length||D(b,"must be a non-empty array");let d=new Set;for(let e of a)"string"==typeof e&&c.has(e)||D(b,"contains an unsupported value"),d.has(e)&&D(b,"contains a duplicate value"),d.add(e)}function H(a){let b=[];for(let[c,d]of Object.entries(a||{}))/(?:base|validate|responses|messages|token|auth|refresh)urls?$/i.test(c)&&("string"==typeof d?b.push(d):Array.isArray(d)&&b.push(...d));return b}function I(a,b,c="public"){for(let d of H(a)){let a;try{a=new URL(d)}catch{D(b,"contains a malformed endpoint")}(a.username||a.password)&&D(b,"endpoint credentials are not allowed"),"public"===c&&"https:"!==a.protocol&&D(b,"public endpoints must use HTTPS"),"public"===c||["http:","https:"].includes(a.protocol)||D(b,"trusted local endpoints must use HTTP or HTTPS")}}function J(a,b,{allowEmpty:c=!1}={}){Array.isArray(a)&&(0!==a.length||c)||D(b,"must contain a static fallback");let d=new Set;for(let c of a)E(c)&&"string"==typeof c.id&&0!==c.id.length||D(b,"contains a model without an ID"),d.has(c.id)&&D(b,`contains duplicate model ${c.id}`),d.add(c.id)}function K(a,b){for(let c of(E(a)||D(b,"must be an object"),A))(!Number.isInteger(a[c])||a[c]<1e3||a[c]>9e5)&&D(`${b}.${c}`,"must be between 1000 and 900000 milliseconds");a.absoluteMs<a.connectMs&&D(`${b}.absoluteMs`,"must cover connect time")}let L={id:"antigravity",alias:"ag",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.antigravity},serviceKinds:g.AI_PROVIDERS.antigravity.serviceKinds,capabilities:{streaming:!0,tools:!0,thinking:!0},transport:e.xq.antigravity,models:f.vq.ag,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:{...B.deadlineProfile,variants:{thinking:{connectMs:B.deadlineProfile.connectMs,firstEventMs:q.iL,progressIdleMs:q.SI,absoluteMs:q.P4}}},integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"quota-or-model"}},M={id:"kiro",alias:"kr",category:"free",authModes:g.AI_PROVIDERS.kiro.authModes,display:{...g.AI_PROVIDERS.kiro},serviceKinds:["llm"],capabilities:{streaming:!0,tools:!0,thinking:!0,liveCatalog:!0},transport:e.xq.kiro,models:f.vq.kr,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:(0,r.JJ)("kiro"),deadlineProfile:B.deadlineProfile,integrityProfile:{mode:"kiro-eventstream",requireTerminal:!0,verifiedWindowMs:9e5,cleanProbesToRecover:5,memoryLimitBytes:2097152,maxBytes:0x4000000},dashboard:{connection:"oauth-or-apikey",validation:"profile-or-model"}},N={id:"codex",alias:"cx",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.codex},serviceKinds:g.AI_PROVIDERS.codex.serviceKinds,capabilities:{streaming:!0,tools:!0,thinking:!0},transport:e.xq.codex,models:f.vq.cx,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:B.deadlineProfile,integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"catalog-or-quota"}},O={id:"cursor",alias:"cu",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.cursor},serviceKinds:["llm"],capabilities:{streaming:!0,tools:!0,liveCatalog:!0},transport:e.xq.cursor,models:f.vq.cu,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:B.deadlineProfile,integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"account-or-model"}},P={id:"github",alias:"gh",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.github},serviceKinds:g.AI_PROVIDERS.github.serviceKinds,capabilities:{streaming:!0,tools:!0,responseEscalation:!0},transport:e.xq.github,models:f.vq.gh,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:B.deadlineProfile,integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"quota-or-model"},embeddingConfig:g.AI_PROVIDERS.github.embeddingConfig};var Q=c(89550),R=c(42366),S=c(65551),T=c(45452),U=c(8101),V=c(34291),W=c(67854),X=c(77016),Y=c(28906),Z=c(31409),$=c(13215),_=c(80485);let aa=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","systemoneConfig","modelsFetcher","mediaPriority","hiddenKinds"],ab=[h.A,i.A,j.A,k.A,l.A,m.A,n.A,o.A,p.A,L,M,N,O,P,Q.A,R.A,S.A,T.A,U.A,V.A,W.A,X.A,Y.A,Z.A,$.A,_.A];function ac(a={}){return Object.fromEntries(aa.filter(b=>void 0!==a[b]).map(b=>[b,a[b]]))}let ad=new Set([...Object.keys(g.AI_PROVIDERS),...Object.keys(e.xq)]),ae=new Map(ab.map(a=>[a.id,a])),af=new Set(["antigravity","kiro","codex","cursor","github"]),ag={};for(let a of ad){let b=function(a){let b=g.AI_PROVIDERS[a]||{},c=b.alias||a;return{id:a,alias:c,category:b.noAuth?"free":b.hasOAuth?"oauth":"apikey",authModes:b.authModes,hasOAuth:b.hasOAuth,noAuth:b.noAuth,passthroughModels:b.passthroughModels,display:function(a={}){let b=new Set(aa);return Object.fromEntries(Object.entries(a).filter(([a])=>!b.has(a)))}(b),transport:e.xq[a],models:f.vq[c]||f.vq[a]||[],...ac(b)}}(a),c=ae.has(a)?(d=ae.get(a),{...b,...d,display:{...b.display,...d.display},transport:{...b.transport,...d.transport},models:function(a=[],b=[]){let c=new Map;for(let d of[...a,...b])d?.id&&c.set(d.id,{...c.get(d.id),...d});return[...c.values()]}(b.models,d.models)}):b;ag[a]=af.has(a)?function(a,{optional:b=!1}={}){try{return function(a){if(E(a)||D("root","must be an object"),F(a.id,"id"),F(a.alias,"alias"),void 0!==a.aliases)for(let b of(Array.isArray(a.aliases)||D("aliases","must be an array"),a.aliases))F(b,"aliases");t.has(a.category)||D("category","is unsupported"),G(a.authModes,"authModes",u),G(a.serviceKinds,"serviceKinds",v),E(a.display)&&"string"==typeof a.display.name&&a.display.name.trim()||D("display.name","is required"),E(a.capabilities)||D("capabilities","must be an object"),E(a.transport)||D("transport","must be an object"),w.has(a.transport.format)||D("transport.format","is unsupported");let b=a.transport.trustClass||"public";x.has(b)||D("transport.trustClass","is unsupported"),0===H(a.transport).length&&D("transport","requires an endpoint"),I(a.transport,"transport",b),J(a.models,"models",{allowEmpty:!0===a.capabilities.liveCatalog}),E(a.quotaSource)&&"string"==typeof a.quotaSource.strategy&&"string"==typeof a.quotaSource.provenance||D("quotaSource","must declare strategy and provenance"),E(c=a.refreshProfile)||D("refreshProfile","must be an object"),(!Number.isInteger(c.maxConcurrent)||c.maxConcurrent<1)&&D("refreshProfile.maxConcurrent","must be a positive integer"),(!Number.isInteger(c.minDelayMs)||c.minDelayMs<0)&&D("refreshProfile.minDelayMs","must be a non-negative integer");var c,d=a.deadlineProfile;if(K(d,"deadlineProfile"),void 0!==d.variants)for(let[a,b]of(E(d.variants)||D("deadlineProfile.variants","must be an object"),Object.entries(d.variants)))K(b,`deadlineProfile.variants.${a}`);var e=a.integrityProfile;for(let a of(E(e)&&y.has(e.mode)||D("integrityProfile.mode","is unsupported"),"boolean"!=typeof e.requireTerminal&&D("integrityProfile.requireTerminal","must be boolean"),["memoryLimitBytes","maxBytes","verifiedWindowMs","cleanProbesToRecover"]))void 0!==e[a]&&(!Number.isInteger(e[a])||e[a]<=0)&&D(`integrityProfile.${a}`,"must be a positive integer");E(a.dashboard)&&"string"==typeof a.dashboard.connection&&"string"==typeof a.dashboard.validation||D("dashboard","must declare connection and validation modes");for(let b of z){let c=a[b];void 0!==c&&(E(c)||D(b,"must be an object"),I(c,b,c.trustClass||"public"),void 0!==c.models&&J(c.models,`${b}.models`))}return function a(b,c=new WeakMap){if(null===b||"object"!=typeof b)return b;if(c.has(b))return c.get(b);let d=Array.isArray(b)?[]:{};for(let[e,f]of(c.set(b,d),Object.entries(b)))d[e]=a(f,c);return Object.freeze(d)}(a)}(a)}catch(d){let c;if(!b)throw d;return Object.freeze({id:"string"==typeof a?.id&&s.test(a.id)?a.id:"optional-provider",disabled:!0,diagnostic:(c=d instanceof C?d.path:"unknown",`Provider descriptor disabled: invalid ${c}`.slice(0,160))})}}(c):c}let ah={},ai={},aj={};for(let a of Object.values(ag)){a.transport&&(ah[a.id]=a.transport),ai[a.alias||a.id]=a.models||[];let b=ac(a);Object.keys(b).length>0&&(aj[a.id]=b)}},30426:(a,b,c)=>{c.d(b,{AW:()=>l,DJ:()=>j,De:()=>i,KI:()=>e,Ps:()=>h,SF:()=>v,Uv:()=>q,VS:()=>g,aZ:()=>x,cI:()=>n,cT:()=>t,fM:()=>r,fO:()=>f,gc:()=>p,jM:()=>k,kE:()=>m,kw:()=>s,oG:()=>d,vQ:()=>o,wB:()=>u,zg:()=>w});let d=0xa00000,e=500,f=1024,g=100,h=200,i=2e3,j=10,k=10,l=20,m=10,n=10,o=5,p=["node_modules",".git","target","__pycache__",".next","dist","build",".venv","venv",".cache",".idea",".vscode",".DS_Store"],q=200,r=10,s=20,t=120,u=60,v=250,w=.7,x=8},32475:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{e:()=>H});var e=c(88967),f=c(90982),g=c(89718),h=c(29240),i=c(38775),j=c(92500),k=c(43659),l=c(48136),m=c(25308),n=c(41004),o=c(14170),p=c(7803),q=c(58136),r=c(38160),s=c(3359),t=c(35893),u=c(54603),v=c(49216),w=c(7912),x=c(75434),y=c(79761),z=c(45974),A=c(7444),B=c(90704),C=a([j,B]);[j,B]=C.then?(await C)():C;let I="zevai-cli-auth",J=new Set(["account_auth","account_quota","authentication","credential_rejected","reauth_required","policy_suspended","account_validation_required","entitlement_or_quota","permission_denied","rate_limited"]);function D(a){return(0,x.cN)(a)}function E(a,b){let c=Object.entries(a?.circuits||{}).find(([,a])=>a?.probeAcquired===!0&&a?.probeLeaseId);if(!c)return null;let[d,e]=c;return{dimensions:"account"===d?{scope:d,provider:a.provider,accountId:a.id}:"provider"===d?{scope:d,provider:a.provider}:"egress"===d?{scope:d,egressId:a.egressId}:{scope:d,provider:a.provider,model:b,egressId:a.egressId},leaseId:e.probeLeaseId}}async function F(a){let b=a?.headers?.get("x-zevai-connection-id")||null;if(!b)return null;let c=a.headers.get("x-zevai-cli-token");return c&&c===await (0,u.Xj)(I)?b:null}async function G(a){let b=a?.headers?.get("x-zevai-context-canary")||null;if(!b||!/^[A-Za-z0-9-]{8,64}$/.test(b))return null;let c=a.headers.get("x-zevai-cli-token");return c&&c===await (0,u.Xj)(I)?b:null}async function H(a,b,d=null,u=null,x=null,C=null){let I=await (0,i.mA)(b);if(!I.provider){let c=await (0,i.d_)(b);if(c){let a=(0,h.RV)(b,C,c);if(!a.allowed)return(0,k.yj)(n.gx.FORBIDDEN,(0,h.Ip)(b,a))}if(c){let e=await (0,g.mt)(),f=e.comboStrategies||{},h=f[b]?.fallbackStrategy||e.comboStrategy||"fallback";if("fusion"===h)return p.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: fusion)`),(0,m.vt)({body:a,models:c,handleSingleModel:(a,b,c)=>{let e=d;if(c&&d){let{tools:a,tool_choice:b,...c}=d.body||{};e={...d,body:c}}return H(a,b,e,u,x,C)},log:p,comboName:b,judgeModel:f[b]?.judgeModel,tuning:f[b]?.fusionTuning});let i=e.comboStickyRoundRobinLimit;return p.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: ${h}, sticky: ${i})`),(0,m.Pr)({body:a,models:c,handleSingleModel:(a,b)=>H(a,b,d,u,x,C),log:p,comboName:b,comboStrategy:h,comboStickyLimit:i,...(0,B.Px)(h,f,b,d,a)})}return p.warn("CHAT","Invalid model format",{model:b}),(0,k.yj)(n.gx.BAD_REQUEST,"Invalid model format")}let{provider:K,model:L}=I,M=I.gateway||null,N="claude"===K||K?.startsWith?.("anthropic-compatible-")?(0,f.J)(d?.headers):null,O=u?.headers?.get("user-agent")||"",P=new Set,Q=(0,v.P2)({maxAttempts:3}),R=await (0,g.mt)(),S=(0,A.m)(R),T=`route-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,U=null,V=null,W=null,X=null,Y={};x&&(Y.apiKey=x),C?.allowedConnectionIds&&(Y.allowedConnectionIds=C.allowedConnectionIds);let Z=await F(u);if(Z&&(Y.preferredConnectionId=Z,Y.strictPreferred=!0),M&&"codex"===K&&("original"===M.mode||"account"===M.mode)){let a=await (0,s.c9)(M);if(!a){let a="account"===M.mode?`account "${M.accountRef}"`:"original Codex account";return p.warn("AUTH",`Codex gateway could not resolve ${a}`),(0,k.yj)(n.gx.NOT_FOUND,`Codex gateway could not resolve ${a}`)}Y.preferredConnectionId=a.id,Y.strictPreferred=!!M.strictAccount,p.info("ROUTING",`Codex gateway ${M.mode} pinned to ${(0,s.K0)(a)}`)}for(;;){let b;if(0===Q.remaining)return W||(0,k.yj)(V||n.gx.SERVICE_UNAVAILABLE,U||"Upstream attempt budget exhausted",X);let f=await (0,e.c1)(K,P,L,Y);if(f?.modelUnavailable){let a=`${K}/${L}`;return p.warn("AUTH",`No known eligible account supports model: ${a}`),(0,k.yj)(n.gx.NOT_FOUND,`Model ${a} is not available on any known eligible account`)}if(!f||f.allRateLimited){if(f?.allRateLimited){let a=U||f.lastError||"Unavailable",b=V||Number(f.lastErrorCode)||n.gx.SERVICE_UNAVAILABLE;return p.warn("CHAT",`[${K}/${L}] ${a} (${f.retryAfterHuman})`),(0,k.wO)(b,`[${K}/${L}] ${a}`,f.retryAfter,f.retryAfterHuman,X)}if(0===P.size)return p.warn("AUTH",`No active credentials for provider: ${K}`),(0,k.yj)(n.gx.NOT_FOUND,`No active credentials for provider: ${K}`);return p.warn("CHAT","No more accounts available",{provider:K}),(0,k.yj)(V||n.gx.SERVICE_UNAVAILABLE,U||"All accounts unavailable",X)}let g=null,h=null,i=[],s=()=>{h&&((0,y.BU)(h.dimensions,{leaseId:h.leaseId,cancelled:!0}),h=null)};if((S.adaptiveShadow||S.adaptiveRoute)&&"function"==typeof e.uT)try{let b=[...(0,m.t8)(a)],c=R.providerStrategies?.[K]?.adaptiveRoute===!0,d=(i=await e.uT(K,L,{...Y,operation:"chat",requiredCapabilities:b,acquireCircuitProbes:!0===S.adaptiveRoute&&c})).filter(a=>!P.has(a.id)),j=(0,w.J)({candidates:d,legacyCandidateId:f.connectionId,flags:S,providerActivation:c,context:{provider:K,model:L,operation:"chat",requiredCapabilities:b,allowedConnectionIds:Y.allowedConnectionIds,pinnedConnectionId:Y.strictPreferred?Y.preferredConnectionId:null,priorityRange:{min:Math.min(...d.map(a=>a.priority).filter(Number.isFinite)),max:Math.max(...d.map(a=>a.priority).filter(Number.isFinite))}}});if("active"===j.mode&&j.selected?.id!==f.connectionId){let a=await (0,e.c1)(K,P,L,{...Y,preferredConnectionId:j.selected.id,strictPreferred:!0});!a||a.allRateLimited||a.modelUnavailable||(f=a)}let k=d.find(a=>a.id===f.connectionId);for(let a of((h=E(k,L))&&D({type:"probe",requestTag:T,provider:K,model:L,connectionId:f.connectionId,phase:"open"}),i)){let b=E(a,L);b&&b.leaseId!==h?.leaseId&&(0,y.BU)(b.dimensions,{leaseId:b.leaseId,cancelled:!0})}let l=j.ranked.find(a=>a.id===j.adaptiveCandidateId);g={mode:j.mode,candidateCount:d.length,connectionId:f.connectionId,score:l?.score,scoreComponents:l?.components},D({type:"decision",requestTag:T,provider:K,model:L,connectionId:f.connectionId,...g})}catch(a){for(let a of i){let b=E(a,L);b&&(0,y.BU)(b.dimensions,{leaseId:b.leaseId,cancelled:!0})}h=null,p.warn("ADAPTIVE",`Planner unavailable for ${K}/${L}; using legacy route (${a?.message||a})`),g={mode:"legacy",candidateCount:0}}try{b=await (0,q.eU)(K,f)}catch(g){s();let a=g?.permanent===!0;if("kiro"!==K&&!a)throw g;let b=Number.isInteger(g?.status)?g.status:a?n.gx.UNAUTHORIZED:n.gx.BAD_GATEWAY,c="kiro"===K?a?"Kiro rejected the refresh credential.":"Kiro credential refresh failed temporarily.":`${K} refresh token rejected (token invalid); reconnect this account.`,{shouldFallback:d}=await (0,e.vk)(f.connectionId,b,c,K,L,null,{failureClass:a?"reauth_required":"upstream_transient",providerErrorCode:g?.code||null,upstreamRequestId:g?.requestId||null,authLifecycle:{initialStatus:null,refreshAttempted:!0,refreshOutcome:a?"rejected":"transient_failed",retryStatus:null}},..."codebuddy"===K||"codebuddy-cn"===K?[f._connection]:[]);if(d){P.add(f.connectionId),U=c,V=b,p.warn("AUTH",`${K} refresh failed for ${f.connectionName}; trying fallback`);continue}return(0,k.yj)(b,c)}if("antigravity"===K||"gemini-cli"===K){let a=b.projectId||f.projectId||f.providerSpecificData?.projectId||null;if(a&&(b.projectId=a),!b.projectId){let d=await (0,r.eG)(f.connectionId,b.accessToken,{preferredProjectId:a});if(!d&&"antigravity"===K)try{let{getProviderConnections:a}=await Promise.resolve().then(c.bind(c,71998));for(let b of await a({provider:"antigravity",isActive:!0})||[]){if(b.id===f.connectionId)continue;let a=b.projectId||b.providerSpecificData?.projectId;if(a){d=a;break}}}catch{}d&&(b.projectId=d,(0,q.vN)(f.connectionId,{projectId:d}).catch(()=>{}))}}let v=(R.providerThinking||{})[K]||null,A=null;if(R.pxpipeEnabled)try{let{getTransform:a}=await c.e(4253).then(c.bind(c,46634));A=await a()}catch{A=null}let B=N?{...b,rawHeaders:N}:b,C=async a=>{if("antigravity"===K&&a&&(409===a.status||429===a.status))try{let c=await (0,z.XJ)(f.connectionId,a.status,L,b?.accessToken||f.accessToken,f.providerSpecificData);if(Number.isFinite(c)&&c>Date.now()){let b=Number(a.resetsAtMs);(!Number.isFinite(b)||c>b)&&(a.resetsAtMs=c)}}catch(a){p.warn("AG_QUOTA",`quota refresh failed: ${a?.message||a}`)}},F=(0,t.S)({connectionId:f.connectionId,connectionName:f.connectionName,provider:K,model:L,markUnavailable:e.vk,selectedConnection:"codebuddy"===K||"codebuddy-cn"===K?f._connection:null,egressId:f.providerSpecificData?.connectionProxyPoolId||(f.providerSpecificData?.vercelRelayUrl?"relay":"direct"),logger:p}),H=()=>{let a=!1,b=Q.acquire({candidate:{id:f.connectionId,provider:K,egressId:f.providerSpecificData?.connectionProxyPoolId||(f.providerSpecificData?.vercelRelayUrl?"relay":"direct")},async finalize(c){if(D({type:"terminal",requestTag:T,provider:K,model:L,connectionId:f.connectionId,attemptIndex:b?.attemptIndex,failureClass:c.success?void 0:c.failure?.failureMetadata?.failureClass}),!h||a||c.retrying||(a=!0,(0,y.BU)(h.dimensions,{leaseId:h.leaseId,success:!0===c.success}),D({type:"probe",requestTag:T,provider:K,model:L,connectionId:f.connectionId,phase:c.success?"success":"failure"})),c.retrying)return{shouldFallback:!1,cooldownMs:0};if(c.lifecycleHandled)return{shouldFallback:!0===c.shouldFallback,cooldownMs:0};let d=c.failure?.failureMetadata?.failureClass||c.failureClass;return"client_abort"===d||"policy_rejection"===d?{shouldFallback:!1,cooldownMs:0,accountUnaffected:!0}:c.success?("antigravity"===K&&(0,z.vO)(f.connectionId,L),await (0,e.Pt)(f.connectionId,f,L),{shouldFallback:!1,cooldownMs:0}):F(c.failure||c)}});return b?.transition("acquired"),b&&D({type:"attempt_open",requestTag:T,provider:K,model:L,connectionId:f.connectionId,attemptIndex:b.attemptIndex}),b},I=Q.attemptsUsed,M=H();M||s();let Z=await (0,j.wk)({body:{...a,model:`${K}/${L}`},modelInfo:{provider:K,model:L},credentials:B,log:p,clientRawRequest:d,connectionId:f.connectionId,userAgent:O,apiKey:x,ccFilterNaming:!!R.ccFilterNaming,rtkEnabled:!!R.rtkEnabled,headroomEnabled:!!R.headroomEnabled,headroomUrl:R.headroomUrl||"http://localhost:8787",headroomCompressUserMessages:!!R.headroomCompressUserMessages,headroomTimeoutMs:R.headroomTimeoutMs,cavemanEnabled:!!R.cavemanEnabled,cavemanLevel:R.cavemanLevel||"full",ponytailEnabled:!!R.ponytailEnabled,ponytailLevel:R.ponytailLevel||"full",customPromptEnabled:!!R.customPromptEnabled,customPrompt:R.customPrompt||"",pxpipeEnabled:!!R.pxpipeEnabled,pxpipeMinChars:R.pxpipeMinChars,pxpipeTimeoutMs:R.pxpipeTimeoutMs,pxpipeTransform:A,onPxpipeEvent:async a=>{try{let{appendPxpipeEvent:b}=await c.e(2007).then(c.bind(c,74388));b(a)}catch{}},contextInjectionEnabled:!!R.contextInjectionEnabled,contextCanary:await G(u),providerThinking:v,providerOverrides:(R.providerOverrides||{})[K]||null,signal:u?.signal,attemptBudget:Q,attemptLease:M,acquireAttemptLease:H,adaptiveMetadata:g,onAdaptiveLifecycle:a=>D({...a,requestTag:T,provider:K,model:L,connectionId:f.connectionId}),sourceFormatOverride:u?.url?(0,o.t)(new URL(u.url).pathname,a):null,onCredentialsRefreshed:async a=>(0,q.vN)(f.connectionId,{...a,existingProviderSpecificData:f.providerSpecificData,testStatus:"active"}),onRequestSuccess:async(a=M)=>{await a.finish({success:!0})},onStreamFailure:async(a,b=M)=>(await C(a),await b.finish({success:!1,failure:a}),b.finalizationResult)});if(Z.success)return Z.response;await C(Z),await M.finish({success:!1,lifecycleHandled:!0===Z.lifecycleHandled,shouldFallback:!0===Z.shouldFallback,failure:{status:Z.status,message:Z.error,errorText:Z.error,resetsAtMs:Z.resetsAtMs,failureMetadata:Z.failureMetadata}});let $=M.finalizationResult;if(!0===Z.lifecycleHandled?!0===Z.shouldFallback:$?.shouldFallback===!0){(function(a){let b=a?.failureMetadata?.failureClass;return b?J.has(b):[401,402,403,429].includes(Number(a?.status))})(Z)&&Q.grantReplacement(Q.attemptsUsed-I),D({type:"failover",requestTag:T,provider:K,model:L,connectionId:f.connectionId,attemptIndex:M.attemptIndex,failureClass:Z.failureMetadata?.failureClass,code:Z.failureMetadata?.providerErrorCode}),p.warn("FALLBACK",`ACC:${f.connectionName} unavailable (${Z.status}) → next account`),P.add(f.connectionId),U=Z.error,V=Z.status,W=Z.response,X=(0,l.d)(Z.response?.headers);continue}return Z.response}}d()}catch(a){d(a)}})},35893:(a,b,c)=>{c.d(b,{S:()=>g});var d=c(79761);let e=new Set(["STREAM_FIRST_CHUNK_TIMEOUT","STREAM_STALL_TIMEOUT","STREAM_CONNECT_TIMEOUT","STREAM_ABSOLUTE_TIMEOUT","STREAM_MISSING_TERMINAL","KIRO_STREAM_PROTOCOL_ERROR","AWS_EVENTSTREAM_PRELUDE_CRC_MISMATCH","AWS_EVENTSTREAM_MESSAGE_CRC_MISMATCH","AWS_EVENTSTREAM_INVALID_LENGTH","AWS_EVENTSTREAM_MESSAGE_TOO_LARGE","AWS_EVENTSTREAM_INVALID_HEADERS","AWS_EVENTSTREAM_UNSUPPORTED_HEADER_TYPE","AWS_EVENTSTREAM_DECODER_FINISHED","KIRO_STREAM_MISSING_TERMINAL","KIRO_STREAM_TRUNCATED","KIRO_STREAM_INVALID_TOOL_CALL","KIRO_STREAM_TRANSPORT_READ_FAILED","KIRO_VERIFIED_SPOOL_LIMIT","KIRO_VERIFIED_SPOOL_FAILED"]),f=Object.freeze({account_auth:"account",account_quota:"account",authentication:"account",credential_rejected:"account",reauth_required:"account",policy_suspended:"account",account_validation_required:"account",entitlement_or_quota:"account",rate_limited:"account",provider_transient:"provider",upstream_transient:"provider",shared_egress:"egress",shared_egress_waf:"egress",protocol_corruption:"integrity",upstream_protocol:"integrity"});function g({connectionId:a,connectionName:b,provider:c,model:h,markUnavailable:i,selectedConnection:j,logger:k,egressId:l="direct",recordCircuitFailure:m=d.hb}){let n=!1;return async(d={})=>{if(n)return{duplicate:!0};n=!0;let g=d.failureMetadata?.providerErrorCode,o=d.failureMetadata?.failureClass,p=f[o];if(p)try{await m({scope:p,provider:c,model:h,accountId:a,egressId:l,failureClass:o,providerErrorCode:g})}catch(a){k?.warn?.("CIRCUIT",`Failed to record scoped circuit evidence: ${a?.message||a}`)}if(e.has(g)){let a="STREAM_CONNECT_TIMEOUT"===g;return k?.info?.("STREAM",`${g} left account health unchanged for ${c}/${h}`),{shouldFallback:a,cooldownMs:0,accountUnaffected:!0}}let q=Number.isInteger(d.status)?d.status:502,r=[a,q,d.errorText||d.message||"Provider stream failed",c,h,d.resetsAtMs||null];d.failureMetadata&&"object"==typeof d.failureMetadata&&r.push(d.failureMetadata),j&&(6===r.length&&r.push(null),r.push(j));let s=await i(...r);return s?.shouldFallback&&k?.warn?.("AUTH",`Account ${b||a||"unknown"} unavailable after stream failure (${q})`),s}}},38775:(a,b,c)=>{c.d(b,{d_:()=>j,mA:()=>i});var d=c(89718),e=c(40669),f=c(3359),g=c(32693);let h={xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan"};async function i(a){let b,c=(0,g.kP)(a),j=(0,f.s9)(c);if(j)return{...await i(j.modelString),gateway:{mode:j.mode,accountRef:j.accountRef||null,strictAccount:!!j.strictAccount,requestedModel:a,modelString:(0,g.kP)(j.modelString)}};let k=(b=(0,e.Xh)(c),b?.providerAlias&&h[b.providerAlias]?{...b,provider:h[b.providerAlias]}:b);if(!k.isAlias){if(!(0,e.gF)(k.providerAlias)&&!h[k.providerAlias]){let a=(await (0,d.Fh)({type:"openai-compatible"})).find(a=>a.prefix===k.providerAlias);if(a)return{provider:a.id,model:k.model};let b=(await (0,d.Fh)({type:"anthropic-compatible"})).find(a=>a.prefix===k.providerAlias);if(b)return{provider:b.id,model:k.model};let c=(await (0,d.Fh)({type:"custom-embedding"})).find(a=>a.prefix===k.providerAlias);if(c)return{provider:c.id,model:k.model}}return{provider:k.provider,model:k.model}}return await (0,d.getComboByName)(k.model)?{provider:null,model:k.model}:(0,e.js)(c,d.getModelAliases)}async function j(a){if((a=(0,g.kP)(a)).includes("/"))return null;let b=await (0,d.getComboByName)(a);return b&&b.models&&b.models.length>0?b.models:null}},49216:(a,b,c)=>{c.d(b,{P2:()=>f});let d=new Map(Object.freeze(["admitted","acquired","upstream_open","semantic_commit","terminal","finalized"]).map((a,b)=>[a,b]));function e(a={}){return Object.freeze({...a})}function f(a={}){let b=Number(a.maxAttempts),c=Number.isInteger(b)&&b>0?b:3,g=0;return Object.freeze({get maxAttempts(){return c},get attemptsUsed(){return g},get remaining(){return Math.max(0,c-g)},acquire:(a={})=>g>=c?null:(g+=1,function(a={}){let b,c="admitted",f=!1,g=null,h=!1,i="function"==typeof a.finalize?a.finalize:async()=>{},j=Object.freeze({id:a.candidate?.id||null,provider:a.candidate?.provider||null,egressId:a.candidate?.egressId||null}),k={id:a.id||null,attemptIndex:Number(a.attemptIndex)||1,candidate:j,get state(){return c},get terminal(){return g},get finalizationResult(){return b},get semanticCommitted(){return f},transition(a){if(h||!d.has(a))return!1;let b=d.get(c);return d.get(a)===b+1&&"terminal"!==a&&"finalized"!==a&&(c=a,"semantic_commit"===a&&(f=!0),!0)},acceptTerminal:a=>!h&&!g&&"finalized"!==c&&(g=e(a),c="terminal",!0),finish:async a=>!h&&(h=!0,g||(g=e(a)),c="finalized",b=await i(g,k),!0)};return Object.freeze(k)}({...a,id:a.id||`attempt-${g}`,attemptIndex:g})),grantReplacement(a=1){let b=Number(a),d=Number.isInteger(b)&&b>0?b:0;return c+=d,d}})}},70190:(a,b,c)=>{c.d(b,{O2:()=>p,SI:()=>o,cB:()=>q,mQ:()=>i});var d=c(14170),e=c(30426),f=c(65377);function g(a){try{return new TextEncoder().encode(JSON.stringify(a)||"").length}catch{return 0}}function h(a){let b=function(a){if(Array.isArray(a?.messages))return a.messages;if(Array.isArray(a?.input))return a.input;if(Array.isArray(a?.params?.messages))return a.params.messages;if(Array.isArray(a?.request?.contents))return a.request.contents;if(Array.isArray(a?.contents))return a.contents;let b=l(a);return b?b.messages:null}(a),c=b?.filter(a=>a?.role==="tool"||a?.role==="function"||a?.tool_calls?.length||a?.type==="function_call_output"||a?.parts?.some?.(a=>a?.functionResponse||a?.functionCall)||a?.content?.some?.(a=>a?.type==="tool_use"||a?.type==="tool_result"||a?.type==="tool-call"||a?.type==="tool-result"))||[];return{bodyBytes:g(a),messageBytes:b?g(b):0,toolSchemaBytes:g(a?.tools||a?.params?.tools||a?.request?.tools||[]),toolHistoryBytes:g(c)}}function i(a){let b=Math.round(Number(a));return Number.isFinite(b)&&b>0?b:3e3}function j(a,b){a&&!a.reason&&(a.reason=b)}function k(a){return!!Array.isArray(a?.input)&&a.input.some(a=>!(!a||"object"!=typeof a||Array.isArray(a))&&"string"==typeof a.type&&"message"!==a.type)}function l(a){let b=a?.conversationState;if(!b||"object"!=typeof b)return null;let c=[],d=[],e=(a,b,e,f={})=>{"string"==typeof b&&(c.push({role:a,content:b,...f}),d.push(e))},f=a=>{let b=a?.userInputMessage;if(b){e("system",b.systemInstruction,{object:b,key:"systemInstruction"}),e("user",b.content,{object:b,key:"content"});let a=b.userInputMessageContext?.toolResults;if(Array.isArray(a))for(let b of a){let a=b?.content;if(Array.isArray(a))for(let c of a)e("tool",c?.text,{object:c,key:"text"},b?.toolUseId?{tool_call_id:b.toolUseId}:{})}return}let c=a?.assistantResponseMessage;if(c){let a=(a=>{if(!Array.isArray(a)||0===a.length)return;let b=a.map(a=>({id:a?.toolUseId,type:"function",function:{name:a?.name||"",arguments:JSON.stringify(a?.input||{})}})).filter(a=>a.id||a.function.name);return b.length>0?b:void 0})(c.toolUses);e("assistant",c.content,{object:c,key:"content"},a?{tool_calls:a}:{})}};if(Array.isArray(b.history))for(let a of b.history)f(a);return b.currentMessage&&f(b.currentMessage),c.length>0?{messages:c,targets:d}:null}function m(a,b,c,d){if(!Array.isArray(b)||b.length!==a.messages.length)return j(c,`proxy response did not match ${d} message count`),!1;let e=[];for(let f=0;f<a.messages.length;f++){let g=a.messages[f],h=b[f];if(!h||h.role!==g.role||h.tool_call_id!==g.tool_call_id)return j(c,`proxy response did not preserve ${d} message order`),!1;let i=function(a){let b=a?.content;if("string"==typeof b)return b;if(!Array.isArray(b))return null;let c=[];for(let a of b)"string"==typeof a?c.push(a):"string"==typeof a?.text&&c.push(a.text);return c.length>0?c.join("\n"):null}(h);if(null===i)return j(c,`proxy response missing ${d} text content`),!1;a.targets[f]&&e.push({target:a.targets[f],text:i})}for(let a of e)a.target.object[a.target.key]=a.text;return!0}async function n(a,b,c,d,e,f){let g,h=function(a){try{let b=new URL(a);return b.pathname=`${b.pathname.replace(/\/$/,"")}/v1/compress`,b.hash="",b.toString()}catch{let[b,c=""]=String(a).replace(/#.*$/,"").split("?",2),d=`${b.replace(/\/$/,"")}/v1/compress`;return c?`${d}?${c}`:d}}(a);f.endpoint=function(a){try{let b=new URL(a);return b.username="",b.password="",b.search="",b.hash="",b.toString()}catch{return String(a).replace(/\/\/[^/@\s]+@/,"//").replace(/[?#].*$/,"")}}(h);let i={messages:b,model:c};e&&(i.config={compress_user_messages:!0});try{g=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i),signal:AbortSignal.timeout(d)})}catch(d){var k;let a,b,c;return j(f,`request failed: ${(k=d,a=k?.cause,b=a?.code||k?.code,c=String(a?.message||k?.message||String(k)).replace(/\/\/[^/@\s]+@/g,"//").replace(/(https?:\/\/[^\s?#]+)[?#][^\s)]*/g,"$1"),b?`${b}: ${c}`:c)}`),null}if(!g.ok)return j(f,`proxy returned HTTP ${g.status}`),null;let l=await g.json();return Array.isArray(l?.messages)?l:(j(f,"proxy response missing messages[]"),null)}async function o(a,{enabled:b,url:c,model:g,format:p,compressUserMessages:q,timeoutMs:r=3e3,diagnostics:s=null}={}){if(r=i(r),!b)return j(s,"disabled"),null;if(!c)return j(s,"missing proxy URL"),null;if(!a)return j(s,"missing request body"),null;try{s&&(s.before=h(a));let b=function(a,b){let c=[],f=[],g=(a,b,d=0)=>{if(d>e.aZ)return;let h=a?.[b];if("string"==typeof h){if(!h.trim())return;try{JSON.parse(h);return}catch{}c.push({role:"tool",tool_call_id:`headroom-tool-${c.length}`,content:h}),f.push({object:a,key:b,text:h})}else if(Array.isArray(h))for(let a=0;a<h.length;a++)g(h,a,d+1);else if(h&&"object"==typeof h){if(h.type&&"text"!==h.type&&"input_text"!==h.type)return;for(let a of["result","output","content","text"])Object.hasOwn(h,a)&&g(h,a,d+1)}};if(b===d.h.OPENAI_RESPONSES&&k(a))for(let b of a.input)b?.type==="function_call_output"&&g(b,"output");else{if(![d.h.GEMINI,d.h.GEMINI_CLI,d.h.ANTIGRAVITY,d.h.VERTEX].includes(b))return null;let c=a.request?.contents||a.contents;if(!Array.isArray(c))return null;for(let a of c)if(Array.isArray(a?.parts))for(let b of a.parts)b?.functionResponse&&g(b.functionResponse,"response")}return{messages:c,targets:f}}(a,p);if(b){if(!b.messages.length)return j(s,"no eligible plain-text tool output"),null;let d=await n(c,b.messages,g,r,q,s||{});if(!d||!function(a,b,c){if(!Array.isArray(b)||b.length!==a.messages.length)return j(c,"proxy response did not match tool-output count"),!1;let d=[];for(let e=0;e<b.length;e++){let f=b[e];if(f?.role!=="tool"||f.tool_call_id!==a.messages[e].tool_call_id||"string"!=typeof f.content)return j(c,"proxy response did not preserve tool-output IDs, order, roles or text"),!1;f.content.trim()&&f.content.length<a.targets[e].text.length&&d.push({...a.targets[e],text:f.content})}for(let{object:a,key:b,text:c}of d)a[b]=c;return!0}(b,d.messages,s))return null;return s&&(s.after=h(a)),d}if(p===d.h.CLAUDE){let b=function(a){if(!Array.isArray(a?.messages))return null;let b=[],c=[],d=(a,d,e,f={})=>{"string"==typeof d?.[e]&&(b.push({role:a,content:d[e],...f}),c.push({object:d,key:e}))},e=(a,b,c,e={})=>{if("string"==typeof b?.[c])d(a,b,c,e);else if(Array.isArray(b?.[c]))for(let f of b[c])f?.type==="text"&&d(a,f,"text",e)};for(let d of(e("system",a,"system"),a.messages)){let a=Array.isArray(d?.content)?d.content:[],f=a.filter(a=>a?.type==="tool_use");for(let g of(d?.role==="assistant"&&f.length&&(b.push({role:"assistant",content:"",tool_calls:f.map(a=>({id:a.id,type:"function",function:{name:a.name,arguments:JSON.stringify(a.input||{})}}))}),c.push(null)),e(d?.role,d,"content"),a))g?.type==="tool_result"&&e("tool",g,"content",{tool_call_id:g.tool_use_id})}return c.some(Boolean)?{messages:b,targets:c}:null}(a);if(!b)return j(s,"Claude request has no eligible text content"),null;let d=await n(c,b.messages,g,r,q,s||{});if(!d||!m(b,d.messages,s,"Claude"))return null;return s&&(s.after=h(a)),d}if("openai-responses"===p){if(k(a))return j(s,"skipped: openai-responses tool/reasoning input is not safe to compress"),null;let b=(0,f.Z)(g,a,!1);if(!Array.isArray(b?.messages))return null;let d=await n(c,b.messages,g,r,q,s||{});if(!d)return null;let e=(0,f.h)(g,{...b,input:void 0,messages:d.messages},!1);return Array.isArray(e?.input)&&(a.input=e.input),s&&(s.after=h(a)),d}if("kiro"===p){let b=l(a);if(!b)return j(s,"Kiro request did not project to messages[]"),null;let d=await n(c,b.messages,g,r,q,s||{});if(!d||!m(b,d.messages,s,"Kiro"))return null;return s&&(s.after=h(a)),d}if(p===d.h.COMMANDCODE){let b=function(a){let b=a?.params;if(!Array.isArray(b?.messages))return null;let c=[],d=[],e=(a,b,e,f={})=>{"string"==typeof b?.[e]&&(c.push({role:a,content:b[e],...f}),d.push({object:b,key:e}))};for(let a of(e("system",b,"system"),b.messages)){if(!Array.isArray(a?.content))continue;let b=a.content.filter(a=>a?.type==="tool-call");for(let f of("assistant"===a.role&&b.length&&(c.push({role:"assistant",content:"",tool_calls:b.map(a=>({id:a.toolCallId,type:"function",function:{name:a.toolName,arguments:JSON.stringify(a.input??{})}}))}),d.push(null)),a.content))f?.type==="text"?e(a.role,f,"text"):f?.type==="tool-result"&&f.output?.type==="text"&&e("tool",f.output,"value",{tool_call_id:f.toolCallId,name:f.toolName})}return c.length>0?{messages:c,targets:d}:null}(a);if(!b)return j(s,"CommandCode request did not project to messages[]"),null;let d=await n(c,b.messages,g,r,q,s||{});if(!d||!m(b,d.messages,s,"CommandCode"))return null;return s&&(s.after=h(a)),d}let i=Array.isArray(a.messages)?"messages":Array.isArray(a.input)?"input":null;if(!i)return j(s,`unsupported ${p||"unknown"} request shape`),null;let o=await n(c,a[i],g,r,q,s||{});if(!o)return null;return a[i]=o.messages,s&&(s.after=h(a)),o}catch(a){return j(s,`unexpected error: ${a?.message||String(a)}`),null}}function p(a){let b=a?.before,c=a?.after;if(!b||!c)return"";let d=b.bodyBytes>0?((b.bodyBytes-c.bodyBytes)/b.bodyBytes*100).toFixed(1):"0.0";return`body=${b.bodyBytes}B→${c.bodyBytes}B messages=${b.messageBytes}B→${c.messageBytes}B tools=${b.toolSchemaBytes||0}B→${c.toolSchemaBytes||0}B toolHistory=${b.toolHistoryBytes||0}B→${c.toolHistoryBytes||0}B effective=${d}%`}function q(a,b,c=.05){return!!a?.tokens_saved&&!(a.tokens_saved<=0)&&["bodyBytes","messageBytes"].every(a=>{let d=b?.before?.[a]||0,e=b?.after?.[a]||0;return d>0&&e>0&&e>=d*(1-c)})}},79489:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{L:()=>f.Lz,P:()=>f.PT});var e=c(48895),f=c(90704),g=a([e,f]);[e,f]=g.then?(await g)():g,d()}catch(a){d(a)}})},83017:(a,b,c)=>{c.d(b,{l:()=>j});var d=c(43659),e=c(41004),f=c(26679),g=c(19548),h=c(93184);let i=new Set(["opencode","opencode-zen"]);async function j({body:a,modelInfo:b,credentials:c,log:k,onRequestSuccess:l}){let m,n,{provider:o,model:p}=b,q=f.B$[o]?.systemoneConfig,r=function(a,b){let c=a?.trim();if(!c)return b?.baseUrl;if(!b?.path)return c;let d=c.replace(/\/+$/,""),e=b.path.replace(/\/+$/,"");if(d.endsWith(e))return d;let f=e.slice(0,e.lastIndexOf("/"));return f&&d.endsWith(f)?d+e.slice(f.length):d+e}(c?.providerSpecificData?.baseUrl,q);if(!r)return(0,d.A1)(e.gx.BAD_REQUEST,`Provider '${o}' does not support System One.`);if(r.includes("{accountId}")){let a=c?.providerSpecificData?.accountId;if(!a)return(0,d.A1)(e.gx.BAD_REQUEST,`Provider '${o}' requires accountId in providerSpecificData.`);r=r.replace("{accountId}",a)}if(r.includes("{model}")&&(r=r.replace(/\{model\}/g,p)),void 0===a.state||null===a.state)return(0,d.A1)(e.gx.BAD_REQUEST,"Missing required field: state");if(!a.questions||"object"!=typeof a.questions||Array.isArray(a.questions))return(0,d.A1)(e.gx.BAD_REQUEST,"Missing required field: questions");let s=c?.apiKey||c?.accessToken,t={"Content-Type":"application/json",...s?{Authorization:`Bearer ${s}`}:{},...q.headers||{},...i.has(o)?{"x-opencode-session":(0,h.Em)(a,c)}:{}},u={...a,model:(0,g.kt)(o,p)||p};k?.debug?.("SYSTEMONE",`${o.toUpperCase()} | ${p}`);try{m=await fetch(r,{method:"POST",headers:t,body:JSON.stringify(u),..."function"==typeof AbortSignal?.timeout?{signal:AbortSignal.timeout(e.pH)}:{}})}catch(b){let a=(0,d.lR)(b,o,p,e.gx.BAD_GATEWAY);return k?.debug?.("SYSTEMONE",`Fetch error: ${a}`),(0,d.A1)(e.gx.BAD_GATEWAY,a)}if(!m.ok){let{statusCode:a,message:b}=await (0,d.zL)(m),c=(0,d.lR)(Error(b),o,p,a);return k?.debug?.("SYSTEMONE",`Provider error: ${c}`),(0,d.A1)(a,c)}try{n=await m.json()}catch{return(0,d.A1)(e.gx.BAD_GATEWAY,`Invalid JSON response from ${o}`)}l&&await l();let v=n?.usage;return{success:!0,usage:v?{prompt_tokens:v.input_tokens||0,completion_tokens:v.output_tokens||0}:null,response:new Response(JSON.stringify(n),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}},90704:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Lz:()=>x,PT:()=>w,Px:()=>v});var e=c(48895),f=c(88967),g=c(89718),h=c(29240),i=c(38775),j=c(43659),k=c(25308),l=c(428),m=c(80662),n=c(17603),o=c(27349),p=c(41004),q=c(7803),r=c(324),s=c(14262),t=c(32475),u=a([e,t]);function v(a,b,c,d,e){if("smart"!==a)return{};let f=b?.[c]||{},g=Number(f.confidenceThreshold);return{sessionId:(0,m.bS)({headers:d?.headers,body:e})?.sessionId||null,smartPolicy:f.smartPolicy||"smart",sessionSticky:!1!==f.sessionSticky,confidenceThreshold:Number.isFinite(g)&&g>0?g:.8,resolveSmartChoice:(a,b)=>(0,l.J)({body:a,models:b,routerModel:f.routerModel,log:q})}}async function w(a,b=null){let d;try{d=await a.json()}catch{return q.warn("CHAT","Invalid JSON body"),(0,j.yj)(p.gx.BAD_REQUEST,"Invalid JSON body")}if(!d||"object"!=typeof d||Array.isArray(d))return(0,j.yj)(p.gx.BAD_REQUEST,"Request body must be a JSON object");if(void 0!==d.model&&"string"!=typeof d.model)return(0,j.yj)(p.gx.BAD_REQUEST,"Field 'model' must be a string");if(void 0!==d.messages&&!Array.isArray(d.messages))return(0,j.yj)(p.gx.BAD_REQUEST,"Field 'messages' must be an array");b||(b={endpoint:new URL(a.url).pathname,body:d,headers:Object.fromEntries(a.headers.entries())});let e=d.model,l=Object.fromEntries(a.headers.entries()),m=(0,r.J)(l,d),u=(0,s.eR)(e,m);e&&u!==e&&q.info("ROUTING",`Codex CLI ${e} → ${u}`);let z=a.headers.get("Authorization"),A=(0,f.Tr)(a);if(z&&A){let a=q.maskKey(A);q.debug("AUTH",`API Key: ${a}`)}else q.debug("AUTH","No API key provided (local mode)");let B=await (0,g.mt)(),C=A?await (0,g.uH)(A):null;if(B.requireApiKey){if(!A)return q.warn("AUTH","Missing API key (requireApiKey=true)"),(0,j.yj)(p.gx.UNAUTHORIZED,"Missing API key");if(!await (0,f.kI)(A))return q.warn("AUTH","Invalid API key (requireApiKey=true)"),(0,j.yj)(p.gx.UNAUTHORIZED,"Invalid API key")}if(A){let{checkApiKeyBudget:a,checkApiKeyTokenQuota:b}=await Promise.resolve().then(c.bind(c,14686)),d=await b(A);if(!d.allowed)return q.warn("QUOTA",`Blocked: ${d.reason}`),(0,j.yj)(d.status||p.gx.RATE_LIMITED,d.reason||"Token limit exceeded");let e=await a(A);if(!e.allowed)return q.warn("BUDGET",`Blocked: ${e.reason}`),(0,j.yj)(e.error?p.gx.SERVICE_UNAVAILABLE:p.gx.PAYMENT_REQUIRED,e.reason||"Budget exceeded")}if(!e)return q.warn("CHAT","Missing model"),(0,j.yj)(p.gx.BAD_REQUEST,"Missing model");let D=await (0,i.d_)(u),E=(0,h.RV)(u,C,D);if(!E.allowed)return(0,j.yj)(p.gx.FORBIDDEN,(0,h.Ip)(u,E));if(e!==u){let a=await (0,i.d_)(e),b=(0,h.RV)(e,C,a);if(!b.allowed)return(0,j.yj)(p.gx.FORBIDDEN,(0,h.Ip)(e,b))}let F=null;if(A){let{admitApiKeyRequest:a}=await Promise.resolve().then(c.bind(c,14686));if(!(F=await a(A)).allowed){let a=F.retryAfter?{"Retry-After":String(F.retryAfter)}:void 0;return new Response(JSON.stringify({error:{message:F.reason}}),{status:F.status||429,headers:{"Content-Type":"application/json",...a}})}}let G=a=>x(a,F?.release,F?.touch);u!==e&&(d={...d,model:u});try{let{responseCache:e,isCacheableRequest:f}=await c.e(5236).then(c.bind(c,45236)),g=!0===B.responseCacheEnabled?f(d,a.headers):{cacheable:!1,reason:"disabled"},l=null;if(g.cacheable){let a=(l=e.buildKey(d,A||"local"))?e.get(l):null;if(a)return q.info("CACHE",`HIT ${u} | age=${Math.round((Date.now()-a.storedAt)/1e3)}s | hits=${a.hits}`),G(new Response(JSON.stringify(a.body),{status:a.status,headers:{"Content-Type":"application/json","X-ZevAI-Cache":"HIT","X-ZevAI-Cache-Age":String(Math.round((Date.now()-a.storedAt)/1e3))}}));q.debug("CACHE",`MISS ${u} (${g.reason||"new"})`)}let m=a?.headers?.get("user-agent")||"",r=(0,o.c)(d,u,m,!!B.ccFilterNaming);if(r)return G(r.response||r);let s=await (0,i.d_)(u);if(s){let a=(0,h.RV)(u,C,s);if(!a.allowed)return G((0,j.yj)(p.gx.FORBIDDEN,(0,h.Ip)(u,a)))}if(s){let c=B.comboStrategies||{},e=c[u]?.fallbackStrategy||B.comboStrategy||"fallback";if("fusion"===e){q.info("CHAT",`Combo "${u}" with ${s.length} models (strategy: fusion)`);let e=await (0,k.vt)({body:d,models:s,handleSingleModel:(c,d,e)=>{let f=b;if(e&&b){let{tools:a,tool_choice:c,...d}=b.body||{};f={...b,body:d}}return(0,t.e)(c,d,f,a,A,C)},log:q,comboName:u,judgeModel:c[u]?.judgeModel,tuning:c[u]?.fusionTuning});return G(await y(e,l,u))}let f=B.comboStickyRoundRobinLimit;q.info("CHAT",`Combo "${u}" with ${s.length} models (strategy: ${e}, sticky: ${f})`);let g=await (0,k.Pr)({body:d,models:s,handleSingleModel:(c,d)=>(0,t.e)(c,d,b,a,A,C),log:q,comboName:u,comboStrategy:e,comboStickyLimit:f,...v(e,c,u,b,d)});return G(await y(g,l,u))}let w=(0,k.t8)(d),x=(0,n.R8)([u],w,B);if(x.length>1){let c=x.filter(a=>a!==u);q.info("CAPACITY",`[${[...w].join(",")}] ${u} → +${c.length} fallback model(s)`);let e=await (0,k.Pr)({body:d,models:x,handleSingleModel:(0,n.ar)((c,d)=>(0,t.e)(c,d,b,a,A,C),c),log:q,comboName:u,comboStrategy:(0,n.vB)(w,B)});return G(await y(e,l,u))}let z=await (0,t.e)(d,u,b,a,A,C);return G(await y(z,l,u))}catch(a){throw F?.release?.(),a}}function x(a,b,c){if(!b)return a;if(!a?.body||!a.headers.get("content-type")?.includes("text/event-stream"))return b(),a;let d=a.body.getReader();return new Response(new ReadableStream({async pull(a){try{let{done:e,value:f}=await d.read();e?(b(),a.close()):(c?.(),a.enqueue(f))}catch(c){b(),a.error(c)}},async cancel(a){b(),await d.cancel(a)}}),{status:a.status,statusText:a.statusText,headers:a.headers})}async function y(a,b,d){if(!b||!a||!a.ok||!(a.headers.get("content-type")||"").includes("application/json"))return a;try{let{responseCache:e,isCacheableResponse:f}=await c.e(5236).then(c.bind(c,45236)),g=await a.clone().json();if(!f(g,a.status))return a;e.set(b,{body:g,status:a.status,model:d}),q.debug("CACHE",`STORE ${d} (key ${b.slice(0,8)}…)`)}catch{}return a}[e,t]=u.then?(await u)():u,d()}catch(a){d(a)}})},90982:(a,b,c)=>{c.d(b,{J:()=>e});let d=new Set(["user-agent","anthropic-beta","anthropic-version","anthropic-dangerous-direct-browser-access","x-app","x-stainless-helper-method","x-stainless-retry-count","x-stainless-runtime-version","x-stainless-package-version","x-stainless-runtime","x-stainless-lang","x-stainless-arch","x-stainless-os","x-stainless-timeout","x-claude-code-session-id","package-version","runtime-version","os","arch"]);function e(a){if(!a||"object"!=typeof a)return{};let b={};for(let[c,e]of Object.entries(a)){let a=c.toLowerCase();d.has(a)&&("string"==typeof e||"number"==typeof e)&&(b[a]=String(e))}return b}}};
1
+ "use strict";exports.id=7793,exports.ids=[7793],exports.modules={428:(a,b,c)=>{c.d(b,{J:()=>i});var d=c(38775),e=c(88967),f=c(58136),g=c(83017),h=c(57874);async function i({body:a,models:b,routerModel:c=h.UH,log:j,timeoutMs:k=h.rc}){if(!Array.isArray(b)||b.length<=1)return null;let l="string"==typeof c&&c.trim()?c.trim():h.UH,m=(0,h.nn)(a);if(!m)return j?.debug?.("COMBO","smart-router: empty prompt state, skipping classification"),null;let n=(0,h.JE)(b);if(0===Object.keys(n).length)return null;try{let a,b,c=await (0,d.mA)(l);if(!c?.provider)return j?.warn?.("COMBO",`smart-router: unrecognized router model "${l}"`),null;let{provider:i,model:o}=c,p=await (0,e.c1)(i,new Set,o);if(!p||p.allRateLimited)return j?.warn?.("COMBO",`smart-router: no credentials available for router provider "${i}"`),null;let q=await (0,f.eU)(i,p),r=new Promise((b,c)=>{a=setTimeout(()=>c(Error(`System One router timed out after ${k}ms`)),k)}),s=(0,g.l)({body:{model:o,state:m,questions:{route:{type:"choice",instructions:"Which of these configured models is the most appropriate for this request?",criteria:n}}},modelInfo:{provider:i,model:o},credentials:q,log:j,onRequestSuccess:()=>{}});try{b=await Promise.race([s,r])}finally{clearTimeout(a)}if(!b?.success||!b.response)return j?.warn?.("COMBO",`smart-router: evaluation failed (${b?.status||"error"})`),null;let t=await b.response.json(),u=(0,h.Kn)(t);if(!u||!u.choice)return j?.warn?.("COMBO","smart-router: response missing valid route choice"),null;return u}catch(a){return j?.warn?.("COMBO",`smart-router: evaluation aborted (${a?.message||String(a)})`),null}}},3359:(a,b,c)=>{c.d(b,{K0:()=>j,Oh:()=>n,c9:()=>q,lL:()=>r,s9:()=>i});var d=c(89718),e=c(19548);let f="gpt-5.6";function g(a){return String(a||"").trim().replace(/^\/+|\/+$/g,"")}function h(a){let b;return`cx/${(b=g(a)).startsWith("cx/")?b.slice(3):b.startsWith("codex/")?b.slice(6):b||f}`}function i(a){let b=g(a);if(!b)return null;if("auto-codex"===b)return{mode:"router",modelString:`cx/${f}`,strictAccount:!1,label:"Auto Codex"};if(b.startsWith("router/")){let a;return{mode:"router",modelString:(a=g(b.slice(7))||f).includes("/")?a:`cx/${a}`,strictAccount:!1,label:"Router Pool"}}if(b.startsWith("original/"))return{mode:"original",modelString:h(b.slice(9)),strictAccount:!0,label:"Original Codex"};if("original"===b)return{mode:"original",modelString:`cx/${f}`,strictAccount:!0,label:"Original Codex"};let c=b.startsWith("account/")?"account/":b.startsWith("codex-account/")?"codex-account/":null;if(c){let a=b.slice(c.length),d=a.indexOf("/"),e=-1===d?a:a.slice(0,d),g=-1===d?f:a.slice(d+1);return e?{mode:"account",accountRef:e,modelString:h(g),strictAccount:!0,label:"Pinned Codex Account"}:null}return null}function j(a){return a?.displayName||a?.name||a?.email||a?.id||"Codex account"}function k(a){let b=String(j(a)).toLowerCase().replace(/@/g,"-").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"account";return`${b}-${String(a?.id||"").slice(0,8)}`}function l(a){return String(a||"").trim().toLowerCase()}function m(a){let b=a?.providerSpecificData||{};return"GPTJson"===b.importedFrom||String(b.tokenSource||"").startsWith("ChatGPT_team")}async function n(a=5e3){let b=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),c=b.slice(0,a).map(a=>({id:a.id,slug:k(a),label:j(a),email:a.email||null,imported:m(a),priority:a.priority||null})),e=o(b);return{accounts:c,original:e?{id:e.id,slug:k(e),label:j(e),email:e.email||null,imported:m(e),priority:e.priority||null}:null}}function o(a){return Array.isArray(a)&&0!==a.length?a.find(a=>!m(a))||a[0]:null}async function p(a){let b=l(a);if(!b)return null;let c=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),e=c.find(a=>l(a.id)===b||k(a)===b||l(a.email)===b||l(a.name)===b||l(a.displayName)===b);if(e)return e;let f=c.filter(a=>l(a.id).startsWith(b)||k(a).startsWith(b));return 1===f.length?f[0]:null}async function q(a){if(!a||"original"!==a.mode&&"account"!==a.mode)return null;if("account"===a.mode)return p(a.accountRef);let b=await (0,d.mt)(),c=b.codexGatewayOriginalConnectionId||b.codexOriginalConnectionId||"";if(c){let a=await p(c);if(a)return a}return o(await (0,d.getProviderConnections)({provider:"codex",isActive:!0}))}function r(a=[]){if(!a.some(a=>"codex"===a.provider&&!1!==a.isActive))return[];let b=[{id:"auto-codex",object:"model",owned_by:"zevai-codex-gateway"},...(e.vq.cx||[]).filter(a=>!a.type||"llm"===a.type).map(a=>a.id).flatMap(a=>[{id:`router/${a}`,object:"model",owned_by:"zevai-codex-gateway"},{id:`original/${a}`,object:"model",owned_by:"zevai-codex-gateway"}])];for(let c of a.filter(a=>"codex"===a.provider&&!1!==a.isActive))b.push({id:`account/${k(c)}`,object:"model",owned_by:"zevai-codex-account"});return b}},7444:(a,b,c)=>{c.d(b,{m:()=>e});let d=Object.freeze({kiroIntegrity:"ZEVAI_V11_KIRO_INTEGRITY",outboundPolicy:"ZEVAI_V11_OUTBOUND_POLICY",compatV11:"ZEVAI_V11_COMPAT",refreshLanes:"ZEVAI_V11_REFRESH_LANES",adaptiveShadow:"ZEVAI_V11_ADAPTIVE_SHADOW",adaptiveRoute:"ZEVAI_V11_ADAPTIVE_ROUTE",registryV2:"ZEVAI_V11_REGISTRY_V2",quotaStreamV2:"ZEVAI_V11_QUOTA_STREAM_V2"});function e(a={},b=process.env){let c=a?.v11Flags&&"object"==typeof a.v11Flags?a.v11Flags:{};return Object.freeze(Object.fromEntries(Object.entries(d).map(([a,d])=>{var e;return[a,("true"===(e=b?.[d])||"1"===e||"false"!==e&&"0"!==e&&null)??!0===c[a]]})))}},7912:(a,b,c)=>{c.d(b,{J:()=>i});var d=c(93930);let e=Object.freeze({health:35,priority:20,quota:20,latency:15,stability:10}),f=Object.freeze({healthy:1,degraded:.25,probing:.4,unhealthy:0});function g(a){return Math.min(1,Math.max(0,a))}function h(a,b,c=!1){if(!Number.isFinite(a))return .5;let d=Number(b?.min),e=Number(b?.max);if(!Number.isFinite(d)||!Number.isFinite(e)||e<=d)return .5;let f=g((a-d)/(e-d));return c?1-f:f}function i({candidates:a=[],legacyCandidateId:b=null,flags:c={},providerActivation:j=!1,context:k={}}={}){let l=function(a=[],b={}){return a.map(a=>{let c=(0,d.Z)(a,b);return c.eligible?Object.freeze({candidate:a,eligibility:c,score:function(a={},b={}){var c;if(!1===(a.eligibility||b.eligibility||(0,d.Z)(a,b)).eligible)return null;let i=Object.freeze({health:Number.isFinite(c=a.health)?g(c):f[c]??.5,priority:h(a.priority,b.priorityRange,!0),quota:function(a){if(!a||"object"!=typeof a)return .5;let b=Number(a.remaining),c=Number(a.total);return Number.isFinite(b)&&Number.isFinite(c)&&!(c<=0)?g(b/c):.5}(a.quota),latency:h(a.latency,b.latencyRange,!0),stability:!0===a.sticky?1:.5}),j=Object.entries(e).reduce((a,[b,c])=>a+i[b]*c,0);return Object.freeze({total:Math.round(1e3*(100*g(("degraded"===a.health?Math.min(j,e.health-.001):j)/100)))/1e3,components:i})}(a,{...b,eligibility:c})}):null}).filter(Boolean).sort((a,b)=>b.score.total-a.score.total||Number(a.candidate.legacyOrder||0)-Number(b.candidate.legacyOrder||0)||String(a.candidate.id||"").localeCompare(String(b.candidate.id||"")))}(a,k),m=Object.freeze(l.map(({candidate:a,score:b})=>Object.freeze({id:a.id,score:b.total,components:b.components}))),n=k.pinnedConnectionId&&a.find(a=>a.id===k.pinnedConnectionId)||a.find(a=>a.id===b)||l[0]?.candidate||null,o=l[0]?.candidate||n,p=!0===c.adaptiveRoute&&!0===j&&!!o,q=!p&&!0===c.adaptiveShadow;return Object.freeze({mode:p?"active":q?"shadow":"legacy",selected:p?o:n,legacyCandidateId:n?.id||null,adaptiveCandidateId:o?.id||null,ranked:m})}},14262:(a,b,c)=>{function d(a){let b=String(a||"").trim();if(!b)return"";let c=b.replace(/\/+$/,"");return c.endsWith("/v1")?c:`${c}/v1`}function e(a){let b=String(a||"").trim();return b?"auto-codex"===b||b.startsWith("router/")||b.startsWith("original/")||b.startsWith("account/")||b.startsWith("codex-account/")?b:b.startsWith("codex/")?`cx/${b.slice(6)}`:b.includes("/")?b:b.startsWith("gpt-")||/^o[134]/i.test(b)?`cx/${b}`:b:"cx/gpt-5.6-sol"}function f(a){let b=e(a);return b.startsWith("cx/")?b.slice(3):b}function g(a,b){return"codex"===b?e(a):a}c.d(b,{Fq:()=>f,Ow:()=>e,eR:()=>g,tb:()=>d,x_:()=>j,zA:()=>i});let h=/^[a-z0-9][a-z0-9_-]{0,63}$/;function i(a){let b="string"==typeof a?a.trim().toLowerCase():"";return"config"!==b&&h.test(b)?b:null}function j(a){let b="string"==typeof a?a.trim():"";if(!b||b.length>256||/[\u0000-\u001f"]/.test(b))return null;let c=e(b);return!c||c.length>256||/[\u0000-\u001f"]/.test(c)?null:c}},17603:(a,b,c)=>{c.d(b,{R8:()=>j,ar:()=>k,vB:()=>h});var d=c(24);let e=["vision","pdf","audioInput","videoInput"],f=new Set(e);function g(a,b){let c=b?.capacityAdapter?.[a];if(!c)return{enabled:!1,roundRobin:!1,models:[]};if(Array.isArray(c)){let a=c.filter(a=>a&&!1!==a.enabled&&"string"==typeof a.model).map(a=>a.model);return{enabled:a.length>0,roundRobin:!1,models:a}}let d=Array.isArray(c.models)?c.models.filter(a=>"string"==typeof a&&a.trim()):[];return{enabled:!0===c.enabled&&d.length>0,roundRobin:!0===c.roundRobin,models:d}}function h(a,b){for(let c of e){if(!a||!a.has?.(c))continue;let{enabled:d}=g(c,b);if(d)return function(a,b){let{enabled:c,roundRobin:d}=g(a,b);return c&&d?"round-robin":"fallback"}(c,b)}return"fallback"}function i(a,b){let c="string"==typeof a?a.indexOf("/"):-1,e=c>0?a.slice(0,c):"",f=c>0?a.slice(c+1):a,g=(0,d.nl)(e,f);return b.every(a=>!0===g[a])}function j(a,b,c){let d=[...b||[]].filter(a=>f.has(a));if(0===d.length||!Array.isArray(a)||0===a.length||a.some(a=>i(a,d)))return a;let h=(function(a){let b=new Set,c=[];for(let d of e){let{enabled:e,models:f}=g(d,a);if(e)for(let a of f)b.has(a)||(b.add(a),c.push(a))}return c})(c).filter(b=>!a.includes(b)&&i(b,d));return 0===h.length?a:[...h,...a]}function k(a,b){let c=new Set(b||[]);return 0===c.size?a:(b,e,...f)=>{if(!c.has(e))return a(b,e,...f);let g="string"==typeof e?e.indexOf("/"):-1,h=g>0?e.slice(0,g):"",i=g>0?e.slice(g+1):e,j=(0,d.nl)(h,i);return a(function(a,b){if(!a||"object"!=typeof a||!Array.isArray(a.messages)||!Number.isFinite(b)||b<=0)return a;let c=a.messages;if(c.length<=7)return a;let d=Math.floor(.8*b*4),e=a=>{try{return JSON.stringify(a).length}catch{return 0}};if(c.reduce((a,b)=>a+e(b),0)<=d)return a;let f=c.slice(0,6),g=[c[c.length-1]],h=[...f,...g].reduce((a,b)=>a+e(b),0),i=[];for(let a=c.length-2;a>=6;a--){let b=e(c[a]);if(h+b>d)break;h+=b,i.unshift(c[a])}return{...a,messages:[...f,...i,...g]}}(b,j?.contextWindow),e,...f)}}},26679:(a,b,c)=>{c.d(b,{B$:()=>aj});var d,e=c(35024),f=c(19548),g=c(17404),h=c(48806),i=c(87098),j=c(17559),k=c(25433),l=c(34204),m=c(15082),n=c(90874),o=c(79875),p=c(91861),q=c(41004),r=c(64991);let s=/^[a-z0-9]+(?:[._-][a-z0-9]+)*$/,t=new Set(["free","freeTier","oauth","apikey"]),u=new Set(["none","oauth","apikey"]),v=new Set(["llm","embedding","image","imageToText","music","stt","tts","video","webFetch","webSearch"]),w=new Set(["antigravity","claude","codex","commandcode","cursor","gemini","gemini-cli","kiro","ollama","openai","openai-response","openai-responses","vertex"]),x=new Set(["public","trusted-local","loopback-service"]),y=new Set(["terminal","kiro-eventstream","none"]),z=["embeddingConfig","imageConfig","imageToTextConfig","musicConfig","sttConfig","ttsConfig","videoConfig"],A=["connectMs","firstEventMs","progressIdleMs","absoluteMs"],B=Object.freeze({quotaSource:Object.freeze({strategy:"none",provenance:"none"}),deadlineProfile:Object.freeze({connectMs:15e3,firstEventMs:6e4,progressIdleMs:6e4,absoluteMs:3e5}),integrityProfile:Object.freeze({mode:"terminal",requireTerminal:!0})});class C extends Error{constructor(a,b){super(`Invalid provider descriptor ${a}: ${b}`),this.name="ProviderDescriptorError",this.path=a}}function D(a,b){throw new C(a,b)}function E(a){return null!==a&&"object"==typeof a&&!Array.isArray(a)}function F(a,b){"string"==typeof a&&s.test(a)||D(b,"must be a stable lowercase ID")}function G(a,b,c){Array.isArray(a)&&0!==a.length||D(b,"must be a non-empty array");let d=new Set;for(let e of a)"string"==typeof e&&c.has(e)||D(b,"contains an unsupported value"),d.has(e)&&D(b,"contains a duplicate value"),d.add(e)}function H(a){let b=[];for(let[c,d]of Object.entries(a||{}))/(?:base|validate|responses|messages|token|auth|refresh)urls?$/i.test(c)&&("string"==typeof d?b.push(d):Array.isArray(d)&&b.push(...d));return b}function I(a,b,c="public"){for(let d of H(a)){let a;try{a=new URL(d)}catch{D(b,"contains a malformed endpoint")}(a.username||a.password)&&D(b,"endpoint credentials are not allowed"),"public"===c&&"https:"!==a.protocol&&D(b,"public endpoints must use HTTPS"),"public"===c||["http:","https:"].includes(a.protocol)||D(b,"trusted local endpoints must use HTTP or HTTPS")}}function J(a,b,{allowEmpty:c=!1}={}){Array.isArray(a)&&(0!==a.length||c)||D(b,"must contain a static fallback");let d=new Set;for(let c of a)E(c)&&"string"==typeof c.id&&0!==c.id.length||D(b,"contains a model without an ID"),d.has(c.id)&&D(b,`contains duplicate model ${c.id}`),d.add(c.id)}function K(a,b){for(let c of(E(a)||D(b,"must be an object"),A))(!Number.isInteger(a[c])||a[c]<1e3||a[c]>9e5)&&D(`${b}.${c}`,"must be between 1000 and 900000 milliseconds");a.absoluteMs<a.connectMs&&D(`${b}.absoluteMs`,"must cover connect time")}let L={id:"antigravity",alias:"ag",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.antigravity},serviceKinds:g.AI_PROVIDERS.antigravity.serviceKinds,capabilities:{streaming:!0,tools:!0,thinking:!0},transport:e.xq.antigravity,models:f.vq.ag,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:{...B.deadlineProfile,variants:{thinking:{connectMs:B.deadlineProfile.connectMs,firstEventMs:q.iL,progressIdleMs:q.SI,absoluteMs:q.P4}}},integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"quota-or-model"}},M={id:"kiro",alias:"kr",category:"free",authModes:g.AI_PROVIDERS.kiro.authModes,display:{...g.AI_PROVIDERS.kiro},serviceKinds:["llm"],capabilities:{streaming:!0,tools:!0,thinking:!0,liveCatalog:!0},transport:e.xq.kiro,models:f.vq.kr,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:(0,r.JJ)("kiro"),deadlineProfile:B.deadlineProfile,integrityProfile:{mode:"kiro-eventstream",requireTerminal:!0,verifiedWindowMs:9e5,cleanProbesToRecover:5,memoryLimitBytes:2097152,maxBytes:0x4000000},dashboard:{connection:"oauth-or-apikey",validation:"profile-or-model"}},N={id:"codex",alias:"cx",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.codex},serviceKinds:g.AI_PROVIDERS.codex.serviceKinds,capabilities:{streaming:!0,tools:!0,thinking:!0},transport:e.xq.codex,models:f.vq.cx,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:B.deadlineProfile,integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"catalog-or-quota"}},O={id:"cursor",alias:"cu",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.cursor},serviceKinds:["llm"],capabilities:{streaming:!0,tools:!0,liveCatalog:!0},transport:e.xq.cursor,models:f.vq.cu,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:B.deadlineProfile,integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"account-or-model"}},P={id:"github",alias:"gh",category:"oauth",authModes:["oauth"],display:{...g.AI_PROVIDERS.github},serviceKinds:g.AI_PROVIDERS.github.serviceKinds,capabilities:{streaming:!0,tools:!0,responseEscalation:!0},transport:e.xq.github,models:f.vq.gh,quotaSource:{strategy:"provider-api",provenance:"live-or-last-success"},refreshProfile:r.Wk,deadlineProfile:B.deadlineProfile,integrityProfile:B.integrityProfile,dashboard:{connection:"oauth",validation:"quota-or-model"},embeddingConfig:g.AI_PROVIDERS.github.embeddingConfig};var Q=c(89550),R=c(42366),S=c(65551),T=c(45452),U=c(8101),V=c(34291),W=c(67854),X=c(77016),Y=c(28906),Z=c(31409),$=c(13215),_=c(80485);let aa=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","systemoneConfig","modelsFetcher","mediaPriority","hiddenKinds"],ab=[h.A,i.A,j.A,k.A,l.A,m.A,n.A,o.A,p.A,L,M,N,O,P,Q.A,R.A,S.A,T.A,U.A,V.A,W.A,X.A,Y.A,Z.A,$.A,_.A];function ac(a={}){return Object.fromEntries(aa.filter(b=>void 0!==a[b]).map(b=>[b,a[b]]))}let ad=new Set([...Object.keys(g.AI_PROVIDERS),...Object.keys(e.xq)]),ae=new Map(ab.map(a=>[a.id,a])),af=new Set(["antigravity","kiro","codex","cursor","github"]),ag={};for(let a of ad){let b=function(a){let b=g.AI_PROVIDERS[a]||{},c=b.alias||a;return{id:a,alias:c,category:b.noAuth?"free":b.hasOAuth?"oauth":"apikey",authModes:b.authModes,hasOAuth:b.hasOAuth,noAuth:b.noAuth,passthroughModels:b.passthroughModels,display:function(a={}){let b=new Set(aa);return Object.fromEntries(Object.entries(a).filter(([a])=>!b.has(a)))}(b),transport:e.xq[a],models:f.vq[c]||f.vq[a]||[],...ac(b)}}(a),c=ae.has(a)?(d=ae.get(a),{...b,...d,display:{...b.display,...d.display},transport:{...b.transport,...d.transport},models:function(a=[],b=[]){let c=new Map;for(let d of[...a,...b])d?.id&&c.set(d.id,{...c.get(d.id),...d});return[...c.values()]}(b.models,d.models)}):b;ag[a]=af.has(a)?function(a,{optional:b=!1}={}){try{return function(a){if(E(a)||D("root","must be an object"),F(a.id,"id"),F(a.alias,"alias"),void 0!==a.aliases)for(let b of(Array.isArray(a.aliases)||D("aliases","must be an array"),a.aliases))F(b,"aliases");t.has(a.category)||D("category","is unsupported"),G(a.authModes,"authModes",u),G(a.serviceKinds,"serviceKinds",v),E(a.display)&&"string"==typeof a.display.name&&a.display.name.trim()||D("display.name","is required"),E(a.capabilities)||D("capabilities","must be an object"),E(a.transport)||D("transport","must be an object"),w.has(a.transport.format)||D("transport.format","is unsupported");let b=a.transport.trustClass||"public";x.has(b)||D("transport.trustClass","is unsupported"),0===H(a.transport).length&&D("transport","requires an endpoint"),I(a.transport,"transport",b),J(a.models,"models",{allowEmpty:!0===a.capabilities.liveCatalog}),E(a.quotaSource)&&"string"==typeof a.quotaSource.strategy&&"string"==typeof a.quotaSource.provenance||D("quotaSource","must declare strategy and provenance"),E(c=a.refreshProfile)||D("refreshProfile","must be an object"),(!Number.isInteger(c.maxConcurrent)||c.maxConcurrent<1)&&D("refreshProfile.maxConcurrent","must be a positive integer"),(!Number.isInteger(c.minDelayMs)||c.minDelayMs<0)&&D("refreshProfile.minDelayMs","must be a non-negative integer");var c,d=a.deadlineProfile;if(K(d,"deadlineProfile"),void 0!==d.variants)for(let[a,b]of(E(d.variants)||D("deadlineProfile.variants","must be an object"),Object.entries(d.variants)))K(b,`deadlineProfile.variants.${a}`);var e=a.integrityProfile;for(let a of(E(e)&&y.has(e.mode)||D("integrityProfile.mode","is unsupported"),"boolean"!=typeof e.requireTerminal&&D("integrityProfile.requireTerminal","must be boolean"),["memoryLimitBytes","maxBytes","verifiedWindowMs","cleanProbesToRecover"]))void 0!==e[a]&&(!Number.isInteger(e[a])||e[a]<=0)&&D(`integrityProfile.${a}`,"must be a positive integer");E(a.dashboard)&&"string"==typeof a.dashboard.connection&&"string"==typeof a.dashboard.validation||D("dashboard","must declare connection and validation modes");for(let b of z){let c=a[b];void 0!==c&&(E(c)||D(b,"must be an object"),I(c,b,c.trustClass||"public"),void 0!==c.models&&J(c.models,`${b}.models`))}return function a(b,c=new WeakMap){if(null===b||"object"!=typeof b)return b;if(c.has(b))return c.get(b);let d=Array.isArray(b)?[]:{};for(let[e,f]of(c.set(b,d),Object.entries(b)))d[e]=a(f,c);return Object.freeze(d)}(a)}(a)}catch(d){let c;if(!b)throw d;return Object.freeze({id:"string"==typeof a?.id&&s.test(a.id)?a.id:"optional-provider",disabled:!0,diagnostic:(c=d instanceof C?d.path:"unknown",`Provider descriptor disabled: invalid ${c}`.slice(0,160))})}}(c):c}let ah={},ai={},aj={};for(let a of Object.values(ag)){a.transport&&(ah[a.id]=a.transport),ai[a.alias||a.id]=a.models||[];let b=ac(a);Object.keys(b).length>0&&(aj[a.id]=b)}},30426:(a,b,c)=>{c.d(b,{AW:()=>l,DJ:()=>j,De:()=>i,KI:()=>e,Ps:()=>h,SF:()=>v,Uv:()=>q,VS:()=>g,aZ:()=>x,cI:()=>n,cT:()=>t,fM:()=>r,fO:()=>f,gc:()=>p,jM:()=>k,kE:()=>m,kw:()=>s,oG:()=>d,vQ:()=>o,wB:()=>u,zg:()=>w});let d=0xa00000,e=500,f=1024,g=100,h=200,i=2e3,j=10,k=10,l=20,m=10,n=10,o=5,p=["node_modules",".git","target","__pycache__",".next","dist","build",".venv","venv",".cache",".idea",".vscode",".DS_Store"],q=200,r=10,s=20,t=120,u=60,v=250,w=.7,x=8},32475:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{e:()=>J});var e=c(88967),f=c(90982),g=c(89718),h=c(29240),i=c(38775),j=c(92500),k=c(43659),l=c(48136),m=c(25308),n=c(41004),o=c(14170),p=c(7803),q=c(58136),r=c(38160),s=c(3359),t=c(35893),u=c(54603),v=c(49216),w=c(7912),x=c(75434),y=c(79761),z=c(91100),A=c(45974),B=c(7444),C=c(90704),D=a([j,C]);[j,C]=D.then?(await D)():D;let K="zevai-cli-auth",L=new Set(["account_auth","account_quota","authentication","credential_rejected","reauth_required","policy_suspended","account_validation_required","entitlement_or_quota","permission_denied","rate_limited"]);function E(a){return(0,x.cN)(a)}function F(a,b){let c=Object.entries(a?.circuits||{}).find(([,a])=>a?.probeAcquired===!0&&a?.probeLeaseId);if(!c)return null;let[d,e]=c;return{dimensions:"account"===d?{scope:d,provider:a.provider,accountId:a.id}:"provider"===d?{scope:d,provider:a.provider}:"egress"===d?{scope:d,egressId:a.egressId}:{scope:d,provider:a.provider,model:b,egressId:a.egressId},leaseId:e.probeLeaseId}}async function G(a){if(a?.headers?.get("x-zevai-probe")!=="first-token")return!1;let b=a.headers.get("x-zevai-cli-token");return!!b&&b===await (0,u.Xj)(K)}async function H(a){let b=a?.headers?.get("x-zevai-connection-id")||null;if(!b)return null;let c=a.headers.get("x-zevai-cli-token");return c&&c===await (0,u.Xj)(K)?b:null}async function I(a){let b=a?.headers?.get("x-zevai-context-canary")||null;if(!b||!/^[A-Za-z0-9-]{8,64}$/.test(b))return null;let c=a.headers.get("x-zevai-cli-token");return c&&c===await (0,u.Xj)(K)?b:null}async function J(a,b,d=null,u=null,x=null,D=null){let K=await (0,i.mA)(b);if(!K.provider){let c=await (0,i.d_)(b);if(c){let a=(0,h.RV)(b,D,c);if(!a.allowed)return(0,k.yj)(n.gx.FORBIDDEN,(0,h.Ip)(b,a))}if(c){let e=await (0,g.mt)(),f=e.comboStrategies||{},h=f[b]?.fallbackStrategy||e.comboStrategy||"fallback";if("fusion"===h)return p.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: fusion)`),(0,m.vt)({body:a,models:c,handleSingleModel:(a,b,c)=>{let e=d;if(c&&d){let{tools:a,tool_choice:b,...c}=d.body||{};e={...d,body:c}}return J(a,b,e,u,x,D)},log:p,comboName:b,judgeModel:f[b]?.judgeModel,tuning:f[b]?.fusionTuning});let i=e.comboStickyRoundRobinLimit;return p.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: ${h}, sticky: ${i})`),(0,m.Pr)({body:a,models:c,handleSingleModel:(a,b)=>J(a,b,d,u,x,D),log:p,comboName:b,comboStrategy:h,comboStickyLimit:i,...(0,C.Px)(h,f,b,d,a)})}return p.warn("CHAT","Invalid model format",{model:b}),(0,k.yj)(n.gx.BAD_REQUEST,"Invalid model format")}let{provider:M,model:N}=K,O=K.gateway||null,P="claude"===M||M?.startsWith?.("anthropic-compatible-")?(0,f.J)(d?.headers):null,Q=u?.headers?.get("user-agent")||"",R=new Set,S=(0,v.P2)({maxAttempts:3}),T=await (0,g.mt)(),U=(0,B.m)(T),V=`route-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,W=null,X=null,Y=null,Z=null,$={};x&&($.apiKey=x),D?.allowedConnectionIds&&($.allowedConnectionIds=D.allowedConnectionIds);let _=await H(u);if(_&&($.preferredConnectionId=_,$.strictPreferred=!0),O&&"codex"===M&&("original"===O.mode||"account"===O.mode)){let a=await (0,s.c9)(O);if(!a){let a="account"===O.mode?`account "${O.accountRef}"`:"original Codex account";return p.warn("AUTH",`Codex gateway could not resolve ${a}`),(0,k.yj)(n.gx.NOT_FOUND,`Codex gateway could not resolve ${a}`)}$.preferredConnectionId=a.id,$.strictPreferred=!!O.strictAccount,p.info("ROUTING",`Codex gateway ${O.mode} pinned to ${(0,s.K0)(a)}`)}for(;;){let b;if(0===S.remaining)return Y||(0,k.yj)(X||n.gx.SERVICE_UNAVAILABLE,W||"Upstream attempt budget exhausted",Z);let f=await (0,e.c1)(M,R,N,$);if(f?.modelUnavailable){let a=`${M}/${N}`;return p.warn("AUTH",`No known eligible account supports model: ${a}`),(0,k.yj)(n.gx.NOT_FOUND,`Model ${a} is not available on any known eligible account`)}if(!f||f.allRateLimited){if(f?.allRateLimited){let a=W||f.lastError||"Unavailable",b=X||Number(f.lastErrorCode)||n.gx.SERVICE_UNAVAILABLE;return p.warn("CHAT",`[${M}/${N}] ${a} (${f.retryAfterHuman})`),(0,k.wO)(b,`[${M}/${N}] ${a}`,f.retryAfter,f.retryAfterHuman,Z)}if(0===R.size)return p.warn("AUTH",`No active credentials for provider: ${M}`),(0,k.yj)(n.gx.NOT_FOUND,`No active credentials for provider: ${M}`);return p.warn("CHAT","No more accounts available",{provider:M}),(0,k.yj)(X||n.gx.SERVICE_UNAVAILABLE,W||"All accounts unavailable",Z)}let g=null,h=null,i=[],s=()=>{h&&((0,y.BU)(h.dimensions,{leaseId:h.leaseId,cancelled:!0}),h=null)};if((U.adaptiveShadow||U.adaptiveRoute)&&"function"==typeof e.uT)try{let b=[...(0,m.t8)(a)],c=T.providerStrategies?.[M]?.adaptiveRoute===!0,d=(i=await e.uT(M,N,{...$,operation:"chat",requiredCapabilities:b,acquireCircuitProbes:!0===U.adaptiveRoute&&c})).filter(a=>!R.has(a.id)),j=(0,w.J)({candidates:d,legacyCandidateId:f.connectionId,flags:U,providerActivation:c,context:{provider:M,model:N,operation:"chat",requiredCapabilities:b,allowedConnectionIds:$.allowedConnectionIds,pinnedConnectionId:$.strictPreferred?$.preferredConnectionId:null,priorityRange:{min:Math.min(...d.map(a=>a.priority).filter(Number.isFinite)),max:Math.max(...d.map(a=>a.priority).filter(Number.isFinite))}}});if("active"===j.mode&&j.selected?.id!==f.connectionId){let a=await (0,e.c1)(M,R,N,{...$,preferredConnectionId:j.selected.id,strictPreferred:!0});!a||a.allRateLimited||a.modelUnavailable||(f=a)}let k=d.find(a=>a.id===f.connectionId);for(let a of((h=F(k,N))&&E({type:"probe",requestTag:V,provider:M,model:N,connectionId:f.connectionId,phase:"open"}),i)){let b=F(a,N);b&&b.leaseId!==h?.leaseId&&(0,y.BU)(b.dimensions,{leaseId:b.leaseId,cancelled:!0})}let l=j.ranked.find(a=>a.id===j.adaptiveCandidateId);g={mode:j.mode,candidateCount:d.length,connectionId:f.connectionId,score:l?.score,scoreComponents:l?.components},E({type:"decision",requestTag:V,provider:M,model:N,connectionId:f.connectionId,...g})}catch(a){for(let a of i){let b=F(a,N);b&&(0,y.BU)(b.dimensions,{leaseId:b.leaseId,cancelled:!0})}h=null,p.warn("ADAPTIVE",`Planner unavailable for ${M}/${N}; using legacy route (${a?.message||a})`),g={mode:"legacy",candidateCount:0}}try{b=await (0,q.eU)(M,f)}catch(g){s();let a=g?.permanent===!0;if("kiro"!==M&&!a)throw g;let b=Number.isInteger(g?.status)?g.status:a?n.gx.UNAUTHORIZED:n.gx.BAD_GATEWAY,c="kiro"===M?a?"Kiro rejected the refresh credential.":"Kiro credential refresh failed temporarily.":`${M} refresh token rejected (token invalid); reconnect this account.`,{shouldFallback:d}=await (0,e.vk)(f.connectionId,b,c,M,N,null,{failureClass:a?"reauth_required":"upstream_transient",providerErrorCode:g?.code||null,upstreamRequestId:g?.requestId||null,authLifecycle:{initialStatus:null,refreshAttempted:!0,refreshOutcome:a?"rejected":"transient_failed",retryStatus:null}},..."codebuddy"===M||"codebuddy-cn"===M?[f._connection]:[]);if(d){R.add(f.connectionId),W=c,X=b,p.warn("AUTH",`${M} refresh failed for ${f.connectionName}; trying fallback`);continue}return(0,k.yj)(b,c)}if("antigravity"===M||"gemini-cli"===M){let a=b.projectId||f.projectId||f.providerSpecificData?.projectId||null;if(a&&(b.projectId=a),!b.projectId){let d=await (0,r.eG)(f.connectionId,b.accessToken,{preferredProjectId:a});if(!d&&"antigravity"===M)try{let{getProviderConnections:a}=await Promise.resolve().then(c.bind(c,71998));for(let b of await a({provider:"antigravity",isActive:!0})||[]){if(b.id===f.connectionId)continue;let a=b.projectId||b.providerSpecificData?.projectId;if(a){d=a;break}}}catch{}d&&(b.projectId=d,(0,q.vN)(f.connectionId,{projectId:d}).catch(()=>{}))}}let v=(T.providerThinking||{})[M]||null,B=null;if(T.pxpipeEnabled)try{let{getTransform:a}=await c.e(4253).then(c.bind(c,46634));B=await a()}catch{B=null}let C=P?{...b,rawHeaders:P}:b,D=async a=>{if("antigravity"===M&&a&&(409===a.status||429===a.status))try{let c=await (0,A.XJ)(f.connectionId,a.status,N,b?.accessToken||f.accessToken,f.providerSpecificData);if(Number.isFinite(c)&&c>Date.now()){let b=Number(a.resetsAtMs);(!Number.isFinite(b)||c>b)&&(a.resetsAtMs=c)}}catch(a){p.warn("AG_QUOTA",`quota refresh failed: ${a?.message||a}`)}},H=(0,t.S)({connectionId:f.connectionId,connectionName:f.connectionName,provider:M,model:N,markUnavailable:e.vk,selectedConnection:"codebuddy"===M||"codebuddy-cn"===M?f._connection:null,egressId:f.providerSpecificData?.connectionProxyPoolId||(f.providerSpecificData?.vercelRelayUrl?"relay":"direct"),logger:p}),J=()=>{let a=!1,b=S.acquire({candidate:{id:f.connectionId,provider:M,egressId:f.providerSpecificData?.connectionProxyPoolId||(f.providerSpecificData?.vercelRelayUrl?"relay":"direct")},async finalize(c){let d=(0,z.Q)(c);if(E({type:"terminal",requestTag:V,provider:M,model:N,connectionId:f.connectionId,attemptIndex:b?.attemptIndex,failureClass:c.success||d?void 0:c.failure?.failureMetadata?.failureClass}),!h||a||c.retrying||(a=!0,(0,y.BU)(h.dimensions,d?{leaseId:h.leaseId,cancelled:!0}:{leaseId:h.leaseId,success:!0===c.success}),E({type:"probe",requestTag:V,provider:M,model:N,connectionId:f.connectionId,phase:d?d.eventPhase:c.success?"success":"failure"})),d)return d;if(c.retrying)return{shouldFallback:!1,cooldownMs:0};if(c.lifecycleHandled)return{shouldFallback:!0===c.shouldFallback,cooldownMs:0};let g=c.failure?.failureMetadata?.failureClass||c.failureClass;return"client_abort"===g||"policy_rejection"===g?{shouldFallback:!1,cooldownMs:0,accountUnaffected:!0}:c.success?("antigravity"===M&&(0,A.vO)(f.connectionId,N),await (0,e.Pt)(f.connectionId,f,N),{shouldFallback:!1,cooldownMs:0}):H(c.failure||c)}});return b?.transition("acquired"),b&&E({type:"attempt_open",requestTag:V,provider:M,model:N,connectionId:f.connectionId,attemptIndex:b.attemptIndex}),b},K=S.attemptsUsed,O=J();O||s();let _=await (0,j.wk)({body:{...a,model:`${M}/${N}`},modelInfo:{provider:M,model:N},credentials:C,log:p,clientRawRequest:d,connectionId:f.connectionId,userAgent:Q,apiKey:x,ccFilterNaming:!!T.ccFilterNaming,rtkEnabled:!!T.rtkEnabled,headroomEnabled:!!T.headroomEnabled,headroomUrl:T.headroomUrl||"http://localhost:8787",headroomCompressUserMessages:!!T.headroomCompressUserMessages,headroomTimeoutMs:T.headroomTimeoutMs,cavemanEnabled:!!T.cavemanEnabled,cavemanLevel:T.cavemanLevel||"full",ponytailEnabled:!!T.ponytailEnabled,ponytailLevel:T.ponytailLevel||"full",customPromptEnabled:!!T.customPromptEnabled,customPrompt:T.customPrompt||"",pxpipeEnabled:!!T.pxpipeEnabled,pxpipeMinChars:T.pxpipeMinChars,pxpipeTimeoutMs:T.pxpipeTimeoutMs,pxpipeTransform:B,onPxpipeEvent:async a=>{try{let{appendPxpipeEvent:b}=await c.e(2007).then(c.bind(c,74388));b(a)}catch{}},contextInjectionEnabled:!!T.contextInjectionEnabled,contextCanary:await I(u),providerThinking:v,providerOverrides:(T.providerOverrides||{})[M]||null,signal:u?.signal,probeFirstToken:await G(u),attemptBudget:S,attemptLease:O,acquireAttemptLease:J,adaptiveMetadata:g,onAdaptiveLifecycle:a=>E({...a,requestTag:V,provider:M,model:N,connectionId:f.connectionId}),sourceFormatOverride:u?.url?(0,o.t)(new URL(u.url).pathname,a):null,onCredentialsRefreshed:async a=>(0,q.vN)(f.connectionId,{...a,existingProviderSpecificData:f.providerSpecificData,testStatus:"active"}),onRequestSuccess:async(a=O)=>{await a.finish({success:!0})},onStreamFailure:async(a,b=O)=>(await D(a),await b.finish({success:!1,failure:a}),b.finalizationResult)});if(_.success)return _.response;await D(_),await O.finish({success:!1,lifecycleHandled:!0===_.lifecycleHandled,shouldFallback:!0===_.shouldFallback,failure:{status:_.status,message:_.error,errorText:_.error,resetsAtMs:_.resetsAtMs,failureMetadata:_.failureMetadata}});let aa=O.finalizationResult;if(!0===_.lifecycleHandled?!0===_.shouldFallback:aa?.shouldFallback===!0){(function(a){let b=a?.failureMetadata?.failureClass;return b?L.has(b):[401,402,403,429].includes(Number(a?.status))})(_)&&S.grantReplacement(S.attemptsUsed-K),E({type:"failover",requestTag:V,provider:M,model:N,connectionId:f.connectionId,attemptIndex:O.attemptIndex,failureClass:_.failureMetadata?.failureClass,code:_.failureMetadata?.providerErrorCode}),p.warn("FALLBACK",`ACC:${f.connectionName} unavailable (${_.status}) → next account`),R.add(f.connectionId),W=_.error,X=_.status,Y=_.response,Z=(0,l.d)(_.response?.headers);continue}return _.response}}d()}catch(a){d(a)}})},35893:(a,b,c)=>{c.d(b,{S:()=>g});var d=c(79761);let e=new Set(["STREAM_FIRST_CHUNK_TIMEOUT","STREAM_STALL_TIMEOUT","STREAM_CONNECT_TIMEOUT","STREAM_ABSOLUTE_TIMEOUT","STREAM_MISSING_TERMINAL","KIRO_STREAM_PROTOCOL_ERROR","AWS_EVENTSTREAM_PRELUDE_CRC_MISMATCH","AWS_EVENTSTREAM_MESSAGE_CRC_MISMATCH","AWS_EVENTSTREAM_INVALID_LENGTH","AWS_EVENTSTREAM_MESSAGE_TOO_LARGE","AWS_EVENTSTREAM_INVALID_HEADERS","AWS_EVENTSTREAM_UNSUPPORTED_HEADER_TYPE","AWS_EVENTSTREAM_DECODER_FINISHED","KIRO_STREAM_MISSING_TERMINAL","KIRO_STREAM_TRUNCATED","KIRO_STREAM_INVALID_TOOL_CALL","KIRO_STREAM_TRANSPORT_READ_FAILED","KIRO_VERIFIED_SPOOL_LIMIT","KIRO_VERIFIED_SPOOL_FAILED"]),f=Object.freeze({account_auth:"account",account_quota:"account",authentication:"account",credential_rejected:"account",reauth_required:"account",policy_suspended:"account",account_validation_required:"account",entitlement_or_quota:"account",rate_limited:"account",provider_transient:"provider",upstream_transient:"provider",shared_egress:"egress",shared_egress_waf:"egress",protocol_corruption:"integrity",upstream_protocol:"integrity"});function g({connectionId:a,connectionName:b,provider:c,model:h,markUnavailable:i,selectedConnection:j,logger:k,egressId:l="direct",recordCircuitFailure:m=d.hb}){let n=!1;return async(d={})=>{if(n)return{duplicate:!0};n=!0;let g=d.failureMetadata?.providerErrorCode,o=d.failureMetadata?.failureClass,p=f[o];if(p)try{await m({scope:p,provider:c,model:h,accountId:a,egressId:l,failureClass:o,providerErrorCode:g})}catch(a){k?.warn?.("CIRCUIT",`Failed to record scoped circuit evidence: ${a?.message||a}`)}if(e.has(g)){let a="STREAM_CONNECT_TIMEOUT"===g;return k?.info?.("STREAM",`${g} left account health unchanged for ${c}/${h}`),{shouldFallback:a,cooldownMs:0,accountUnaffected:!0}}let q=Number.isInteger(d.status)?d.status:502,r=[a,q,d.errorText||d.message||"Provider stream failed",c,h,d.resetsAtMs||null];d.failureMetadata&&"object"==typeof d.failureMetadata&&r.push(d.failureMetadata),j&&(6===r.length&&r.push(null),r.push(j));let s=await i(...r);return s?.shouldFallback&&k?.warn?.("AUTH",`Account ${b||a||"unknown"} unavailable after stream failure (${q})`),s}}},38775:(a,b,c)=>{c.d(b,{d_:()=>j,mA:()=>i});var d=c(89718),e=c(40669),f=c(3359),g=c(32693);let h={xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan"};async function i(a){let b,c=(0,g.kP)(a),j=(0,f.s9)(c);if(j)return{...await i(j.modelString),gateway:{mode:j.mode,accountRef:j.accountRef||null,strictAccount:!!j.strictAccount,requestedModel:a,modelString:(0,g.kP)(j.modelString)}};let k=(b=(0,e.Xh)(c),b?.providerAlias&&h[b.providerAlias]?{...b,provider:h[b.providerAlias]}:b);if(!k.isAlias){if(!(0,e.gF)(k.providerAlias)&&!h[k.providerAlias]){let a=(await (0,d.Fh)({type:"openai-compatible"})).find(a=>a.prefix===k.providerAlias);if(a)return{provider:a.id,model:k.model};let b=(await (0,d.Fh)({type:"anthropic-compatible"})).find(a=>a.prefix===k.providerAlias);if(b)return{provider:b.id,model:k.model};let c=(await (0,d.Fh)({type:"custom-embedding"})).find(a=>a.prefix===k.providerAlias);if(c)return{provider:c.id,model:k.model}}return{provider:k.provider,model:k.model}}return await (0,d.getComboByName)(k.model)?{provider:null,model:k.model}:(0,e.js)(c,d.getModelAliases)}async function j(a){if((a=(0,g.kP)(a)).includes("/"))return null;let b=await (0,d.getComboByName)(a);return b&&b.models&&b.models.length>0?b.models:null}},49216:(a,b,c)=>{c.d(b,{P2:()=>f});let d=new Map(Object.freeze(["admitted","acquired","upstream_open","semantic_commit","terminal","finalized"]).map((a,b)=>[a,b]));function e(a={}){return Object.freeze({...a})}function f(a={}){let b=Number(a.maxAttempts),c=Number.isInteger(b)&&b>0?b:3,g=0;return Object.freeze({get maxAttempts(){return c},get attemptsUsed(){return g},get remaining(){return Math.max(0,c-g)},acquire:(a={})=>g>=c?null:(g+=1,function(a={}){let b,c="admitted",f=!1,g=null,h=!1,i="function"==typeof a.finalize?a.finalize:async()=>{},j=Object.freeze({id:a.candidate?.id||null,provider:a.candidate?.provider||null,egressId:a.candidate?.egressId||null}),k={id:a.id||null,attemptIndex:Number(a.attemptIndex)||1,candidate:j,get state(){return c},get terminal(){return g},get finalizationResult(){return b},get semanticCommitted(){return f},transition(a){if(h||!d.has(a))return!1;let b=d.get(c);return d.get(a)===b+1&&"terminal"!==a&&"finalized"!==a&&(c=a,"semantic_commit"===a&&(f=!0),!0)},acceptTerminal:a=>!h&&!g&&"finalized"!==c&&(g=e(a),c="terminal",!0),finish:async a=>!h&&(h=!0,g||(g=e(a)),c="finalized",b=await i(g,k),!0)};return Object.freeze(k)}({...a,id:a.id||`attempt-${g}`,attemptIndex:g})),grantReplacement(a=1){let b=Number(a),d=Number.isInteger(b)&&b>0?b:0;return c+=d,d}})}},70190:(a,b,c)=>{c.d(b,{O2:()=>p,SI:()=>o,cB:()=>q,mQ:()=>i});var d=c(14170),e=c(30426),f=c(65377);function g(a){try{return new TextEncoder().encode(JSON.stringify(a)||"").length}catch{return 0}}function h(a){let b=function(a){if(Array.isArray(a?.messages))return a.messages;if(Array.isArray(a?.input))return a.input;if(Array.isArray(a?.params?.messages))return a.params.messages;if(Array.isArray(a?.request?.contents))return a.request.contents;if(Array.isArray(a?.contents))return a.contents;let b=l(a);return b?b.messages:null}(a),c=b?.filter(a=>a?.role==="tool"||a?.role==="function"||a?.tool_calls?.length||a?.type==="function_call_output"||a?.parts?.some?.(a=>a?.functionResponse||a?.functionCall)||a?.content?.some?.(a=>a?.type==="tool_use"||a?.type==="tool_result"||a?.type==="tool-call"||a?.type==="tool-result"))||[];return{bodyBytes:g(a),messageBytes:b?g(b):0,toolSchemaBytes:g(a?.tools||a?.params?.tools||a?.request?.tools||[]),toolHistoryBytes:g(c)}}function i(a){let b=Math.round(Number(a));return Number.isFinite(b)&&b>0?b:3e3}function j(a,b){a&&!a.reason&&(a.reason=b)}function k(a){return!!Array.isArray(a?.input)&&a.input.some(a=>!(!a||"object"!=typeof a||Array.isArray(a))&&"string"==typeof a.type&&"message"!==a.type)}function l(a){let b=a?.conversationState;if(!b||"object"!=typeof b)return null;let c=[],d=[],e=(a,b,e,f={})=>{"string"==typeof b&&(c.push({role:a,content:b,...f}),d.push(e))},f=a=>{let b=a?.userInputMessage;if(b){e("system",b.systemInstruction,{object:b,key:"systemInstruction"}),e("user",b.content,{object:b,key:"content"});let a=b.userInputMessageContext?.toolResults;if(Array.isArray(a))for(let b of a){let a=b?.content;if(Array.isArray(a))for(let c of a)e("tool",c?.text,{object:c,key:"text"},b?.toolUseId?{tool_call_id:b.toolUseId}:{})}return}let c=a?.assistantResponseMessage;if(c){let a=(a=>{if(!Array.isArray(a)||0===a.length)return;let b=a.map(a=>({id:a?.toolUseId,type:"function",function:{name:a?.name||"",arguments:JSON.stringify(a?.input||{})}})).filter(a=>a.id||a.function.name);return b.length>0?b:void 0})(c.toolUses);e("assistant",c.content,{object:c,key:"content"},a?{tool_calls:a}:{})}};if(Array.isArray(b.history))for(let a of b.history)f(a);return b.currentMessage&&f(b.currentMessage),c.length>0?{messages:c,targets:d}:null}function m(a,b,c,d){if(!Array.isArray(b)||b.length!==a.messages.length)return j(c,`proxy response did not match ${d} message count`),!1;let e=[];for(let f=0;f<a.messages.length;f++){let g=a.messages[f],h=b[f];if(!h||h.role!==g.role||h.tool_call_id!==g.tool_call_id)return j(c,`proxy response did not preserve ${d} message order`),!1;let i=function(a){let b=a?.content;if("string"==typeof b)return b;if(!Array.isArray(b))return null;let c=[];for(let a of b)"string"==typeof a?c.push(a):"string"==typeof a?.text&&c.push(a.text);return c.length>0?c.join("\n"):null}(h);if(null===i)return j(c,`proxy response missing ${d} text content`),!1;a.targets[f]&&e.push({target:a.targets[f],text:i})}for(let a of e)a.target.object[a.target.key]=a.text;return!0}async function n(a,b,c,d,e,f){let g,h=function(a){try{let b=new URL(a);return b.pathname=`${b.pathname.replace(/\/$/,"")}/v1/compress`,b.hash="",b.toString()}catch{let[b,c=""]=String(a).replace(/#.*$/,"").split("?",2),d=`${b.replace(/\/$/,"")}/v1/compress`;return c?`${d}?${c}`:d}}(a);f.endpoint=function(a){try{let b=new URL(a);return b.username="",b.password="",b.search="",b.hash="",b.toString()}catch{return String(a).replace(/\/\/[^/@\s]+@/,"//").replace(/[?#].*$/,"")}}(h);let i={messages:b,model:c};e&&(i.config={compress_user_messages:!0});try{g=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i),signal:AbortSignal.timeout(d)})}catch(d){var k;let a,b,c;return j(f,`request failed: ${(k=d,a=k?.cause,b=a?.code||k?.code,c=String(a?.message||k?.message||String(k)).replace(/\/\/[^/@\s]+@/g,"//").replace(/(https?:\/\/[^\s?#]+)[?#][^\s)]*/g,"$1"),b?`${b}: ${c}`:c)}`),null}if(!g.ok)return j(f,`proxy returned HTTP ${g.status}`),null;let l=await g.json();return Array.isArray(l?.messages)?l:(j(f,"proxy response missing messages[]"),null)}async function o(a,{enabled:b,url:c,model:g,format:p,compressUserMessages:q,timeoutMs:r=3e3,diagnostics:s=null}={}){if(r=i(r),!b)return j(s,"disabled"),null;if(!c)return j(s,"missing proxy URL"),null;if(!a)return j(s,"missing request body"),null;try{s&&(s.before=h(a));let b=function(a,b){let c=[],f=[],g=(a,b,d=0)=>{if(d>e.aZ)return;let h=a?.[b];if("string"==typeof h){if(!h.trim())return;try{JSON.parse(h);return}catch{}c.push({role:"tool",tool_call_id:`headroom-tool-${c.length}`,content:h}),f.push({object:a,key:b,text:h})}else if(Array.isArray(h))for(let a=0;a<h.length;a++)g(h,a,d+1);else if(h&&"object"==typeof h){if(h.type&&"text"!==h.type&&"input_text"!==h.type)return;for(let a of["result","output","content","text"])Object.hasOwn(h,a)&&g(h,a,d+1)}};if(b===d.h.OPENAI_RESPONSES&&k(a))for(let b of a.input)b?.type==="function_call_output"&&g(b,"output");else{if(![d.h.GEMINI,d.h.GEMINI_CLI,d.h.ANTIGRAVITY,d.h.VERTEX].includes(b))return null;let c=a.request?.contents||a.contents;if(!Array.isArray(c))return null;for(let a of c)if(Array.isArray(a?.parts))for(let b of a.parts)b?.functionResponse&&g(b.functionResponse,"response")}return{messages:c,targets:f}}(a,p);if(b){if(!b.messages.length)return j(s,"no eligible plain-text tool output"),null;let d=await n(c,b.messages,g,r,q,s||{});if(!d||!function(a,b,c){if(!Array.isArray(b)||b.length!==a.messages.length)return j(c,"proxy response did not match tool-output count"),!1;let d=[];for(let e=0;e<b.length;e++){let f=b[e];if(f?.role!=="tool"||f.tool_call_id!==a.messages[e].tool_call_id||"string"!=typeof f.content)return j(c,"proxy response did not preserve tool-output IDs, order, roles or text"),!1;f.content.trim()&&f.content.length<a.targets[e].text.length&&d.push({...a.targets[e],text:f.content})}for(let{object:a,key:b,text:c}of d)a[b]=c;return!0}(b,d.messages,s))return null;return s&&(s.after=h(a)),d}if(p===d.h.CLAUDE){let b=function(a){if(!Array.isArray(a?.messages))return null;let b=[],c=[],d=(a,d,e,f={})=>{"string"==typeof d?.[e]&&(b.push({role:a,content:d[e],...f}),c.push({object:d,key:e}))},e=(a,b,c,e={})=>{if("string"==typeof b?.[c])d(a,b,c,e);else if(Array.isArray(b?.[c]))for(let f of b[c])f?.type==="text"&&d(a,f,"text",e)};for(let d of(e("system",a,"system"),a.messages)){let a=Array.isArray(d?.content)?d.content:[],f=a.filter(a=>a?.type==="tool_use");for(let g of(d?.role==="assistant"&&f.length&&(b.push({role:"assistant",content:"",tool_calls:f.map(a=>({id:a.id,type:"function",function:{name:a.name,arguments:JSON.stringify(a.input||{})}}))}),c.push(null)),e(d?.role,d,"content"),a))g?.type==="tool_result"&&e("tool",g,"content",{tool_call_id:g.tool_use_id})}return c.some(Boolean)?{messages:b,targets:c}:null}(a);if(!b)return j(s,"Claude request has no eligible text content"),null;let d=await n(c,b.messages,g,r,q,s||{});if(!d||!m(b,d.messages,s,"Claude"))return null;return s&&(s.after=h(a)),d}if("openai-responses"===p){if(k(a))return j(s,"skipped: openai-responses tool/reasoning input is not safe to compress"),null;let b=(0,f.Z)(g,a,!1);if(!Array.isArray(b?.messages))return null;let d=await n(c,b.messages,g,r,q,s||{});if(!d)return null;let e=(0,f.h)(g,{...b,input:void 0,messages:d.messages},!1);return Array.isArray(e?.input)&&(a.input=e.input),s&&(s.after=h(a)),d}if("kiro"===p){let b=l(a);if(!b)return j(s,"Kiro request did not project to messages[]"),null;let d=await n(c,b.messages,g,r,q,s||{});if(!d||!m(b,d.messages,s,"Kiro"))return null;return s&&(s.after=h(a)),d}if(p===d.h.COMMANDCODE){let b=function(a){let b=a?.params;if(!Array.isArray(b?.messages))return null;let c=[],d=[],e=(a,b,e,f={})=>{"string"==typeof b?.[e]&&(c.push({role:a,content:b[e],...f}),d.push({object:b,key:e}))};for(let a of(e("system",b,"system"),b.messages)){if(!Array.isArray(a?.content))continue;let b=a.content.filter(a=>a?.type==="tool-call");for(let f of("assistant"===a.role&&b.length&&(c.push({role:"assistant",content:"",tool_calls:b.map(a=>({id:a.toolCallId,type:"function",function:{name:a.toolName,arguments:JSON.stringify(a.input??{})}}))}),d.push(null)),a.content))f?.type==="text"?e(a.role,f,"text"):f?.type==="tool-result"&&f.output?.type==="text"&&e("tool",f.output,"value",{tool_call_id:f.toolCallId,name:f.toolName})}return c.length>0?{messages:c,targets:d}:null}(a);if(!b)return j(s,"CommandCode request did not project to messages[]"),null;let d=await n(c,b.messages,g,r,q,s||{});if(!d||!m(b,d.messages,s,"CommandCode"))return null;return s&&(s.after=h(a)),d}let i=Array.isArray(a.messages)?"messages":Array.isArray(a.input)?"input":null;if(!i)return j(s,`unsupported ${p||"unknown"} request shape`),null;let o=await n(c,a[i],g,r,q,s||{});if(!o)return null;return a[i]=o.messages,s&&(s.after=h(a)),o}catch(a){return j(s,`unexpected error: ${a?.message||String(a)}`),null}}function p(a){let b=a?.before,c=a?.after;if(!b||!c)return"";let d=b.bodyBytes>0?((b.bodyBytes-c.bodyBytes)/b.bodyBytes*100).toFixed(1):"0.0";return`body=${b.bodyBytes}B→${c.bodyBytes}B messages=${b.messageBytes}B→${c.messageBytes}B tools=${b.toolSchemaBytes||0}B→${c.toolSchemaBytes||0}B toolHistory=${b.toolHistoryBytes||0}B→${c.toolHistoryBytes||0}B effective=${d}%`}function q(a,b,c=.05){return!!a?.tokens_saved&&!(a.tokens_saved<=0)&&["bodyBytes","messageBytes"].every(a=>{let d=b?.before?.[a]||0,e=b?.after?.[a]||0;return d>0&&e>0&&e>=d*(1-c)})}},79489:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{L:()=>f.Lz,P:()=>f.PT});var e=c(48895),f=c(90704),g=a([e,f]);[e,f]=g.then?(await g)():g,d()}catch(a){d(a)}})},83017:(a,b,c)=>{c.d(b,{l:()=>j});var d=c(43659),e=c(41004),f=c(26679),g=c(19548),h=c(93184);let i=new Set(["opencode","opencode-zen"]);async function j({body:a,modelInfo:b,credentials:c,log:k,onRequestSuccess:l}){let m,n,{provider:o,model:p}=b,q=f.B$[o]?.systemoneConfig,r=function(a,b){let c=a?.trim();if(!c)return b?.baseUrl;if(!b?.path)return c;let d=c.replace(/\/+$/,""),e=b.path.replace(/\/+$/,"");if(d.endsWith(e))return d;let f=e.slice(0,e.lastIndexOf("/"));return f&&d.endsWith(f)?d+e.slice(f.length):d+e}(c?.providerSpecificData?.baseUrl,q);if(!r)return(0,d.A1)(e.gx.BAD_REQUEST,`Provider '${o}' does not support System One.`);if(r.includes("{accountId}")){let a=c?.providerSpecificData?.accountId;if(!a)return(0,d.A1)(e.gx.BAD_REQUEST,`Provider '${o}' requires accountId in providerSpecificData.`);r=r.replace("{accountId}",a)}if(r.includes("{model}")&&(r=r.replace(/\{model\}/g,p)),void 0===a.state||null===a.state)return(0,d.A1)(e.gx.BAD_REQUEST,"Missing required field: state");if(!a.questions||"object"!=typeof a.questions||Array.isArray(a.questions))return(0,d.A1)(e.gx.BAD_REQUEST,"Missing required field: questions");let s=c?.apiKey||c?.accessToken,t={"Content-Type":"application/json",...s?{Authorization:`Bearer ${s}`}:{},...q.headers||{},...i.has(o)?{"x-opencode-session":(0,h.Em)(a,c)}:{}},u={...a,model:(0,g.kt)(o,p)||p};k?.debug?.("SYSTEMONE",`${o.toUpperCase()} | ${p}`);try{m=await fetch(r,{method:"POST",headers:t,body:JSON.stringify(u),..."function"==typeof AbortSignal?.timeout?{signal:AbortSignal.timeout(e.pH)}:{}})}catch(b){let a=(0,d.lR)(b,o,p,e.gx.BAD_GATEWAY);return k?.debug?.("SYSTEMONE",`Fetch error: ${a}`),(0,d.A1)(e.gx.BAD_GATEWAY,a)}if(!m.ok){let{statusCode:a,message:b}=await (0,d.zL)(m),c=(0,d.lR)(Error(b),o,p,a);return k?.debug?.("SYSTEMONE",`Provider error: ${c}`),(0,d.A1)(a,c)}try{n=await m.json()}catch{return(0,d.A1)(e.gx.BAD_GATEWAY,`Invalid JSON response from ${o}`)}l&&await l();let v=n?.usage;return{success:!0,usage:v?{prompt_tokens:v.input_tokens||0,completion_tokens:v.output_tokens||0}:null,response:new Response(JSON.stringify(n),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}},90704:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Lz:()=>x,PT:()=>w,Px:()=>v});var e=c(48895),f=c(88967),g=c(89718),h=c(29240),i=c(38775),j=c(43659),k=c(25308),l=c(428),m=c(80662),n=c(17603),o=c(27349),p=c(41004),q=c(7803),r=c(324),s=c(14262),t=c(32475),u=a([e,t]);function v(a,b,c,d,e){if("smart"!==a)return{};let f=b?.[c]||{},g=Number(f.confidenceThreshold);return{sessionId:(0,m.bS)({headers:d?.headers,body:e})?.sessionId||null,smartPolicy:f.smartPolicy||"smart",sessionSticky:!1!==f.sessionSticky,confidenceThreshold:Number.isFinite(g)&&g>0?g:.8,resolveSmartChoice:(a,b)=>(0,l.J)({body:a,models:b,routerModel:f.routerModel,log:q})}}async function w(a,b=null){let d;try{d=await a.json()}catch{return q.warn("CHAT","Invalid JSON body"),(0,j.yj)(p.gx.BAD_REQUEST,"Invalid JSON body")}if(!d||"object"!=typeof d||Array.isArray(d))return(0,j.yj)(p.gx.BAD_REQUEST,"Request body must be a JSON object");if(void 0!==d.model&&"string"!=typeof d.model)return(0,j.yj)(p.gx.BAD_REQUEST,"Field 'model' must be a string");if(void 0!==d.messages&&!Array.isArray(d.messages))return(0,j.yj)(p.gx.BAD_REQUEST,"Field 'messages' must be an array");b||(b={endpoint:new URL(a.url).pathname,body:d,headers:Object.fromEntries(a.headers.entries())});let e=d.model,l=Object.fromEntries(a.headers.entries()),m=(0,r.J)(l,d),u=(0,s.eR)(e,m);e&&u!==e&&q.info("ROUTING",`Codex CLI ${e} → ${u}`);let z=a.headers.get("Authorization"),A=(0,f.Tr)(a);if(z&&A){let a=q.maskKey(A);q.debug("AUTH",`API Key: ${a}`)}else q.debug("AUTH","No API key provided (local mode)");let B=await (0,g.mt)(),C=A?await (0,g.uH)(A):null;if(B.requireApiKey){if(!A)return q.warn("AUTH","Missing API key (requireApiKey=true)"),(0,j.yj)(p.gx.UNAUTHORIZED,"Missing API key");if(!await (0,f.kI)(A))return q.warn("AUTH","Invalid API key (requireApiKey=true)"),(0,j.yj)(p.gx.UNAUTHORIZED,"Invalid API key")}if(A){let{checkApiKeyBudget:a,checkApiKeyTokenQuota:b}=await Promise.resolve().then(c.bind(c,14686)),d=await b(A);if(!d.allowed)return q.warn("QUOTA",`Blocked: ${d.reason}`),(0,j.yj)(d.status||p.gx.RATE_LIMITED,d.reason||"Token limit exceeded");let e=await a(A);if(!e.allowed)return q.warn("BUDGET",`Blocked: ${e.reason}`),(0,j.yj)(e.error?p.gx.SERVICE_UNAVAILABLE:p.gx.PAYMENT_REQUIRED,e.reason||"Budget exceeded")}if(!e)return q.warn("CHAT","Missing model"),(0,j.yj)(p.gx.BAD_REQUEST,"Missing model");let D=await (0,i.d_)(u),E=(0,h.RV)(u,C,D);if(!E.allowed)return(0,j.yj)(p.gx.FORBIDDEN,(0,h.Ip)(u,E));if(e!==u){let a=await (0,i.d_)(e),b=(0,h.RV)(e,C,a);if(!b.allowed)return(0,j.yj)(p.gx.FORBIDDEN,(0,h.Ip)(e,b))}let F=null;if(A){let{admitApiKeyRequest:a}=await Promise.resolve().then(c.bind(c,14686));if(!(F=await a(A)).allowed){let a=F.retryAfter?{"Retry-After":String(F.retryAfter)}:void 0;return new Response(JSON.stringify({error:{message:F.reason}}),{status:F.status||429,headers:{"Content-Type":"application/json",...a}})}}let G=a=>x(a,F?.release,F?.touch);u!==e&&(d={...d,model:u});try{let{responseCache:e,isCacheableRequest:f}=await c.e(5236).then(c.bind(c,45236)),g=!0===B.responseCacheEnabled?f(d,a.headers):{cacheable:!1,reason:"disabled"},l=null;if(g.cacheable){let a=(l=e.buildKey(d,A||"local"))?e.get(l):null;if(a)return q.info("CACHE",`HIT ${u} | age=${Math.round((Date.now()-a.storedAt)/1e3)}s | hits=${a.hits}`),G(new Response(JSON.stringify(a.body),{status:a.status,headers:{"Content-Type":"application/json","X-ZevAI-Cache":"HIT","X-ZevAI-Cache-Age":String(Math.round((Date.now()-a.storedAt)/1e3))}}));q.debug("CACHE",`MISS ${u} (${g.reason||"new"})`)}let m=a?.headers?.get("user-agent")||"",r=(0,o.c)(d,u,m,!!B.ccFilterNaming);if(r)return G(r.response||r);let s=await (0,i.d_)(u);if(s){let a=(0,h.RV)(u,C,s);if(!a.allowed)return G((0,j.yj)(p.gx.FORBIDDEN,(0,h.Ip)(u,a)))}if(s){let c=B.comboStrategies||{},e=c[u]?.fallbackStrategy||B.comboStrategy||"fallback";if("fusion"===e){q.info("CHAT",`Combo "${u}" with ${s.length} models (strategy: fusion)`);let e=await (0,k.vt)({body:d,models:s,handleSingleModel:(c,d,e)=>{let f=b;if(e&&b){let{tools:a,tool_choice:c,...d}=b.body||{};f={...b,body:d}}return(0,t.e)(c,d,f,a,A,C)},log:q,comboName:u,judgeModel:c[u]?.judgeModel,tuning:c[u]?.fusionTuning});return G(await y(e,l,u))}let f=B.comboStickyRoundRobinLimit;q.info("CHAT",`Combo "${u}" with ${s.length} models (strategy: ${e}, sticky: ${f})`);let g=await (0,k.Pr)({body:d,models:s,handleSingleModel:(c,d)=>(0,t.e)(c,d,b,a,A,C),log:q,comboName:u,comboStrategy:e,comboStickyLimit:f,...v(e,c,u,b,d)});return G(await y(g,l,u))}let w=(0,k.t8)(d),x=(0,n.R8)([u],w,B);if(x.length>1){let c=x.filter(a=>a!==u);q.info("CAPACITY",`[${[...w].join(",")}] ${u} → +${c.length} fallback model(s)`);let e=await (0,k.Pr)({body:d,models:x,handleSingleModel:(0,n.ar)((c,d)=>(0,t.e)(c,d,b,a,A,C),c),log:q,comboName:u,comboStrategy:(0,n.vB)(w,B)});return G(await y(e,l,u))}let z=await (0,t.e)(d,u,b,a,A,C);return G(await y(z,l,u))}catch(a){throw F?.release?.(),a}}function x(a,b,c){if(!b)return a;if(!a?.body||!a.headers.get("content-type")?.includes("text/event-stream"))return b(),a;let d=a.body.getReader();return new Response(new ReadableStream({async pull(a){try{let{done:e,value:f}=await d.read();e?(b(),a.close()):(c?.(),a.enqueue(f))}catch(c){b(),a.error(c)}},async cancel(a){b(),await d.cancel(a)}}),{status:a.status,statusText:a.statusText,headers:a.headers})}async function y(a,b,d){if(!b||!a||!a.ok||!(a.headers.get("content-type")||"").includes("application/json"))return a;try{let{responseCache:e,isCacheableResponse:f}=await c.e(5236).then(c.bind(c,45236)),g=await a.clone().json();if(!f(g,a.status))return a;e.set(b,{body:g,status:a.status,model:d}),q.debug("CACHE",`STORE ${d} (key ${b.slice(0,8)}…)`)}catch{}return a}[e,t]=u.then?(await u)():u,d()}catch(a){d(a)}})},90982:(a,b,c)=>{c.d(b,{J:()=>e});let d=new Set(["user-agent","anthropic-beta","anthropic-version","anthropic-dangerous-direct-browser-access","x-app","x-stainless-helper-method","x-stainless-retry-count","x-stainless-runtime-version","x-stainless-package-version","x-stainless-runtime","x-stainless-lang","x-stainless-arch","x-stainless-os","x-stainless-timeout","x-claude-code-session-id","package-version","runtime-version","os","arch"]);function e(a){if(!a||"object"!=typeof a)return{};let b={};for(let[c,e]of Object.entries(a)){let a=c.toLowerCase();d.has(a)&&("string"==typeof e||"number"==typeof e)&&(b[a]=String(e))}return b}},91100:(a,b,c)=>{c.d(b,{Q:()=>d});function d(a){return a?.probeStopped!==!0?null:{circuit:"cancelled",eventPhase:"stopped",shouldFallback:!1,cooldownMs:0,accountUnaffected:!0}}}};
@@ -1 +1 @@
1
- "use strict";exports.id=8238,exports.ids=[8238],exports.modules={30869:(a,b,c)=>{c.d(b,{UY:()=>i,X3:()=>k,eh:()=>f.eh,fg:()=>e.fg,h0:()=>h,oc:()=>j,vQ:()=>g});var d=c(39006),e=c(17404),f=c(81329);let g={name:"ZevaiRouter",description:"AI Infrastructure Management",version:d.version},h={npmPackageName:"zevairouter",installCmd:"npm i -g zevairouter",installCmdLatest:"npm i -g zevairouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:1997},i={maxLines:200,pollIntervalMs:1e3},j={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}},k={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat"}},38238:(a,b,c)=>{c.d(b,{OU:()=>j,PL:()=>k,Yd:()=>i});var d=c(89718),e=c(17404),f=c(54098),g=c(30869),h=c(54603);function i(a,b){let c="string"==typeof b?b:b?JSON.stringify(b):"";for(let a=0;a<3;a++){let a=c.replace(/^\s*(?:HTTP\s+)?\[?\d{3}\]?\s*:\s*/i,""),b=a;try{let c=JSON.parse(a),d=c?.error?.message||c?.message||c?.error;"string"==typeof d&&d&&(b=d)}catch{}if(b===c)break;c=b}return c=c.trim(),`HTTP ${a}${c?`: ${c.slice(0,240)}`:""}`}async function j(a=null){let b=null;try{let a=await (0,d.PX)(!0);b=a.find(a=>!1!==a.isActive)?.key||null}catch{}let c={"Content-Type":"application/json"};return b&&(c.Authorization=`Bearer ${b}`),c["x-zevai-cli-token"]=await (0,h.Xj)("zevai-cli-auth"),a&&(c["x-zevai-connection-id"]=a),c}async function k(a,b,c=`http://127.0.0.1:${process.env.PORT||g.h0.appPort}`,d={}){let h=await j(d.connectionId),l=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:h,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-l,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0&&Array.isArray(f.data[0]?.embedding)?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no embedding data"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:h,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-l,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,d,e,f,g=new FormData,j=(e=new DataView(d=new ArrayBuffer(44+(b=8e3))),(f=(a,b)=>{for(let c=0;c<b.length;c+=1)e.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),e.setUint32(4,36+b,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,16e3,!0),e.setUint32(28,32e3,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,b,!0),new Blob([d],{type:"audio/wav"}));g.append("file",j,"test.wav"),g.append("model",a);let k=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(h).filter(([a])=>"content-type"!==a.toLowerCase())),body:g,signal:AbortSignal.timeout(15e3)}),m=Date.now()-l,n=await k.text().catch(()=>""),o=null;try{o=n?JSON.parse(n):null}catch{}if(!k.ok){let a=o?.error?.message||o?.msg||o?.message||o?.error||n;return{ok:!1,latencyMs:m,error:i(k.status,a),status:k.status}}return("string"==typeof o?.text?o.text:"").trim()?{ok:!0,latencyMs:m,error:null,status:k.status}:{ok:!1,latencyMs:m,status:k.status,error:"Provider returned no transcription text for this model"}}if("systemone"===b){let b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:h,body:JSON.stringify({model:a,state:"Customer: I was charged twice for my order this morning.",questions:{probe:{type:"noul",instructions:"Is the customer reporting a billing problem?"}}}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-l,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return f?.answers&&"object"==typeof f.answers&&Object.keys(f.answers).length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no answers for this model"}}let m=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:h,body:JSON.stringify({model:a,max_tokens:1024,stream:!1,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(15e3)}),n=Date.now()-l,o=await m.text().catch(()=>""),p=null;try{p=o?JSON.parse(o):null}catch{}if(p=(0,f.x)(p,(0,e.rs)(String(a).split("/")[0])),!m.ok){let a=p?.error?.message||p?.msg||p?.message||p?.error||o;return{ok:!1,latencyMs:n,error:i(m.status,a),status:m.status}}let q=p?.status,r=p?.msg||p?.message;if(null!=q&&"200"!==String(q)&&"0"!==String(q)&&r)return{ok:!1,latencyMs:n,status:m.status,error:`Provider status ${q}: ${String(r).slice(0,240)}`};if(p?.error){let a=p?.error?.message||p?.error||"Provider returned an error";return{ok:!1,latencyMs:n,status:m.status,error:String(a).slice(0,240)}}let s=Array.isArray(p?.choices)&&p.choices.length>0,t=p?.choices?.[0]||{},u=t.message?.reasoning||t.message?.reasoning_content||t.message?.thinking||t.message?.thinking_content,v=!String(t.message?.content||"").trim();return s&&"length"===t.finish_reason&&v&&u?{ok:!0,latencyMs:n,error:null,status:m.status,note:"reasoning-only response (length-limited)"}:s?{ok:!0,latencyMs:n,error:null,status:m.status}:{ok:!1,latencyMs:n,status:m.status,error:"Provider returned no completion choices for this model"}}},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.60","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","scripts/gflow-reply-capture.py","scripts/flow-vps-setup.sh","skills/","README.md","README.zh-CN.md","DOCKER.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"node scripts/build-app.mjs","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","lint":"eslint .","test":"vitest run --config tests/vitest.config.js","build:cli":"node cli/scripts/build-cli.js","audit:package":"node cli/scripts/audit-package.mjs","smoke:package":"node cli/scripts/smoke-package.mjs","verify:mobile-scroll":"node cli/scripts/verify-dashboard-mobile-scroll.mjs","candidate:build":"node cli/scripts/local-candidate.mjs build","candidate:install":"node cli/scripts/local-candidate.mjs install","candidate:status":"node cli/scripts/local-candidate.mjs status","candidate:rollback":"node cli/scripts/local-candidate.mjs rollback","release":"node cli/scripts/release.js","prepack":"npm run build:cli && npm run audit:package","postinstall":"node cli/hooks/postinstall.js"},"dependencies":{"confbox":"0.2.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4"},"comment_published_runtime":"npm install -g must not download next or @next/swc. Those, plus sql.js, yaml, and @node-saml/node-saml, stay devDependencies so local dev and build:cli can trace them into cli/app. The published tarball already ships that standalone server. confbox stays here because the CLI imports it directly.","comment_optional_runtime":"Optional packages are installed into ~/.zevai/runtime instead of the published tarball. Automation uses CloakBrowser with playwright-core; ZEVAI_MINIMAL_POSTINSTALL=1 skips its browser download. Other lazy runtimes are better-sqlite3, node-pty, and systray2.","overrides":{"body-parser":"^2.3.0","brace-expansion":"5.0.12","dompurify":"^3.4.12","ip-address":"^10.4.0","js-yaml":"4.3.2","nanoid":"^3.3.18","postcss":"^8.5.10","sharp":"0.35.5"},"comment_overrides":"Security floors for transitive dependencies. ESLint\'s legacy minimatch is a private, source-pinned 3.1.5 compatibility package backed by brace-expansion 5.0.9; modern minimatch and nanoid use fixed floors directly. Monaco still pins an old DOMPurify; Express, Next, ESLint, and image processing dependencies may resolve vulnerable body-parser, js-yaml, or sharp releases. Recheck and remove overrides once parent packages require fixed versions.","devDependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@node-saml/node-saml":"5.1.0","@tailwindcss/postcss":"^4.1.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","better-sqlite3":"^12.6.2","chalk":"^4.1.2","dompurify":"^3.4.12","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.4.2","express":"^5.2.1","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","minimatch":"file:vendor/minimatch3-secure","monaco-editor":"^0.55.1","next":"16.4.2","node-forge":"^1.4.2","open":"^11.0.0","ora":"^9.1.0","postcss":"^8.5.10","prop-types":"^15.8.1","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks":"^2.8.9","socks-proxy-agent":"^10.1.0","sql.js":"1.14.1","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.12","yaml":"2.9.0","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},54098:(a,b,c)=>{c.d(b,{x:()=>e});var d=c(35024);function e(a,b){if(!b||!d.xq[b]?.quirks?.clineEnvelope)return a;let{success:c,data:e}=a||{};return!0!==c||!e||"object"!=typeof e||Array.isArray(e)?a:e}},54603:(a,b,c)=>{c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.DATA_DIR,"machine-id"),m=h().join(k.DATA_DIR,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.DATA_DIR,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="zevai-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(19548);new Set(Object.entries(c(17404).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a));let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))}};
1
+ "use strict";exports.id=8238,exports.ids=[8238],exports.modules={30869:(a,b,c)=>{c.d(b,{UY:()=>i,X3:()=>k,eh:()=>f.eh,fg:()=>e.fg,h0:()=>h,oc:()=>j,vQ:()=>g});var d=c(39006),e=c(17404),f=c(81329);let g={name:"ZevaiRouter",description:"AI Infrastructure Management",version:d.version},h={npmPackageName:"zevairouter",installCmd:"npm i -g zevairouter",installCmdLatest:"npm i -g zevairouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:1997},i={maxLines:200,pollIntervalMs:1e3},j={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}},k={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat"}},38238:(a,b,c)=>{c.d(b,{OU:()=>j,PL:()=>o,Yd:()=>i});var d=c(89718),e=c(17404),f=c(54098),g=c(30869),h=c(54603);function i(a,b){let c="string"==typeof b?b:b?JSON.stringify(b):"";for(let a=0;a<3;a++){let a=c.replace(/^\s*(?:HTTP\s+)?\[?\d{3}\]?\s*:\s*/i,""),b=a;try{let c=JSON.parse(a),d=c?.error?.message||c?.message||c?.error;"string"==typeof d&&d&&(b=d)}catch{}if(b===c)break;c=b}return c=c.trim(),`HTTP ${a}${c?`: ${c.slice(0,240)}`:""}`}async function j(a=null){let b=null;try{let a=await (0,d.PX)(!0);b=a.find(a=>!1!==a.isActive)?.key||null}catch{}let c={"Content-Type":"application/json"};return b&&(c.Authorization=`Bearer ${b}`),c["x-zevai-cli-token"]=await (0,h.Xj)("zevai-cli-auth"),a&&(c["x-zevai-connection-id"]=a),c}function k(a){return"string"==typeof a?a.trim():""}function l(a){return a&&"object"==typeof a?k(a.reasoning||a.reasoning_content||a.thinking||a.thinking_content):""}function m(){return{ok:!1,error:"Probe timed out before a usable response",status:408}}async function n(a,b){let c=a.body?.getReader?.();if(!c)return{ok:!1,error:"Provider stream ended without a usable response"};let d=new TextDecoder,e="",g=null;try{for(;!g;){let{value:a,done:h}=await c.read();if(h)break;let i=(e+=d.decode(a,{stream:!0})).split(/\r?\n/);for(let a of(e=i.pop()||"",i)){let c=a.trim();if(!c||c.startsWith(":")||!c.startsWith("data:"))continue;let d=c.slice(5).trim();if("[DONE]"===d){g||(g={ok:!1,error:"Provider stream ended without a usable response"});break}let e=null;try{e=JSON.parse(d)}catch{continue}e=(0,f.x)(e,b);let h=function(a){if(!a||"object"!=typeof a)return null;if(a.error)return{ok:!1,error:String(a.error?.message||a.error).slice(0,240)};let b=Array.isArray(a.choices)?a.choices[0]:null;if(!b)return null;let c=k(b.delta?.content||b.message?.content),d=l(b.delta)||l(b.message);return c?{ok:!0}:d?{ok:!0,note:"reasoning-only response (length-limited)"}:null}(e);if(h?.ok===!1){g=h;break}h?.ok&&(g=h)}}}catch(a){if(g?.ok)return g;if(a?.name==="TimeoutError"||a?.name==="AbortError")return m();throw a}finally{await c.cancel().catch(()=>{})}return g||{ok:!1,error:"Provider stream ended without a usable response"}}async function o(a,b,c=`http://127.0.0.1:${process.env.PORT||g.h0.appPort}`,d={}){let h,p,q=await j(d.connectionId),r=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:q,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0&&Array.isArray(f.data[0]?.embedding)?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no embedding data"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:q,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,d,e,f,g=new FormData,h=(e=new DataView(d=new ArrayBuffer(44+(b=8e3))),(f=(a,b)=>{for(let c=0;c<b.length;c+=1)e.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),e.setUint32(4,36+b,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,16e3,!0),e.setUint32(28,32e3,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,b,!0),new Blob([d],{type:"audio/wav"}));g.append("file",h,"test.wav"),g.append("model",a);let j=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(q).filter(([a])=>"content-type"!==a.toLowerCase())),body:g,signal:AbortSignal.timeout(15e3)}),k=Date.now()-r,l=await j.text().catch(()=>""),m=null;try{m=l?JSON.parse(l):null}catch{}if(!j.ok){let a=m?.error?.message||m?.msg||m?.message||m?.error||l;return{ok:!1,latencyMs:k,error:i(j.status,a),status:j.status}}return("string"==typeof m?.text?m.text:"").trim()?{ok:!0,latencyMs:k,error:null,status:j.status}:{ok:!1,latencyMs:k,status:j.status,error:"Provider returned no transcription text for this model"}}if("systemone"===b){let b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:q,body:JSON.stringify({model:a,state:"Customer: I was charged twice for my order this morning.",questions:{probe:{type:"noul",instructions:"Is the customer reporting a billing problem?"}}}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return f?.answers&&"object"==typeof f.answers&&Object.keys(f.answers).length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no answers for this model"}}let s=(0,e.rs)(String(a).split("/")[0]),t=Number.isFinite(d.timeoutMs)?d.timeoutMs:(p=String(a||"").split("/")[0],"antigravity"===(0,e.rs)(p)?3e4:15e3);try{h=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:{...q,"x-zevai-probe":"first-token"},body:JSON.stringify({model:a,max_tokens:1024,stream:!0,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(t)})}catch(a){if(a?.name==="TimeoutError"||a?.name==="AbortError")return{...m(),latencyMs:Date.now()-r};return{ok:!1,latencyMs:Date.now()-r,error:a?.message||"Probe failed",status:0}}if(!h.ok){let a=await h.text().catch(()=>""),b=null;try{b=a?JSON.parse(a):null}catch{}b=(0,f.x)(b,s);let c=b?.error?.message||b?.msg||b?.message||b?.error||a;return{ok:!1,latencyMs:Date.now()-r,error:i(h.status,c),status:h.status}}if((h.headers.get("content-type")||"").includes("text/event-stream")){let a=await n(h,s);return{...a,latencyMs:Date.now()-r,status:h.status,error:a.error||null}}let u=await h.text().catch(()=>""),v=null;try{v=u?JSON.parse(u):null}catch{}let w=function(a){let b=a?.status,c=a?.msg||a?.message;if(null!=b&&"200"!==String(b)&&"0"!==String(b)&&c)return{ok:!1,error:`Provider status ${b}: ${String(c).slice(0,240)}`};if(a?.error)return{ok:!1,error:String(a?.error?.message||a?.error||"Provider returned an error").slice(0,240)};let d=Array.isArray(a?.choices)&&a.choices.length>0,e=a?.choices?.[0]||{},f=l(e.message),g=!k(e.message?.content);return d&&"length"===e.finish_reason&&g&&f?{ok:!0,note:"reasoning-only response (length-limited)"}:d&&(!g||f)?{ok:!0}:{ok:!1,error:"Provider returned no completion choices for this model"}}(v=(0,f.x)(v,s));return{ok:w.ok,latencyMs:Date.now()-r,status:h.status,error:w.ok?null:w.error,...w.note?{note:w.note}:{}}}},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.62","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","scripts/gflow-reply-capture.py","scripts/flow-vps-setup.sh","skills/","README.md","README.zh-CN.md","DOCKER.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"node scripts/build-app.mjs","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","lint":"eslint .","test":"vitest run --config tests/vitest.config.js","build:cli":"node cli/scripts/build-cli.js","audit:package":"node cli/scripts/audit-package.mjs","smoke:package":"node cli/scripts/smoke-package.mjs","verify:mobile-scroll":"node cli/scripts/verify-dashboard-mobile-scroll.mjs","candidate:build":"node cli/scripts/local-candidate.mjs build","candidate:install":"node cli/scripts/local-candidate.mjs install","candidate:status":"node cli/scripts/local-candidate.mjs status","candidate:rollback":"node cli/scripts/local-candidate.mjs rollback","release":"node cli/scripts/release.js","prepack":"npm run build:cli && npm run audit:package","postinstall":"node cli/hooks/postinstall.js"},"dependencies":{"confbox":"0.2.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4"},"comment_published_runtime":"npm install -g must not download next or @next/swc. Those, plus sql.js, yaml, and @node-saml/node-saml, stay devDependencies so local dev and build:cli can trace them into cli/app. The published tarball already ships that standalone server. confbox stays here because the CLI imports it directly.","comment_optional_runtime":"Optional packages are installed into ~/.zevai/runtime instead of the published tarball. Automation uses CloakBrowser with playwright-core; ZEVAI_MINIMAL_POSTINSTALL=1 skips its browser download. Other lazy runtimes are better-sqlite3, node-pty, and systray2.","overrides":{"body-parser":"^2.3.0","brace-expansion":"5.0.12","dompurify":"^3.4.12","ip-address":"^10.4.0","js-yaml":"4.3.2","nanoid":"^3.3.18","postcss":"^8.5.10","sharp":"0.35.5"},"comment_overrides":"Security floors for transitive dependencies. ESLint\'s legacy minimatch is a private, source-pinned 3.1.5 compatibility package backed by brace-expansion 5.0.9; modern minimatch and nanoid use fixed floors directly. Monaco still pins an old DOMPurify; Express, Next, ESLint, and image processing dependencies may resolve vulnerable body-parser, js-yaml, or sharp releases. Recheck and remove overrides once parent packages require fixed versions.","devDependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@node-saml/node-saml":"5.1.0","@tailwindcss/postcss":"^4.1.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","better-sqlite3":"^12.6.2","chalk":"^4.1.2","dompurify":"^3.4.12","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.4.2","express":"^5.2.1","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","minimatch":"file:vendor/minimatch3-secure","monaco-editor":"^0.55.1","next":"16.4.2","node-forge":"^1.4.2","open":"^11.0.0","ora":"^9.1.0","postcss":"^8.5.10","prop-types":"^15.8.1","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks":"^2.8.9","socks-proxy-agent":"^10.1.0","sql.js":"1.14.1","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.12","yaml":"2.9.0","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},54098:(a,b,c)=>{c.d(b,{x:()=>e});var d=c(35024);function e(a,b){if(!b||!d.xq[b]?.quirks?.clineEnvelope)return a;let{success:c,data:e}=a||{};return!0!==c||!e||"object"!=typeof e||Array.isArray(e)?a:e}},54603:(a,b,c)=>{c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.DATA_DIR,"machine-id"),m=h().join(k.DATA_DIR,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.DATA_DIR,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="zevai-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(19548);new Set(Object.entries(c(17404).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a));let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))}};
@@ -0,0 +1 @@
1
+ exports.id=8852,exports.ids=[8852],exports.modules={962:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/McpMarketplaceModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/McpMarketplaceModal.js","default")},2422:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/UsageStats.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/UsageStats.js","default")},3080:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/OAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/OAuthModal.js","default")},5843:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/NoAuthProxyCard.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/NoAuthProxyCard.js","default")},9379:(a,b,c)=>{Promise.resolve().then(c.bind(c,18200)),Promise.resolve().then(c.bind(c,70061)),Promise.resolve().then(c.bind(c,33893)),Promise.resolve().then(c.bind(c,18805)),Promise.resolve().then(c.bind(c,45512)),Promise.resolve().then(c.bind(c,84909)),Promise.resolve().then(c.bind(c,33811)),Promise.resolve().then(c.bind(c,90566)),Promise.resolve().then(c.bind(c,30462)),Promise.resolve().then(c.bind(c,20493)),Promise.resolve().then(c.bind(c,19183)),Promise.resolve().then(c.bind(c,40167)),Promise.resolve().then(c.bind(c,79401)),Promise.resolve().then(c.bind(c,70139)),Promise.resolve().then(c.bind(c,49123)),Promise.resolve().then(c.bind(c,64148)),Promise.resolve().then(c.bind(c,92669)),Promise.resolve().then(c.bind(c,29354)),Promise.resolve().then(c.bind(c,80342)),Promise.resolve().then(c.bind(c,71230)),Promise.resolve().then(c.bind(c,82448)),Promise.resolve().then(c.bind(c,14285)),Promise.resolve().then(c.bind(c,87228)),Promise.resolve().then(c.bind(c,45205)),Promise.resolve().then(c.bind(c,64420)),Promise.resolve().then(c.bind(c,61780)),Promise.resolve().then(c.bind(c,92082)),Promise.resolve().then(c.bind(c,70603)),Promise.resolve().then(c.bind(c,962)),Promise.resolve().then(c.bind(c,32460)),Promise.resolve().then(c.bind(c,94582)),Promise.resolve().then(c.bind(c,5843)),Promise.resolve().then(c.bind(c,3080)),Promise.resolve().then(c.bind(c,32644)),Promise.resolve().then(c.bind(c,81923)),Promise.resolve().then(c.bind(c,19083)),Promise.resolve().then(c.bind(c,54065)),Promise.resolve().then(c.bind(c,83784)),Promise.resolve().then(c.bind(c,26866)),Promise.resolve().then(c.bind(c,89886)),Promise.resolve().then(c.bind(c,40515)),Promise.resolve().then(c.bind(c,70092)),Promise.resolve().then(c.bind(c,18421)),Promise.resolve().then(c.bind(c,2422)),Promise.resolve().then(c.bind(c,18060))},14285:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/KiroOAuthWrapper.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/KiroOAuthWrapper.js","default")},18060:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/XiaomiMimoAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/XiaomiMimoAuthModal.js","default")},18200:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/AddCustomEmbeddingModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/AddCustomEmbeddingModal.js","default")},18421:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Tooltip.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Tooltip.js","default")},18805:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/BulkAccountAutomationModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/BulkAccountAutomationModal.js","default")},19083:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/RequestLogger.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/RequestLogger.js","default")},19183:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/ConnectionMethodChooserModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/ConnectionMethodChooserModal.js","default")},20493:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/ComboFormModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/ComboFormModal.js","default")},23451:(a,b,c)=>{Promise.resolve().then(c.bind(c,67738)),Promise.resolve().then(c.bind(c,25919)),Promise.resolve().then(c.bind(c,75171)),Promise.resolve().then(c.bind(c,13375)),Promise.resolve().then(c.bind(c,99070)),Promise.resolve().then(c.bind(c,17660)),Promise.resolve().then(c.bind(c,11229)),Promise.resolve().then(c.bind(c,10324)),Promise.resolve().then(c.bind(c,58048)),Promise.resolve().then(c.bind(c,62727)),Promise.resolve().then(c.bind(c,54977)),Promise.resolve().then(c.bind(c,51109)),Promise.resolve().then(c.bind(c,45595)),Promise.resolve().then(c.bind(c,51585)),Promise.resolve().then(c.bind(c,48781)),Promise.resolve().then(c.bind(c,43182)),Promise.resolve().then(c.bind(c,32456)),Promise.resolve().then(c.bind(c,3236)),Promise.resolve().then(c.bind(c,79488)),Promise.resolve().then(c.bind(c,83552)),Promise.resolve().then(c.bind(c,8590)),Promise.resolve().then(c.bind(c,5291)),Promise.resolve().then(c.bind(c,56110)),Promise.resolve().then(c.bind(c,267)),Promise.resolve().then(c.bind(c,53838)),Promise.resolve().then(c.bind(c,85306)),Promise.resolve().then(c.bind(c,74812)),Promise.resolve().then(c.bind(c,39645)),Promise.resolve().then(c.bind(c,20084)),Promise.resolve().then(c.bind(c,95145)),Promise.resolve().then(c.bind(c,66978)),Promise.resolve().then(c.bind(c,50585)),Promise.resolve().then(c.bind(c,79346)),Promise.resolve().then(c.bind(c,85158)),Promise.resolve().then(c.bind(c,11633)),Promise.resolve().then(c.bind(c,91809)),Promise.resolve().then(c.bind(c,91099)),Promise.resolve().then(c.bind(c,4770)),Promise.resolve().then(c.bind(c,42196)),Promise.resolve().then(c.bind(c,19308)),Promise.resolve().then(c.bind(c,53845)),Promise.resolve().then(c.bind(c,95514)),Promise.resolve().then(c.bind(c,32971)),Promise.resolve().then(c.bind(c,4660)),Promise.resolve().then(c.bind(c,24622))},26866:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Sidebar.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Sidebar.js","default")},29354:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/HeaderMenu.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/HeaderMenu.js","default")},30462:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/CodeBuddyQuotaCookieModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/CodeBuddyQuotaCookieModal.js","default")},30508:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(5735);c(45512),c(71230),c(83784),c(84909),c(32460),c(92082),c(70061),c(33893),c(18805),c(70092),c(40515),c(89886),c(26866),c(92669),c(49123),c(3080),c(19183),c(94582),c(70603),c(20493),c(962),c(2422),c(45205),c(29354),c(33811),c(19083),c(82448),c(14285),c(87228),c(40167),c(80342),c(30462),c(90566),c(64148),c(18060),c(70139),c(18200),c(5843),c(54065),c(18421),c(81923),c(32644),c(79401);var e=c(61780);function f({children:a}){return(0,d.jsx)(e.default,{children:a})}c(64420)},32460:(a,b,c)=>{"use strict";c.d(b,{ConfirmModal:()=>f,default:()=>e});var d=c(77943);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Modal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Modal.js","default"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call ConfirmModal() from the server but ConfirmModal is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Modal.js","ConfirmModal")},32644:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Pagination.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Pagination.js","default")},33811:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/ChangelogModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/ChangelogModal.js","default")},33893:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Badge.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Badge.js","default")},40167:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/CursorAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/CursorAuthModal.js","default")},40515:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/ThemeToggle.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/ThemeToggle.js","default")},45205:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/LanguageSwitcher.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/LanguageSwitcher.js","default")},45512:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Button.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Button.js","default")},49123:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Footer.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Footer.js","default")},54065:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/SegmentedControl.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/SegmentedControl.js","default")},61780:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/layouts/DashboardLayout.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/layouts/DashboardLayout.js","default")},64148:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/GitLabAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/GitLabAuthModal.js","default")},64420:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/layouts/AuthLayout.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/layouts/AuthLayout.js","default")},70061:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Avatar.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Avatar.js","default")},70092:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Toggle.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Toggle.js","default")},70139:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/EditConnectionModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/EditConnectionModal.js","default")},70603:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/ManualConfigModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/ManualConfigModal.js","default")},71230:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Input.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Input.js","default")},79401:(a,b,c)=>{"use strict";c.d(b,{DashboardToolbar:()=>f,DataList:()=>i,DataRow:()=>j,EmptyState:()=>h,FeedbackPanel:()=>g,SectionHeading:()=>e});var d=c(77943);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call SectionHeading() from the server but SectionHeading is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/DashboardPatterns.js","SectionHeading"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call DashboardToolbar() from the server but DashboardToolbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/DashboardPatterns.js","DashboardToolbar"),g=(0,d.registerClientReference)(function(){throw Error("Attempted to call FeedbackPanel() from the server but FeedbackPanel is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/DashboardPatterns.js","FeedbackPanel"),h=(0,d.registerClientReference)(function(){throw Error("Attempted to call EmptyState() from the server but EmptyState is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/DashboardPatterns.js","EmptyState"),i=(0,d.registerClientReference)(function(){throw Error("Attempted to call DataList() from the server but DataList is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/DashboardPatterns.js","DataList"),j=(0,d.registerClientReference)(function(){throw Error("Attempted to call DataRow() from the server but DataRow is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/DashboardPatterns.js","DataRow")},80342:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/IFlowCookieModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/IFlowCookieModal.js","default")},81923:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/ProviderInfoCard.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/ProviderInfoCard.js","default")},82448:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/KiroAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/KiroAuthModal.js","default")},83784:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Select.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Select.js","default")},84909:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Card.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Card.js","default")},87228:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/KiroSocialOAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/KiroSocialOAuthModal.js","default")},90566:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/CodeBuddyCnPhoneRegisterModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/CodeBuddyCnPhoneRegisterModal.js","default")},92082:(a,b,c)=>{"use strict";c.d(b,{CardSkeleton:()=>h,DataListSkeleton:()=>i,PageLoading:()=>f,Skeleton:()=>g,Spinner:()=>e,default:()=>j});var d=c(77943);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call Spinner() from the server but Spinner is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Loading.js","Spinner"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call PageLoading() from the server but PageLoading is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Loading.js","PageLoading"),g=(0,d.registerClientReference)(function(){throw Error("Attempted to call Skeleton() from the server but Skeleton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Loading.js","Skeleton"),h=(0,d.registerClientReference)(function(){throw Error("Attempted to call CardSkeleton() from the server but CardSkeleton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Loading.js","CardSkeleton"),i=(0,d.registerClientReference)(function(){throw Error("Attempted to call DataListSkeleton() from the server but DataListSkeleton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Loading.js","DataListSkeleton"),j=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Loading.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Loading.js","default")},92669:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/Header.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/Header.js","default")},94582:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/shared/components/ModelSelectModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/shared/components/ModelSelectModal.js","default")}};