zevairouter 1.1.83 → 1.1.85

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 (670) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +19 -19
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/prerender-manifest.json +3 -3
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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.nft.json +1 -1
  91. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  92. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  93. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  94. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  95. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  96. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  97. package/cli/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  98. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  99. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  100. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  101. package/cli/app/.next-cli-build/server/app/_not-found.rsc +2 -2
  102. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +2 -2
  103. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  104. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  105. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  106. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  119. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  121. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js +2 -2
  151. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  153. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  158. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  160. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  162. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  164. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js +3 -3
  166. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  168. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  172. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/context/test/route.js +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/context/test/route.js.nft.json +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/dashboard/models/route.js +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/dashboard/models/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/json-import/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/helper/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/models/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js.nft.json +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/providers/openrouter/discover-models/route.js +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/providers/openrouter/discover-models/route.js.nft.json +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js +2 -2
  345. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/routing/adaptive/route.js.nft.json +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/settings/test-alert/route.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  380. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  394. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  399. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  401. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  403. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  404. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  405. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  406. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  407. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +2 -2
  408. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  409. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  410. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  411. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  412. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  413. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  414. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  416. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js +1 -1
  417. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js.nft.json +1 -1
  418. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  419. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  420. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  421. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  422. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  423. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  424. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  425. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  426. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  427. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  428. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  429. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  430. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  431. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  432. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  433. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  434. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  435. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  436. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  437. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  438. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  439. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  440. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  441. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  442. package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  443. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  444. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +2 -2
  445. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  446. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  447. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  448. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
  449. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  450. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  451. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  452. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  453. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  454. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  455. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  456. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  457. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +2 -2
  458. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  459. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  460. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  461. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  462. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  463. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  464. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  465. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  466. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  467. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  468. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  469. package/cli/app/.next-cli-build/server/app/callback/page.js +1 -1
  470. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  471. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  472. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  473. package/cli/app/.next-cli-build/server/app/callback.rsc +2 -2
  474. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +2 -2
  475. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  476. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
  477. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  478. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +2 -2
  479. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
  480. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +2 -2
  481. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  482. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  483. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +2 -2
  484. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  485. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +2 -2
  486. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  487. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  488. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +2 -2
  489. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  490. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +2 -2
  491. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  492. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  493. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +2 -2
  494. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  495. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +2 -2
  496. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  497. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  498. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +2 -2
  499. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +2 -2
  500. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +2 -2
  501. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  502. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  503. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +2 -2
  504. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  505. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +2 -2
  506. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  507. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  508. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +2 -2
  509. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  510. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +2 -2
  511. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  512. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  513. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +2 -2
  514. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  515. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +2 -2
  516. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  517. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  518. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +2 -2
  519. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +2 -2
  520. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +2 -2
  521. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  522. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  523. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +2 -2
  524. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  525. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +2 -2
  526. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  527. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  528. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +2 -2
  529. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  530. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +2 -2
  531. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  532. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  533. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +2 -2
  534. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  535. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +2 -2
  536. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  537. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  538. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +2 -2
  539. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  540. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +2 -2
  541. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  542. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  543. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +2 -2
  544. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  545. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +2 -2
  546. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  547. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  548. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +2 -2
  549. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +2 -2
  550. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +2 -2
  551. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  552. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  553. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +2 -2
  554. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  555. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +2 -2
  556. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  557. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  558. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +2 -2
  559. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  560. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +2 -2
  561. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  562. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  563. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +2 -2
  564. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  565. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +2 -2
  566. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  567. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  568. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +2 -2
  569. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  570. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +2 -2
  571. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  572. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  573. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +2 -2
  574. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  575. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +2 -2
  576. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  577. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  578. package/cli/app/.next-cli-build/server/app/dashboard.rsc +2 -2
  579. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  580. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +2 -2
  581. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  582. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  583. package/cli/app/.next-cli-build/server/app/index.rsc +2 -2
  584. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  585. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +2 -2
  586. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  587. package/cli/app/.next-cli-build/server/app/landing/page.js +1 -1
  588. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  589. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  590. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  591. package/cli/app/.next-cli-build/server/app/landing.rsc +2 -2
  592. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +2 -2
  593. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  594. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  595. package/cli/app/.next-cli-build/server/app/login/page.js +1 -1
  596. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  597. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  598. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  599. package/cli/app/.next-cli-build/server/app/login.rsc +2 -2
  600. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +2 -2
  601. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  602. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  603. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  604. package/cli/app/.next-cli-build/server/app/page.js +1 -1
  605. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  606. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  607. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  608. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
  609. package/cli/app/.next-cli-build/server/app-paths-manifest.json +19 -19
  610. package/cli/app/.next-cli-build/server/chunks/1004.js +1 -1
  611. package/cli/app/.next-cli-build/server/chunks/1047.js +1 -0
  612. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  613. package/cli/app/.next-cli-build/server/chunks/1757.js +1 -1
  614. package/cli/app/.next-cli-build/server/chunks/2231.js +1 -1
  615. package/cli/app/.next-cli-build/server/chunks/{5728.js → 2307.js} +2 -2
  616. package/cli/app/.next-cli-build/server/chunks/{1605.js → 2557.js} +1 -1
  617. package/cli/app/.next-cli-build/server/chunks/2578.js +1 -1
  618. package/cli/app/.next-cli-build/server/chunks/267.js +1 -1
  619. package/cli/app/.next-cli-build/server/chunks/2918.js +1 -1
  620. package/cli/app/.next-cli-build/server/chunks/2957.js +16 -0
  621. package/cli/app/.next-cli-build/server/chunks/3184.js +616 -0
  622. package/cli/app/.next-cli-build/server/chunks/{7364.js → 3190.js} +1 -1
  623. package/cli/app/.next-cli-build/server/chunks/4073.js +1 -1
  624. package/cli/app/.next-cli-build/server/chunks/4549.js +1 -1
  625. package/cli/app/.next-cli-build/server/chunks/4631.js +1 -1
  626. package/cli/app/.next-cli-build/server/chunks/4730.js +1 -1
  627. package/cli/app/.next-cli-build/server/chunks/4754.js +1 -0
  628. package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
  629. package/cli/app/.next-cli-build/server/chunks/5330.js +13 -25
  630. package/cli/app/.next-cli-build/server/chunks/5580.js +1 -0
  631. package/cli/app/.next-cli-build/server/chunks/5744.js +1 -1
  632. package/cli/app/.next-cli-build/server/chunks/{9188.js → 5986.js} +1 -1
  633. package/cli/app/.next-cli-build/server/chunks/627.js +1 -1
  634. package/cli/app/.next-cli-build/server/chunks/7135.js +2 -2
  635. package/cli/app/.next-cli-build/server/chunks/7319.js +1022 -830
  636. package/cli/app/.next-cli-build/server/chunks/7525.js +1 -1
  637. package/cli/app/.next-cli-build/server/chunks/7557.js +1 -1
  638. package/cli/app/.next-cli-build/server/chunks/7573.js +1 -1
  639. package/cli/app/.next-cli-build/server/chunks/7740.js +13 -0
  640. package/cli/app/.next-cli-build/server/chunks/7793.js +1 -0
  641. package/cli/app/.next-cli-build/server/chunks/7995.js +3 -3
  642. package/cli/app/.next-cli-build/server/chunks/{6166.js → 8238.js} +1 -1
  643. package/cli/app/.next-cli-build/server/chunks/9094.js +1 -1
  644. package/cli/app/.next-cli-build/server/chunks/9413.js +12 -0
  645. package/cli/app/.next-cli-build/server/chunks/9548.js +1 -1
  646. package/cli/app/.next-cli-build/server/chunks/9618.js +1 -1
  647. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  648. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  649. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  650. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  651. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  652. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  653. package/cli/app/.next-cli-build/static/chunks/5153-ac99c34c9374919f.js +1 -0
  654. package/cli/app/.next-cli-build/static/chunks/620-22231fb47409f27a.js +1 -0
  655. package/cli/app/CHANGELOG.md +14 -0
  656. package/cli/app/package.json +1 -1
  657. package/cli/package.json +1 -1
  658. package/package.json +1 -1
  659. package/cli/app/.next-cli-build/server/chunks/3204.js +0 -12
  660. package/cli/app/.next-cli-build/server/chunks/4177.js +0 -1
  661. package/cli/app/.next-cli-build/server/chunks/4294.js +0 -1
  662. package/cli/app/.next-cli-build/server/chunks/5626.js +0 -1
  663. package/cli/app/.next-cli-build/server/chunks/5781.js +0 -1
  664. package/cli/app/.next-cli-build/server/chunks/5819.js +0 -439
  665. package/cli/app/.next-cli-build/server/chunks/9489.js +0 -1
  666. package/cli/app/.next-cli-build/server/chunks/9946.js +0 -1
  667. package/cli/app/.next-cli-build/static/chunks/5153-11d3b7ab985b3fa8.js +0 -1
  668. package/cli/app/.next-cli-build/static/chunks/620-c79a51db4866ef69.js +0 -1
  669. /package/cli/app/.next-cli-build/static/{FOGmZhfTF_hGbhAHqAoR7 → 5AsQtmL5kXfUKmrhvVyvT}/_buildManifest.js +0 -0
  670. /package/cli/app/.next-cli-build/static/{FOGmZhfTF_hGbhAHqAoR7 → 5AsQtmL5kXfUKmrhvVyvT}/_ssgManifest.js +0 -0
@@ -1,439 +0,0 @@
1
- "use strict";exports.id=5819,exports.ids=[5819],exports.modules={9035:(a,b,c)=>{c.d(b,{f:()=>h});let d="glm-5.3-flash-free",e="mimo-v2.6-flash-free",f=new Set(["none","minimal","low","medium","high","xhigh","max"]),g={minimal:"low",low:"low",medium:"high",high:"high",xhigh:"max",max:"max",ultra:"max"};function h(a,b){if(!b||"object"!=typeof b)return b;let c=String(a||b.model||"").replace(/\([^()]+\)\s*$/,"").split("/").pop();if(c!==d&&"deepseek-v4.1-flash-free"!==c&&c!==e)return b;let h={...b},i="string"==typeof h.reasoning_effort?h.reasoning_effort.trim().toLowerCase():"";return c===e?(delete h.thinking,delete h.enable_thinking,i&&"auto"!==i&&f.has(i)?h.reasoning_effort=i:delete h.reasoning_effort):c===d?(i||h.thinking?.type!=="enabled"?"auto"===i&&delete h.reasoning_effort:h.reasoning_effort="high",delete h.thinking,delete h.enable_thinking):i&&"auto"!==i&&"none"!==i&&"off"!==i?g[i]&&(h.reasoning_effort=g[i],delete h.thinking):(delete h.reasoning_effort,delete h.thinking),h}},28200:(a,b,c)=>{c.d(b,{j9:()=>aa,cA:()=>N,Em:()=>U});var d=c(77598),e=c.n(d),f=c(74957),g=c(35024),h=c(86724),i=c(9035),j=c(60210),k=c(31421),l=c(73024),m=c.n(l),n=c(48161),o=c.n(n),p=c(76760),q=c.n(p);let r=`
2
- import { spawn, spawnSync } from "node:child_process";
3
- import fs from "node:fs";
4
- import os from "node:os";
5
- import path from "node:path";
6
-
7
- const input = JSON.parse(await Bun.stdin.text());
8
- const out = Bun.stdout.writer();
9
-
10
- const FALLBACK_WARP_PROFILES = {
11
- 40191: { priv: "YFWmzL3aEEJTmsm3xGxw5RcFUBuVTaozKHQ9DIgn60s=", v6: "2606:4700:110:8b49:3fb7:3c26:8ff8:98e1/128" },
12
- 40192: { priv: "WJRA/C/DXfB4VDf9kruOegcomImBMzwyvLPyu+B4wkI=", v6: "2606:4700:110:8130:f4b:9927:12cd:c3ad/128" },
13
- 40193: { priv: "WNZQqGrSR5GpZFipeCyafrwXxjev4dVHeLuCW/atX3Q=", v6: "2606:4700:110:88a3:ab54:194c:cb12:d546/128" },
14
- 40194: { priv: "mC/qISnHwznBOWuA104cx5IobJkQVi7dG068LWegq3Y=", v6: "2606:4700:110:8392:a0c1:fc:a96b:f7ca/128" },
15
- };
16
-
17
- function genSes(c) {
18
- const raw = BigInt(Date.now()) * 0x1000n + BigInt(c);
19
- const val = ~raw;
20
- const hex = Array.from({ length: 6 }, (_, i) => Number((val >> BigInt(40 - 8 * i)) & 0xffn).toString(16).padStart(2, "0")).join("");
21
- const chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
22
- const rb = crypto.getRandomValues(new Uint8Array(14));
23
- const rand = Array.from(rb, (b) => chars[b % 62]).join("");
24
- return "ses_" + hex + rand;
25
- }
26
-
27
- function getZevaiDataDir() {
28
- const isWin = process.platform === "win32";
29
- const home = os.homedir();
30
- return process.env.DATA_DIR || (isWin ? path.join(process.env.APPDATA || home, "zevai") : path.join(home, ".zevai"));
31
- }
32
-
33
- function getPoolDir() {
34
- return path.join(getZevaiDataDir(), "free-warp-pool");
35
- }
36
-
37
- async function isFreeWarpEnabled(proxy) {
38
- if (typeof proxy === "string" && proxy.includes("mode=free-warp")) return true;
39
- if (typeof proxy === "string" && proxy.trim()) return false;
40
- try {
41
- const { Database } = await import("bun:sqlite");
42
- const dbPath = path.join(getZevaiDataDir(), "db", "data.sqlite");
43
- if (!fs.existsSync(dbPath)) return false;
44
- const db = new Database(dbPath, { readonly: true });
45
- const row = db.query("SELECT data FROM settings WHERE id = 1").get();
46
- db.close();
47
- if (!row?.data) return false;
48
- const parsed = JSON.parse(row.data);
49
- return parsed?.providerStrategies?.opencode?.freeWarpMode === true;
50
- } catch {
51
- return false;
52
- }
53
- }
54
-
55
- function findBin(name) {
56
- const isWin = process.platform === "win32";
57
- const exe = isWin ? name + ".exe" : name;
58
- const home = os.homedir();
59
- const list = [
60
- path.join(getZevaiDataDir(), "bin", exe),
61
- path.join(home, ".local", "bin", exe),
62
- "/opt/homebrew/bin/" + exe,
63
- "/usr/local/bin/" + exe,
64
- "/usr/bin/" + exe,
65
- ];
66
- for (const d of String(process.env.PATH || "").split(path.delimiter)) {
67
- if (d) list.push(path.join(d, exe));
68
- }
69
- for (const c of list) {
70
- try { if (fs.statSync(c).isFile()) return c; } catch {}
71
- }
72
- return null;
73
- }
74
-
75
- function isSlotAlive(port) {
76
- const slotDir = path.join(getPoolDir(), "port-" + port);
77
- const pidFile = path.join(slotDir, "wireproxy.pid");
78
- try {
79
- const pid = Number(fs.readFileSync(pidFile, "utf8").trim());
80
- if (pid > 0) {
81
- process.kill(pid, 0);
82
- return true;
83
- }
84
- } catch {}
85
- return false;
86
- }
87
-
88
- function isSlotFresh(port) {
89
- const slotDir = path.join(getPoolDir(), "port-" + port);
90
- try {
91
- const lockStat = fs.statSync(path.join(slotDir, "mint.lock"));
92
- if (Date.now() - lockStat.mtimeMs < 15000) return false;
93
- } catch {}
94
- try {
95
- const burnStat = fs.statSync(path.join(slotDir, "burned.ts"));
96
- if (Date.now() - burnStat.mtimeMs < 15000) return false;
97
- } catch {}
98
- return true;
99
- }
100
-
101
- function triggerBackgroundMint(port, rotateAccount = false) {
102
- const wp = findBin("wireproxy");
103
- const wgcf = findBin("wgcf");
104
- if (!wp) return;
105
- const poolDir = getPoolDir();
106
- const slotDir = path.join(poolDir, "port-" + port);
107
- fs.mkdirSync(slotDir, { recursive: true });
108
- const lockFile = path.join(slotDir, "mint.lock");
109
- const globalLock = path.join(poolDir, "global-mint.lock");
110
- try {
111
- const st = fs.statSync(lockFile);
112
- if (Date.now() - st.mtimeMs < 20000) return;
113
- } catch {}
114
- let ownsGlobalLock = false;
115
- if (rotateAccount) {
116
- try {
117
- const gst = fs.statSync(globalLock);
118
- if (Date.now() - gst.mtimeMs < 15000) {
119
- rotateAccount = false;
120
- } else {
121
- fs.writeFileSync(globalLock, String(process.pid));
122
- ownsGlobalLock = true;
123
- }
124
- } catch {
125
- try {
126
- fs.writeFileSync(globalLock, String(process.pid), { flag: "wx" });
127
- ownsGlobalLock = true;
128
- } catch {
129
- rotateAccount = false;
130
- }
131
- }
132
- }
133
- try {
134
- fs.writeFileSync(path.join(slotDir, "burned.ts"), String(Date.now()));
135
- fs.writeFileSync(lockFile, String(process.pid));
136
- } catch {}
137
-
138
- const fb = FALLBACK_WARP_PROFILES[port] || FALLBACK_WARP_PROFILES[40191];
139
- const fallbackProfile = [
140
- "[Interface]",
141
- "PrivateKey = " + fb.priv,
142
- "Address = 172.16.0.2/32, " + fb.v6,
143
- "DNS = 1.1.1.1, 1.0.0.1, 2606:4700:4700::1111, 2606:4700:4700::1001",
144
- "MTU = 1280",
145
- "[Peer]",
146
- "PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
147
- "AllowedIPs = 0.0.0.0/0, ::/0",
148
- "Endpoint = engage.cloudflareclient.com:2408",
149
- "PersistentKeepalive = 25",
150
- "",
151
- ].join("\\n");
152
-
153
- const profilePath = path.join(slotDir, "wgcf-profile.conf");
154
- let prof = "";
155
- try {
156
- if (fs.existsSync(profilePath)) prof = fs.readFileSync(profilePath, "utf8");
157
- } catch {}
158
- if (!prof.trim()) {
159
- prof = fallbackProfile;
160
- try { fs.writeFileSync(profilePath, prof); } catch {}
161
- } else if (!prof.includes("PersistentKeepalive")) {
162
- prof = prof.trim() + "\\nPersistentKeepalive = 25\\n";
163
- try { fs.writeFileSync(profilePath, prof); } catch {}
164
- }
165
-
166
- const confPath = path.join(slotDir, "wireproxy.conf");
167
- try {
168
- fs.writeFileSync(confPath, prof.trim() + "\\n\\n[http]\\nBindAddress = 127.0.0.1:" + port + "\\n");
169
- } catch {}
170
-
171
- const tmpDir = path.join(slotDir, "tmp-mint");
172
- const proxyOrder = [40191, 40192, 40193, 40194, 40000, 40002].filter((p) => p !== port);
173
- const workerCfg = JSON.stringify({
174
- port,
175
- slotDir,
176
- tmpDir,
177
- profilePath,
178
- confPath,
179
- fallbackProfile,
180
- lockFile,
181
- globalLock,
182
- ownsGlobalLock,
183
- wp,
184
- wgcf: rotateAccount ? wgcf : null,
185
- proxyOrder,
186
- });
187
- const workerScript = [
188
- 'import { spawn, spawnSync } from "node:child_process";',
189
- 'import fs from "node:fs";',
190
- 'import path from "node:path";',
191
- 'const c = JSON.parse(process.argv[1]);',
192
- 'const nl = String.fromCharCode(10);',
193
- 'try {',
194
- ' if (c.wgcf) {',
195
- ' for (const p of [...c.proxyOrder, null]) {',
196
- ' try { fs.rmSync(c.tmpDir, { recursive: true, force: true }); } catch {}',
197
- ' fs.mkdirSync(c.tmpDir, { recursive: true });',
198
- ' const env = { ...process.env };',
199
- ' if (p) { env.HTTPS_PROXY = "http://127.0.0.1:" + p; env.HTTP_PROXY = "http://127.0.0.1:" + p; }',
200
- ' const r1 = spawnSync(c.wgcf, ["register", "--accept-tos"], { cwd: c.tmpDir, env, timeout: 10000, windowsHide: true });',
201
- ' const r2 = r1.status === 0 ? spawnSync(c.wgcf, ["generate"], { cwd: c.tmpDir, env, timeout: 8000, windowsHide: true }) : { status: 1 };',
202
- ' const tp = path.join(c.tmpDir, "wgcf-profile.conf");',
203
- ' if (r2.status === 0 && fs.existsSync(tp)) {',
204
- ' const prof = fs.readFileSync(tp, "utf8").trim() + nl + "PersistentKeepalive = 25" + nl;',
205
- ' fs.writeFileSync(c.profilePath, prof);',
206
- ' try { fs.copyFileSync(path.join(c.tmpDir, "wgcf-account.toml"), path.join(c.slotDir, "wgcf-account.toml")); } catch {}',
207
- ' fs.writeFileSync(c.confPath, prof + nl + "[http]" + nl + "BindAddress = 127.0.0.1:" + c.port + nl);',
208
- ' break;',
209
- ' }',
210
- ' }',
211
- ' try { fs.rmSync(c.tmpDir, { recursive: true, force: true }); } catch {}',
212
- ' }',
213
- ' try {',
214
- ' const oldPid = Number(fs.readFileSync(path.join(c.slotDir, "wireproxy.pid"), "utf8").trim());',
215
- ' if (oldPid > 0) process.kill(oldPid, "SIGKILL");',
216
- ' } catch {}',
217
- ' if (process.platform !== "win32") {',
218
- ' try { spawnSync("pkill", ["-9", "-f", "port-" + c.port + "/wireproxy.conf"], { timeout: 2000 }); } catch {}',
219
- ' }',
220
- ' await new Promise((r) => setTimeout(r, 200));',
221
- ' let wpChild = spawn(c.wp, ["-s", "-c", c.confPath], { cwd: c.slotDir, detached: true, stdio: "ignore", windowsHide: true });',
222
- ' if (wpChild.pid) fs.writeFileSync(path.join(c.slotDir, "wireproxy.pid"), String(wpChild.pid));',
223
- ' wpChild.unref();',
224
- ' await new Promise((r) => setTimeout(r, 350));',
225
- ' let traceOk = false;',
226
- ' for (let t = 0; t < 2 && !traceOk; t++) {',
227
- ' try {',
228
- ' const tr = await fetch("https://opencode.ai/cdn-cgi/trace", { proxy: "http://127.0.0.1:" + c.port, signal: AbortSignal.timeout(3000) });',
229
- ' if (tr.ok) traceOk = true;',
230
- ' } catch {}',
231
- ' if (!traceOk && t === 0) await new Promise((r) => setTimeout(r, 400));',
232
- ' }',
233
- ' if (!traceOk && c.fallbackProfile) {',
234
- ' fs.writeFileSync(c.profilePath, c.fallbackProfile);',
235
- ' fs.writeFileSync(c.confPath, c.fallbackProfile.trim() + nl + nl + "[http]" + nl + "BindAddress = 127.0.0.1:" + c.port + nl);',
236
- ' try { if (wpChild.pid) process.kill(wpChild.pid, "SIGKILL"); } catch {}',
237
- ' await new Promise((r) => setTimeout(r, 150));',
238
- ' wpChild = spawn(c.wp, ["-s", "-c", c.confPath], { cwd: c.slotDir, detached: true, stdio: "ignore", windowsHide: true });',
239
- ' if (wpChild.pid) fs.writeFileSync(path.join(c.slotDir, "wireproxy.pid"), String(wpChild.pid));',
240
- ' wpChild.unref();',
241
- ' }',
242
- '} catch {} finally {',
243
- ' const cleanupFiles = [path.join(c.slotDir, "burned.ts"), c.lockFile];',
244
- ' if (c.ownsGlobalLock) cleanupFiles.push(c.globalLock);',
245
- ' for (const f of cleanupFiles) {',
246
- ' try { fs.unlinkSync(f); } catch {}',
247
- ' }',
248
- '}',
249
- 'process.exit(0);',
250
- ].join("\\n");
251
- try {
252
- const child = spawn(process.execPath, ["-e", workerScript, workerCfg], {
253
- cwd: slotDir,
254
- detached: true,
255
- stdio: "ignore",
256
- windowsHide: true,
257
- });
258
- child.unref();
259
- } catch {
260
- try { fs.unlinkSync(lockFile); } catch {}
261
- }
262
- }
263
-
264
- async function buildFreeWarpHopList(strictProxy = false) {
265
- const warpPorts = [40191, 40192, 40193, 40194];
266
- for (let i = warpPorts.length - 1; i > 0; i--) {
267
- const j = Math.floor(Math.random() * (i + 1));
268
- [warpPorts[i], warpPorts[j]] = [warpPorts[j], warpPorts[i]];
269
- }
270
- const alivePorts = [];
271
- for (const p of warpPorts) {
272
- if (isSlotAlive(p)) {
273
- alivePorts.push(p);
274
- } else {
275
- triggerBackgroundMint(p);
276
- }
277
- }
278
- if (alivePorts.length === 0) {
279
- const base = ["http://127.0.0.1:40191", "http://127.0.0.1:40192", "http://127.0.0.1:40193", "http://127.0.0.1:40194"];
280
- return strictProxy ? base : [...base, undefined];
281
- }
282
- const freshLive = [];
283
- const staleLive = [];
284
- const ctrls = new Map();
285
- let graceResolve;
286
- const gracePromise = new Promise((r) => { graceResolve = r; });
287
- let graceStarted = false;
288
- const checks = alivePorts.map(async (p) => {
289
- const ctrl = new AbortController();
290
- ctrls.set(p, ctrl);
291
- const timer = setTimeout(() => ctrl.abort(), 1800);
292
- try {
293
- const r = await fetch("https://opencode.ai/cdn-cgi/trace", {
294
- proxy: "http://127.0.0.1:" + p,
295
- signal: ctrl.signal,
296
- });
297
- if (r.ok) {
298
- if (isSlotFresh(p)) freshLive.push("http://127.0.0.1:" + p);
299
- else staleLive.push("http://127.0.0.1:" + p);
300
- if (!graceStarted) {
301
- graceStarted = true;
302
- setTimeout(graceResolve, 250);
303
- }
304
- }
305
- } catch {} finally {
306
- clearTimeout(timer);
307
- }
308
- });
309
- await Promise.race([Promise.all(checks), gracePromise]);
310
- const liveSet = new Set([...freshLive, ...staleLive]);
311
- for (const [p, ctrl] of ctrls.entries()) {
312
- if (!liveSet.has("http://127.0.0.1:" + p)) {
313
- ctrl.abort();
314
- triggerBackgroundMint(p, false);
315
- }
316
- }
317
- const verified = [...freshLive, ...staleLive];
318
- if (verified.length > 0) return strictProxy ? verified : [...verified, undefined];
319
- if (strictProxy) throw new Error("Strict proxy enabled: no healthy Free WARP hop available");
320
- return [undefined];
321
- }
322
-
323
- function buildPaidProxyRotation(proxy, strictProxy = false) {
324
- if (!proxy || !proxy.includes("gw.dataimpulse.com")) return strictProxy && proxy ? [proxy] : [proxy, undefined];
325
- const base823 = proxy.replace(/:\\d+\\/?$/, ":823/");
326
- const ccs = ["sg", "my", "id", "tw", "hk"];
327
- const list = [base823];
328
- for (let i = 0; i < 3; i++) {
329
- const cc = ccs[(i + Math.floor(Math.random() * ccs.length)) % ccs.length];
330
- list.push(base823.replace(/__cr\\.[a-z]+/i, "__cr." + cc));
331
- }
332
- list.push(proxy);
333
- if (!strictProxy) list.push(undefined);
334
- return list;
335
- }
336
-
337
- function extractWarpPort(hopProxy) {
338
- if (typeof hopProxy !== "string") return null;
339
- try {
340
- const u = new URL(hopProxy);
341
- if (u.hostname === "127.0.0.1" && /^4019\\d$/.test(u.port)) return Number(u.port);
342
- } catch {}
343
- return null;
344
- }
345
-
346
- let headerSent = false;
347
- try {
348
- const isOc = typeof input.url === "string" && input.url.includes("opencode.ai/inference/");
349
- const strictProxy = input.strictProxy === true;
350
- const useFreeWarp = isOc && (await isFreeWarpEnabled(input.proxy));
351
- const proxies = !isOc
352
- ? [input.proxy]
353
- : useFreeWarp
354
- ? await buildFreeWarpHopList(strictProxy)
355
- : buildPaidProxyRotation(input.proxy, strictProxy);
356
- let res = null;
357
- let lastErr = null;
358
- for (let i = 0; i < proxies.length; i++) {
359
- const hopProxy = proxies[i];
360
- const headers = { ...(input.headers || {}) };
361
- if (isOc && (i > 0 || !headers["x-opencode-session"])) {
362
- const ses = genSes(i + 1 + Math.floor(Math.random() * 10000));
363
- headers["x-opencode-session"] = ses;
364
- headers["x-opencode-session-id"] = ses;
365
- headers["x-session-affinity"] = ses;
366
- headers["x-session-id"] = ses;
367
- }
368
- const ctrl = new AbortController();
369
- const timer = isOc ? setTimeout(() => ctrl.abort(new Error("hop timeout")), 75000) : null;
370
- try {
371
- res = await fetch(input.url, {
372
- method: input.method,
373
- headers,
374
- body: input.body ?? undefined,
375
- proxy: hopProxy ?? undefined,
376
- signal: ctrl.signal,
377
- });
378
- clearTimeout(timer);
379
- if (!isOc || (res.status !== 429 && res.status !== 502 && res.status !== 503 && res.status !== 504) || i === proxies.length - 1) {
380
- break;
381
- }
382
- await res.body?.cancel?.().catch(() => {});
383
- const warpPort = extractWarpPort(hopProxy);
384
- if (warpPort) triggerBackgroundMint(warpPort, res.status === 429);
385
- } catch (e) {
386
- clearTimeout(timer);
387
- const warpPort = extractWarpPort(hopProxy);
388
- if (warpPort) triggerBackgroundMint(warpPort, false);
389
- lastErr = e;
390
- if (!isOc || i === proxies.length - 1) throw e;
391
- }
392
- }
393
- if (!res && lastErr) throw lastErr;
394
- out.write(JSON.stringify({ status: res.status, statusText: res.statusText, headers: [...res.headers.entries()] }) + "\\n");
395
- headerSent = true;
396
- await out.flush();
397
- if (res.body) {
398
- for await (const chunk of res.body) {
399
- out.write(chunk);
400
- await out.flush();
401
- }
402
- }
403
- } catch (error) {
404
- const msg = String(error?.message || error);
405
- if (!headerSent) {
406
- out.write(JSON.stringify({ error: msg }) + "\\n");
407
- } else {
408
- try { process.stderr.write(msg + "\\n"); } catch {}
409
- await out.end();
410
- process.exit(1);
411
- }
412
- }
413
- await out.end();
414
- process.exit(0);
415
- `,s=new Set(["content-encoding","content-length","transfer-encoding"]);function t(a){let b=a?.reason;if(b instanceof Error&&"AbortError"===b.name)return b;let c=Error(b instanceof Error?b.message:"Request aborted");return c.name="AbortError",c}let u="2.2.24",v=[40191,40192,40193,40194],w={40191:{priv:"YFWmzL3aEEJTmsm3xGxw5RcFUBuVTaozKHQ9DIgn60s=",v6:"2606:4700:110:8b49:3fb7:3c26:8ff8:98e1/128"},40192:{priv:"WJRA/C/DXfB4VDf9kruOegcomImBMzwyvLPyu+B4wkI=",v6:"2606:4700:110:8130:f4b:9927:12cd:c3ad/128"},40193:{priv:"WNZQqGrSR5GpZFipeCyafrwXxjev4dVHeLuCW/atX3Q=",v6:"2606:4700:110:88a3:ab54:194c:cb12:d546/128"},40194:{priv:"mC/qISnHwznBOWuA104cx5IobJkQVi7dG068LWegq3Y=",v6:"2606:4700:110:8392:a0c1:fc:a96b:f7ca/128"}};function x(){let a="win32"===process.platform,b=o().homedir();return process.env.DATA_DIR||(a?q().join(process.env.APPDATA||b,"zevai"):q().join(b,".zevai"))}function y(){return q().join(x(),"bin")}function z(){return q().join(x(),"free-warp-pool")}function A(a){let b="win32"===process.platform?`${a}.exe`:a,c=o().homedir(),d=[q().join(y(),b),q().join(c,".local","bin",b),"/opt/homebrew/bin/"+b,"/usr/local/bin/"+b,"/usr/bin/"+b];for(let a of String(process.env.PATH||"").split(q().delimiter))a&&d.push(q().join(a,b));for(let a of d)try{if(m().statSync(a).isFile())return a}catch{}return null}async function B(){let a,b=A("wgcf"),c=A("wireproxy");if(b&&c)return{wgcfBin:b,wireproxyBin:c};let d=y();m().mkdirSync(d,{recursive:!0});let{osName:e,archName:f,isWin:g}=(a=process.platform,{osName:"darwin"===a?"darwin":"win32"===a?"windows":"linux",archName:"arm64"===process.arch?"arm64":"amd64",isWin:"win32"===a});if(!b){let a=`https://github.com/ViRb3/wgcf/releases/download/v${u}/wgcf_${u}_${e}_${f}${g?".exe":""}`,c=q().join(d,g?"wgcf.exe":"wgcf"),h=await fetch(a);if(h.ok){let a=Buffer.from(await h.arrayBuffer());m().writeFileSync(c,a),g||m().chmodSync(c,493),b=c}}if(!c){let a=`https://github.com/octeep/wireproxy/releases/download/v1.0.9/wireproxy_${e}_${f}.tar.gz`,b=q().join(d,"wireproxy.tar.gz"),h=q().join(d,g?"wireproxy.exe":"wireproxy"),i=await fetch(a);if(i.ok){let a=Buffer.from(await i.arrayBuffer());m().writeFileSync(b,a),(0,k.spawnSync)("tar",["-xzf",b,"-C",d],{windowsHide:!0}),!g&&m().existsSync(h)&&m().chmodSync(h,493);try{m().unlinkSync(b)}catch{}m().existsSync(h)&&(c=h)}}return{wgcfBin:b,wireproxyBin:c}}async function C(a=0,{forceNewAccount:b=!1}={}){let{wgcfBin:c,wireproxyBin:d}=await B();if(!d)return null;let e=v[a%v.length]||40191,f=q().join(z(),`port-${e}`);m().mkdirSync(f,{recursive:!0});let g=q().join(f,"mint.lock"),h=!1;try{let a=m().statSync(g);if(Date.now()-a.mtimeMs<2e4)return`http://127.0.0.1:${e}`;m().writeFileSync(g,String(process.pid)),h=!0}catch{try{m().writeFileSync(g,String(process.pid),{flag:"wx"}),h=!0}catch{return`http://127.0.0.1:${e}`}}try{var i;try{m().unlinkSync(q().join(f,"burned.ts"))}catch{}let a=q().join(f,"wgcf-profile.conf"),g="";if(!b&&m().existsSync(a))g=m().readFileSync(a,"utf8");else if(c){let b=q().join(f,"tmp-mint");try{m().rmSync(b,{recursive:!0,force:!0})}catch{}for(let a of(m().mkdirSync(b,{recursive:!0}),[e,...v,40002,4e4,null])){try{m().rmSync(b,{recursive:!0,force:!0})}catch{}m().mkdirSync(b,{recursive:!0});let d={...process.env};a&&(d.HTTPS_PROXY=`http://127.0.0.1:${a}`,d.HTTP_PROXY=`http://127.0.0.1:${a}`);let e=(0,k.spawnSync)(c,["register","--accept-tos"],{cwd:b,env:d,timeout:1e4,windowsHide:!0}),h=0===e.status?(0,k.spawnSync)(c,["generate"],{cwd:b,env:d,timeout:8e3,windowsHide:!0}):{status:1},i=q().join(b,"wgcf-profile.conf");if(0===h.status&&m().existsSync(i)){g=m().readFileSync(i,"utf8");try{m().copyFileSync(q().join(b,"wgcf-account.toml"),q().join(f,"wgcf-account.toml"))}catch{}break}}try{m().rmSync(b,{recursive:!0,force:!0})}catch{}!g.trim()&&m().existsSync(a)&&(g=m().readFileSync(a,"utf8"))}let h=q().join(f,"wireproxy.pid");try{let a=Number(m().readFileSync(h,"utf8").trim());a>0&&process.kill(a,"SIGKILL")}catch{}if("win32"!==process.platform&&e)try{(0,k.spawnSync)("pkill",["-9","-f",`port-${e}/wireproxy.conf`],{timeout:2e3})}catch{}if(g.trim()){let a;i=g,(a=String(i||"").trim()).includes("PersistentKeepalive")||(a+="\nPersistentKeepalive = 25"),g=a+"\n"}else{let a;a=w[e]||w[40191],g=`[Interface]
416
- PrivateKey = ${a.priv}
417
- Address = 172.16.0.2/32, ${a.v6}
418
- DNS = 1.1.1.1, 1.0.0.1, 2606:4700:4700::1111, 2606:4700:4700::1001
419
- MTU = 1280
420
- [Peer]
421
- PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
422
- AllowedIPs = 0.0.0.0/0, ::/0
423
- Endpoint = engage.cloudflareclient.com:2408
424
- PersistentKeepalive = 25
425
- `}m().writeFileSync(a,g);let j=`${g}
426
- [http]
427
- BindAddress = 127.0.0.1:${e}
428
- `,l=q().join(f,"wireproxy.conf");m().writeFileSync(l,j);let n=(0,k.spawn)(d,["-s","-c",l],{cwd:f,detached:!0,stdio:"ignore",windowsHide:!0});if(n.pid&&m().writeFileSync(q().join(f,"wireproxy.pid"),String(n.pid)),n.unref(),"win32"!==process.platform)try{(0,k.spawnSync)("curl",["-s","-m","3","-x",`http://127.0.0.1:${e}`,"https://opencode.ai/cdn-cgi/trace"],{timeout:3500})}catch{}return`http://127.0.0.1:${e}`}finally{if(h)try{m().unlinkSync(g)}catch{}}}function D(a){let b=q().join(z(),`port-${a}`,"wireproxy.pid");try{let a=Number(m().readFileSync(b,"utf8").trim());if(a>0)return process.kill(a,0),!0}catch{}return!1}let E=null;async function F(){let a=v.filter(D).length;if(!(a>=v.length))return E||(E=(async()=>{try{await B();for(let b=0;b<v.length;b++){let c=v[b];D(c)||(0===a&&0===b?await C(b):C(b).catch(()=>{}))}}catch{}finally{E=null}})())}var G=c(39609),H=c(36942),I=c(41004);let J=new Set,K=/^opencode\/[a-z0-9-]+\/(\d+)\.\d+\.\d+\/[a-z0-9-]+$/i,L=0,M=0;function N(a){let b=Date.now();b!==L&&(L=b,M=0),M++;let c=4096n*BigInt(b)+BigInt(M),d=a?~c:c;return(a?"ses_":"msg_")+Array.from({length:6},(a,b)=>Number(d>>BigInt(40-8*b)&255n).toString(16).padStart(2,"0")).join("")+Array.from(e().getRandomValues(new Uint8Array(14)),a=>"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"[a%62]).join("")}let O=/^ses_[0-9a-f]{12}[0-9A-Za-z]{14}$/,P=new Map,Q=new Map;function R(a,b,c){return a.size>=1e3&&a.delete(a.keys().next().value),a.set(b,{sessionId:c,lastUsed:Date.now()}),c}function S(a,b){let c=a.get(b);return c?Date.now()-c.lastUsed>(I.v1?.sessionTtlMs||18e5)?(a.delete(b),null):(c.lastUsed=Date.now(),a.delete(b),a.set(b,c),c.sessionId):null}function T(a,b){if(!a||"object"!=typeof a)return null;for(let[c,d]of Object.entries(a))if(c.toLowerCase()===b&&"string"==typeof d&&d.trim())return d.trim();return null}function U(a,b){let c,d=T(b?.rawHeaders,"x-opencode-session");if(d&&O.test(d))return d;let f=d||("string"==typeof a?.session_id?a.session_id.trim():"")||("string"==typeof a?.conversation_id?a.conversation_id.trim():"")||("string"==typeof a?.metadata?.user_id?a.metadata.user_id.trim():"");return f?function(a,b=""){if("string"==typeof a&&O.test(a.trim()))return a.trim();let c=`opencode:ses:${b||"generic"}:${a||""}`;return S(P,c)||R(P,c,N(!0))}(f):S(Q,c=function(a){let b=a?.connectionId||a?.id;if(b)return`opencode:conn:${String(b).slice(0,128)}`;let c=a?.apiKey||a?.accessToken;return c?`opencode:auth:${e().createHash("sha256").update(String(c)).digest("hex").slice(0,32)}`:"opencode:default"}(b))||R(Q,c,N(!0))}let V=/^<openbot-developer-instructions>[\s\S]*?<\/openbot_saved_logins>\s*/,W=["path","filePath","file_path","command","pattern","query","url"];function X(a){let b={_omitted_bytes:Buffer.byteLength(a,"utf8")};try{let c=JSON.parse(a);if(c&&"object"==typeof c&&!Array.isArray(c))for(let a of W)"string"==typeof c[a]&&c[a]&&(b[a]=c[a].slice(0,180))}catch{}return JSON.stringify(b)}function Y(a,b,c,d,e=!0){if("string"!=typeof a||a.length<=b)return a;if(d>0){let b=e?`${Buffer.byteLength(a,"utf8")-c-d} bytes`:"omitted";return`${a.slice(0,c)}
429
- ...[omitted ${b}]...
430
- ${a.slice(-d)}`}return`${a.slice(0,c)}
431
- ...[omitted]...`}function Z(a,b,c,d,e=!0){if(!a)return!1;if("string"==typeof a.content){let f=Y(a.content,b,c,d,e);return f!==a.content&&(a.content=f,!0)}if(Array.isArray(a.content)){let f=!1;return a.content=a.content.map(a=>a&&"object"==typeof a?"string"==typeof a.text&&a.text.length>b?(f=!0,{...a,text:Y(a.text,b,c,d,e)}):"image_url"===a.type&&"string"==typeof a.image_url?.url&&a.image_url.url.startsWith("data:")&&a.image_url.url.length>512?(f=!0,{type:"text",text:"[historical image omitted during compaction]"}):a:a),f}return!1}let $=new Set(["read","shell"]);function _(a){if(!a||"object"!=typeof a||Array.isArray(a))return a;let b={...a};if("string"==typeof b.description&&b.description.length>80&&(b.description=b.description.slice(0,80)),b.properties&&"object"==typeof b.properties&&!Array.isArray(b.properties)){let a={};for(let[c,d]of Object.entries(b.properties))if(d&&"object"==typeof d&&!Array.isArray(d)){let b={...d};"string"==typeof b.description&&b.description.length>60&&(b.description=b.description.slice(0,60)),b.properties&&(b.properties=_(b).properties),b.items&&"object"==typeof b.items&&(b.items=_(b.items)),a[c]=b}else a[c]=d;b.properties=a}return b}class aa extends f.Hv{constructor(){super("opencode",g.xq.opencode)}transformRequest(a,b){let c={...b};Array.isArray(c.messages)&&c.messages.some(a=>a&&"name"in a)&&(c.messages=c.messages.map(a=>{if(!a||!("name"in a))return a;let{name:b,...c}=a;return c}));let d=(0,j.Ke)(c,!1,{claude:J.has(a)});c.stream=!0,"none"===c.tool_choice&&delete c.tool_choice;let e=(0,h.Z)({provider:this.provider,model:a,body:(0,i.f)(a,c)});return!function(a,b=154e3){if(!Array.isArray(a?.messages)||0===a.messages.length)return;let c=!1,d=[];for(let b of a.messages){if(!b||"object"!=typeof b){d.push(b);continue}let a={...b};if("user"===a.role&&"string"==typeof a.content&&V.test(a.content))if(c){let b=a.content.replace(V,"").trim()||"continue";a.content=b}else c=!0;d.push(a)}a.messages=d;let e=Buffer.byteLength(JSON.stringify(a),"utf8");if(e<=b)return;let f=[];for(let b of a.messages){if(b?.role==="user"&&f.length>=2&&f[f.length-1]?.role==="user"&&"string"==typeof b.content&&b.content.length<256&&"string"==typeof f[f.length-1]?.content&&f[f.length-1].content.length<256&&b.content===f[f.length-1].content){f[f.length-1]=b;continue}f.push(b)}if(a.messages=f,(e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b||(!function(a,b=!1){if(!Array.isArray(a?.tools)||0===a.tools.length)return;let c=new Set;if(b&&Array.isArray(a.messages)){for(let b of a.messages)if(Array.isArray(b?.tool_calls))for(let a of b.tool_calls)a?.function?.name&&c.add(a.function.name)}a.tools=a.tools.filter(a=>{if(!b)return!0;let d=a?.function?.name||a?.name||"";return!d.startsWith("computer_use_")||!!c.has(d)}).map(a=>{if(!a||"object"!=typeof a)return a;let b=a.function&&"object"==typeof a.function?a.function:null,c=(b?b.name:a.name)||"";if($.has(c))return a;let d="skill"===c?1800:140;if(b){let c={...b};return"string"==typeof c.description&&c.description.length>d&&(c.description=c.description.slice(0,d)),c.parameters&&(c.parameters=_(c.parameters)),{...a,function:c}}let e={...a};return"string"==typeof e.description&&e.description.length>d&&(e.description=e.description.slice(0,d)),e.parameters&&(e.parameters=_(e.parameters)),e})}(a,!0),(e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b))return;let g=Math.max(1,a.messages.length-18);for(let c=1;c<g&&e>b;c++){let b=a.messages[c];if(b?.role==="assistant"&&"string"==typeof b.reasoning_content&&b.reasoning_content.length>1){let a=Buffer.byteLength(b.reasoning_content,"utf8");b.reasoning_content=".",e-=Math.max(0,a-1)}}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;for(let c=1;c<g&&e>b;c++){let b=a.messages[c];b&&("tool"===b.role||"user"===b.role&&c>3)&&Z(b,2400,1400,700,!0)}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;let h=Math.max(1,a.messages.length-10);for(let c=1;c<h&&e>b;c++){let b=a.messages[c];b&&"system"!==b.role&&(Z(b,1400,850,400,!0),"assistant"===b.role&&Array.isArray(b.tool_calls)&&(b.tool_calls=b.tool_calls.map(a=>{let b=a?.function?.arguments;return"string"!=typeof b||b.length<=1200?a:{...a,function:{...a.function,arguments:X(b)}}})))}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;for(let c=1;c<h&&e>b;c++){let b=a.messages[c];b&&"system"!==b.role&&("tool"===b.role?Z(b,650,420,180,!1):"assistant"===b.role&&Z(b,500,320,0,!1))}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;let i=a.messages.findIndex(a=>a&&"system"!==a.role);i<0&&(i=1);let j=a.messages[i]?.role==="user"?i+1:i;for(;e>b&&j<a.messages.length;){let b=-1;for(let c=a.messages.length-1;c>=0;c--)if(a.messages[c]?.role==="user"){b=c;break}if(j===b&&b>i&&(j=b+1)>=a.messages.length)break;let c=function(a,b){let c=1;for("user"===a[b]?.role&&a[b+1]?.role==="assistant"&&c++;b+c<a.length&&a[b+c]?.role==="tool";)c++;return c}(a.messages,j);if(a.messages.length-(j+c)<2)break;b>j&&j+c>b?a.messages.splice(j,b-j):a.messages.splice(j,c),e=Buffer.byteLength(JSON.stringify(a),"utf8")}if(e>b)for(let[c,d,f]of[[4e3,2e3,1e3],[1e3,500,300],[300,150,80]]){for(let g=Math.max(1,a.messages.length-18);g<a.messages.length&&e>b;g++){let h=a.messages[g];h&&"system"!==h.role&&(Z(h,c,d,f,!0)&&(e=Buffer.byteLength(JSON.stringify(a),"utf8")),e>b&&"assistant"===h.role&&Array.isArray(h.tool_calls)&&(h.tool_calls=h.tool_calls.map(a=>{let b=a?.function?.arguments;return"string"!=typeof b||b.length<=c?a:{...a,function:{...a.function,arguments:X(b)}}}),e=Buffer.byteLength(JSON.stringify(a),"utf8")))}if(e<=b)break}}(e),d?.size&&(0,j.sj)(e,d),e}buildUrl(a){let b="https://opencode.ai";return J.has(a)?`${b}/inference/v1/messages`:`${b}/inference/v1/chat/completions`}buildHeaders(a,b=!0,c){let d,e,f=U(c?.body,a);return{"Content-Type":"application/json",Authorization:"Bearer public","User-Agent":(e=(d=T(a?.rawHeaders,"user-agent")||"").match(K))&&Number(e[1])>=2?d:H.B,"x-opencode-client":T(a?.rawHeaders,"x-opencode-client")||"cli","x-opencode-session":f,"x-opencode-session-id":f,"x-session-affinity":f,"x-session-id":f,"x-opencode-project":T(a?.rawHeaders,"x-opencode-project")||"global",Accept:b?"text/event-stream":"*/*"}}async fetchUpstream(a,b,c){let d=(0,G.resolveProxyUrl)(a,c),e=c?.strictProxy===!0;"string"==typeof d&&d.includes("mode=free-warp")&&await F();let f=await function(a,{method:b="GET",headers:c={},body:d=null,signal:e=null}={},{proxyUrl:f=null,strictProxy:g=!1}={}){if(e?.aborted)return Promise.reject(t(e));let h=function(){let a=process.env.ZEVAI_BUN_BIN?.trim();if(a)return a;let b="win32"===process.platform,c=o().homedir(),d=b?"bun.exe":"bun",e=b?[q().join(c,".bun","bin",d),q().join(q().dirname(process.execPath),d)]:[q().join(c,".bun","bin",d),q().join(q().dirname(process.execPath),d),q().join(c,".local","bin",d),"/opt/homebrew/bin/bun","/usr/local/bin/bun","/usr/bin/bun",q().join(c,"Library","Application Support","OpenBot","provider-runtimes","bun","darwin-arm64","1.4.4","bin",d)],f=process.env.DATA_DIR||(b?q().join(process.env.APPDATA||c,"zevai"):q().join(c,".zevai")),g=q().join(f,"runtime","node_modules");for(let a of(e.push(q().join(g,"bun","bin","bun.exe"),q().join(g,".bin",d)),e))if(m().existsSync(a))return a;return d}(),i=JSON.stringify({url:String(a),method:b,headers:c instanceof Headers?Object.fromEntries(c.entries()):c,body:null==d?null:"string"==typeof d?d:d instanceof Uint8Array?Buffer.from(d).toString("utf8"):String(d),proxy:f||null,strictProxy:!!g});return new Promise((a,c)=>{let d=(0,k.spawn)(h,["-e",r],{stdio:["pipe","pipe","pipe"]}),f=!1,g=Buffer.alloc(0),j=null,l="",m=a=>{if(f){if(j){try{j.error(a)}catch{}j=null}}else f=!0,c(a)},n=()=>{d.killed||d.kill("SIGKILL"),m(t(e))};e?.addEventListener("abort",n,{once:!0});let o=()=>e?.removeEventListener("abort",n),p=new ReadableStream({start(a){j=a},pull(){d.stdout.resume()},cancel(){j=null,o(),d.killed||d.kill("SIGKILL")}},{highWaterMark:16}),q=a=>{j&&0!==a.length&&(j.enqueue(new Uint8Array(a)),null!==j.desiredSize&&j.desiredSize<=0&&d.stdout.pause())};d.stdout.on("data",c=>{if(f)return void q(c);let d=(g=Buffer.concat([g,c])).indexOf(10);if(-1===d)return;let e=g.subarray(0,d).toString("utf8"),h=g.subarray(d+1);g=Buffer.alloc(0),((c,d)=>{let e;try{e=JSON.parse(c)}catch{m(Error(`Bun fetch returned an invalid header: ${c.slice(0,200)}`));return}if(e.error)return m(Error(`Bun fetch failed: ${e.error}`));let g=new Headers;for(let[a,b]of e.headers||[])s.has(a.toLowerCase())||g.append(a,b);f=!0,a(new Response(![101,204,205,304].includes(e.status)&&"HEAD"!==b?p:null,{status:e.status,statusText:e.statusText||"",headers:g})),q(d)})(e,h)}),d.stderr.on("data",a=>{l=(l+a.toString("utf8")).slice(-2048)}),d.on("error",a=>{o(),m(Error("ENOENT"===a.code?`Bun runtime not found (${h}). Install Bun from https://bun.sh or set ZEVAI_BUN_BIN to its path.`:`Bun fetch could not start: ${a.message}`))}),d.on("close",a=>{(o(),f)?j&&(0===a?j.close():j.error(Error(`Bun fetch exited with code ${a} mid-response${l?`: ${l.trim()}`:""}`)),j=null):m(Error(`Bun fetch exited with code ${a} before responding${l?`: ${l.trim()}`:""}`))}),d.stdin.on("error",()=>{}),d.stdin.end(i)})}(a,b,{proxyUrl:d,strictProxy:e});if(429===f.status){var g=b?.headers?.["x-opencode-session"];if(g)for(let a of[P,Q])for(let[b,c]of a.entries())c?.sessionId===g&&a.delete(b);if(f.headers?.has?.("retry-after")){let a=new Headers(f.headers);return a.set("retry-after","2"),new Response(f.body,{status:f.status,statusText:f.statusText,headers:a})}}return f}}},60210:(a,b,c)=>{c.d(b,{HR:()=>function a(b,c){if(!c?.size||!b)return b;if(Array.isArray(b))return b.map(b=>a(b,c));if("object"!=typeof b)return b;let d=b,e=(a,c)=>{d===b&&(d={...b}),d[a]=c};if("content_block_start"===b.type){let a=b.content_block;a?.type==="tool_use"&&"string"==typeof a.name&&c.has(a.name)&&e("content_block",{...a,name:c.get(a.name)})}Array.isArray(b.content)&&e("content",b.content.map(a=>a?.type==="tool_use"&&"string"==typeof a.name&&c.has(a.name)?{...a,name:c.get(a.name)}:a)),Array.isArray(b.choices)&&e("choices",b.choices.map(a=>{let b=!1,d={...a};for(let e of["delta","message"]){let f=a?.[e];if(!f||!Array.isArray(f.tool_calls)||0===f.tool_calls.length)continue;let g=f.tool_calls.map(a=>{let d=a?.function?.name;return"string"==typeof d&&c.has(d)?(b=!0,{...a,function:{...a.function,name:c.get(d)}}):a});d[e]={...f,tool_calls:g}}return b?d:a})),Array.isArray(b.output)&&e("output",b.output.map(a=>a?.type==="function_call"&&"string"==typeof a.name&&c.has(a.name)?{...a,name:c.get(a.name)}:a));let f=b.item;return f?.type==="function_call"&&"string"==typeof f.name&&c.has(f.name)&&e("item",{...f,name:c.get(f.name)}),d},Ke:()=>v,g4:()=>x,sj:()=>w});var d=c(48161),e=c.n(d),f=c(76760),g=c.n(f);let h=["read","shell"],i={read:{description:"Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",parameters:{type:"object",properties:{path:{type:"string",description:"File or directory to read"},offset:{type:"integer",minimum:0,description:"The line or directory entry to start reading from (1-based)"},limit:{type:"integer",minimum:0,description:"The maximum number of lines or directory entries to read (defaults to and capped at 2000)"}},required:["path"],additionalProperties:!1}},shell:{description:"Execute a shell command and return its output. Commands run on Linux using bash. Quote file paths containing spaces or special characters. Prefer dedicated tools over shell commands when possible. When output is large, the full result is saved to a file and a truncated preview is returned. Rely on automatic truncation unless filtering the output is more useful. Commands accept an optional timeout, background commands have no timeout by default. Background commands return immediately, and you will be notified when they complete.",parameters:{type:"object",properties:{command:{type:"string",description:"Shell command string to execute"},workdir:{type:"string",description:"Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."},timeout:{type:"integer",minimum:0,description:"Timeout in milliseconds. Set to 0 to disable the timeout. Defaults to 120000 for foreground commands. Background commands have no timeout by default."},background:{type:"boolean",description:"Run the command in the background and return immediately (useful for dev servers and long-running builds). You do not need to use '&' at the end of the command when using this parameter. You will be notified when it completes. DO NOT poll for completion."}},required:["command"],additionalProperties:!1}}},j=new WeakMap;function k(a){let b=String(a??"").trim();return h.includes(b)?b:""}function l(a){if(!a||"object"!=typeof a||Array.isArray(a))return"";if("string"==typeof a.name&&a.name.trim())return a.name.trim();let b=a.function;return b&&"object"==typeof b&&!Array.isArray(b)&&"string"==typeof b.name?b.name.trim():""}function m(a){let b=a?.function;return b&&"object"==typeof b&&!Array.isArray(b)?b:null}function n(a,b){let c=m(a);return c?{...a,function:{...c,name:b}}:{...a,name:b}}function o(a){return new Map([...a].map(([a,b])=>[b,a]))}let p="<env>",q=g().join(e().tmpdir(),"opencode"),r=process.cwd(),s=["Here is some useful information about the environment you are running in:",p,` Working directory: ${r}`,` Workspace root folder: ${r}`," Is directory a git repo: no",` Platform: ${process.platform}`,` Prefer ${q} over generic system temporary directories such as /tmp; it is pre-created and approved for external access.`,"</env>"].join("\n");function t(a){return"string"==typeof a?a.includes(p):!!Array.isArray(a)&&a.some(a=>"string"==typeof a?.text&&a.text.includes(p))}function u(a,b){if("string"==typeof a)return a.trim()?`${a}
432
-
433
- ${b}`:b;let c=Array.isArray(a)?[...a]:[];for(let a=c.length-1;a>=0;a--){let d=c[a];if("string"==typeof d?.text){let e=d.text.trim();return c[a]={...d,text:e?`${d.text}
434
-
435
- ${b}`:b},c}}return[...c,{type:"text",text:b}]}function v(a,b,{claude:c=!1}={}){if(!a||"object"!=typeof a)return new Map;let{tools:d,map:e}=function(a){let b=new Map;if(!Array.isArray(a)||0===a.length)return{tools:a,map:b};let c=new Set(a.map(l)),d=new Set,e=[];for(let f of a){if(!f||"object"!=typeof f||Array.isArray(f)){e.push(f);continue}let a=l(f),g=k(a);if(!g){if(function(a){if("edit"!==l(a))return!1;let b=a&&(m(a)||a),c=b?.parameters?.properties;return!!(!c||"object"!=typeof c||Array.isArray(c))||!("oldString"in c&&"newString"in c)}(f)){let d=`${a}_client`;for(let b=2;c.has(d);b++)d=`${a}_client${b}`;c.add(d),b.set(d,a),e.push(n(f,d));continue}e.push(f);continue}if(d.has(g))continue;if(d.add(g),function(a,b){let c=a&&(m(a)||a),d=i[b];return!!c&&c.description===d.description&&JSON.stringify(c.parameters)===JSON.stringify(d.parameters)}(f,g)){e.push(f);continue}if(function(a,b){let c=a&&(m(a)||a),d=c?.parameters?.properties;if(!d||"object"!=typeof d||Array.isArray(d))return!1;let e=Object.keys(i[b].parameters.properties||{}),f=Object.keys(d);return!f.some(a=>!e.includes(a))&&i[b].parameters.required.every(a=>f.includes(a))}(f,g)){e.push(function(a,b){let{description:c,parameters:d}=i[b],e=m(a);return e?{...a,function:{...e,description:c,parameters:d}}:{...a,description:c,parameters:d}}(f,g));continue}let h=`${g}_client`;for(let a=2;c.has(h);a++)h=`${g}_client${a}`;c.add(h),b.set(h,g),e.push(n(f,h))}return{tools:e,map:b}}(a.tools);a.tools=Array.isArray(d)?d:[];let f=function(a,b){let c=[];if(!Array.isArray(a))return c;for(let d of h){if(a.some(a=>k(l(a))===d))continue;let{description:e,parameters:f}=i[d];a.push(b?{type:"function",name:d,description:e,parameters:f,strict:!1}:{type:"function",function:{name:d,description:e,parameters:f}}),c.push(d)}return c}(a.tools,b);return!function(a,b){if(!a||"object"!=typeof a||!b?.size)return;let c=a.tool_choice;if(!c||"object"!=typeof c||Array.isArray(c))return;let d=o(b);if("string"==typeof c.name){let b=d.get(c.name.trim());b&&(a.tool_choice={...c,name:b});return}let e=c.function;if(e&&"object"==typeof e&&!Array.isArray(e)&&"string"==typeof e.name){let b=d.get(e.name.trim());b&&(a.tool_choice={...c,function:{...e,name:b}})}}(a,e),!function(a,b){if(!a||"object"!=typeof a||!b?.size)return;let c=o(b);Array.isArray(a.input)&&(a.input=a.input.map(a=>a?.type==="function_call"&&c.has(a.name)?{...a,name:c.get(a.name)}:a)),Array.isArray(a.messages)&&(a.messages=a.messages.map(a=>{let b=a;return Array.isArray(a?.tool_calls)&&(b={...b,tool_calls:a.tool_calls.map(a=>c.has(a?.function?.name)?{...a,function:{...a.function,name:c.get(a.function.name)}}:a)}),a?.role==="assistant"&&Array.isArray(a?.content)&&a.content.some(a=>a?.type==="tool_use"&&c.has(a.name))&&(b={...b,content:a.content.map(a=>a?.type==="tool_use"&&c.has(a.name)?{...a,name:c.get(a.name)}:a)}),b}))}(a,e),f.length&&function(a,b,c,d=!1){let e=c.map(a=>`\`${a}\``).join(" or "),f=c.length>1?`Do not call the ${e} tools; they are placeholders that do nothing. Use the other tools you have been given instead.`:`Do not call the ${e} tool; it is a placeholder that does nothing. Use the other tools you have been given instead.`;if(b){a.instructions="string"==typeof a.instructions&&a.instructions.trim()?`${a.instructions}
436
-
437
- ${f}`:f;return}if(d||void 0!==a.system){a.system=u(a.system,f);return}if(!Array.isArray(a.messages))return;let g=a.messages[0];g?.role==="system"?a.messages=[{...g,content:u(g.content,f)},...a.messages.slice(1)]:a.messages=[{role:"system",content:f},...a.messages]}(a,b,f,c),!function(a,b,{claude:c=!1}={}){try{if(!a||"object"!=typeof a)return!1;if(b){if(void 0!==a.instructions&&"string"!=typeof a.instructions||t(a.instructions))return!1;return a.instructions="string"==typeof a.instructions&&a.instructions.trim()?`${a.instructions}
438
-
439
- ${s}`:s,!0}if(c||void 0!==a.system){if(t(a.system))return!1;return a.system=u(a.system,s),!0}if(!Array.isArray(a.messages))return!1;let d=a.messages.findIndex(a=>a?.role==="system");if(d>=0){let b=a.messages[d];if(t(b.content))return!1;let c=u(b.content,s);return a.messages=a.messages.map((a,b)=>b===d?{...a,content:c}:a),!0}a.messages=[{role:"system",content:s},...a.messages]}catch{return!1}}(a,b,{claude:c}),!a.tool_choice&&b&&(a.tool_choice="auto"),w(a,e),e}function w(a,b){a&&"object"==typeof a&&b?.size&&j.set(a,b)}function x(a){return a&&"object"==typeof a&&j.get(a)||null}},86724:(a,b,c)=>{c.d(b,{Z:()=>i});let d={deepseek:{scope:"all"},minimax:{scope:"all"},"minimax-cn":{scope:"all"}},e=[{match:a=>/^kimi-/i.test(a||""),scope:"toolCalls"},{match:a=>/deepseek/i.test(a||""),scope:"all"}],f="deepseek-v4-pro",g={[`${f}-max`]:{thinkingType:"enabled",reasoningEffort:"max"},[`${f}-none`]:{thinkingType:"disabled",reasoningEffort:null}},h=["reasoning","thought","thinking"];function i({provider:a,model:b,body:c}){let j=d[a],k=e.find(a=>a.match(b)),l="nvidia"===a?function(a){if(!Array.isArray(a?.messages))return a;let b=!1,c=a.messages.map(a=>{if(!a||"assistant"!==a.role||!h.find(b=>"string"==typeof a[b]))return a;b=!0;let c={...a};if("string"!=typeof c.reasoning_content||0===c.reasoning_content.length){let a=h.map(a=>c[a]).find(a=>"string"==typeof a&&a.length>0);a&&(c.reasoning_content=a)}for(let a of h)"string"==typeof c[a]&&delete c[a];return c});return b?{...a,messages:c}:a}(c):c;var m=function({provider:a,model:b,body:c}){let d=g[b];if("deepseek"!==a||!d||!c)return c;let e={...c,model:f,extra_body:{...c.extra_body||{},thinking:{...c.extra_body?.thinking||{},type:d.thinkingType}}};return d.reasoningEffort?e.reasoning_effort=d.reasoningEffort:delete e.reasoning_effort,e}({provider:a,model:b,body:l}),n=j||k;if(!n||!m?.messages)return m;let o=m.messages.map(a=>!function(a,b){if(a?.role!=="assistant")return!1;let c=a.reasoning_content;return("string"!=typeof c||!(c.length>0))&&("toolCalls"!==b||Array.isArray(a.tool_calls)&&a.tool_calls.length>0)}(a,n.scope)?a:{...a,reasoning_content:" "});return{...m,messages:o}}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=9489,exports.ids=[9489],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,{E:()=>d,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,G1:()=>ag});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)}},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)(f.status||n.gx.NOT_FOUND,f.message||`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||T.providerStrategies?.["*"]?.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&&!s.modelOnly&&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}})}},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(28200);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));!0===B.responseCacheEnabled&&e.configure?.({ttlMs:Number(B.responseCacheTtlMs),maxEntries:Number(B.responseCacheMaxEntries)});let 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}}}};