zevairouter 1.1.76 → 1.1.77

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 (528) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +16 -16
  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.nft.json +1 -1
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  63. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  64. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  65. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  66. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  67. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  68. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  69. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  70. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  71. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  72. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  73. package/cli/app/.next-cli-build/server/app/_not-found.rsc +2 -2
  74. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +2 -2
  75. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  76. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  77. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  78. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  79. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  82. package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  83. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  85. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  86. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  88. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  89. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  90. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  91. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  92. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  93. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  94. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  95. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  96. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  97. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  98. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  99. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
  100. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  101. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  102. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  103. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
  104. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  105. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  106. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  108. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  110. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  114. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  116. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  120. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  121. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js.nft.json +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  129. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js +2 -2
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js.nft.json +1 -1
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/context/test/route.js.nft.json +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/dashboard/models/route.js.nft.json +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/json-import/route.js.nft.json +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/helper/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/models/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/providers/openrouter/discover-models/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  323. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  369. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  370. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  371. package/cli/app/.next-cli-build/server/app/callback.rsc +2 -2
  372. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +2 -2
  373. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  374. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
  375. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  376. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +2 -2
  377. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
  378. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +2 -2
  379. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  380. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  381. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +2 -2
  382. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  383. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +2 -2
  384. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  385. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  386. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +2 -2
  387. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  388. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +2 -2
  389. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  390. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  391. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +2 -2
  392. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  393. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +2 -2
  394. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  395. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  396. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +2 -2
  397. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +2 -2
  398. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +2 -2
  399. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  400. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  401. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +2 -2
  402. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  403. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +2 -2
  404. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  405. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  406. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +2 -2
  407. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  408. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +2 -2
  409. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  410. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  411. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +2 -2
  412. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  413. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +2 -2
  414. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  415. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  416. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +2 -2
  417. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +2 -2
  418. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +2 -2
  419. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  420. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  421. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +2 -2
  422. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  423. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +2 -2
  424. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  425. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  426. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +2 -2
  427. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  428. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +2 -2
  429. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  430. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  431. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +2 -2
  432. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  433. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +2 -2
  434. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  435. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  436. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +2 -2
  437. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  438. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +2 -2
  439. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  440. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  441. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +2 -2
  442. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  443. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +2 -2
  444. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  445. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  446. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +2 -2
  447. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +2 -2
  448. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +2 -2
  449. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  450. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  451. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +2 -2
  452. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  453. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +2 -2
  454. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  455. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  456. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +2 -2
  457. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  458. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +2 -2
  459. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  460. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  461. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +2 -2
  462. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  463. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +2 -2
  464. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  465. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  466. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +2 -2
  467. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  468. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +2 -2
  469. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  470. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  471. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +2 -2
  472. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  473. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +2 -2
  474. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  475. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  476. package/cli/app/.next-cli-build/server/app/dashboard.rsc +2 -2
  477. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  478. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +2 -2
  479. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  480. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  481. package/cli/app/.next-cli-build/server/app/index.rsc +2 -2
  482. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  483. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +2 -2
  484. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  485. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  486. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  487. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  488. package/cli/app/.next-cli-build/server/app/landing.rsc +2 -2
  489. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +2 -2
  490. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  491. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  492. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  493. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  494. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  495. package/cli/app/.next-cli-build/server/app/login.rsc +2 -2
  496. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +2 -2
  497. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  498. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  499. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  500. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  501. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  502. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  503. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
  504. package/cli/app/.next-cli-build/server/app-paths-manifest.json +16 -16
  505. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  506. package/cli/app/.next-cli-build/server/chunks/1757.js +1 -1
  507. package/cli/app/.next-cli-build/server/chunks/267.js +1 -1
  508. package/cli/app/.next-cli-build/server/chunks/5626.js +1 -1
  509. package/cli/app/.next-cli-build/server/chunks/5744.js +1 -1
  510. package/cli/app/.next-cli-build/server/chunks/5819.js +2 -2
  511. package/cli/app/.next-cli-build/server/chunks/6166.js +1 -1
  512. package/cli/app/.next-cli-build/server/chunks/7135.js +1 -1
  513. package/cli/app/.next-cli-build/server/chunks/7319.js +3 -3
  514. package/cli/app/.next-cli-build/server/chunks/7364.js +1 -1
  515. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  516. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  517. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  518. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  519. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  520. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  521. package/cli/app/.next-cli-build/static/chunks/{620-94eaf9dcbc5ea4fe.js → 620-2db1857d007ca5bd.js} +1 -1
  522. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-eaad1b510f9b926c.js → page-c2b77eabb14f7642.js} +1 -1
  523. package/cli/app/CHANGELOG.md +6 -0
  524. package/cli/app/package.json +1 -1
  525. package/cli/package.json +1 -1
  526. package/package.json +1 -1
  527. /package/cli/app/.next-cli-build/static/{YktOFiQmRJQkoRZnJqPIX → -IZrnioGweTnx1RYx9xU1}/_buildManifest.js +0 -0
  528. /package/cli/app/.next-cli-build/static/{YktOFiQmRJQkoRZnJqPIX → -IZrnioGweTnx1RYx9xU1}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";exports.id=5626,exports.ids=[5626],exports.modules={15626:(a,b,c)=>{c.d(b,{buildClineHeaders:()=>f,resolveClineCredential:()=>e});let d=c(39006).version||"0.0.0";function e(a){let b="string"==typeof a?.apiKey?a.apiKey.trim():"";return b?{token:b,isApiKey:!0}:{token:a?.accessToken,isApiKey:!1}}function f(a,b={},c={}){let e=function(a,b={}){let c=function(a,{isApiKey:b=!1}={}){if("string"!=typeof a)return"";let c=a.trim();return c?b||c.startsWith("workos:")?c:`workos:${c}`:""}(a,b);return c?`Bearer ${c}`:""}(a,c),g={"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`ZevaiRouter/${d}`,"X-PLATFORM":process.platform||"unknown","X-PLATFORM-VERSION":process.version||"unknown","X-CLIENT-TYPE":"zevairouter","X-CLIENT-VERSION":d,"X-CORE-VERSION":d,"X-IS-MULTIROOT":"false",...b};return e&&(g.Authorization=e),g}},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.76","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","!cli/app/.next-cli-build/cache/","!cli/app/.next-cli-build/server/route-cache/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","scripts/gflow-reply-capture.py","scripts/flow-vps-setup.sh","vendor/aistudio-waa/","skills/","README.md","README.zh-CN.md","DOCKER.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"node scripts/build-app.mjs","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","lint":"eslint .","test":"vitest run --config tests/vitest.config.js","build:cli":"node cli/scripts/build-cli.js","audit:package":"node cli/scripts/audit-package.mjs","smoke:package":"node cli/scripts/smoke-package.mjs","verify:mobile-scroll":"node cli/scripts/verify-dashboard-mobile-scroll.mjs","candidate:build":"node cli/scripts/local-candidate.mjs build","candidate:install":"node cli/scripts/local-candidate.mjs install","candidate:status":"node cli/scripts/local-candidate.mjs status","candidate:rollback":"node cli/scripts/local-candidate.mjs rollback","release":"node cli/scripts/release.js","prepack":"npm run build:cli && npm run audit:package","postinstall":"node cli/hooks/postinstall.js"},"dependencies":{"confbox":"0.2.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4"},"comment_published_runtime":"npm install -g must not download next or @next/swc. Those, plus sql.js, yaml, and @node-saml/node-saml, stay devDependencies so local dev and build:cli can trace them into cli/app. The published tarball already ships that standalone server. confbox stays here because the CLI imports it directly.","comment_optional_runtime":"Optional packages are installed into ~/.zevai/runtime instead of the published tarball. Automation uses CloakBrowser with playwright-core; ZEVAI_MINIMAL_POSTINSTALL=1 skips its browser download. Other lazy runtimes are better-sqlite3, node-pty, and systray2.","overrides":{"body-parser":"^2.3.0","brace-expansion":"5.0.12","dompurify":"^3.4.12","ip-address":"^10.4.0","js-yaml":"4.3.2","nanoid":"^3.3.18","postcss":"^8.5.10","sharp":"0.35.5"},"comment_overrides":"Security floors for transitive dependencies. ESLint\'s legacy minimatch is a private, source-pinned 3.1.5 compatibility package backed by brace-expansion 5.0.9; modern minimatch and nanoid use fixed floors directly. Monaco still pins an old DOMPurify; Express, Next, ESLint, and image processing dependencies may resolve vulnerable body-parser, js-yaml, or sharp releases. Recheck and remove overrides once parent packages require fixed versions.","devDependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@node-saml/node-saml":"5.1.0","@tailwindcss/postcss":"^4.1.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","better-sqlite3":"^12.6.2","chalk":"^4.1.2","dompurify":"^3.4.12","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.4.2","express":"^5.2.1","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","minimatch":"file:vendor/minimatch3-secure","monaco-editor":"^0.55.1","next":"16.4.2","node-forge":"^1.4.2","open":"^11.0.0","ora":"^9.1.0","postcss":"^8.5.10","prop-types":"^15.8.1","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks":"^2.8.9","socks-proxy-agent":"^10.1.0","sql.js":"1.14.1","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.12","yaml":"2.9.0","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')}};
1
+ "use strict";exports.id=5626,exports.ids=[5626],exports.modules={15626:(a,b,c)=>{c.d(b,{buildClineHeaders:()=>f,resolveClineCredential:()=>e});let d=c(39006).version||"0.0.0";function e(a){let b="string"==typeof a?.apiKey?a.apiKey.trim():"";return b?{token:b,isApiKey:!0}:{token:a?.accessToken,isApiKey:!1}}function f(a,b={},c={}){let e=function(a,b={}){let c=function(a,{isApiKey:b=!1}={}){if("string"!=typeof a)return"";let c=a.trim();return c?b||c.startsWith("workos:")?c:`workos:${c}`:""}(a,b);return c?`Bearer ${c}`:""}(a,c),g={"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`ZevaiRouter/${d}`,"X-PLATFORM":process.platform||"unknown","X-PLATFORM-VERSION":process.version||"unknown","X-CLIENT-TYPE":"zevairouter","X-CLIENT-VERSION":d,"X-CORE-VERSION":d,"X-IS-MULTIROOT":"false",...b};return e&&(g.Authorization=e),g}},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.77","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","!cli/app/.next-cli-build/cache/","!cli/app/.next-cli-build/server/route-cache/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","scripts/gflow-reply-capture.py","scripts/flow-vps-setup.sh","vendor/aistudio-waa/","skills/","README.md","README.zh-CN.md","DOCKER.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"node scripts/build-app.mjs","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","lint":"eslint .","test":"vitest run --config tests/vitest.config.js","build:cli":"node cli/scripts/build-cli.js","audit:package":"node cli/scripts/audit-package.mjs","smoke:package":"node cli/scripts/smoke-package.mjs","verify:mobile-scroll":"node cli/scripts/verify-dashboard-mobile-scroll.mjs","candidate:build":"node cli/scripts/local-candidate.mjs build","candidate:install":"node cli/scripts/local-candidate.mjs install","candidate:status":"node cli/scripts/local-candidate.mjs status","candidate:rollback":"node cli/scripts/local-candidate.mjs rollback","release":"node cli/scripts/release.js","prepack":"npm run build:cli && npm run audit:package","postinstall":"node cli/hooks/postinstall.js"},"dependencies":{"confbox":"0.2.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4"},"comment_published_runtime":"npm install -g must not download next or @next/swc. Those, plus sql.js, yaml, and @node-saml/node-saml, stay devDependencies so local dev and build:cli can trace them into cli/app. The published tarball already ships that standalone server. confbox stays here because the CLI imports it directly.","comment_optional_runtime":"Optional packages are installed into ~/.zevai/runtime instead of the published tarball. Automation uses CloakBrowser with playwright-core; ZEVAI_MINIMAL_POSTINSTALL=1 skips its browser download. Other lazy runtimes are better-sqlite3, node-pty, and systray2.","overrides":{"body-parser":"^2.3.0","brace-expansion":"5.0.12","dompurify":"^3.4.12","ip-address":"^10.4.0","js-yaml":"4.3.2","nanoid":"^3.3.18","postcss":"^8.5.10","sharp":"0.35.5"},"comment_overrides":"Security floors for transitive dependencies. ESLint\'s legacy minimatch is a private, source-pinned 3.1.5 compatibility package backed by brace-expansion 5.0.9; modern minimatch and nanoid use fixed floors directly. Monaco still pins an old DOMPurify; Express, Next, ESLint, and image processing dependencies may resolve vulnerable body-parser, js-yaml, or sharp releases. Recheck and remove overrides once parent packages require fixed versions.","devDependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@node-saml/node-saml":"5.1.0","@tailwindcss/postcss":"^4.1.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","better-sqlite3":"^12.6.2","chalk":"^4.1.2","dompurify":"^3.4.12","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.4.2","express":"^5.2.1","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","minimatch":"file:vendor/minimatch3-secure","monaco-editor":"^0.55.1","next":"16.4.2","node-forge":"^1.4.2","open":"^11.0.0","ora":"^9.1.0","postcss":"^8.5.10","prop-types":"^15.8.1","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks":"^2.8.9","socks-proxy-agent":"^10.1.0","sql.js":"1.14.1","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.12","yaml":"2.9.0","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')}};
@@ -1,2 +1,2 @@
1
1
  "use strict";exports.id=5744,exports.ids=[5744],exports.modules={25744:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>F,GET:()=>C,PATCH:()=>E,POST:()=>D});var d=c(49796),e=c(23211),f=c(79984),g=c(35175),h=c(36074),i=c(61860);let j=Object.freeze({input:["text","image"],output:["text"]}),k=Object.freeze({thinking:"high"}),l=a=>!!a&&"object"==typeof a&&!Array.isArray(a);var m=c(79748),n=c.n(m),o=c(33873),p=c.n(o),q=c(21820),r=c.n(q),s=c(24424);let t="zevai",u=`${t}/`,v=()=>p().join(r().homedir(),".config","opencode"),w=async()=>{let a=p().join(v(),"opencode.json"),b=p().join(v(),"opencode.jsonc");try{return await n().access(a),a}catch{try{return await n().access(b),b}catch{return a}}},x=async a=>{try{return await n().access(a),!0}catch{return!1}},y=async()=>{let a=await (0,g.hA)("opencode");return a?{installed:!0,binaryPath:a}:{installed:await x(await w()),binaryPath:null}},z=async(a,b)=>{let c=await n().realpath(a).catch(()=>a);await (0,h.Pl)(c,`${JSON.stringify(b,null,2)}
2
- `)},A=async a=>{let b=a||await w();try{let a=await n().readFile(b,"utf-8");if(!a.trim())return null;let c=function(a){try{return JSON.parse(a)}catch{return JSON.parse(function(a){let b=String(a??"").replace(/^\uFEFF/,""),c="",d=0;for(;d<b.length;){let a=b[d],e=b[d+1];if('"'===a){let a=d+1;for(;a<b.length&&'"'!==b[a];)a+="\\"===b[a]?2:1;c+=b.slice(d,a+1),d=a+1}else if("/"===a&&"/"===e)for(;d<b.length&&"\n"!==b[d];)d+=1;else if("/"===a&&"*"===e){let a=b.indexOf("*/",d+2);d=-1===a?b.length:a+2}else c+=a,d+=1}let e="";for(let a=0;a<c.length;a+=1){let b=c[a];if('"'===b){let b=a+1;for(;b<c.length&&'"'!==c[b];)b+="\\"===c[b]?2:1;e+=c.slice(a,b+1),a=b;continue}if(","===b){let b=a+1;for(;b<c.length&&/\s/.test(c[b]);)b+=1;if("}"===c[b]||"]"===c[b])continue}e+=b}return e}(a))}}(a);if(!l(c))throw Error("OpenCode config is not a JSON object");return c}catch(a){if("ENOENT"===a.code)return null;throw a}},B=a=>"string"==typeof a&&a.startsWith(u)?a.slice(u.length):null;async function C(){try{var a;let{installed:b,binaryPath:c}=await y();if(!b)return e.NextResponse.json({installed:!1,config:null,message:"OpenCode CLI is not installed"});let d=await w(),f=null,h=null;try{f=await A(d)}catch{h=`Could not parse ${p().basename(d)}. Fix the file or remove it before applying settings.`}let i=f?.provider?.[t],j=l(i?.models)?i.models:{},k=c?await (0,g.be)(c):null;return e.NextResponse.json({installed:!0,binaryPath:c,version:k,config:f,configError:h,hasZevai:(a=f,!!a?.provider&&!!a.provider[t]),configPath:d,opencode:{models:Object.keys(j),activeModel:B(f?.model),baseURL:i?.options?.baseURL||null,variants:Object.fromEntries(Object.entries(j).map(([a,b])=>[a,l(b?.variants)?Object.keys(b.variants):[]]))}})}catch(a){return console.log("Error checking opencode settings:",a),e.NextResponse.json({error:"Failed to check opencode settings"},{status:500})}}async function D(a){try{let b,{baseUrl:c,apiKey:d,model:g,models:m,activeModel:n,subagentModel:o}=await a.json(),q=Array.isArray(m)?m:"string"==typeof g?[g]:[],r=[...new Set(q.filter(a=>"string"==typeof a&&a.trim()).map(a=>a.trim()))];if(!c||0===r.length)return e.NextResponse.json({error:"baseUrl and at least one model are required"},{status:400});let s=(0,h.hq)(c);if(!s)return e.NextResponse.json({error:"baseUrl must be an http(s) URL"},{status:400});let v=await w();try{b=await A(v)||{}}catch{return e.NextResponse.json({error:`Could not parse ${p().basename(v)}; fix or remove it before applying settings`},{status:422})}let x=await (0,f.k7)(d),y="string"==typeof o&&o.trim()||r[0],B=""===n?"":"string"==typeof n&&n.trim()||r[0],C=[...r];for(let a of[B,y])a&&!C.includes(a)&&C.push(a);l(b.provider)||(b.provider={});let D=l(b.provider[t])?{...b.provider[t]}:{};D.npm=D.npm||"@ai-sdk/openai-compatible",D.options={...l(D.options)?D.options:{},baseURL:s,apiKey:x},D.models=l(D.models)?{...D.models}:{};let E=await (0,i.M)(C);for(let a of C)D.models[a]=function(a,b,c){let d=l(a)?{...a}:{},e={...d,name:"string"==typeof d.name&&d.name.trim()?d.name:b,modalities:l(d.modalities)?d.modalities:{input:[...j.input],output:[...j.output]}};return void 0===c?e:{...e,...function(a,b=null){if(!Array.isArray(a)||0===a.length)return{reasoning:!1,variants:{}};let c=l(b)?b:{},d={};for(let b of a){if("string"!=typeof b||!b)continue;let a=l(c[b])?c[b]:{};d[b]={...a,reasoningEffort:k[b]||b}}return{reasoning:!0,variants:d}}(c,d.variants)}}(D.models[a],a,E.get(a));b.provider[t]=D,b.model=B?`${u}${B}`:"",l(b.agent)||(b.agent={});let F=l(b.agent.explorer)?b.agent.explorer:{};return b.agent.explorer={description:"Fast explorer subagent for codebase exploration",mode:"subagent",...F,model:`${u}${y}`},await z(v,b),e.NextResponse.json({success:!0,message:"OpenCode settings applied successfully!",configPath:v,variants:Object.fromEntries(C.map(a=>[a,Object.keys(D.models[a]?.variants||{})]))})}catch(a){return console.log("Error applying opencode settings:",a),e.NextResponse.json({error:"Failed to apply settings"},{status:500})}}async function E(a){try{let b,{clearActiveModel:c}=await a.json(),d=await w();try{b=await A(d)}catch{return e.NextResponse.json({error:`Could not parse ${p().basename(d)}`},{status:422})}if(!b)return e.NextResponse.json({success:!0,message:"No OpenCode config to update"});let f=!1;return!0===c&&null!==B(b.model)&&(b.model="",f=!0),f&&await z(d,b),e.NextResponse.json({success:!0,message:"Settings updated"})}catch(a){return console.log("Error patching opencode settings:",a),e.NextResponse.json({error:"Failed to patch settings"},{status:500})}}async function F(a){try{let b,{searchParams:c}=new URL(a.url),d=c.get("model"),f=await w();try{b=await A(f)}catch{return e.NextResponse.json({error:`Could not parse ${p().basename(f)}`},{status:422})}if(!b)return e.NextResponse.json({success:!0,message:"No OpenCode config to reset"});let g=l(b.provider?.[t])?b.provider[t]:null,h=()=>{l(b.provider)&&(delete b.provider[t],0===Object.keys(b.provider).length&&delete b.provider),null!==B(b.model)&&delete b.model,null!==B(b.agent?.explorer?.model)&&(delete b.agent.explorer,0===Object.keys(b.agent).length&&delete b.agent)};if(d){if(l(g?.models)){delete g.models[d];let a=Object.keys(g.models);if(0===a.length)h();else{let c=`${u}${a[0]}`;b.model===`${u}${d}`&&(b.model=c),b.agent?.explorer?.model===`${u}${d}`&&(b.agent.explorer.model=B(b.model)?b.model:c)}}}else h();return await z(f,b),e.NextResponse.json({success:!0,message:d?`Model "${d}" removed`:"ZevaiRouter settings removed from OpenCode"})}catch(a){return console.log("Error resetting opencode settings:",a),e.NextResponse.json({error:"Failed to reset opencode settings"},{status:500})}}(0,s.D)([C,D,E,F]),(0,d.A)(C,"0012e753a2b1ba99937fa6473be117c6a639520723",null),(0,d.A)(D,"40f46ce2461e84f4d9289476fc276beaca4f7a2e08",null),(0,d.A)(E,"401e3cfe77d2b8f501e644980cdf39ebc543519dd7",null),(0,d.A)(F,"4057d4814788e686537c9f6fc2451ff735f924857c",null)},35175:(a,b,c)=>{c.d(b,{be:()=>q,hA:()=>p});var d=c(79748),e=c.n(d),f=c(21820),g=c.n(f),h=c(33873),i=c.n(h),j=c(79646),k=c(28354),l=c(15507);let m=(0,k.promisify)(j.execFile);function n(a={}){let b=a.platform||g().platform(),c=a.env||process.env,d="win32"===b?";":":",e=String(c.PATH||c.Path||"").split(d),f=function({home:a=g().homedir(),platform:b=g().platform(),env:c=process.env,execPath:d=process.execPath,extraDirs:e=[]}={}){let f="win32"===b?i().win32.join:i().posix.join,h="win32"===b?i().win32.dirname:i().posix.dirname,j=[...e];return"win32"===b?(c.APPDATA&&j.push(f(c.APPDATA,"npm")),c.LOCALAPPDATA&&j.push(f(c.LOCALAPPDATA,"pnpm")),a&&j.push(f(a,".bun","bin"),f(a,".local","bin"))):(c.PNPM_HOME&&j.push(c.PNPM_HOME),c.BUN_INSTALL&&j.push(f(c.BUN_INSTALL,"bin")),c.NPM_CONFIG_PREFIX&&j.push(f(c.NPM_CONFIG_PREFIX,"bin")),c.npm_config_prefix&&j.push(f(c.npm_config_prefix,"bin")),a&&(j.push(f(a,".local","bin"),f(a,"bin"),f(a,".opencode","bin"),f(a,".bun","bin"),f(a,".npm-global","bin"),f(a,".volta","bin"),f(a,".cargo","bin"),f(a,".deno","bin"),f(a,".local","share","pnpm")),"darwin"===b&&j.push(f(a,"Library","pnpm"))),j.push("/opt/homebrew/bin","/usr/local/bin","/home/linuxbrew/.linuxbrew/bin","/usr/bin","/bin")),d&&j.push(h(d)),j.filter(Boolean)}({...a,platform:b,env:c});return[...new Set(("win32"===b&&c.APPDATA?[i().win32.join(c.APPDATA,"npm"),...e,...f]:[...e,...f]).filter(Boolean))].join(d)}async function o(a,b){try{if(!(await e().stat(a)).isFile())return!1;if("win32"===b)return!0;return await e().access(a,e().constants.X_OK),!0}catch{return!1}}async function p(a,b={}){if("string"!=typeof a||!/^[A-Za-z0-9._-]+$/.test(a))return null;let c=b.platform||g().platform(),d="win32"===c?i().win32.join:i().posix.join,e="win32"===c?[`${a}.cmd`,`${a}.exe`,`${a}.bat`,a]:[a];for(let a of n({...b,platform:c}).split("win32"===c?";":":"))if(a)for(let b of e){let e=d(a,b);if(await o(e,c))return e}return null}async function q(a,{args:b=["--version"],timeout:c=5e3,ttlMs:d=6e5}={}){if(!a)return null;let f=await e().realpath(a).catch(()=>a);return(0,l.ND)(`version:${f}:${b.join(" ")}`,{ttlMs:d,fingerprint:()=>(0,l.hC)(f)},()=>r(a,b,c))}async function r(a,b,c){try{let{stdout:d,stderr:e}=await m(a,b,{windowsHide:!0,timeout:c,env:function(a={}){return{...a.env||process.env,PATH:n(a)}}(),shell:"win32"===g().platform()&&/\.(cmd|bat)$/i.test(a)});return String(d||e||"").trim().split(/\r?\n/)[0]||null}catch{return null}}}};
2
+ `)},A=async a=>{let b=a||await w();try{let a=await n().readFile(b,"utf-8");if(!a.trim())return null;let c=function(a){try{return JSON.parse(a)}catch{return JSON.parse(function(a){let b=String(a??"").replace(/^\uFEFF/,""),c="",d=0;for(;d<b.length;){let a=b[d],e=b[d+1];if('"'===a){let a=d+1;for(;a<b.length&&'"'!==b[a];)a+="\\"===b[a]?2:1;c+=b.slice(d,a+1),d=a+1}else if("/"===a&&"/"===e)for(;d<b.length&&"\n"!==b[d];)d+=1;else if("/"===a&&"*"===e){let a=b.indexOf("*/",d+2);d=-1===a?b.length:a+2}else c+=a,d+=1}let e="";for(let a=0;a<c.length;a+=1){let b=c[a];if('"'===b){let b=a+1;for(;b<c.length&&'"'!==c[b];)b+="\\"===c[b]?2:1;e+=c.slice(a,b+1),a=b;continue}if(","===b){let b=a+1;for(;b<c.length&&/\s/.test(c[b]);)b+=1;if("}"===c[b]||"]"===c[b])continue}e+=b}return e}(a))}}(a);if(!l(c))throw Error("OpenCode config is not a JSON object");return c}catch(a){if("ENOENT"===a.code)return null;throw a}},B=a=>"string"==typeof a&&a.startsWith(u)?a.slice(u.length):null;async function C(){try{var a;let{installed:b,binaryPath:c}=await y();if(!b)return e.NextResponse.json({installed:!1,config:null,message:"OpenCode CLI is not installed"});let d=await w(),f=null,h=null;try{f=await A(d)}catch{h=`Could not parse ${p().basename(d)}. Fix the file or remove it before applying settings.`}let i=f?.provider?.[t],j=l(i?.models)?i.models:{},k=c?await (0,g.be)(c):null;return e.NextResponse.json({installed:!0,binaryPath:c,version:k,config:f,configError:h,hasZevai:(a=f,!!a?.provider&&!!a.provider[t]),configPath:d,opencode:{models:Object.keys(j),activeModel:B(f?.model),baseURL:i?.options?.baseURL||null,variants:Object.fromEntries(Object.entries(j).map(([a,b])=>[a,l(b?.variants)?Object.keys(b.variants):[]]))}})}catch(a){return console.log("Error checking opencode settings:",a),e.NextResponse.json({error:"Failed to check opencode settings"},{status:500})}}async function D(a){try{let b,{baseUrl:c,apiKey:d,model:g,models:m,activeModel:n,subagentModel:o}=await a.json(),q=Array.isArray(m)?m:"string"==typeof g?[g]:[],r=[...new Set(q.filter(a=>"string"==typeof a&&a.trim()).map(a=>a.trim()))];if(!c||0===r.length)return e.NextResponse.json({error:"baseUrl and at least one model are required"},{status:400});let s=(0,h.hq)(c);if(!s)return e.NextResponse.json({error:"baseUrl must be an http(s) URL"},{status:400});let v=await w();try{b=await A(v)||{}}catch{return e.NextResponse.json({error:`Could not parse ${p().basename(v)}; fix or remove it before applying settings`},{status:422})}let x=await (0,f.k7)(d),y="string"==typeof o&&o.trim()||r[0],B=""===n?"":"string"==typeof n&&n.trim()||r[0],C=[...r];for(let a of[B,y])a&&!C.includes(a)&&C.push(a);l(b.provider)||(b.provider={});let D=l(b.provider[t])?{...b.provider[t]}:{};D.npm=D.npm||"@ai-sdk/openai-compatible",D.options={...l(D.options)?D.options:{},baseURL:s,apiKey:x},D.models=l(D.models)?{...D.models}:{};let E=await (0,i.M)(C);for(let a of C)D.models[a]=function(a,b,c){let d=l(a)?{...a}:{},e={...d,name:"string"==typeof d.name&&d.name.trim()?d.name:b,modalities:l(d.modalities)?d.modalities:{input:[...j.input],output:[...j.output]}};return void 0===c?e:{...e,...function(a,b=null){if(!Array.isArray(a)||0===a.length)return{reasoning:!1,variants:{}};let c=l(b)?b:{},d={};for(let b of a){if("string"!=typeof b||!b)continue;let a=l(c[b])?c[b]:{};d[b]={...a,reasoningEffort:k[b]||b}}return{reasoning:!0,variants:d}}(c,d.variants)}}(D.models[a],a,E.get(a));b.provider[t]=D,b.model=B?`${u}${B}`:"",l(b.agent)||(b.agent={});let F=l(b.agent.explorer)?b.agent.explorer:{};return b.agent.explorer={description:"Fast explorer subagent for codebase exploration",mode:"subagent",...F,model:`${u}${y}`},await z(v,b),e.NextResponse.json({success:!0,message:"OpenCode settings applied successfully!",configPath:v,variants:Object.fromEntries(C.map(a=>[a,Object.keys(D.models[a]?.variants||{})]))})}catch(a){return console.log("Error applying opencode settings:",a),e.NextResponse.json({error:"Failed to apply settings"},{status:500})}}async function E(a){try{let b,{clearActiveModel:c}=await a.json(),d=await w();try{b=await A(d)}catch{return e.NextResponse.json({error:`Could not parse ${p().basename(d)}`},{status:422})}if(!b)return e.NextResponse.json({success:!0,message:"No OpenCode config to update"});let f=!1;return!0===c&&null!==B(b.model)&&(b.model="",f=!0),f&&await z(d,b),e.NextResponse.json({success:!0,message:"Settings updated"})}catch(a){return console.log("Error patching opencode settings:",a),e.NextResponse.json({error:"Failed to patch settings"},{status:500})}}async function F(a){try{let b,{searchParams:c}=new URL(a.url),d=c.get("model"),f=await w();try{b=await A(f)}catch{return e.NextResponse.json({error:`Could not parse ${p().basename(f)}`},{status:422})}if(!b)return e.NextResponse.json({success:!0,message:"No OpenCode config to reset"});let g=l(b.provider?.[t])?b.provider[t]:null,h=()=>{l(b.provider)&&(delete b.provider[t],0===Object.keys(b.provider).length&&delete b.provider),null!==B(b.model)&&delete b.model,null!==B(b.agent?.explorer?.model)&&(delete b.agent.explorer,0===Object.keys(b.agent).length&&delete b.agent)};if(d){if(l(g?.models)){delete g.models[d];let a=Object.keys(g.models);if(0===a.length)h();else{let c=`${u}${a[0]}`;b.model===`${u}${d}`&&(b.model=c),b.agent?.explorer?.model===`${u}${d}`&&(b.agent.explorer.model=B(b.model)?b.model:c)}}}else h();return await z(f,b),e.NextResponse.json({success:!0,message:d?`Model "${d}" removed`:"ZevaiRouter settings removed from OpenCode"})}catch(a){return console.log("Error resetting opencode settings:",a),e.NextResponse.json({error:"Failed to reset opencode settings"},{status:500})}}(0,s.D)([C,D,E,F]),(0,d.A)(C,"00d6e1f26ccb535a62798e4251f9d150ae8035b316",null),(0,d.A)(D,"4005cdd6ac3260a2db92f640ee8475635cce268229",null),(0,d.A)(E,"4022f6cec573c39b27e1e7b9144359c82256a4db43",null),(0,d.A)(F,"40c32930624ae52df05601ce3096287aca216aeba5",null)},35175:(a,b,c)=>{c.d(b,{be:()=>q,hA:()=>p});var d=c(79748),e=c.n(d),f=c(21820),g=c.n(f),h=c(33873),i=c.n(h),j=c(79646),k=c(28354),l=c(15507);let m=(0,k.promisify)(j.execFile);function n(a={}){let b=a.platform||g().platform(),c=a.env||process.env,d="win32"===b?";":":",e=String(c.PATH||c.Path||"").split(d),f=function({home:a=g().homedir(),platform:b=g().platform(),env:c=process.env,execPath:d=process.execPath,extraDirs:e=[]}={}){let f="win32"===b?i().win32.join:i().posix.join,h="win32"===b?i().win32.dirname:i().posix.dirname,j=[...e];return"win32"===b?(c.APPDATA&&j.push(f(c.APPDATA,"npm")),c.LOCALAPPDATA&&j.push(f(c.LOCALAPPDATA,"pnpm")),a&&j.push(f(a,".bun","bin"),f(a,".local","bin"))):(c.PNPM_HOME&&j.push(c.PNPM_HOME),c.BUN_INSTALL&&j.push(f(c.BUN_INSTALL,"bin")),c.NPM_CONFIG_PREFIX&&j.push(f(c.NPM_CONFIG_PREFIX,"bin")),c.npm_config_prefix&&j.push(f(c.npm_config_prefix,"bin")),a&&(j.push(f(a,".local","bin"),f(a,"bin"),f(a,".opencode","bin"),f(a,".bun","bin"),f(a,".npm-global","bin"),f(a,".volta","bin"),f(a,".cargo","bin"),f(a,".deno","bin"),f(a,".local","share","pnpm")),"darwin"===b&&j.push(f(a,"Library","pnpm"))),j.push("/opt/homebrew/bin","/usr/local/bin","/home/linuxbrew/.linuxbrew/bin","/usr/bin","/bin")),d&&j.push(h(d)),j.filter(Boolean)}({...a,platform:b,env:c});return[...new Set(("win32"===b&&c.APPDATA?[i().win32.join(c.APPDATA,"npm"),...e,...f]:[...e,...f]).filter(Boolean))].join(d)}async function o(a,b){try{if(!(await e().stat(a)).isFile())return!1;if("win32"===b)return!0;return await e().access(a,e().constants.X_OK),!0}catch{return!1}}async function p(a,b={}){if("string"!=typeof a||!/^[A-Za-z0-9._-]+$/.test(a))return null;let c=b.platform||g().platform(),d="win32"===c?i().win32.join:i().posix.join,e="win32"===c?[`${a}.cmd`,`${a}.exe`,`${a}.bat`,a]:[a];for(let a of n({...b,platform:c}).split("win32"===c?";":":"))if(a)for(let b of e){let e=d(a,b);if(await o(e,c))return e}return null}async function q(a,{args:b=["--version"],timeout:c=5e3,ttlMs:d=6e5}={}){if(!a)return null;let f=await e().realpath(a).catch(()=>a);return(0,l.ND)(`version:${f}:${b.join(" ")}`,{ttlMs:d,fingerprint:()=>(0,l.hC)(f)},()=>r(a,b,c))}async function r(a,b,c){try{let{stdout:d,stderr:e}=await m(a,b,{windowsHide:!0,timeout:c,env:function(a={}){return{...a.env||process.env,PATH:n(a)}}(),shell:"win32"===g().platform()&&/\.(cmd|bat)$/i.test(a)});return String(d||e||"").trim().split(/\r?\n/)[0]||null}catch{return null}}}};
@@ -1,4 +1,4 @@
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:()=>$,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=`
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
2
  import { spawn, spawnSync } from "node:child_process";
3
3
  import fs from "node:fs";
4
4
  import os from "node:os";
@@ -428,7 +428,7 @@ BindAddress = 127.0.0.1:${e}
428
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
429
  ...[omitted ${b}]...
430
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}class $ 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=172e3){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)return;let g=Math.max(1,a.messages.length-6);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,1200,500,300,!0)}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&&"system"!==b.role&&(Z(b,2500,1200,800,!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<g&&e>b;c++){let b=a.messages[c];b&&"system"!==b.role&&("tool"===b.role?Z(b,220,120,60,!1):"assistant"===b.role&&Z(b,400,250,0,!1))}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;let h=a.messages.findIndex(a=>a?.role==="user"),i=h>=0?h+1:1;for(;e>b&&i<a.messages.length;){let b=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,i);if(a.messages.length-(i+b)<2)break;a.messages.splice(i,b),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-6);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}
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=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+b)<2)break;a.messages.splice(j,b),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
432
 
433
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
434
 
@@ -1 +1 @@
1
- "use strict";exports.id=6166,exports.ids=[6166],exports.modules={30869:(a,b,c)=>{c.d(b,{UY:()=>i,X3:()=>k,eh:()=>f.eh,fg:()=>e.fg,h0:()=>h,oc:()=>j,vQ:()=>g});var d=c(39006),e=c(17404),f=c(81329);let g={name:"ZevaiRouter",description:"AI Infrastructure Management",version:d.version},h={npmPackageName:"zevairouter",installCmd:"npm i -g zevairouter",installCmdLatest:"npm i -g zevairouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:1997},i={maxLines:200,pollIntervalMs:1e3},j={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}},k={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat"}},38238:(a,b,c)=>{c.d(b,{OU:()=>j,PL:()=>o,Yd:()=>i});var d=c(89718),e=c(17404),f=c(54098),g=c(30869),h=c(54603);function i(a,b){let c="string"==typeof b?b:b?JSON.stringify(b):"";for(let a=0;a<3;a++){let a=c.replace(/^\s*(?:HTTP\s+)?\[?\d{3}\]?\s*:\s*/i,""),b=a;try{let c=JSON.parse(a),d=c?.error?.message||c?.message||c?.error;"string"==typeof d&&d&&(b=d)}catch{}if(b===c)break;c=b}return c=c.trim(),`HTTP ${a}${c?`: ${c.slice(0,240)}`:""}`}async function j(a=null){let b=null;try{let a=await (0,d.PX)(!0);b=a.find(a=>!1!==a.isActive)?.key||null}catch{}let c={"Content-Type":"application/json"};return b&&(c.Authorization=`Bearer ${b}`),c["x-zevai-cli-token"]=await (0,h.Xj)("zevai-cli-auth"),a&&(c["x-zevai-connection-id"]=a),c}function k(a){return"string"==typeof a?a.trim():""}function l(a){return a&&"object"==typeof a?k(a.reasoning||a.reasoning_content||a.thinking||a.thinking_content):""}function m(){return{ok:!1,error:"Probe timed out before a usable response",status:408}}async function n(a,b){let c=a.body?.getReader?.();if(!c)return{ok:!1,error:"Provider stream ended without a usable response"};let d=new TextDecoder,e="",g=null;try{for(;!g;){let{value:a,done:h}=await c.read();if(h)break;let i=(e+=d.decode(a,{stream:!0})).split(/\r?\n/);for(let a of(e=i.pop()||"",i)){let c=a.trim();if(!c||c.startsWith(":")||!c.startsWith("data:"))continue;let d=c.slice(5).trim();if("[DONE]"===d){g||(g={ok:!1,error:"Provider stream ended without a usable response"});break}let e=null;try{e=JSON.parse(d)}catch{continue}e=(0,f.x)(e,b);let h=function(a){if(!a||"object"!=typeof a)return null;if(a.error)return{ok:!1,error:String(a.error?.message||a.error).slice(0,240)};let b=Array.isArray(a.choices)?a.choices[0]:null;if(!b)return null;let c=k(b.delta?.content||b.message?.content),d=l(b.delta)||l(b.message);return c?{ok:!0}:d?{ok:!0,note:"reasoning-only response (length-limited)"}:null}(e);if(h?.ok===!1){g=h;break}h?.ok&&(g=h)}}}catch(a){if(g?.ok)return g;if(a?.name==="TimeoutError"||a?.name==="AbortError")return m();throw a}finally{await c.cancel().catch(()=>{})}return g||{ok:!1,error:"Provider stream ended without a usable response"}}async function o(a,b,c=`http://127.0.0.1:${process.env.PORT||g.h0.appPort}`,d={}){let h,p,q=await j(d.connectionId),r=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:q,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0&&Array.isArray(f.data[0]?.embedding)?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no embedding data"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:q,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,d,e,f,g=new FormData,h=(e=new DataView(d=new ArrayBuffer(44+(b=8e3))),(f=(a,b)=>{for(let c=0;c<b.length;c+=1)e.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),e.setUint32(4,36+b,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,16e3,!0),e.setUint32(28,32e3,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,b,!0),new Blob([d],{type:"audio/wav"}));g.append("file",h,"test.wav"),g.append("model",a);let j=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(q).filter(([a])=>"content-type"!==a.toLowerCase())),body:g,signal:AbortSignal.timeout(15e3)}),k=Date.now()-r,l=await j.text().catch(()=>""),m=null;try{m=l?JSON.parse(l):null}catch{}if(!j.ok){let a=m?.error?.message||m?.msg||m?.message||m?.error||l;return{ok:!1,latencyMs:k,error:i(j.status,a),status:j.status}}return("string"==typeof m?.text?m.text:"").trim()?{ok:!0,latencyMs:k,error:null,status:j.status}:{ok:!1,latencyMs:k,status:j.status,error:"Provider returned no transcription text for this model"}}if("systemone"===b){let b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:q,body:JSON.stringify({model:a,state:"Customer: I was charged twice for my order this morning.",questions:{probe:{type:"noul",instructions:"Is the customer reporting a billing problem?"}}}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return f?.answers&&"object"==typeof f.answers&&Object.keys(f.answers).length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no answers for this model"}}let s=(0,e.rs)(String(a).split("/")[0]),t=Number.isFinite(d.timeoutMs)?d.timeoutMs:(p=String(a||"").split("/")[0],"antigravity"===(0,e.rs)(p)?3e4:15e3);try{h=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:{...q,"x-zevai-probe":"first-token"},body:JSON.stringify({model:a,max_tokens:1024,stream:!0,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(t)})}catch(a){if(a?.name==="TimeoutError"||a?.name==="AbortError")return{...m(),latencyMs:Date.now()-r};return{ok:!1,latencyMs:Date.now()-r,error:a?.message||"Probe failed",status:0}}if(!h.ok){let a=await h.text().catch(()=>""),b=null;try{b=a?JSON.parse(a):null}catch{}b=(0,f.x)(b,s);let c=b?.error?.message||b?.msg||b?.message||b?.error||a;return{ok:!1,latencyMs:Date.now()-r,error:i(h.status,c),status:h.status}}if((h.headers.get("content-type")||"").includes("text/event-stream")){let a=await n(h,s);return{...a,latencyMs:Date.now()-r,status:h.status,error:a.error||null}}let u=await h.text().catch(()=>""),v=null;try{v=u?JSON.parse(u):null}catch{}let w=function(a){let b=a?.status,c=a?.msg||a?.message;if(null!=b&&"200"!==String(b)&&"0"!==String(b)&&c)return{ok:!1,error:`Provider status ${b}: ${String(c).slice(0,240)}`};if(a?.error)return{ok:!1,error:String(a?.error?.message||a?.error||"Provider returned an error").slice(0,240)};let d=Array.isArray(a?.choices)&&a.choices.length>0,e=a?.choices?.[0]||{},f=l(e.message),g=!k(e.message?.content);return d&&"length"===e.finish_reason&&g&&f?{ok:!0,note:"reasoning-only response (length-limited)"}:d&&(!g||f)?{ok:!0}:{ok:!1,error:"Provider returned no completion choices for this model"}}(v=(0,f.x)(v,s));return{ok:w.ok,latencyMs:Date.now()-r,status:h.status,error:w.ok?null:w.error,...w.note?{note:w.note}:{}}}},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.76","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","!cli/app/.next-cli-build/cache/","!cli/app/.next-cli-build/server/route-cache/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","scripts/gflow-reply-capture.py","scripts/flow-vps-setup.sh","vendor/aistudio-waa/","skills/","README.md","README.zh-CN.md","DOCKER.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"node scripts/build-app.mjs","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","lint":"eslint .","test":"vitest run --config tests/vitest.config.js","build:cli":"node cli/scripts/build-cli.js","audit:package":"node cli/scripts/audit-package.mjs","smoke:package":"node cli/scripts/smoke-package.mjs","verify:mobile-scroll":"node cli/scripts/verify-dashboard-mobile-scroll.mjs","candidate:build":"node cli/scripts/local-candidate.mjs build","candidate:install":"node cli/scripts/local-candidate.mjs install","candidate:status":"node cli/scripts/local-candidate.mjs status","candidate:rollback":"node cli/scripts/local-candidate.mjs rollback","release":"node cli/scripts/release.js","prepack":"npm run build:cli && npm run audit:package","postinstall":"node cli/hooks/postinstall.js"},"dependencies":{"confbox":"0.2.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4"},"comment_published_runtime":"npm install -g must not download next or @next/swc. Those, plus sql.js, yaml, and @node-saml/node-saml, stay devDependencies so local dev and build:cli can trace them into cli/app. The published tarball already ships that standalone server. confbox stays here because the CLI imports it directly.","comment_optional_runtime":"Optional packages are installed into ~/.zevai/runtime instead of the published tarball. Automation uses CloakBrowser with playwright-core; ZEVAI_MINIMAL_POSTINSTALL=1 skips its browser download. Other lazy runtimes are better-sqlite3, node-pty, and systray2.","overrides":{"body-parser":"^2.3.0","brace-expansion":"5.0.12","dompurify":"^3.4.12","ip-address":"^10.4.0","js-yaml":"4.3.2","nanoid":"^3.3.18","postcss":"^8.5.10","sharp":"0.35.5"},"comment_overrides":"Security floors for transitive dependencies. ESLint\'s legacy minimatch is a private, source-pinned 3.1.5 compatibility package backed by brace-expansion 5.0.9; modern minimatch and nanoid use fixed floors directly. Monaco still pins an old DOMPurify; Express, Next, ESLint, and image processing dependencies may resolve vulnerable body-parser, js-yaml, or sharp releases. Recheck and remove overrides once parent packages require fixed versions.","devDependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@node-saml/node-saml":"5.1.0","@tailwindcss/postcss":"^4.1.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","better-sqlite3":"^12.6.2","chalk":"^4.1.2","dompurify":"^3.4.12","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.4.2","express":"^5.2.1","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","minimatch":"file:vendor/minimatch3-secure","monaco-editor":"^0.55.1","next":"16.4.2","node-forge":"^1.4.2","open":"^11.0.0","ora":"^9.1.0","postcss":"^8.5.10","prop-types":"^15.8.1","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks":"^2.8.9","socks-proxy-agent":"^10.1.0","sql.js":"1.14.1","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.12","yaml":"2.9.0","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},43591:(a,b,c)=>{c.d(b,{A:()=>d});let d={id:"nace",alias:"nace",aliases:["drex"],category:"apikey",authType:"apikey",authModes:["apikey"],hasProviderSpecificData:!0,priority:48,display:{name:"Nace Drex",icon:"psychology",color:"#1D1D16",textIcon:"DX",website:"https://console.nace.ai",notice:{text:"Drex decision models on the System One protocol (noul / choice / score questions, calibrated probabilities). drex-max also accepts a top-level `images` array; drex-v2.0 is text-only. Paste a console.nace.ai API key (sent as a Bearer token).",apiKeyUrl:"https://console.nace.ai/dashboard/api-keys"}},models:[{id:"drex-max",name:"Drex Max",kind:"systemone"},{id:"drex-v2.0",name:"Drex 2.0",kind:"systemone"}],serviceKinds:["systemone"],systemoneConfig:{baseUrl:"https://console.nace.ai/v1/systemone",path:"/v1/systemone",authType:"apikey",authHeader:"bearer"}}},48806:(a,b,c)=>{c.d(b,{A:()=>d});let d={id:"xai",alias:"xai",category:"oauth",authModes:["oauth","apikey"],hasOAuth:!0,display:{name:"xAI (Grok)",icon:"auto_awesome",color:"#1DA1F2",textIcon:"XA",website:"https://x.ai",notice:{apiKeyUrl:"https://console.x.ai",signupUrl:"https://x.ai"}},models:[{id:"grok-imagine-video",name:"Grok Imagine Video",type:"video",params:["duration","aspect_ratio","resolution"]}],serviceKinds:["llm","imageToText","webSearch","image","video"],imageConfig:{baseUrl:"https://api.x.ai/v1/images/generations",bodyFields:["model","prompt","n","response_format"]},videoConfig:{baseUrl:"https://api.x.ai/v1/videos"},searchViaChat:{defaultModel:"grok-4.20-reasoning",endpoint:"https://api.x.ai/v1/responses",pricingUrl:"https://x.ai/api#pricing"}}},54098:(a,b,c)=>{c.d(b,{x:()=>e});var d=c(35024);function e(a,b){if(!b||!d.xq[b]?.quirks?.clineEnvelope)return a;let{success:c,data:e}=a||{};return!0!==c||!e||"object"!=typeof e||Array.isArray(e)?a:e}},54603:(a,b,c)=>{c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.DATA_DIR,"machine-id"),m=h().join(k.DATA_DIR,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.DATA_DIR,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="zevai-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},72236:(a,b,c)=>{c.d(b,{A:()=>d});let d={id:"v1m",alias:"v1m",aliases:["systemone","jev"],category:"apikey",authType:"apikey",authModes:["apikey"],hasProviderSpecificData:!0,priority:45,display:{name:"v1m (System One)",icon:"psychology",color:"#6366F1",textIcon:"V1",website:"https://v1m.ir",notice:{text:"v1m System One calibrated decision engine. Fast probabilistic evaluations over state and questions.",apiKeyUrl:"https://v1m.ir"}},models:[{id:"rev-latest",name:"v1m Rev Latest (Calibrated)",kind:"systemone"},{id:"v1m-decision-engine",name:"v1m Decision Engine",kind:"systemone"}],serviceKinds:["systemone"],systemoneConfig:{baseUrl:"https://v1m.ir/v1/systemone",authType:"apikey",authHeader:"bearer"}}},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,u0:()=>d.u0,vq:()=>d.vq});var d=c(19548);new Set(Object.entries(c(17404).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a));let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))}};
1
+ "use strict";exports.id=6166,exports.ids=[6166],exports.modules={30869:(a,b,c)=>{c.d(b,{UY:()=>i,X3:()=>k,eh:()=>f.eh,fg:()=>e.fg,h0:()=>h,oc:()=>j,vQ:()=>g});var d=c(39006),e=c(17404),f=c(81329);let g={name:"ZevaiRouter",description:"AI Infrastructure Management",version:d.version},h={npmPackageName:"zevairouter",installCmd:"npm i -g zevairouter",installCmdLatest:"npm i -g zevairouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:1997},i={maxLines:200,pollIntervalMs:1e3},j={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}},k={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat"}},38238:(a,b,c)=>{c.d(b,{OU:()=>j,PL:()=>o,Yd:()=>i});var d=c(89718),e=c(17404),f=c(54098),g=c(30869),h=c(54603);function i(a,b){let c="string"==typeof b?b:b?JSON.stringify(b):"";for(let a=0;a<3;a++){let a=c.replace(/^\s*(?:HTTP\s+)?\[?\d{3}\]?\s*:\s*/i,""),b=a;try{let c=JSON.parse(a),d=c?.error?.message||c?.message||c?.error;"string"==typeof d&&d&&(b=d)}catch{}if(b===c)break;c=b}return c=c.trim(),`HTTP ${a}${c?`: ${c.slice(0,240)}`:""}`}async function j(a=null){let b=null;try{let a=await (0,d.PX)(!0);b=a.find(a=>!1!==a.isActive)?.key||null}catch{}let c={"Content-Type":"application/json"};return b&&(c.Authorization=`Bearer ${b}`),c["x-zevai-cli-token"]=await (0,h.Xj)("zevai-cli-auth"),a&&(c["x-zevai-connection-id"]=a),c}function k(a){return"string"==typeof a?a.trim():""}function l(a){return a&&"object"==typeof a?k(a.reasoning||a.reasoning_content||a.thinking||a.thinking_content):""}function m(){return{ok:!1,error:"Probe timed out before a usable response",status:408}}async function n(a,b){let c=a.body?.getReader?.();if(!c)return{ok:!1,error:"Provider stream ended without a usable response"};let d=new TextDecoder,e="",g=null;try{for(;!g;){let{value:a,done:h}=await c.read();if(h)break;let i=(e+=d.decode(a,{stream:!0})).split(/\r?\n/);for(let a of(e=i.pop()||"",i)){let c=a.trim();if(!c||c.startsWith(":")||!c.startsWith("data:"))continue;let d=c.slice(5).trim();if("[DONE]"===d){g||(g={ok:!1,error:"Provider stream ended without a usable response"});break}let e=null;try{e=JSON.parse(d)}catch{continue}e=(0,f.x)(e,b);let h=function(a){if(!a||"object"!=typeof a)return null;if(a.error)return{ok:!1,error:String(a.error?.message||a.error).slice(0,240)};let b=Array.isArray(a.choices)?a.choices[0]:null;if(!b)return null;let c=k(b.delta?.content||b.message?.content),d=l(b.delta)||l(b.message);return c?{ok:!0}:d?{ok:!0,note:"reasoning-only response (length-limited)"}:null}(e);if(h?.ok===!1){g=h;break}h?.ok&&(g=h)}}}catch(a){if(g?.ok)return g;if(a?.name==="TimeoutError"||a?.name==="AbortError")return m();throw a}finally{await c.cancel().catch(()=>{})}return g||{ok:!1,error:"Provider stream ended without a usable response"}}async function o(a,b,c=`http://127.0.0.1:${process.env.PORT||g.h0.appPort}`,d={}){let h,p,q=await j(d.connectionId),r=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:q,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0&&Array.isArray(f.data[0]?.embedding)?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no embedding data"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:q,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:i(b.status,a),status:b.status}}return Array.isArray(f?.data)&&f.data.length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,d,e,f,g=new FormData,h=(e=new DataView(d=new ArrayBuffer(44+(b=8e3))),(f=(a,b)=>{for(let c=0;c<b.length;c+=1)e.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),e.setUint32(4,36+b,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,16e3,!0),e.setUint32(28,32e3,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,b,!0),new Blob([d],{type:"audio/wav"}));g.append("file",h,"test.wav"),g.append("model",a);let j=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(q).filter(([a])=>"content-type"!==a.toLowerCase())),body:g,signal:AbortSignal.timeout(15e3)}),k=Date.now()-r,l=await j.text().catch(()=>""),m=null;try{m=l?JSON.parse(l):null}catch{}if(!j.ok){let a=m?.error?.message||m?.msg||m?.message||m?.error||l;return{ok:!1,latencyMs:k,error:i(j.status,a),status:j.status}}return("string"==typeof m?.text?m.text:"").trim()?{ok:!0,latencyMs:k,error:null,status:j.status}:{ok:!1,latencyMs:k,status:j.status,error:"Provider returned no transcription text for this model"}}if("systemone"===b){let b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:q,body:JSON.stringify({model:a,state:"Customer: I was charged twice for my order this morning.",questions:{probe:{type:"noul",instructions:"Is the customer reporting a billing problem?"}}}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-r,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return f?.answers&&"object"==typeof f.answers&&Object.keys(f.answers).length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no answers for this model"}}let s=(0,e.rs)(String(a).split("/")[0]),t=Number.isFinite(d.timeoutMs)?d.timeoutMs:(p=String(a||"").split("/")[0],"antigravity"===(0,e.rs)(p)?3e4:15e3);try{h=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:{...q,"x-zevai-probe":"first-token"},body:JSON.stringify({model:a,max_tokens:1024,stream:!0,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(t)})}catch(a){if(a?.name==="TimeoutError"||a?.name==="AbortError")return{...m(),latencyMs:Date.now()-r};return{ok:!1,latencyMs:Date.now()-r,error:a?.message||"Probe failed",status:0}}if(!h.ok){let a=await h.text().catch(()=>""),b=null;try{b=a?JSON.parse(a):null}catch{}b=(0,f.x)(b,s);let c=b?.error?.message||b?.msg||b?.message||b?.error||a;return{ok:!1,latencyMs:Date.now()-r,error:i(h.status,c),status:h.status}}if((h.headers.get("content-type")||"").includes("text/event-stream")){let a=await n(h,s);return{...a,latencyMs:Date.now()-r,status:h.status,error:a.error||null}}let u=await h.text().catch(()=>""),v=null;try{v=u?JSON.parse(u):null}catch{}let w=function(a){let b=a?.status,c=a?.msg||a?.message;if(null!=b&&"200"!==String(b)&&"0"!==String(b)&&c)return{ok:!1,error:`Provider status ${b}: ${String(c).slice(0,240)}`};if(a?.error)return{ok:!1,error:String(a?.error?.message||a?.error||"Provider returned an error").slice(0,240)};let d=Array.isArray(a?.choices)&&a.choices.length>0,e=a?.choices?.[0]||{},f=l(e.message),g=!k(e.message?.content);return d&&"length"===e.finish_reason&&g&&f?{ok:!0,note:"reasoning-only response (length-limited)"}:d&&(!g||f)?{ok:!0}:{ok:!1,error:"Provider returned no completion choices for this model"}}(v=(0,f.x)(v,s));return{ok:w.ok,latencyMs:Date.now()-r,status:h.status,error:w.ok?null:w.error,...w.note?{note:w.note}:{}}}},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.77","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","!cli/app/.next-cli-build/cache/","!cli/app/.next-cli-build/server/route-cache/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","scripts/gflow-reply-capture.py","scripts/flow-vps-setup.sh","vendor/aistudio-waa/","skills/","README.md","README.zh-CN.md","DOCKER.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"node scripts/build-app.mjs","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","lint":"eslint .","test":"vitest run --config tests/vitest.config.js","build:cli":"node cli/scripts/build-cli.js","audit:package":"node cli/scripts/audit-package.mjs","smoke:package":"node cli/scripts/smoke-package.mjs","verify:mobile-scroll":"node cli/scripts/verify-dashboard-mobile-scroll.mjs","candidate:build":"node cli/scripts/local-candidate.mjs build","candidate:install":"node cli/scripts/local-candidate.mjs install","candidate:status":"node cli/scripts/local-candidate.mjs status","candidate:rollback":"node cli/scripts/local-candidate.mjs rollback","release":"node cli/scripts/release.js","prepack":"npm run build:cli && npm run audit:package","postinstall":"node cli/hooks/postinstall.js"},"dependencies":{"confbox":"0.2.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4"},"comment_published_runtime":"npm install -g must not download next or @next/swc. Those, plus sql.js, yaml, and @node-saml/node-saml, stay devDependencies so local dev and build:cli can trace them into cli/app. The published tarball already ships that standalone server. confbox stays here because the CLI imports it directly.","comment_optional_runtime":"Optional packages are installed into ~/.zevai/runtime instead of the published tarball. Automation uses CloakBrowser with playwright-core; ZEVAI_MINIMAL_POSTINSTALL=1 skips its browser download. Other lazy runtimes are better-sqlite3, node-pty, and systray2.","overrides":{"body-parser":"^2.3.0","brace-expansion":"5.0.12","dompurify":"^3.4.12","ip-address":"^10.4.0","js-yaml":"4.3.2","nanoid":"^3.3.18","postcss":"^8.5.10","sharp":"0.35.5"},"comment_overrides":"Security floors for transitive dependencies. ESLint\'s legacy minimatch is a private, source-pinned 3.1.5 compatibility package backed by brace-expansion 5.0.9; modern minimatch and nanoid use fixed floors directly. Monaco still pins an old DOMPurify; Express, Next, ESLint, and image processing dependencies may resolve vulnerable body-parser, js-yaml, or sharp releases. Recheck and remove overrides once parent packages require fixed versions.","devDependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@node-saml/node-saml":"5.1.0","@tailwindcss/postcss":"^4.1.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","better-sqlite3":"^12.6.2","chalk":"^4.1.2","dompurify":"^3.4.12","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.4.2","express":"^5.2.1","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","minimatch":"file:vendor/minimatch3-secure","monaco-editor":"^0.55.1","next":"16.4.2","node-forge":"^1.4.2","open":"^11.0.0","ora":"^9.1.0","postcss":"^8.5.10","prop-types":"^15.8.1","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks":"^2.8.9","socks-proxy-agent":"^10.1.0","sql.js":"1.14.1","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.12","yaml":"2.9.0","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},43591:(a,b,c)=>{c.d(b,{A:()=>d});let d={id:"nace",alias:"nace",aliases:["drex"],category:"apikey",authType:"apikey",authModes:["apikey"],hasProviderSpecificData:!0,priority:48,display:{name:"Nace Drex",icon:"psychology",color:"#1D1D16",textIcon:"DX",website:"https://console.nace.ai",notice:{text:"Drex decision models on the System One protocol (noul / choice / score questions, calibrated probabilities). drex-max also accepts a top-level `images` array; drex-v2.0 is text-only. Paste a console.nace.ai API key (sent as a Bearer token).",apiKeyUrl:"https://console.nace.ai/dashboard/api-keys"}},models:[{id:"drex-max",name:"Drex Max",kind:"systemone"},{id:"drex-v2.0",name:"Drex 2.0",kind:"systemone"}],serviceKinds:["systemone"],systemoneConfig:{baseUrl:"https://console.nace.ai/v1/systemone",path:"/v1/systemone",authType:"apikey",authHeader:"bearer"}}},48806:(a,b,c)=>{c.d(b,{A:()=>d});let d={id:"xai",alias:"xai",category:"oauth",authModes:["oauth","apikey"],hasOAuth:!0,display:{name:"xAI (Grok)",icon:"auto_awesome",color:"#1DA1F2",textIcon:"XA",website:"https://x.ai",notice:{apiKeyUrl:"https://console.x.ai",signupUrl:"https://x.ai"}},models:[{id:"grok-imagine-video",name:"Grok Imagine Video",type:"video",params:["duration","aspect_ratio","resolution"]}],serviceKinds:["llm","imageToText","webSearch","image","video"],imageConfig:{baseUrl:"https://api.x.ai/v1/images/generations",bodyFields:["model","prompt","n","response_format"]},videoConfig:{baseUrl:"https://api.x.ai/v1/videos"},searchViaChat:{defaultModel:"grok-4.20-reasoning",endpoint:"https://api.x.ai/v1/responses",pricingUrl:"https://x.ai/api#pricing"}}},54098:(a,b,c)=>{c.d(b,{x:()=>e});var d=c(35024);function e(a,b){if(!b||!d.xq[b]?.quirks?.clineEnvelope)return a;let{success:c,data:e}=a||{};return!0!==c||!e||"object"!=typeof e||Array.isArray(e)?a:e}},54603:(a,b,c)=>{c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.DATA_DIR,"machine-id"),m=h().join(k.DATA_DIR,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.DATA_DIR,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="zevai-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},72236:(a,b,c)=>{c.d(b,{A:()=>d});let d={id:"v1m",alias:"v1m",aliases:["systemone","jev"],category:"apikey",authType:"apikey",authModes:["apikey"],hasProviderSpecificData:!0,priority:45,display:{name:"v1m (System One)",icon:"psychology",color:"#6366F1",textIcon:"V1",website:"https://v1m.ir",notice:{text:"v1m System One calibrated decision engine. Fast probabilistic evaluations over state and questions.",apiKeyUrl:"https://v1m.ir"}},models:[{id:"rev-latest",name:"v1m Rev Latest (Calibrated)",kind:"systemone"},{id:"v1m-decision-engine",name:"v1m Decision Engine",kind:"systemone"}],serviceKinds:["systemone"],systemoneConfig:{baseUrl:"https://v1m.ir/v1/systemone",authType:"apikey",authHeader:"bearer"}}},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,u0:()=>d.u0,vq:()=>d.vq});var d=c(19548);new Set(Object.entries(c(17404).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a));let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))}};
@@ -3,7 +3,7 @@ MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA8iMH5c02LilrsERw9t6Pv5Nc
3
3
  4k6Pz1EaDicBMpdpxKduSZu5OANqUq8er4GM95omAGIOPOh+Nx0spthYA2BqGz+l
4
4
  6HRkPJ7S236FZz73In/KVuLnwI8JJ2CbuJap8kvheCCZpmAWpb/cPx/3Vr/J6I17
5
5
  XcW+ML9FoCI6AOvOzwIDAQAB
6
- -----END PUBLIC KEY-----`},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.76","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","!cli/app/.next-cli-build/cache/","!cli/app/.next-cli-build/server/route-cache/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","scripts/gflow-reply-capture.py","scripts/flow-vps-setup.sh","vendor/aistudio-waa/","skills/","README.md","README.zh-CN.md","DOCKER.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"node scripts/build-app.mjs","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","lint":"eslint .","test":"vitest run --config tests/vitest.config.js","build:cli":"node cli/scripts/build-cli.js","audit:package":"node cli/scripts/audit-package.mjs","smoke:package":"node cli/scripts/smoke-package.mjs","verify:mobile-scroll":"node cli/scripts/verify-dashboard-mobile-scroll.mjs","candidate:build":"node cli/scripts/local-candidate.mjs build","candidate:install":"node cli/scripts/local-candidate.mjs install","candidate:status":"node cli/scripts/local-candidate.mjs status","candidate:rollback":"node cli/scripts/local-candidate.mjs rollback","release":"node cli/scripts/release.js","prepack":"npm run build:cli && npm run audit:package","postinstall":"node cli/hooks/postinstall.js"},"dependencies":{"confbox":"0.2.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4"},"comment_published_runtime":"npm install -g must not download next or @next/swc. Those, plus sql.js, yaml, and @node-saml/node-saml, stay devDependencies so local dev and build:cli can trace them into cli/app. The published tarball already ships that standalone server. confbox stays here because the CLI imports it directly.","comment_optional_runtime":"Optional packages are installed into ~/.zevai/runtime instead of the published tarball. Automation uses CloakBrowser with playwright-core; ZEVAI_MINIMAL_POSTINSTALL=1 skips its browser download. Other lazy runtimes are better-sqlite3, node-pty, and systray2.","overrides":{"body-parser":"^2.3.0","brace-expansion":"5.0.12","dompurify":"^3.4.12","ip-address":"^10.4.0","js-yaml":"4.3.2","nanoid":"^3.3.18","postcss":"^8.5.10","sharp":"0.35.5"},"comment_overrides":"Security floors for transitive dependencies. ESLint\'s legacy minimatch is a private, source-pinned 3.1.5 compatibility package backed by brace-expansion 5.0.9; modern minimatch and nanoid use fixed floors directly. Monaco still pins an old DOMPurify; Express, Next, ESLint, and image processing dependencies may resolve vulnerable body-parser, js-yaml, or sharp releases. Recheck and remove overrides once parent packages require fixed versions.","devDependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@node-saml/node-saml":"5.1.0","@tailwindcss/postcss":"^4.1.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","better-sqlite3":"^12.6.2","chalk":"^4.1.2","dompurify":"^3.4.12","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.4.2","express":"^5.2.1","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","minimatch":"file:vendor/minimatch3-secure","monaco-editor":"^0.55.1","next":"16.4.2","node-forge":"^1.4.2","open":"^11.0.0","ora":"^9.1.0","postcss":"^8.5.10","prop-types":"^15.8.1","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks":"^2.8.9","socks-proxy-agent":"^10.1.0","sql.js":"1.14.1","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.12","yaml":"2.9.0","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},53225:(a,b,c)=>{c.d(b,{EV:()=>m,X5:()=>l});var d=c(55511),e=c(39609),f=c(78085),g=c(21031),h=c(30022);let i=new Map,j=new Map;async function k(a,b,c=null,d="intl"){let g,i,j={userId:(i=a?.providerSpecificData||{}).userId,authToken:a.accessToken,name:a.displayName||"",email:a.email||"",machineId:i.machineId||""};if(!j.userId||!j.authToken)return null;let l=`${(0,h.e9)(a,d)}/algo/api/v2/model/list`,m={Accept:"application/json","Accept-Encoding":"identity",...(0,f.d)(Buffer.alloc(0),l,j)},n=new AbortController,o=null,p=null;try{o=setTimeout(()=>n.abort("timeout"),15e3),b&&"function"==typeof b.addEventListener&&(b.aborted?n.abort(b.reason):(p=()=>n.abort(b.reason),b.addEventListener("abort",p))),g=await (0,e.proxyAwareFetch)(l,{method:"GET",headers:m,signal:n.signal},c)}finally{o&&clearTimeout(o),b&&p&&b.removeEventListener("abort",p)}if(!g.ok)return null;let q=await g.json().catch(()=>null);if(!q||!Array.isArray(q.chat))return null;let r=[],s=new Map;for(let a of q.chat){if(!a||"object"!=typeof a)continue;let b=a.key;if(!b||(s.set(b,a),!1===a.enable))continue;let c=a.display_name||b,d=Number(a.max_input_tokens)||131072;r.push({id:b,name:`${c}`,contextLength:d,isVL:!!a.is_vl,isReasoning:!!a.is_reasoning,maxOutputTokens:Number(a.max_output_tokens)||0,description:a.description||""})}return function(a){let b=[...a.models],c=new Map(a.rawConfigs),d=new Set([...b.map(a=>a.id),...c.keys()]);for(let[a,e]of Object.entries(h.Xx))d.has(a)||(c.set(a,{...e,key:a}),b.push({id:a,name:e.display_name||a,contextLength:e.max_input_tokens||18e4,isVL:!0===e.is_vl,isReasoning:!0===e.is_reasoning,maxOutputTokens:0,description:""}));return{models:b,rawConfigs:c}}({models:r,rawConfigs:s})}async function l(a,b,c={}){let d=await m(a,c),e=d?.rawConfigs?.get(b)||(0,h.TG)(b);return e?{...e,key:b}:null}async function m(a,b={}){var c;let e,f,l,n=b.region||(0,h.ty)(a?.provider);try{e=await (0,g.iC)(a,{...b,region:n})}catch(a){return b.log?.warn?.("QODER","PAT exchange failed",{code:a?.code||null,status:a?.status||null}),null}if(!e?.accessToken||(e.provider||(e={...e,provider:"cn"===n?"qoder-cn":"qoder"}),!(e.providerSpecificData||{}).userId))return null;let o=(c=e,f=(c?.providerSpecificData||{}).userId||c?.refreshToken||c?.accessToken||"anonymous",l=(0,h.ty)(c?.provider),(0,d.createHash)("sha256").update(`qoder:${l}:${f}`).digest("hex")),p=Date.now();if(!b.forceRefresh){let a=i.get(o);if(a&&a.expiresAt>p)return a}let q=j.get(o);if(q&&!b.forceRefresh)return q;let r=(async()=>{let a=await k(e,b.signal,b.proxyOptions,n);if(!a)return null;let c={expiresAt:Date.now()+36e5,models:a.models,rawConfigs:a.rawConfigs,fetched:!0};return i.set(o,c),c})();j.set(o,r);try{return await r}finally{j.get(o)===r&&j.delete(o)}}},78085:(a,b,c)=>{c.d(b,{d:()=>i});var d=c(55511),e=c.n(d),f=c(47293),g=c(30022);function h(a){return e().createHash("md5").update(a).digest("hex")}function i(a,b,c){var d;let i,j;if(!c?.userId)throw Error("cosy: user id is empty");if(!c?.authToken)throw Error("cosy: auth token is empty");let k=Buffer.isBuffer(a)?a:"string"==typeof a?Buffer.from(a,"latin1"):Buffer.from(a||[]),{cosyKey:l,info:m}=(d={uid:c.userId,security_oauth_token:c.authToken,name:c.name||"",aid:"",email:c.email||""},i=(0,f.A)().slice(0,16),j=function(a,b){var c;let d,f,g=Buffer.from(b,"utf8");if(16!==g.length)throw Error(`aes key must be 16 bytes, got ${g.length}`);let h=g.subarray(0,16),i=e().createCipheriv("aes-128-cbc",g,h);i.setAutoPadding(!1);let j=(d=16-(c=Buffer.from(a,"utf8")).length%16,f=Buffer.alloc(c.length+d,d),c.copy(f,0),f);return Buffer.concat([i.update(j),i.final()]).toString("base64")}(JSON.stringify(d),i),{cosyKey:e().publicEncrypt({key:g.pr,padding:e().constants.RSA_PKCS1_PADDING},Buffer.from(i,"utf8")).toString("base64"),info:j}),n=String(Math.floor(Date.now()/1e3)),o=JSON.stringify({version:"v1",requestId:(0,f.A)(),info:m,cosyVersion:g.cT,ideVersion:""}),p=Buffer.from(o,"utf8").toString("base64"),q=function(a){let b;try{b=new URL(a).pathname||""}catch{return""}return b.startsWith("/algo")?b.slice(5):b}(b),r=`${p}
6
+ -----END PUBLIC KEY-----`},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.77","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","!cli/app/.next-cli-build/cache/","!cli/app/.next-cli-build/server/route-cache/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","scripts/gflow-reply-capture.py","scripts/flow-vps-setup.sh","vendor/aistudio-waa/","skills/","README.md","README.zh-CN.md","DOCKER.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"node scripts/build-app.mjs","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","lint":"eslint .","test":"vitest run --config tests/vitest.config.js","build:cli":"node cli/scripts/build-cli.js","audit:package":"node cli/scripts/audit-package.mjs","smoke:package":"node cli/scripts/smoke-package.mjs","verify:mobile-scroll":"node cli/scripts/verify-dashboard-mobile-scroll.mjs","candidate:build":"node cli/scripts/local-candidate.mjs build","candidate:install":"node cli/scripts/local-candidate.mjs install","candidate:status":"node cli/scripts/local-candidate.mjs status","candidate:rollback":"node cli/scripts/local-candidate.mjs rollback","release":"node cli/scripts/release.js","prepack":"npm run build:cli && npm run audit:package","postinstall":"node cli/hooks/postinstall.js"},"dependencies":{"confbox":"0.2.4","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4"},"comment_published_runtime":"npm install -g must not download next or @next/swc. Those, plus sql.js, yaml, and @node-saml/node-saml, stay devDependencies so local dev and build:cli can trace them into cli/app. The published tarball already ships that standalone server. confbox stays here because the CLI imports it directly.","comment_optional_runtime":"Optional packages are installed into ~/.zevai/runtime instead of the published tarball. Automation uses CloakBrowser with playwright-core; ZEVAI_MINIMAL_POSTINSTALL=1 skips its browser download. Other lazy runtimes are better-sqlite3, node-pty, and systray2.","overrides":{"body-parser":"^2.3.0","brace-expansion":"5.0.12","dompurify":"^3.4.12","ip-address":"^10.4.0","js-yaml":"4.3.2","nanoid":"^3.3.18","postcss":"^8.5.10","sharp":"0.35.5"},"comment_overrides":"Security floors for transitive dependencies. ESLint\'s legacy minimatch is a private, source-pinned 3.1.5 compatibility package backed by brace-expansion 5.0.9; modern minimatch and nanoid use fixed floors directly. Monaco still pins an old DOMPurify; Express, Next, ESLint, and image processing dependencies may resolve vulnerable body-parser, js-yaml, or sharp releases. Recheck and remove overrides once parent packages require fixed versions.","devDependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@node-saml/node-saml":"5.1.0","@tailwindcss/postcss":"^4.1.18","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","better-sqlite3":"^12.6.2","chalk":"^4.1.2","dompurify":"^3.4.12","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.4.2","express":"^5.2.1","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","minimatch":"file:vendor/minimatch3-secure","monaco-editor":"^0.55.1","next":"16.4.2","node-forge":"^1.4.2","open":"^11.0.0","ora":"^9.1.0","postcss":"^8.5.10","prop-types":"^15.8.1","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks":"^2.8.9","socks-proxy-agent":"^10.1.0","sql.js":"1.14.1","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.12","yaml":"2.9.0","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},53225:(a,b,c)=>{c.d(b,{EV:()=>m,X5:()=>l});var d=c(55511),e=c(39609),f=c(78085),g=c(21031),h=c(30022);let i=new Map,j=new Map;async function k(a,b,c=null,d="intl"){let g,i,j={userId:(i=a?.providerSpecificData||{}).userId,authToken:a.accessToken,name:a.displayName||"",email:a.email||"",machineId:i.machineId||""};if(!j.userId||!j.authToken)return null;let l=`${(0,h.e9)(a,d)}/algo/api/v2/model/list`,m={Accept:"application/json","Accept-Encoding":"identity",...(0,f.d)(Buffer.alloc(0),l,j)},n=new AbortController,o=null,p=null;try{o=setTimeout(()=>n.abort("timeout"),15e3),b&&"function"==typeof b.addEventListener&&(b.aborted?n.abort(b.reason):(p=()=>n.abort(b.reason),b.addEventListener("abort",p))),g=await (0,e.proxyAwareFetch)(l,{method:"GET",headers:m,signal:n.signal},c)}finally{o&&clearTimeout(o),b&&p&&b.removeEventListener("abort",p)}if(!g.ok)return null;let q=await g.json().catch(()=>null);if(!q||!Array.isArray(q.chat))return null;let r=[],s=new Map;for(let a of q.chat){if(!a||"object"!=typeof a)continue;let b=a.key;if(!b||(s.set(b,a),!1===a.enable))continue;let c=a.display_name||b,d=Number(a.max_input_tokens)||131072;r.push({id:b,name:`${c}`,contextLength:d,isVL:!!a.is_vl,isReasoning:!!a.is_reasoning,maxOutputTokens:Number(a.max_output_tokens)||0,description:a.description||""})}return function(a){let b=[...a.models],c=new Map(a.rawConfigs),d=new Set([...b.map(a=>a.id),...c.keys()]);for(let[a,e]of Object.entries(h.Xx))d.has(a)||(c.set(a,{...e,key:a}),b.push({id:a,name:e.display_name||a,contextLength:e.max_input_tokens||18e4,isVL:!0===e.is_vl,isReasoning:!0===e.is_reasoning,maxOutputTokens:0,description:""}));return{models:b,rawConfigs:c}}({models:r,rawConfigs:s})}async function l(a,b,c={}){let d=await m(a,c),e=d?.rawConfigs?.get(b)||(0,h.TG)(b);return e?{...e,key:b}:null}async function m(a,b={}){var c;let e,f,l,n=b.region||(0,h.ty)(a?.provider);try{e=await (0,g.iC)(a,{...b,region:n})}catch(a){return b.log?.warn?.("QODER","PAT exchange failed",{code:a?.code||null,status:a?.status||null}),null}if(!e?.accessToken||(e.provider||(e={...e,provider:"cn"===n?"qoder-cn":"qoder"}),!(e.providerSpecificData||{}).userId))return null;let o=(c=e,f=(c?.providerSpecificData||{}).userId||c?.refreshToken||c?.accessToken||"anonymous",l=(0,h.ty)(c?.provider),(0,d.createHash)("sha256").update(`qoder:${l}:${f}`).digest("hex")),p=Date.now();if(!b.forceRefresh){let a=i.get(o);if(a&&a.expiresAt>p)return a}let q=j.get(o);if(q&&!b.forceRefresh)return q;let r=(async()=>{let a=await k(e,b.signal,b.proxyOptions,n);if(!a)return null;let c={expiresAt:Date.now()+36e5,models:a.models,rawConfigs:a.rawConfigs,fetched:!0};return i.set(o,c),c})();j.set(o,r);try{return await r}finally{j.get(o)===r&&j.delete(o)}}},78085:(a,b,c)=>{c.d(b,{d:()=>i});var d=c(55511),e=c.n(d),f=c(47293),g=c(30022);function h(a){return e().createHash("md5").update(a).digest("hex")}function i(a,b,c){var d;let i,j;if(!c?.userId)throw Error("cosy: user id is empty");if(!c?.authToken)throw Error("cosy: auth token is empty");let k=Buffer.isBuffer(a)?a:"string"==typeof a?Buffer.from(a,"latin1"):Buffer.from(a||[]),{cosyKey:l,info:m}=(d={uid:c.userId,security_oauth_token:c.authToken,name:c.name||"",aid:"",email:c.email||""},i=(0,f.A)().slice(0,16),j=function(a,b){var c;let d,f,g=Buffer.from(b,"utf8");if(16!==g.length)throw Error(`aes key must be 16 bytes, got ${g.length}`);let h=g.subarray(0,16),i=e().createCipheriv("aes-128-cbc",g,h);i.setAutoPadding(!1);let j=(d=16-(c=Buffer.from(a,"utf8")).length%16,f=Buffer.alloc(c.length+d,d),c.copy(f,0),f);return Buffer.concat([i.update(j),i.final()]).toString("base64")}(JSON.stringify(d),i),{cosyKey:e().publicEncrypt({key:g.pr,padding:e().constants.RSA_PKCS1_PADDING},Buffer.from(i,"utf8")).toString("base64"),info:j}),n=String(Math.floor(Date.now()/1e3)),o=JSON.stringify({version:"v1",requestId:(0,f.A)(),info:m,cosyVersion:g.cT,ideVersion:""}),p=Buffer.from(o,"utf8").toString("base64"),q=function(a){let b;try{b=new URL(a).pathname||""}catch{return""}return b.startsWith("/algo")?b.slice(5):b}(b),r=`${p}
7
7
  ${l}
8
8
  ${n}
9
9
  ${k.toString("latin1")}