zevairouter 1.1.78 → 1.1.81

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 (590) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +23 -23
  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 +2 -2
  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 +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  64. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  65. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  66. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  67. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  68. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  69. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  70. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  71. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  72. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  73. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  74. package/cli/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  75. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  76. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  77. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  78. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  79. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  82. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  83. package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  85. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  86. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  88. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  89. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  90. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  91. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  92. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  93. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  94. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  95. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  96. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  97. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  98. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  99. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  100. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
  101. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  102. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  103. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  104. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
  105. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  106. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  107. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  113. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  115. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  117. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  119. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  121. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js.nft.json +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  130. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js +3 -3
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js.nft.json +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/context/test/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/dashboard/models/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/json-import/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/helper/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/models/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/providers/openrouter/discover-models/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  332. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  380. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  399. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  400. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  401. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  402. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  403. package/cli/app/.next-cli-build/server/app/callback.rsc +3 -3
  404. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  405. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  406. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
  407. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  408. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +3 -3
  409. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +3 -3
  410. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +3 -3
  411. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  412. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  413. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +3 -3
  414. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
  415. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +3 -3
  416. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  417. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  418. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +4 -4
  419. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +4 -4
  420. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +4 -4
  421. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  422. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  423. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +3 -3
  424. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +3 -3
  425. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +3 -3
  426. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  427. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  428. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +3 -3
  429. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +3 -3
  430. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +3 -3
  431. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  432. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  433. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +3 -3
  434. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
  435. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +3 -3
  436. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  437. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  438. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +3 -3
  439. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +3 -3
  440. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +3 -3
  441. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  442. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  443. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +4 -4
  444. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +4 -4
  445. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +4 -4
  446. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  447. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  448. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +3 -3
  449. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +3 -3
  450. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +3 -3
  451. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  452. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  453. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +3 -3
  454. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +3 -3
  455. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +3 -3
  456. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  457. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  458. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +3 -3
  459. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +3 -3
  460. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +3 -3
  461. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  462. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  463. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +4 -4
  464. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +4 -4
  465. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +4 -4
  466. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  467. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  468. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +3 -3
  469. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +3 -3
  470. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +3 -3
  471. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  472. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  473. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +3 -3
  474. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
  475. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +3 -3
  476. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  477. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  478. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +3 -3
  479. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  480. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +3 -3
  481. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  482. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  483. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  484. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
  485. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  486. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  487. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  488. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +3 -3
  489. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +3 -3
  490. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +3 -3
  491. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  492. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  493. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +3 -3
  494. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +3 -3
  495. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +3 -3
  496. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  497. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  498. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +3 -3
  499. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +3 -3
  500. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +3 -3
  501. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  502. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  503. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +3 -3
  504. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +3 -3
  505. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +3 -3
  506. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  507. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  508. package/cli/app/.next-cli-build/server/app/dashboard.rsc +3 -3
  509. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
  510. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +3 -3
  511. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  512. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  513. package/cli/app/.next-cli-build/server/app/index.rsc +3 -3
  514. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  515. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  516. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  517. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  518. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  519. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  520. package/cli/app/.next-cli-build/server/app/landing.rsc +3 -3
  521. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  522. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  523. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
  524. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  525. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  526. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  527. package/cli/app/.next-cli-build/server/app/login.rsc +3 -3
  528. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
  529. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  530. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  531. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  532. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  533. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  534. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  535. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
  536. package/cli/app/.next-cli-build/server/app-paths-manifest.json +23 -23
  537. package/cli/app/.next-cli-build/server/chunks/1257.js +1 -1
  538. package/cli/app/.next-cli-build/server/chunks/1283.js +1 -1
  539. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  540. package/cli/app/.next-cli-build/server/chunks/1509.js +1 -1
  541. package/cli/app/.next-cli-build/server/chunks/1757.js +1 -1
  542. package/cli/app/.next-cli-build/server/chunks/2025.js +1 -1
  543. package/cli/app/.next-cli-build/server/chunks/267.js +1 -1
  544. package/cli/app/.next-cli-build/server/chunks/2990.js +1 -1
  545. package/cli/app/.next-cli-build/server/chunks/3792.js +1 -1
  546. package/cli/app/.next-cli-build/server/chunks/3815.js +1 -1
  547. package/cli/app/.next-cli-build/server/chunks/412.js +1 -1
  548. package/cli/app/.next-cli-build/server/chunks/4128.js +1 -1
  549. package/cli/app/.next-cli-build/server/chunks/4177.js +1 -1
  550. package/cli/app/.next-cli-build/server/chunks/4549.js +1 -1
  551. package/cli/app/.next-cli-build/server/chunks/4631.js +1 -0
  552. package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
  553. package/cli/app/.next-cli-build/server/chunks/5330.js +4 -2
  554. package/cli/app/.next-cli-build/server/chunks/5626.js +1 -1
  555. package/cli/app/.next-cli-build/server/chunks/5744.js +1 -1
  556. package/cli/app/.next-cli-build/server/chunks/5819.js +1 -1
  557. package/cli/app/.next-cli-build/server/chunks/5905.js +3 -3
  558. package/cli/app/.next-cli-build/server/chunks/6166.js +1 -1
  559. package/cli/app/.next-cli-build/server/chunks/6396.js +1 -1
  560. package/cli/app/.next-cli-build/server/chunks/6492.js +1 -1
  561. package/cli/app/.next-cli-build/server/chunks/6936.js +1 -1
  562. package/cli/app/.next-cli-build/server/chunks/7135.js +1 -1
  563. package/cli/app/.next-cli-build/server/chunks/7319.js +14 -12
  564. package/cli/app/.next-cli-build/server/chunks/7364.js +1 -1
  565. package/cli/app/.next-cli-build/server/chunks/7404.js +1 -1
  566. package/cli/app/.next-cli-build/server/chunks/8517.js +1 -1
  567. package/cli/app/.next-cli-build/server/chunks/8725.js +1 -1
  568. package/cli/app/.next-cli-build/server/chunks/8749.js +1 -1
  569. package/cli/app/.next-cli-build/server/chunks/9548.js +1 -1
  570. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  571. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  572. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  573. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  574. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  575. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  576. package/cli/app/.next-cli-build/static/chunks/{5497-71a02c6639ddb92b.js → 5497-44af6e5aafe6256a.js} +1 -1
  577. package/cli/app/.next-cli-build/static/chunks/620-7ee9e671a83a36e2.js +1 -0
  578. package/cli/app/.next-cli-build/static/chunks/{7001-67d0f2aa165b8767.js → 7001-8bbc6a14335afd88.js} +8 -8
  579. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-c2b77eabb14f7642.js → page-342ac0d9d2fb15c7.js} +2 -2
  580. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-808e3749cba268ff.js +1 -0
  581. package/cli/app/CHANGELOG.md +23 -0
  582. package/cli/app/package.json +1 -1
  583. package/cli/app/src/mitm/server.js +1 -1
  584. package/cli/package.json +1 -1
  585. package/package.json +1 -1
  586. package/cli/app/.next-cli-build/server/chunks/8972.js +0 -1
  587. package/cli/app/.next-cli-build/static/chunks/620-11311598c4b9e95a.js +0 -1
  588. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-926a39b841570eda.js +0 -1
  589. /package/cli/app/.next-cli-build/static/{BLnTNheSRSk8U0Uqmnbc4 → 3CLejW1UKDHu2Eb5QKNoj}/_buildManifest.js +0 -0
  590. /package/cli/app/.next-cli-build/static/{BLnTNheSRSk8U0Uqmnbc4 → 3CLejW1UKDHu2Eb5QKNoj}/_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.78","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.81","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,"00e39bd9ca3705b49d7fd196c6bf633497c8792ffb",null),(0,d.A)(D,"40802d72132281a3e2397c48d76e498fceca33c779",null),(0,d.A)(E,"400125c15dbdc5297060f3b5cb76952f7780ca4b4b",null),(0,d.A)(F,"4059fedb63ed49cec3561dc0a8a272f92e9b51938c",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,"000d4f14bc7c7a99e4cccef49e1c6c63b2616a133d",null),(0,d.A)(D,"409dd6d04a3c7fd6e5a23786fbfa8ccc4959ef8e19",null),(0,d.A)(E,"40fe9b3610272b17f6d47b5f1e523f58daa88d83bb",null),(0,d.A)(F,"4035d8938a37da253c2d324fcbc490841001d5a010",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}}}};
@@ -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}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}
431
+ ...[omitted]...`}function Z(a,b,c,d,e=!0){if(!a)return!1;if("string"==typeof a.content){let f=Y(a.content,b,c,d,e);return f!==a.content&&(a.content=f,!0)}if(Array.isArray(a.content)){let f=!1;return a.content=a.content.map(a=>a&&"object"==typeof a?"string"==typeof a.text&&a.text.length>b?(f=!0,{...a,text:Y(a.text,b,c,d,e)}):"image_url"===a.type&&"string"==typeof a.image_url?.url&&a.image_url.url.startsWith("data:")&&a.image_url.url.length>512?(f=!0,{type:"text",text:"[historical image omitted during compaction]"}):a:a),f}return!1}let $=new Set(["read","shell"]);function _(a){if(!a||"object"!=typeof a||Array.isArray(a))return a;let b={...a};if("string"==typeof b.description&&b.description.length>80&&(b.description=b.description.slice(0,80)),b.properties&&"object"==typeof b.properties&&!Array.isArray(b.properties)){let a={};for(let[c,d]of Object.entries(b.properties))if(d&&"object"==typeof d&&!Array.isArray(d)){let b={...d};"string"==typeof b.description&&b.description.length>60&&(b.description=b.description.slice(0,60)),b.properties&&(b.properties=_(b).properties),b.items&&"object"==typeof b.items&&(b.items=_(b.items)),a[c]=b}else a[c]=d;b.properties=a}return b}class aa extends f.Hv{constructor(){super("opencode",g.xq.opencode)}transformRequest(a,b){let c={...b};Array.isArray(c.messages)&&c.messages.some(a=>a&&"name"in a)&&(c.messages=c.messages.map(a=>{if(!a||!("name"in a))return a;let{name:b,...c}=a;return c}));let d=(0,j.Ke)(c,!1,{claude:J.has(a)});c.stream=!0,"none"===c.tool_choice&&delete c.tool_choice;let e=(0,h.Z)({provider:this.provider,model:a,body:(0,i.f)(a,c)});return!function(a,b=154e3){if(!Array.isArray(a?.messages)||0===a.messages.length)return;let c=!1,d=[];for(let b of a.messages){if(!b||"object"!=typeof b){d.push(b);continue}let a={...b};if("user"===a.role&&"string"==typeof a.content&&V.test(a.content))if(c){let b=a.content.replace(V,"").trim()||"continue";a.content=b}else c=!0;d.push(a)}a.messages=d;let e=Buffer.byteLength(JSON.stringify(a),"utf8");if(e<=b)return;let f=[];for(let b of a.messages){if(b?.role==="user"&&f.length>=2&&f[f.length-1]?.role==="user"&&"string"==typeof b.content&&b.content.length<256&&"string"==typeof f[f.length-1]?.content&&f[f.length-1].content.length<256&&b.content===f[f.length-1].content){f[f.length-1]=b;continue}f.push(b)}if(a.messages=f,(e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b||(!function(a,b=!1){if(!Array.isArray(a?.tools)||0===a.tools.length)return;let c=new Set;if(b&&Array.isArray(a.messages)){for(let b of a.messages)if(Array.isArray(b?.tool_calls))for(let a of b.tool_calls)a?.function?.name&&c.add(a.function.name)}a.tools=a.tools.filter(a=>{if(!b)return!0;let d=a?.function?.name||a?.name||"";return!d.startsWith("computer_use_")||!!c.has(d)}).map(a=>{if(!a||"object"!=typeof a)return a;let b=a.function&&"object"==typeof a.function?a.function:null,c=(b?b.name:a.name)||"";if($.has(c))return a;let d="skill"===c?1800:140;if(b){let c={...b};return"string"==typeof c.description&&c.description.length>d&&(c.description=c.description.slice(0,d)),c.parameters&&(c.parameters=_(c.parameters)),{...a,function:c}}let e={...a};return"string"==typeof e.description&&e.description.length>d&&(e.description=e.description.slice(0,d)),e.parameters&&(e.parameters=_(e.parameters)),e})}(a,!0),(e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b))return;let g=Math.max(1,a.messages.length-18);for(let c=1;c<g&&e>b;c++){let b=a.messages[c];if(b?.role==="assistant"&&"string"==typeof b.reasoning_content&&b.reasoning_content.length>1){let a=Buffer.byteLength(b.reasoning_content,"utf8");b.reasoning_content=".",e-=Math.max(0,a-1)}}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;for(let c=1;c<g&&e>b;c++){let b=a.messages[c];b&&("tool"===b.role||"user"===b.role&&c>3)&&Z(b,2400,1400,700,!0)}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;let h=Math.max(1,a.messages.length-10);for(let c=1;c<h&&e>b;c++){let b=a.messages[c];b&&"system"!==b.role&&(Z(b,1400,850,400,!0),"assistant"===b.role&&Array.isArray(b.tool_calls)&&(b.tool_calls=b.tool_calls.map(a=>{let b=a?.function?.arguments;return"string"!=typeof b||b.length<=1200?a:{...a,function:{...a.function,arguments:X(b)}}})))}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;for(let c=1;c<h&&e>b;c++){let b=a.messages[c];b&&"system"!==b.role&&("tool"===b.role?Z(b,650,420,180,!1):"assistant"===b.role&&Z(b,500,320,0,!1))}if((e=Buffer.byteLength(JSON.stringify(a),"utf8"))<=b)return;let i=a.messages.findIndex(a=>a&&"system"!==a.role);i<0&&(i=1);let j=a.messages[i]?.role==="user"?i+1:i;for(;e>b&&j<a.messages.length;){let b=-1;for(let c=a.messages.length-1;c>=0;c--)if(a.messages[c]?.role==="user"){b=c;break}if(j===b&&b>i&&(j=b+1)>=a.messages.length)break;let c=function(a,b){let c=1;for("user"===a[b]?.role&&a[b+1]?.role==="assistant"&&c++;b+c<a.length&&a[b+c]?.role==="tool";)c++;return c}(a.messages,j);if(a.messages.length-(j+c)<2)break;b>j&&j+c>b?a.messages.splice(j,b-j):a.messages.splice(j,c),e=Buffer.byteLength(JSON.stringify(a),"utf8")}if(e>b)for(let[c,d,f]of[[4e3,2e3,1e3],[1e3,500,300],[300,150,80]]){for(let g=Math.max(1,a.messages.length-18);g<a.messages.length&&e>b;g++){let h=a.messages[g];h&&"system"!==h.role&&(Z(h,c,d,f,!0)&&(e=Buffer.byteLength(JSON.stringify(a),"utf8")),e>b&&"assistant"===h.role&&Array.isArray(h.tool_calls)&&(h.tool_calls=h.tool_calls.map(a=>{let b=a?.function?.arguments;return"string"!=typeof b||b.length<=c?a:{...a,function:{...a.function,arguments:X(b)}}}),e=Buffer.byteLength(JSON.stringify(a),"utf8")))}if(e<=b)break}}(e),d?.size&&(0,j.sj)(e,d),e}buildUrl(a){let b="https://opencode.ai";return J.has(a)?`${b}/inference/v1/messages`:`${b}/inference/v1/chat/completions`}buildHeaders(a,b=!0,c){let d,e,f=U(c?.body,a);return{"Content-Type":"application/json",Authorization:"Bearer public","User-Agent":(e=(d=T(a?.rawHeaders,"user-agent")||"").match(K))&&Number(e[1])>=2?d:H.B,"x-opencode-client":T(a?.rawHeaders,"x-opencode-client")||"cli","x-opencode-session":f,"x-opencode-session-id":f,"x-session-affinity":f,"x-session-id":f,"x-opencode-project":T(a?.rawHeaders,"x-opencode-project")||"global",Accept:b?"text/event-stream":"*/*"}}async fetchUpstream(a,b,c){let d=(0,G.resolveProxyUrl)(a,c),e=c?.strictProxy===!0;"string"==typeof d&&d.includes("mode=free-warp")&&await F();let f=await function(a,{method:b="GET",headers:c={},body:d=null,signal:e=null}={},{proxyUrl:f=null,strictProxy:g=!1}={}){if(e?.aborted)return Promise.reject(t(e));let h=function(){let a=process.env.ZEVAI_BUN_BIN?.trim();if(a)return a;let b="win32"===process.platform,c=o().homedir(),d=b?"bun.exe":"bun",e=b?[q().join(c,".bun","bin",d),q().join(q().dirname(process.execPath),d)]:[q().join(c,".bun","bin",d),q().join(q().dirname(process.execPath),d),q().join(c,".local","bin",d),"/opt/homebrew/bin/bun","/usr/local/bin/bun","/usr/bin/bun",q().join(c,"Library","Application Support","OpenBot","provider-runtimes","bun","darwin-arm64","1.4.4","bin",d)],f=process.env.DATA_DIR||(b?q().join(process.env.APPDATA||c,"zevai"):q().join(c,".zevai")),g=q().join(f,"runtime","node_modules");for(let a of(e.push(q().join(g,"bun","bin","bun.exe"),q().join(g,".bin",d)),e))if(m().existsSync(a))return a;return d}(),i=JSON.stringify({url:String(a),method:b,headers:c instanceof Headers?Object.fromEntries(c.entries()):c,body:null==d?null:"string"==typeof d?d:d instanceof Uint8Array?Buffer.from(d).toString("utf8"):String(d),proxy:f||null,strictProxy:!!g});return new Promise((a,c)=>{let d=(0,k.spawn)(h,["-e",r],{stdio:["pipe","pipe","pipe"]}),f=!1,g=Buffer.alloc(0),j=null,l="",m=a=>{if(f){if(j){try{j.error(a)}catch{}j=null}}else f=!0,c(a)},n=()=>{d.killed||d.kill("SIGKILL"),m(t(e))};e?.addEventListener("abort",n,{once:!0});let o=()=>e?.removeEventListener("abort",n),p=new ReadableStream({start(a){j=a},pull(){d.stdout.resume()},cancel(){j=null,o(),d.killed||d.kill("SIGKILL")}},{highWaterMark:16}),q=a=>{j&&0!==a.length&&(j.enqueue(new Uint8Array(a)),null!==j.desiredSize&&j.desiredSize<=0&&d.stdout.pause())};d.stdout.on("data",c=>{if(f)return void q(c);let d=(g=Buffer.concat([g,c])).indexOf(10);if(-1===d)return;let e=g.subarray(0,d).toString("utf8"),h=g.subarray(d+1);g=Buffer.alloc(0),((c,d)=>{let e;try{e=JSON.parse(c)}catch{m(Error(`Bun fetch returned an invalid header: ${c.slice(0,200)}`));return}if(e.error)return m(Error(`Bun fetch failed: ${e.error}`));let g=new Headers;for(let[a,b]of e.headers||[])s.has(a.toLowerCase())||g.append(a,b);f=!0,a(new Response(![101,204,205,304].includes(e.status)&&"HEAD"!==b?p:null,{status:e.status,statusText:e.statusText||"",headers:g})),q(d)})(e,h)}),d.stderr.on("data",a=>{l=(l+a.toString("utf8")).slice(-2048)}),d.on("error",a=>{o(),m(Error("ENOENT"===a.code?`Bun runtime not found (${h}). Install Bun from https://bun.sh or set ZEVAI_BUN_BIN to its path.`:`Bun fetch could not start: ${a.message}`))}),d.on("close",a=>{(o(),f)?j&&(0===a?j.close():j.error(Error(`Bun fetch exited with code ${a} mid-response${l?`: ${l.trim()}`:""}`)),j=null):m(Error(`Bun fetch exited with code ${a} before responding${l?`: ${l.trim()}`:""}`))}),d.stdin.on("error",()=>{}),d.stdin.end(i)})}(a,b,{proxyUrl:d,strictProxy:e});if(429===f.status){var g=b?.headers?.["x-opencode-session"];if(g)for(let a of[P,Q])for(let[b,c]of a.entries())c?.sessionId===g&&a.delete(b);if(f.headers?.has?.("retry-after")){let a=new Headers(f.headers);return a.set("retry-after","2"),new Response(f.body,{status:f.status,statusText:f.statusText,headers:a})}}return f}}},60210:(a,b,c)=>{c.d(b,{HR:()=>function a(b,c){if(!c?.size||!b)return b;if(Array.isArray(b))return b.map(b=>a(b,c));if("object"!=typeof b)return b;let d=b,e=(a,c)=>{d===b&&(d={...b}),d[a]=c};if("content_block_start"===b.type){let a=b.content_block;a?.type==="tool_use"&&"string"==typeof a.name&&c.has(a.name)&&e("content_block",{...a,name:c.get(a.name)})}Array.isArray(b.content)&&e("content",b.content.map(a=>a?.type==="tool_use"&&"string"==typeof a.name&&c.has(a.name)?{...a,name:c.get(a.name)}:a)),Array.isArray(b.choices)&&e("choices",b.choices.map(a=>{let b=!1,d={...a};for(let e of["delta","message"]){let f=a?.[e];if(!f||!Array.isArray(f.tool_calls)||0===f.tool_calls.length)continue;let g=f.tool_calls.map(a=>{let d=a?.function?.name;return"string"==typeof d&&c.has(d)?(b=!0,{...a,function:{...a.function,name:c.get(d)}}):a});d[e]={...f,tool_calls:g}}return b?d:a})),Array.isArray(b.output)&&e("output",b.output.map(a=>a?.type==="function_call"&&"string"==typeof a.name&&c.has(a.name)?{...a,name:c.get(a.name)}:a));let f=b.item;return f?.type==="function_call"&&"string"==typeof f.name&&c.has(f.name)&&e("item",{...f,name:c.get(f.name)}),d},Ke:()=>v,g4:()=>x,sj:()=>w});var d=c(48161),e=c.n(d),f=c(76760),g=c.n(f);let h=["read","shell"],i={read:{description:"Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",parameters:{type:"object",properties:{path:{type:"string",description:"File or directory to read"},offset:{type:"integer",minimum:0,description:"The line or directory entry to start reading from (1-based)"},limit:{type:"integer",minimum:0,description:"The maximum number of lines or directory entries to read (defaults to and capped at 2000)"}},required:["path"],additionalProperties:!1}},shell:{description:"Execute a shell command and return its output. Commands run on Linux using bash. Quote file paths containing spaces or special characters. Prefer dedicated tools over shell commands when possible. When output is large, the full result is saved to a file and a truncated preview is returned. Rely on automatic truncation unless filtering the output is more useful. Commands accept an optional timeout, background commands have no timeout by default. Background commands return immediately, and you will be notified when they complete.",parameters:{type:"object",properties:{command:{type:"string",description:"Shell command string to execute"},workdir:{type:"string",description:"Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."},timeout:{type:"integer",minimum:0,description:"Timeout in milliseconds. Set to 0 to disable the timeout. Defaults to 120000 for foreground commands. Background commands have no timeout by default."},background:{type:"boolean",description:"Run the command in the background and return immediately (useful for dev servers and long-running builds). You do not need to use '&' at the end of the command when using this parameter. You will be notified when it completes. DO NOT poll for completion."}},required:["command"],additionalProperties:!1}}},j=new WeakMap;function k(a){let b=String(a??"").trim();return h.includes(b)?b:""}function l(a){if(!a||"object"!=typeof a||Array.isArray(a))return"";if("string"==typeof a.name&&a.name.trim())return a.name.trim();let b=a.function;return b&&"object"==typeof b&&!Array.isArray(b)&&"string"==typeof b.name?b.name.trim():""}function m(a){let b=a?.function;return b&&"object"==typeof b&&!Array.isArray(b)?b:null}function n(a,b){let c=m(a);return c?{...a,function:{...c,name:b}}:{...a,name:b}}function o(a){return new Map([...a].map(([a,b])=>[b,a]))}let p="<env>",q=g().join(e().tmpdir(),"opencode"),r=process.cwd(),s=["Here is some useful information about the environment you are running in:",p,` Working directory: ${r}`,` Workspace root folder: ${r}`," Is directory a git repo: no",` Platform: ${process.platform}`,` Prefer ${q} over generic system temporary directories such as /tmp; it is pre-created and approved for external access.`,"</env>"].join("\n");function t(a){return"string"==typeof a?a.includes(p):!!Array.isArray(a)&&a.some(a=>"string"==typeof a?.text&&a.text.includes(p))}function u(a,b){if("string"==typeof a)return a.trim()?`${a}
432
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