zevairouter 1.1.30 → 1.1.32

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 (1180) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +18 -17
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/prerender-manifest.json +5 -5
  6. package/cli/app/.next-cli-build/routes-manifest.json +6 -0
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  64. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  65. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  66. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  67. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  68. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  69. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  70. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  71. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  72. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  73. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
  74. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  75. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  76. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  77. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  78. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  79. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js +1 -1
  80. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  82. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  83. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  85. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  86. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  88. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  89. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  90. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  91. package/cli/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  92. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  93. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  94. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  95. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  96. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  97. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  98. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  99. package/cli/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  100. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  101. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  102. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  103. package/cli/app/.next-cli-build/server/app/_not-found.rsc +2 -2
  104. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +2 -2
  105. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  106. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +2 -2
  120. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  121. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js +2 -2
  124. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +4 -4
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  148. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  154. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  158. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -2
  160. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -2
  162. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  164. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +1 -0
  166. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -0
  167. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route_client-reference-manifest.js +1 -0
  168. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  169. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  171. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/context/route.js +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/health/route.js +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/metrics/route.js +2 -2
  233. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  299. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/providers/route.js +2 -2
  377. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  380. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  389. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  391. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  397. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  399. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  401. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  403. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  404. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  405. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  406. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  407. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  408. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  409. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  410. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  411. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  412. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  413. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  414. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  416. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  417. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  418. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  419. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  420. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  421. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  422. package/cli/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  423. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  424. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js +1 -1
  425. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  426. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js +1 -1
  427. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  428. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js +1 -1
  429. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  430. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js +1 -1
  431. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  432. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js +1 -1
  433. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  434. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js +1 -1
  435. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  436. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js +2 -2
  437. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  438. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js +1 -1
  439. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  440. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  441. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  442. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  443. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  444. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  445. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  446. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  447. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  448. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  449. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  450. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  451. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  452. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  453. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  454. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  455. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  456. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  457. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  458. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  459. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  460. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  461. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  462. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  463. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  464. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  465. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  466. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  467. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  468. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  469. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  470. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  471. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  472. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  473. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  474. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  475. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  476. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  477. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  478. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  479. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  480. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +2 -2
  481. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  482. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  483. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  484. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  485. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  486. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js +2 -2
  487. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  488. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  489. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  490. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  491. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  492. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  493. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  494. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  495. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  496. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  497. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  498. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  499. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  500. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  501. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  502. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  503. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  504. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  505. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  506. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  507. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  508. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  509. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  510. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  511. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  512. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  513. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  514. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  515. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  516. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  517. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  518. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  519. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  520. package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  521. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  522. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  523. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  524. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  525. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  526. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  527. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  528. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  529. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  530. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  531. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  532. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  533. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  534. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  535. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  536. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  537. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  538. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  539. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  540. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  541. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  542. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  543. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  544. package/cli/app/.next-cli-build/server/app/callback/page.js +1 -1
  545. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  546. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  547. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  548. package/cli/app/.next-cli-build/server/app/callback.rsc +2 -2
  549. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +2 -2
  550. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  551. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
  552. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  553. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +2 -2
  554. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
  555. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +2 -2
  556. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  557. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  558. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +2 -2
  559. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  560. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +2 -2
  561. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  562. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  563. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  564. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +5 -5
  565. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  566. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  567. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  568. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +2 -2
  569. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  570. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +2 -2
  571. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  572. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  573. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +2 -2
  574. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +2 -2
  575. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +2 -2
  576. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  577. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  578. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +2 -2
  579. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  580. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +2 -2
  581. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  582. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  583. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +2 -2
  584. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  585. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +2 -2
  586. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  587. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  588. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  589. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +5 -5
  590. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  591. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  592. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  593. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +2 -2
  594. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +2 -2
  595. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +2 -2
  596. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  597. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  598. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +2 -2
  599. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  600. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +2 -2
  601. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  602. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  603. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +2 -2
  604. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  605. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +2 -2
  606. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  607. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  608. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +2 -2
  609. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  610. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +2 -2
  611. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  612. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  613. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +2 -2
  614. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  615. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +2 -2
  616. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  617. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  618. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +2 -2
  619. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  620. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +2 -2
  621. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  622. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  623. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +2 -2
  624. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +2 -2
  625. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +2 -2
  626. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  627. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  628. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +2 -2
  629. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  630. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +2 -2
  631. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  632. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  633. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +2 -2
  634. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  635. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +2 -2
  636. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  637. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  638. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +2 -2
  639. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  640. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +2 -2
  641. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  642. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  643. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +2 -2
  644. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  645. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +2 -2
  646. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  647. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  648. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +2 -2
  649. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  650. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +2 -2
  651. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  652. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  653. package/cli/app/.next-cli-build/server/app/dashboard.rsc +2 -2
  654. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  655. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +2 -2
  656. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  657. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  658. package/cli/app/.next-cli-build/server/app/index.rsc +2 -2
  659. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  660. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +2 -2
  661. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  662. package/cli/app/.next-cli-build/server/app/landing/page.js +1 -1
  663. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  664. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  665. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  666. package/cli/app/.next-cli-build/server/app/landing.rsc +2 -2
  667. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +2 -2
  668. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  669. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  670. package/cli/app/.next-cli-build/server/app/login/page.js +1 -1
  671. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  672. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  673. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  674. package/cli/app/.next-cli-build/server/app/login.rsc +2 -2
  675. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +2 -2
  676. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  677. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  678. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  679. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  680. package/cli/app/.next-cli-build/server/app/page.js +1 -1
  681. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  682. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  683. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js +2 -2
  684. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  685. package/cli/app/.next-cli-build/server/app-paths-manifest.json +18 -17
  686. package/cli/app/.next-cli-build/server/chunks/1051.js +1 -1
  687. package/cli/app/.next-cli-build/server/chunks/1131.js +1 -1
  688. package/cli/app/.next-cli-build/server/chunks/1283.js +7 -7
  689. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  690. package/cli/app/.next-cli-build/server/chunks/1756.js +1 -1
  691. package/cli/app/.next-cli-build/server/chunks/2456.js +1 -0
  692. package/cli/app/.next-cli-build/server/chunks/2557.js +1 -0
  693. package/cli/app/.next-cli-build/server/chunks/{9528.js → 2750.js} +2 -3
  694. package/cli/app/.next-cli-build/server/chunks/3721.js +2 -2
  695. package/cli/app/.next-cli-build/server/chunks/3949.js +1 -1
  696. package/cli/app/.next-cli-build/server/chunks/4315.js +1 -0
  697. package/cli/app/.next-cli-build/server/chunks/{3294.js → 440.js} +4 -3
  698. package/cli/app/.next-cli-build/server/chunks/4586.js +7 -7
  699. package/cli/app/.next-cli-build/server/chunks/4827.js +1 -1
  700. package/cli/app/.next-cli-build/server/chunks/4897.js +1 -1
  701. package/cli/app/.next-cli-build/server/chunks/5019.js +1 -1
  702. package/cli/app/.next-cli-build/server/chunks/{3410.js → 5029.js} +10 -3
  703. package/cli/app/.next-cli-build/server/chunks/5330.js +1 -1
  704. package/cli/app/.next-cli-build/server/chunks/5752.js +1 -1
  705. package/cli/app/.next-cli-build/server/chunks/7319.js +24 -24
  706. package/cli/app/.next-cli-build/server/chunks/7432.js +1 -0
  707. package/cli/app/.next-cli-build/server/chunks/7634.js +1 -1
  708. package/cli/app/.next-cli-build/server/chunks/8255.js +1 -1
  709. package/cli/app/.next-cli-build/server/chunks/8306.js +1 -1
  710. package/cli/app/.next-cli-build/server/chunks/8655.js +1 -1
  711. package/cli/app/.next-cli-build/server/chunks/891.js +1 -1
  712. package/cli/app/.next-cli-build/server/chunks/8910.js +2 -2
  713. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  714. package/cli/app/.next-cli-build/server/middleware.js +4 -4
  715. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  716. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  717. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  718. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  719. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  720. package/cli/app/.next-cli-build/static/ZV1b0QFpI7Py60MZLjqfn/_buildManifest.js +1 -0
  721. package/cli/app/.next-cli-build/static/chunks/{756-4e77bedbc6d26d01.js → 2788-2df2621713259623.js} +17 -10
  722. package/cli/app/.next-cli-build/static/chunks/{620-4b5ba6dd064fceff.js → 620-e558cc55d89edd47.js} +1 -1
  723. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-8aaa1c79069eec02.js → page-4864980a82826ddf.js} +1 -1
  724. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-f798b5ab837df22b.js → page-09ddee1cb9a8a1dd.js} +1 -1
  725. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-8a3bd56e53cbbdbd.js → page-acbb5a79ce21fa86.js} +1 -1
  726. package/cli/app/.next-cli-build/static/chunks/app/_global-error/{page-770f86851dc3d3f5.js → page-5bba6c0b89069588.js} +1 -1
  727. package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/{route-770f86851dc3d3f5.js → route-5bba6c0b89069588.js} +1 -1
  728. package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-770f86851dc3d3f5.js → route-5bba6c0b89069588.js} +1 -1
  729. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-770f86851dc3d3f5.js → route-5bba6c0b89069588.js} +1 -1
  730. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-5bba6c0b89069588.js +1 -0
  731. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-5bba6c0b89069588.js +1 -0
  732. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-5bba6c0b89069588.js +1 -0
  733. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-5bba6c0b89069588.js +1 -0
  734. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-5bba6c0b89069588.js +1 -0
  735. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-5bba6c0b89069588.js +1 -0
  736. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-5bba6c0b89069588.js +1 -0
  737. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-5bba6c0b89069588.js +1 -0
  738. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-5bba6c0b89069588.js +1 -0
  739. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-5bba6c0b89069588.js +1 -0
  740. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-5bba6c0b89069588.js +1 -0
  741. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-5bba6c0b89069588.js +1 -0
  742. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-5bba6c0b89069588.js +1 -0
  743. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-5bba6c0b89069588.js +1 -0
  744. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-5bba6c0b89069588.js +1 -0
  745. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-5bba6c0b89069588.js +1 -0
  746. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-5bba6c0b89069588.js +1 -0
  747. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-5bba6c0b89069588.js +1 -0
  748. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-5bba6c0b89069588.js +1 -0
  749. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-5bba6c0b89069588.js +1 -0
  750. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-5bba6c0b89069588.js +1 -0
  751. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-5bba6c0b89069588.js +1 -0
  752. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-5bba6c0b89069588.js +1 -0
  753. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-5bba6c0b89069588.js +1 -0
  754. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-5bba6c0b89069588.js +1 -0
  755. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-5bba6c0b89069588.js +1 -0
  756. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-5bba6c0b89069588.js +1 -0
  757. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-5bba6c0b89069588.js +1 -0
  758. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-5bba6c0b89069588.js +1 -0
  759. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-5bba6c0b89069588.js +1 -0
  760. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-5bba6c0b89069588.js +1 -0
  761. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-5bba6c0b89069588.js +1 -0
  762. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-5bba6c0b89069588.js +1 -0
  763. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-5bba6c0b89069588.js +1 -0
  764. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-5bba6c0b89069588.js +1 -0
  765. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-5bba6c0b89069588.js +1 -0
  766. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-5bba6c0b89069588.js +1 -0
  767. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-5bba6c0b89069588.js +1 -0
  768. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-5bba6c0b89069588.js +1 -0
  769. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-5bba6c0b89069588.js +1 -0
  770. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-5bba6c0b89069588.js +1 -0
  771. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-5bba6c0b89069588.js +1 -0
  772. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-5bba6c0b89069588.js +1 -0
  773. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-5bba6c0b89069588.js +1 -0
  774. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-5bba6c0b89069588.js +1 -0
  775. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-5bba6c0b89069588.js +1 -0
  776. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-5bba6c0b89069588.js +1 -0
  777. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-5bba6c0b89069588.js +1 -0
  778. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-5bba6c0b89069588.js +1 -0
  779. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-5bba6c0b89069588.js +1 -0
  780. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-5bba6c0b89069588.js +1 -0
  781. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-5bba6c0b89069588.js +1 -0
  782. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-5bba6c0b89069588.js +1 -0
  783. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-5bba6c0b89069588.js +1 -0
  784. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-5bba6c0b89069588.js +1 -0
  785. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-5bba6c0b89069588.js +1 -0
  786. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-5bba6c0b89069588.js +1 -0
  787. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-5bba6c0b89069588.js +1 -0
  788. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-5bba6c0b89069588.js +1 -0
  789. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-5bba6c0b89069588.js +1 -0
  790. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-5bba6c0b89069588.js +1 -0
  791. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-5bba6c0b89069588.js +1 -0
  792. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-5bba6c0b89069588.js +1 -0
  793. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-5bba6c0b89069588.js +1 -0
  794. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-5bba6c0b89069588.js +1 -0
  795. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-5bba6c0b89069588.js +1 -0
  796. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-5bba6c0b89069588.js +1 -0
  797. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-5bba6c0b89069588.js +1 -0
  798. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-5bba6c0b89069588.js +1 -0
  799. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-5bba6c0b89069588.js +1 -0
  800. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-5bba6c0b89069588.js +1 -0
  801. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-5bba6c0b89069588.js +1 -0
  802. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-5bba6c0b89069588.js +1 -0
  803. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-5bba6c0b89069588.js +1 -0
  804. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-5bba6c0b89069588.js +1 -0
  805. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-5bba6c0b89069588.js +1 -0
  806. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-5bba6c0b89069588.js +1 -0
  807. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-5bba6c0b89069588.js +1 -0
  808. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-5bba6c0b89069588.js +1 -0
  809. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-5bba6c0b89069588.js +1 -0
  810. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-5bba6c0b89069588.js +1 -0
  811. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-5bba6c0b89069588.js +1 -0
  812. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-5bba6c0b89069588.js +1 -0
  813. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-5bba6c0b89069588.js +1 -0
  814. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-5bba6c0b89069588.js +1 -0
  815. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-5bba6c0b89069588.js +1 -0
  816. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-5bba6c0b89069588.js +1 -0
  817. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-5bba6c0b89069588.js +1 -0
  818. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-5bba6c0b89069588.js +1 -0
  819. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-5bba6c0b89069588.js +1 -0
  820. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-5bba6c0b89069588.js +1 -0
  821. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-5bba6c0b89069588.js +1 -0
  822. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-5bba6c0b89069588.js +1 -0
  823. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-5bba6c0b89069588.js +1 -0
  824. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-5bba6c0b89069588.js +1 -0
  825. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-5bba6c0b89069588.js +1 -0
  826. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-5bba6c0b89069588.js +1 -0
  827. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-5bba6c0b89069588.js +1 -0
  828. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-5bba6c0b89069588.js +1 -0
  829. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-5bba6c0b89069588.js +1 -0
  830. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-5bba6c0b89069588.js +1 -0
  831. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-5bba6c0b89069588.js +1 -0
  832. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-5bba6c0b89069588.js +1 -0
  833. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-5bba6c0b89069588.js +1 -0
  834. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-5bba6c0b89069588.js +1 -0
  835. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-5bba6c0b89069588.js +1 -0
  836. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-5bba6c0b89069588.js +1 -0
  837. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-5bba6c0b89069588.js +1 -0
  838. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-5bba6c0b89069588.js +1 -0
  839. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-5bba6c0b89069588.js +1 -0
  840. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-5bba6c0b89069588.js +1 -0
  841. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-5bba6c0b89069588.js +1 -0
  842. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-5bba6c0b89069588.js +1 -0
  843. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-5bba6c0b89069588.js +1 -0
  844. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-5bba6c0b89069588.js +1 -0
  845. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-5bba6c0b89069588.js +1 -0
  846. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-5bba6c0b89069588.js +1 -0
  847. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-5bba6c0b89069588.js +1 -0
  848. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-5bba6c0b89069588.js +1 -0
  849. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-5bba6c0b89069588.js +1 -0
  850. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-5bba6c0b89069588.js +1 -0
  851. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-5bba6c0b89069588.js +1 -0
  852. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-5bba6c0b89069588.js +1 -0
  853. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-5bba6c0b89069588.js +1 -0
  854. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-5bba6c0b89069588.js +1 -0
  855. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-5bba6c0b89069588.js +1 -0
  856. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-5bba6c0b89069588.js +1 -0
  857. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-5bba6c0b89069588.js +1 -0
  858. package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-5bba6c0b89069588.js +1 -0
  859. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-5bba6c0b89069588.js +1 -0
  860. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-5bba6c0b89069588.js +1 -0
  861. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-5bba6c0b89069588.js +1 -0
  862. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-5bba6c0b89069588.js +1 -0
  863. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-5bba6c0b89069588.js +1 -0
  864. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-5bba6c0b89069588.js +1 -0
  865. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-5bba6c0b89069588.js +1 -0
  866. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-5bba6c0b89069588.js +1 -0
  867. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-5bba6c0b89069588.js +1 -0
  868. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-5bba6c0b89069588.js +1 -0
  869. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-5bba6c0b89069588.js +1 -0
  870. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-5bba6c0b89069588.js +1 -0
  871. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-5bba6c0b89069588.js +1 -0
  872. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-5bba6c0b89069588.js +1 -0
  873. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-5bba6c0b89069588.js +1 -0
  874. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-5bba6c0b89069588.js +1 -0
  875. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-5bba6c0b89069588.js +1 -0
  876. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-5bba6c0b89069588.js +1 -0
  877. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-5bba6c0b89069588.js +1 -0
  878. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-5bba6c0b89069588.js +1 -0
  879. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-5bba6c0b89069588.js +1 -0
  880. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-5bba6c0b89069588.js +1 -0
  881. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-5bba6c0b89069588.js +1 -0
  882. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-5bba6c0b89069588.js +1 -0
  883. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-5bba6c0b89069588.js +1 -0
  884. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-5bba6c0b89069588.js +1 -0
  885. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-5bba6c0b89069588.js +1 -0
  886. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-5bba6c0b89069588.js +1 -0
  887. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-5bba6c0b89069588.js +1 -0
  888. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-5bba6c0b89069588.js +1 -0
  889. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-5bba6c0b89069588.js +1 -0
  890. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-5bba6c0b89069588.js +1 -0
  891. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-5bba6c0b89069588.js +1 -0
  892. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-5bba6c0b89069588.js +1 -0
  893. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-5bba6c0b89069588.js +1 -0
  894. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-5bba6c0b89069588.js +1 -0
  895. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-5bba6c0b89069588.js +1 -0
  896. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-5bba6c0b89069588.js +1 -0
  897. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-5bba6c0b89069588.js +1 -0
  898. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-5bba6c0b89069588.js +1 -0
  899. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-5bba6c0b89069588.js +1 -0
  900. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-5bba6c0b89069588.js +1 -0
  901. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-5bba6c0b89069588.js +1 -0
  902. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-5bba6c0b89069588.js +1 -0
  903. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-5bba6c0b89069588.js +1 -0
  904. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-5bba6c0b89069588.js +1 -0
  905. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-5bba6c0b89069588.js +1 -0
  906. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-5bba6c0b89069588.js +1 -0
  907. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-5bba6c0b89069588.js +1 -0
  908. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-5bba6c0b89069588.js +1 -0
  909. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-5bba6c0b89069588.js +1 -0
  910. package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-5bba6c0b89069588.js +1 -0
  911. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-5bba6c0b89069588.js +1 -0
  912. package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-5bba6c0b89069588.js +1 -0
  913. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-5bba6c0b89069588.js +1 -0
  914. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-5bba6c0b89069588.js +1 -0
  915. package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-5bba6c0b89069588.js +1 -0
  916. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-5bba6c0b89069588.js +1 -0
  917. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-5bba6c0b89069588.js +1 -0
  918. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-5bba6c0b89069588.js +1 -0
  919. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-5bba6c0b89069588.js +1 -0
  920. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-5bba6c0b89069588.js +1 -0
  921. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-5bba6c0b89069588.js +1 -0
  922. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-5bba6c0b89069588.js +1 -0
  923. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-5bba6c0b89069588.js +1 -0
  924. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-5bba6c0b89069588.js +1 -0
  925. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-5bba6c0b89069588.js +1 -0
  926. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-5bba6c0b89069588.js +1 -0
  927. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-5bba6c0b89069588.js +1 -0
  928. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-5bba6c0b89069588.js +1 -0
  929. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-5bba6c0b89069588.js +1 -0
  930. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-5bba6c0b89069588.js +1 -0
  931. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-5bba6c0b89069588.js +1 -0
  932. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-5bba6c0b89069588.js +1 -0
  933. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-5bba6c0b89069588.js +1 -0
  934. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-5bba6c0b89069588.js +1 -0
  935. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-5bba6c0b89069588.js +1 -0
  936. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-5bba6c0b89069588.js +1 -0
  937. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-5bba6c0b89069588.js +1 -0
  938. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-5bba6c0b89069588.js +1 -0
  939. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-5bba6c0b89069588.js +1 -0
  940. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-5bba6c0b89069588.js +1 -0
  941. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-5bba6c0b89069588.js +1 -0
  942. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-5bba6c0b89069588.js +1 -0
  943. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-5bba6c0b89069588.js +1 -0
  944. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-5bba6c0b89069588.js +1 -0
  945. package/cli/app/.next-cli-build/static/chunks/app/page-5bba6c0b89069588.js +1 -0
  946. package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-5bba6c0b89069588.js +1 -0
  947. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-5bba6c0b89069588.js +1 -0
  948. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-5bba6c0b89069588.js +1 -0
  949. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-5bba6c0b89069588.js +1 -0
  950. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-5bba6c0b89069588.js +1 -0
  951. package/cli/app/CHANGELOG.md +17 -0
  952. package/cli/app/package.json +1 -1
  953. package/cli/package.json +1 -1
  954. package/package.json +1 -1
  955. package/cli/app/.next-cli-build/server/chunks/1890.js +0 -1
  956. package/cli/app/.next-cli-build/server/chunks/3101.js +0 -1
  957. package/cli/app/.next-cli-build/server/chunks/4456.js +0 -1
  958. package/cli/app/.next-cli-build/server/chunks/8675.js +0 -1
  959. package/cli/app/.next-cli-build/static/R483t8_UiX7Hsj2QRGbzM/_buildManifest.js +0 -1
  960. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-770f86851dc3d3f5.js +0 -1
  961. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-770f86851dc3d3f5.js +0 -1
  962. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-770f86851dc3d3f5.js +0 -1
  963. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-770f86851dc3d3f5.js +0 -1
  964. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-770f86851dc3d3f5.js +0 -1
  965. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-770f86851dc3d3f5.js +0 -1
  966. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-770f86851dc3d3f5.js +0 -1
  967. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-770f86851dc3d3f5.js +0 -1
  968. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-770f86851dc3d3f5.js +0 -1
  969. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-770f86851dc3d3f5.js +0 -1
  970. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-770f86851dc3d3f5.js +0 -1
  971. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-770f86851dc3d3f5.js +0 -1
  972. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-770f86851dc3d3f5.js +0 -1
  973. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-770f86851dc3d3f5.js +0 -1
  974. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-770f86851dc3d3f5.js +0 -1
  975. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-770f86851dc3d3f5.js +0 -1
  976. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-770f86851dc3d3f5.js +0 -1
  977. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-770f86851dc3d3f5.js +0 -1
  978. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-770f86851dc3d3f5.js +0 -1
  979. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-770f86851dc3d3f5.js +0 -1
  980. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-770f86851dc3d3f5.js +0 -1
  981. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-770f86851dc3d3f5.js +0 -1
  982. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-770f86851dc3d3f5.js +0 -1
  983. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-770f86851dc3d3f5.js +0 -1
  984. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-770f86851dc3d3f5.js +0 -1
  985. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-770f86851dc3d3f5.js +0 -1
  986. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-770f86851dc3d3f5.js +0 -1
  987. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-770f86851dc3d3f5.js +0 -1
  988. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-770f86851dc3d3f5.js +0 -1
  989. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-770f86851dc3d3f5.js +0 -1
  990. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-770f86851dc3d3f5.js +0 -1
  991. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-770f86851dc3d3f5.js +0 -1
  992. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-770f86851dc3d3f5.js +0 -1
  993. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-770f86851dc3d3f5.js +0 -1
  994. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-770f86851dc3d3f5.js +0 -1
  995. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-770f86851dc3d3f5.js +0 -1
  996. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-770f86851dc3d3f5.js +0 -1
  997. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-770f86851dc3d3f5.js +0 -1
  998. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-770f86851dc3d3f5.js +0 -1
  999. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-770f86851dc3d3f5.js +0 -1
  1000. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-770f86851dc3d3f5.js +0 -1
  1001. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-770f86851dc3d3f5.js +0 -1
  1002. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-770f86851dc3d3f5.js +0 -1
  1003. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-770f86851dc3d3f5.js +0 -1
  1004. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-770f86851dc3d3f5.js +0 -1
  1005. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-770f86851dc3d3f5.js +0 -1
  1006. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-770f86851dc3d3f5.js +0 -1
  1007. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-770f86851dc3d3f5.js +0 -1
  1008. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-770f86851dc3d3f5.js +0 -1
  1009. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-770f86851dc3d3f5.js +0 -1
  1010. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-770f86851dc3d3f5.js +0 -1
  1011. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-770f86851dc3d3f5.js +0 -1
  1012. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-770f86851dc3d3f5.js +0 -1
  1013. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-770f86851dc3d3f5.js +0 -1
  1014. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-770f86851dc3d3f5.js +0 -1
  1015. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-770f86851dc3d3f5.js +0 -1
  1016. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-770f86851dc3d3f5.js +0 -1
  1017. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-770f86851dc3d3f5.js +0 -1
  1018. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-770f86851dc3d3f5.js +0 -1
  1019. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-770f86851dc3d3f5.js +0 -1
  1020. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-770f86851dc3d3f5.js +0 -1
  1021. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-770f86851dc3d3f5.js +0 -1
  1022. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-770f86851dc3d3f5.js +0 -1
  1023. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-770f86851dc3d3f5.js +0 -1
  1024. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-770f86851dc3d3f5.js +0 -1
  1025. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-770f86851dc3d3f5.js +0 -1
  1026. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +0 -1
  1027. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +0 -1
  1028. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-770f86851dc3d3f5.js +0 -1
  1029. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-770f86851dc3d3f5.js +0 -1
  1030. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-770f86851dc3d3f5.js +0 -1
  1031. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +0 -1
  1032. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +0 -1
  1033. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-770f86851dc3d3f5.js +0 -1
  1034. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-770f86851dc3d3f5.js +0 -1
  1035. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-770f86851dc3d3f5.js +0 -1
  1036. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +0 -1
  1037. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +0 -1
  1038. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-770f86851dc3d3f5.js +0 -1
  1039. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-770f86851dc3d3f5.js +0 -1
  1040. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-770f86851dc3d3f5.js +0 -1
  1041. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-770f86851dc3d3f5.js +0 -1
  1042. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-770f86851dc3d3f5.js +0 -1
  1043. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +0 -1
  1044. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +0 -1
  1045. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-770f86851dc3d3f5.js +0 -1
  1046. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-770f86851dc3d3f5.js +0 -1
  1047. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-770f86851dc3d3f5.js +0 -1
  1048. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-770f86851dc3d3f5.js +0 -1
  1049. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-770f86851dc3d3f5.js +0 -1
  1050. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-770f86851dc3d3f5.js +0 -1
  1051. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-770f86851dc3d3f5.js +0 -1
  1052. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-770f86851dc3d3f5.js +0 -1
  1053. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-770f86851dc3d3f5.js +0 -1
  1054. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +0 -1
  1055. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +0 -1
  1056. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-770f86851dc3d3f5.js +0 -1
  1057. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-770f86851dc3d3f5.js +0 -1
  1058. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-770f86851dc3d3f5.js +0 -1
  1059. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-770f86851dc3d3f5.js +0 -1
  1060. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-770f86851dc3d3f5.js +0 -1
  1061. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-770f86851dc3d3f5.js +0 -1
  1062. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-770f86851dc3d3f5.js +0 -1
  1063. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +0 -1
  1064. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +0 -1
  1065. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-770f86851dc3d3f5.js +0 -1
  1066. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-770f86851dc3d3f5.js +0 -1
  1067. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-770f86851dc3d3f5.js +0 -1
  1068. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-770f86851dc3d3f5.js +0 -1
  1069. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-770f86851dc3d3f5.js +0 -1
  1070. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-770f86851dc3d3f5.js +0 -1
  1071. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-770f86851dc3d3f5.js +0 -1
  1072. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +0 -1
  1073. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +0 -1
  1074. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-770f86851dc3d3f5.js +0 -1
  1075. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-770f86851dc3d3f5.js +0 -1
  1076. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-770f86851dc3d3f5.js +0 -1
  1077. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-770f86851dc3d3f5.js +0 -1
  1078. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-770f86851dc3d3f5.js +0 -1
  1079. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-770f86851dc3d3f5.js +0 -1
  1080. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-770f86851dc3d3f5.js +0 -1
  1081. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-770f86851dc3d3f5.js +0 -1
  1082. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-770f86851dc3d3f5.js +0 -1
  1083. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-770f86851dc3d3f5.js +0 -1
  1084. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-770f86851dc3d3f5.js +0 -1
  1085. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-770f86851dc3d3f5.js +0 -1
  1086. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-770f86851dc3d3f5.js +0 -1
  1087. package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-770f86851dc3d3f5.js +0 -1
  1088. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-770f86851dc3d3f5.js +0 -1
  1089. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-770f86851dc3d3f5.js +0 -1
  1090. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-770f86851dc3d3f5.js +0 -1
  1091. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-770f86851dc3d3f5.js +0 -1
  1092. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-770f86851dc3d3f5.js +0 -1
  1093. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-770f86851dc3d3f5.js +0 -1
  1094. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-770f86851dc3d3f5.js +0 -1
  1095. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-770f86851dc3d3f5.js +0 -1
  1096. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-770f86851dc3d3f5.js +0 -1
  1097. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-770f86851dc3d3f5.js +0 -1
  1098. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-770f86851dc3d3f5.js +0 -1
  1099. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-770f86851dc3d3f5.js +0 -1
  1100. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-770f86851dc3d3f5.js +0 -1
  1101. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-770f86851dc3d3f5.js +0 -1
  1102. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-770f86851dc3d3f5.js +0 -1
  1103. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-770f86851dc3d3f5.js +0 -1
  1104. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-770f86851dc3d3f5.js +0 -1
  1105. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-770f86851dc3d3f5.js +0 -1
  1106. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-770f86851dc3d3f5.js +0 -1
  1107. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-770f86851dc3d3f5.js +0 -1
  1108. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-770f86851dc3d3f5.js +0 -1
  1109. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-770f86851dc3d3f5.js +0 -1
  1110. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-770f86851dc3d3f5.js +0 -1
  1111. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-770f86851dc3d3f5.js +0 -1
  1112. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-770f86851dc3d3f5.js +0 -1
  1113. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-770f86851dc3d3f5.js +0 -1
  1114. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-770f86851dc3d3f5.js +0 -1
  1115. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-770f86851dc3d3f5.js +0 -1
  1116. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-770f86851dc3d3f5.js +0 -1
  1117. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-770f86851dc3d3f5.js +0 -1
  1118. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-770f86851dc3d3f5.js +0 -1
  1119. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-770f86851dc3d3f5.js +0 -1
  1120. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-770f86851dc3d3f5.js +0 -1
  1121. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-770f86851dc3d3f5.js +0 -1
  1122. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-770f86851dc3d3f5.js +0 -1
  1123. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-770f86851dc3d3f5.js +0 -1
  1124. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-770f86851dc3d3f5.js +0 -1
  1125. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-770f86851dc3d3f5.js +0 -1
  1126. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-770f86851dc3d3f5.js +0 -1
  1127. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-770f86851dc3d3f5.js +0 -1
  1128. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-770f86851dc3d3f5.js +0 -1
  1129. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-770f86851dc3d3f5.js +0 -1
  1130. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-770f86851dc3d3f5.js +0 -1
  1131. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-770f86851dc3d3f5.js +0 -1
  1132. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-770f86851dc3d3f5.js +0 -1
  1133. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-770f86851dc3d3f5.js +0 -1
  1134. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-770f86851dc3d3f5.js +0 -1
  1135. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-770f86851dc3d3f5.js +0 -1
  1136. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-770f86851dc3d3f5.js +0 -1
  1137. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-770f86851dc3d3f5.js +0 -1
  1138. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-770f86851dc3d3f5.js +0 -1
  1139. package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-770f86851dc3d3f5.js +0 -1
  1140. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-770f86851dc3d3f5.js +0 -1
  1141. package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-770f86851dc3d3f5.js +0 -1
  1142. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-770f86851dc3d3f5.js +0 -1
  1143. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-770f86851dc3d3f5.js +0 -1
  1144. package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-770f86851dc3d3f5.js +0 -1
  1145. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-770f86851dc3d3f5.js +0 -1
  1146. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-770f86851dc3d3f5.js +0 -1
  1147. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-770f86851dc3d3f5.js +0 -1
  1148. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-770f86851dc3d3f5.js +0 -1
  1149. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-770f86851dc3d3f5.js +0 -1
  1150. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-770f86851dc3d3f5.js +0 -1
  1151. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-770f86851dc3d3f5.js +0 -1
  1152. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-770f86851dc3d3f5.js +0 -1
  1153. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-770f86851dc3d3f5.js +0 -1
  1154. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-770f86851dc3d3f5.js +0 -1
  1155. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-770f86851dc3d3f5.js +0 -1
  1156. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-770f86851dc3d3f5.js +0 -1
  1157. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-770f86851dc3d3f5.js +0 -1
  1158. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-770f86851dc3d3f5.js +0 -1
  1159. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-770f86851dc3d3f5.js +0 -1
  1160. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-770f86851dc3d3f5.js +0 -1
  1161. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-770f86851dc3d3f5.js +0 -1
  1162. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-770f86851dc3d3f5.js +0 -1
  1163. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-770f86851dc3d3f5.js +0 -1
  1164. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-770f86851dc3d3f5.js +0 -1
  1165. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-770f86851dc3d3f5.js +0 -1
  1166. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-770f86851dc3d3f5.js +0 -1
  1167. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-770f86851dc3d3f5.js +0 -1
  1168. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-770f86851dc3d3f5.js +0 -1
  1169. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-770f86851dc3d3f5.js +0 -1
  1170. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-770f86851dc3d3f5.js +0 -1
  1171. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-770f86851dc3d3f5.js +0 -1
  1172. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-770f86851dc3d3f5.js +0 -1
  1173. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-770f86851dc3d3f5.js +0 -1
  1174. package/cli/app/.next-cli-build/static/chunks/app/page-770f86851dc3d3f5.js +0 -1
  1175. package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-770f86851dc3d3f5.js +0 -1
  1176. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-770f86851dc3d3f5.js +0 -1
  1177. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-770f86851dc3d3f5.js +0 -1
  1178. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-770f86851dc3d3f5.js +0 -1
  1179. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-770f86851dc3d3f5.js +0 -1
  1180. /package/cli/app/.next-cli-build/static/{R483t8_UiX7Hsj2QRGbzM → ZV1b0QFpI7Py60MZLjqfn}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ exports.id=7432,exports.ids=[3662,4720,7432],exports.modules={2636:(a,b,c)=>{"use strict";c.d(b,{e:()=>function a(b){if(!b||"object"!=typeof b)return b;if(Array.isArray(b)){for(let c of b)a(c);return b}if(b.properties&&"object"==typeof b.properties&&!Array.isArray(b.properties)){let a=new Map,c=new Set(Object.keys(b.properties).filter(a=>d.test(a)));for(let e of Object.keys(b.properties))d.test(e)||a.set(e,function(a,b){let c=a.replace(/[^a-zA-Z0-9_.-]/g,"_").slice(0,64);0===c.length&&(c="_");let d=c,e=1;for(;b.has(d);){let a=`_${e++}`;d=c.slice(0,64-a.length)+a}return b.add(d),d}(e,c));for(let[c,d]of a)b.properties[d]=b.properties[c],delete b.properties[c];a.size>0&&Array.isArray(b.required)&&(b.required=b.required.map(b=>a.get(b)||b))}for(let c of Object.values(b))c&&"object"==typeof c&&a(c);return b}});let d=/^[a-zA-Z0-9_.-]{1,64}$/},3662:(a,b,c)=>{"use strict";c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"permission_denied"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"Access forbidden by upstream provider.",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=6048e5,i=[{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:408,cooldownMs:5e3},{status:409,cooldownMs:5e3},{status:429,backoff:!0}]},35236:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Ch:()=>n,IM:()=>m,J4:()=>o});var e=c(89718),f=c(64991),g=c(61188),h=a([g]);g=(h.then?(await h)():h)[0];let p=globalThis._quotaProgressState??={accounts:{},generation:0,runningPromise:null,run:null,subscribers:new Set};function i(a,b=new WeakMap){if(null===a||"object"!=typeof a)return a;if(b.has(a))return b.get(a);let c=Array.isArray(a)?[]:{};for(let[d,e]of(b.set(a,c),Object.entries(a)))c[d]=i(e,b);return Object.freeze(c)}function j(){return i({type:"snapshot",generation:p.generation,accounts:p.accounts,provenance:{source:"quota-cache"}})}function k(a){let b=i(a);for(let a of[...p.subscribers])try{a(b)}catch{}return b}async function l(a,b){let c=b.getRefreshProfile(a[0]?.provider)||{},d=Math.min(Math.max(1,Number(b.concurrency??c.maxConcurrent)||1),a.length),e=Math.max(0,Number(c.minDelayMs)||0),f=0,g=0,h=Promise.resolve();async function j(){let a,b=h;h=new Promise(b=>{a=b}),await b;let c=Math.max(0,g-Date.now());await (c>0?new Promise(a=>setTimeout(a,c)):Promise.resolve()),g=Date.now()+e,a()}let l=Array.from({length:d},async()=>{for(;!b.controller.signal.aborted&&f<a.length;){let c=a[f++];if(await j(),b.controller.signal.aborted)break;b.counts.attempted+=1;try{let a=await b.resolveUsage(c.id,{writeCache:!0,force:b.force}),d=i({connectionId:c.id,provider:c.provider,usage:a||{},provenance:{cached:a?.stale===!0,stale:a?.stale===!0,fetchedAt:a?.fetchedAt||new Date().toISOString()}});p.accounts={...p.accounts,[c.id]:d},d.provenance.stale?b.counts.stale+=1:b.counts.refreshed+=1,k({type:"update",generation:b.generation,...d})}catch(a){b.counts.failed+=1,k({type:"error",generation:b.generation,connectionId:c.id,provider:c.provider,error:Object.freeze({code:String(a?.code||"QUOTA_REFRESH_FAILED").replace(/[^a-zA-Z0-9_.:-]/g,"_").slice(0,80)||"QUOTA_REFRESH_FAILED",message:"Quota refresh failed"}),previous:p.accounts[c.id]||null})}}});await Promise.all(l)}function m(a){if("function"!=typeof a)throw TypeError("Quota progress listener must be a function");p.subscribers.add(a);let b=!0;return()=>{b&&(b=!1,p.subscribers.delete(a),0===p.subscribers.size&&p.run&&!p.run.retainWithoutSubscribers&&p.run.controller.abort())}}function n(){return j()}function o(a={}){if(p.runningPromise)return!1!==a.retainWithoutSubscribers&&p.run&&(p.run.retainWithoutSubscribers=!0),p.runningPromise;let b=new AbortController;p.run={controller:b,retainWithoutSubscribers:!1!==a.retainWithoutSubscribers};let c=(async()=>{p.generation+=1;let c=p.generation,d=a.getConnections||e.getProviderConnections,h=a.getSnapshots||e.tV,m=a.resolveUsage||g.dg,n=a.getRefreshProfile||f.JJ,o=(a.connections||await d()).filter(g.NS),q=o.filter(a=>a.isActive??!0),r=new Set(o.map(({id:a})=>a)),s=Object.fromEntries((await h()).filter(({connectionId:a})=>r.has(a)).map(a=>[a.connectionId,i({connectionId:a.connectionId,provider:a.provider,usage:a.usage||{},provenance:{cached:!0,stale:a.usage?.stale===!0,fetchedAt:a.fetchedAt||null}})]));p.accounts=!1===a.replaceAccounts?{...p.accounts,...s}:s,k(j());let t={attempted:0,refreshed:0,stale:0,failed:0},u=new Map;for(let a of q){let b=u.get(a.provider)||[];b.push(a),u.set(a.provider,b)}return await Promise.all([...u.values()].map(d=>l(d,{concurrency:a.concurrency,controller:b,counts:t,force:!0===a.force,generation:c,getRefreshProfile:n,resolveUsage:m}))),k({type:"complete",generation:c,...t,...b.signal.aborted?{cancelled:!0}:{}})})().finally(()=>{p.runningPromise===c&&(p.runningPromise=null,p.run=null)});return p.runningPromise=c,c}d()}catch(a){d(a)}})},43659:(a,b,c)=>{"use strict";c.d(b,{A1:()=>g,lR:()=>i,wO:()=>h,yj:()=>e,zL:()=>f});var d=c(3662);function e(a,b){let c;return new Response(JSON.stringify((c=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:c.type,code:c.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function f(a,b=null){let c="";try{c=await a.text()}catch{c=""}if(b&&"function"==typeof b.parseError)try{let e=b.parseError(a,c);if(e&&"object"==typeof e){let b=e.message||d.O[a.status]||`Upstream error: ${a.status}`,{status:c,message:f,...g}=e;return{statusCode:c||a.status,message:b,...g}}}catch{}let e="";try{let a=JSON.parse(c);e=a.error?.message||a.message||a.error||c}catch{e=c}let g=("string"==typeof e?e:JSON.stringify(e))||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:a.status,message:g}}function g(a,b,c,d=null){return{success:!1,status:a,error:b,resetsAtMs:c,...d&&"object"==typeof d?{failureMetadata:d}:{},response:e(a,b)}}function h(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function i(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}},47293:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});let d=new Uint8Array(16);var e=c(50122);let f=function(a,b,c){return b||a||!crypto.randomUUID?function(a,b,c){let f=(a=a||{}).random??a.rng?.()??crypto.getRandomValues(d);if(f.length<16)throw Error("Random bytes length must be >= 16");if(f[6]=15&f[6]|64,f[8]=63&f[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=f[a];return b}return(0,e.k)(f)}(a,b,c):crypto.randomUUID()}},47593:(a,b,c)=>{"use strict";c.d(b,{KZ:()=>j,S6:()=>g,Yr:()=>n,f6:()=>k,fc:()=>f,kU:()=>h,pT:()=>i,w_:()=>l});var d=c(2636);let e=["minLength","maxLength","exclusiveMinimum","exclusiveMaximum","pattern","minItems","maxItems","format","default","examples","$schema","$defs","definitions","const","$ref","$comment","additionalProperties","propertyNames","patternProperties","enumDescriptions","anyOf","oneOf","allOf","not","dependencies","dependentSchemas","dependentRequired","title","if","then","else","contentMediaType","contentEncoding","cornerRadius","fillColor","fontFamily","fontSize","fontWeight","gap","padding","strokeColor","strokeThickness","textColor"],f=[{category:"HARM_CATEGORY_HATE_SPEECH",threshold:"OFF"},{category:"HARM_CATEGORY_DANGEROUS_CONTENT",threshold:"OFF"},{category:"HARM_CATEGORY_SEXUALLY_EXPLICIT",threshold:"OFF"},{category:"HARM_CATEGORY_HARASSMENT",threshold:"OFF"},{category:"HARM_CATEGORY_CIVIC_INTEGRITY",threshold:"OFF"}];function g(a){let b=[];if("string"==typeof a)b.push({text:a});else if(Array.isArray(a)){for(let c of a)if("text"===c.type)b.push({text:c.text});else if("image_url"===c.type&&c.image_url?.url?.startsWith("data:")){let a=c.image_url.url,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d),e=a.substring(d+1),f=c.split(";")[0];b.push({inlineData:{mime_type:f,data:e}})}}else if("image_url"===c.type&&c.image_url?.url&&(c.image_url.url.startsWith("http://")||c.image_url.url.startsWith("https://")))b.push({fileData:{fileUri:c.image_url.url,mimeType:"image/*"}});else if("input_audio"===c.type&&c.input_audio?.data){let a=c.input_audio.format||"wav",d="mp3"===a?"audio/mpeg":`audio/${a}`;b.push({inlineData:{mime_type:d,data:c.input_audio.data}})}else if("audio_url"===c.type&&c.audio_url?.url?.startsWith("data:")){let a=c.audio_url.url,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d),e=a.substring(d+1),f=c.split(";")[0];b.push({inlineData:{mime_type:f,data:e}})}}}return b}function h(a){return"string"==typeof a?a:Array.isArray(a)?a.filter(a=>"text"===a.type).map(a=>a.text).join(""):""}function i(a){if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return null}}function j(){return`agent-${crypto.randomUUID()}`}function k(){return crypto.randomUUID()+Date.now().toString()}function l(){let a=["useful","bright","swift","calm","bold"],b=["fuze","wave","spark","flow","core"],c=a[Math.floor(Math.random()*a.length)],d=b[Math.floor(Math.random()*b.length)];return`${c}-${d}-${crypto.randomUUID().slice(0,5)}`}function m(a){let b=0,c=-1;for(let d=0;d<a.length;d++){let e=a[d],f=0,g=e.type;"object"===g||e.properties?f=3:"array"===g||e.items?f=2:g&&"null"!==g&&(f=1),f>c&&(c=f,b=d)}return b}function n(a){return a&&"object"==typeof a&&(!function a(b){if(b&&"object"==typeof b)for(let c of(void 0===b.const||b.enum||(b.enum=[b.const],delete b.const),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b){if(b&&"object"==typeof b)for(let c of(b.enum&&Array.isArray(b.enum)&&(b.enum=b.enum.map(a=>String(a)),b.type||(b.type="string")),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b){if(b&&"object"==typeof b){if(b.allOf&&Array.isArray(b.allOf)){let a={};for(let c of b.allOf)if(c.properties&&(a.properties||(a.properties={}),Object.assign(a.properties,c.properties)),c.required&&Array.isArray(c.required))for(let b of(a.required||(a.required=[]),c.required))a.required.includes(b)||a.required.push(b);delete b.allOf,a.properties&&(b.properties={...b.properties,...a.properties}),a.required&&(b.required=[...b.required||[],...a.required])}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(b.anyOf&&Array.isArray(b.anyOf)&&b.anyOf.length>0){let a=b.anyOf.filter(a=>a&&"null"!==a.type);if(a.length>0){let c=m(a),d=a[c];delete b.anyOf,Object.assign(b,d)}}if(b.oneOf&&Array.isArray(b.oneOf)&&b.oneOf.length>0){let a=b.oneOf.filter(a=>a&&"null"!==a.type);if(a.length>0){let c=m(a),d=a[c];delete b.oneOf,Object.assign(b,d)}}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(b.type&&Array.isArray(b.type)){let a=b.type.filter(a=>"null"!==a);b.type=a.length>0?a[0]:"string"}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b)for(let c of(b.properties&&!b.type&&(b.type="object"),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b,c){if(b&&"object"==typeof b){if(Array.isArray(b)){for(let d of b)a(d,c);return}for(let d of Object.keys(b)){if(c.includes(d)||d.startsWith("x-")){delete b[d];continue}let e=b[d];e&&"object"==typeof e&&a(e,c)}}}(a,e),!function a(b){if(b&&"object"==typeof b){if(b.required&&Array.isArray(b.required)&&b.properties){let a=b.required.filter(a=>Object.prototype.hasOwnProperty.call(b.properties,a));0===a.length?delete b.required:b.required=a}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),(0,d.e)(a),!function a(b){if(b&&"object"==typeof b)for(let c of("object"!==b.type||b.properties&&0!==Object.keys(b.properties).length||(b.properties={reason:{type:"string",description:"Brief explanation of why you are calling this tool"}},b.required=["reason"]),Object.values(b)))c&&"object"==typeof c&&a(c)}(a)),a}},50122:(a,b,c)=>{"use strict";c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},64991:(a,b,c)=>{"use strict";c.d(b,{JJ:()=>f,Wk:()=>d});let d=Object.freeze({maxConcurrent:4,minDelayMs:0}),e=Object.freeze({kiro:Object.freeze({maxConcurrent:1,minDelayMs:3e3})});function f(a){return e[String(a||"").trim().toLowerCase()]||d}},78335:()=>{},89718:(a,b,c)=>{"use strict";c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,Iu:()=>d.Iu,K1:()=>d.K1,KJ:()=>d.KJ,KK:()=>d.KK,Kg:()=>d.Kg,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,ME:()=>d.ME,Mc:()=>d.Mc,NR:()=>d.NR,Op:()=>d.Op,PX:()=>d.PX,Pb:()=>d.Pb,Pc:()=>d.Pc,QI:()=>d.QI,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,dK:()=>d.dK,deleteModelAlias:()=>d.fv,ek:()=>d.ek,fK:()=>d.fK,getModelAliases:()=>d.OM,getProviderConnections:()=>d.P,getQuotaSnapshot:()=>d.LF,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,p3:()=>d.p3,qd:()=>d.qd,r4:()=>d.r4,tV:()=>d.tV,uH:()=>d.uH,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yW:()=>d.yW,yg:()=>d.yg,zP:()=>d.zP,zY:()=>d.zY});var d=c(93999)},96487:()=>{}};
@@ -3,7 +3,7 @@ MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA8iMH5c02LilrsERw9t6Pv5Nc
3
3
  4k6Pz1EaDicBMpdpxKduSZu5OANqUq8er4GM95omAGIOPOh+Nx0spthYA2BqGz+l
4
4
  6HRkPJ7S236FZz73In/KVuLnwI8JJ2CbuJap8kvheCCZpmAWpb/cPx/3Vr/J6I17
5
5
  XcW+ML9FoCI6AOvOzwIDAQAB
6
- -----END PUBLIC KEY-----`},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.30","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","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":{"@node-saml/node-saml":"5.1.0","next":"16.4.2","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4","sql.js":"1.14.1","yaml":"2.9.0"},"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","@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","confbox":"^0.2.4","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","node-forge":"^1.3.3","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","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.11","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},53225:(a,b,c)=>{c.d(b,{EV:()=>m,X5:()=>l});var d=c(55511),e=c(39609),f=c(78085),g=c(21031),h=c(30022);let i=new Map,j=new Map;async function k(a,b,c=null){let d,g,i={userId:(g=a?.providerSpecificData||{}).userId,authToken:a.accessToken,name:a.displayName||"",email:a.email||"",machineId:g.machineId||""};if(!i.userId||!i.authToken)return null;let j=String(i.authToken).startsWith("jt-")?`${h.j9}/algo/api/v2/model/list`:h.t6,l={Accept:"application/json","Accept-Encoding":"identity",...(0,f.d)(Buffer.alloc(0),j,i)},m=new AbortController,n=null,o=null;try{n=setTimeout(()=>m.abort("timeout"),15e3),b&&"function"==typeof b.addEventListener&&(b.aborted?m.abort(b.reason):(o=()=>m.abort(b.reason),b.addEventListener("abort",o))),d=await (0,e.proxyAwareFetch)(j,{method:"GET",headers:l,signal:m.signal},c)}finally{n&&clearTimeout(n),b&&o&&b.removeEventListener("abort",o)}if(!d.ok)return null;let p=await d.json().catch(()=>null);if(!p||!Array.isArray(p.chat))return null;let q=[],r=new Map;for(let a of p.chat){if(!a||"object"!=typeof a)continue;let b=a.key;if(!b||(r.set(b,a),!1===a.enable))continue;let c=a.display_name||b,d=Number(a.max_input_tokens)||131072;q.push({id:b,name:`${c}`,contextLength:d,isVL:!!a.is_vl,isReasoning:!!a.is_reasoning,maxOutputTokens:Number(a.max_output_tokens)||0,description:a.description||""})}return{models:q,rawConfigs:r}}async function l(a,b,c={}){let d=await m(a,c);if(!d)return null;let e=d.rawConfigs.get(b);return e?{...e,key:b}:null}async function m(a,b={}){var c;let e,f;try{e=await (0,g.iC)(a,b)}catch(a){return b.log?.warn?.("QODER","PAT exchange failed",{code:a?.code||null,status:a?.status||null}),null}if(!e?.accessToken||!(e.providerSpecificData||{}).userId)return null;let h=(c=e,f=(c?.providerSpecificData||{}).userId||c?.refreshToken||c?.accessToken||"anonymous",(0,d.createHash)("sha256").update(`qoder:${f}`).digest("hex")),l=Date.now();if(!b.forceRefresh){let a=i.get(h);if(a&&a.expiresAt>l)return a}let n=j.get(h);if(n&&!b.forceRefresh)return n;let o=(async()=>{let a=await k(e,b.signal,b.proxyOptions);if(!a)return null;let c={expiresAt:Date.now()+36e5,models:a.models,rawConfigs:a.rawConfigs,fetched:!0};return i.set(h,c),c})();j.set(h,o);try{return await o}finally{j.get(h)===o&&j.delete(h)}}},78085:(a,b,c)=>{c.d(b,{d:()=>i});var d=c(55511),e=c.n(d),f=c(47293),g=c(30022);function h(a){return e().createHash("md5").update(a).digest("hex")}function i(a,b,c){var d;let i,j;if(!c?.userId)throw Error("cosy: user id is empty");if(!c?.authToken)throw Error("cosy: auth token is empty");let k=Buffer.isBuffer(a)?a:"string"==typeof a?Buffer.from(a,"latin1"):Buffer.from(a||[]),{cosyKey:l,info:m}=(d={uid:c.userId,security_oauth_token:c.authToken,name:c.name||"",aid:"",email:c.email||""},i=(0,f.A)().slice(0,16),j=function(a,b){var c;let d,f,g=Buffer.from(b,"utf8");if(16!==g.length)throw Error(`aes key must be 16 bytes, got ${g.length}`);let h=g.subarray(0,16),i=e().createCipheriv("aes-128-cbc",g,h);i.setAutoPadding(!1);let j=(d=16-(c=Buffer.from(a,"utf8")).length%16,f=Buffer.alloc(c.length+d,d),c.copy(f,0),f);return Buffer.concat([i.update(j),i.final()]).toString("base64")}(JSON.stringify(d),i),{cosyKey:e().publicEncrypt({key:g.pr,padding:e().constants.RSA_PKCS1_PADDING},Buffer.from(i,"utf8")).toString("base64"),info:j}),n=String(Math.floor(Date.now()/1e3)),o=JSON.stringify({version:"v1",requestId:(0,f.A)(),info:m,cosyVersion:g.cT,ideVersion:""}),p=Buffer.from(o,"utf8").toString("base64"),q=function(a){let b;try{b=new URL(a).pathname||""}catch{return""}return b.startsWith("/algo")?b.slice(5):b}(b),r=`${p}
6
+ -----END PUBLIC KEY-----`},39006:a=>{a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.32","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","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":{"@node-saml/node-saml":"5.1.0","next":"16.4.2","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4","sql.js":"1.14.1","yaml":"2.9.0"},"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","@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","confbox":"^0.2.4","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","node-forge":"^1.3.3","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","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.11","zustand":"^5.0.10"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Verifiedlabs/zevairouter.git"},"bugs":{"url":"https://github.com/Verifiedlabs/zevairouter/issues"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},53225:(a,b,c)=>{c.d(b,{EV:()=>m,X5:()=>l});var d=c(55511),e=c(39609),f=c(78085),g=c(21031),h=c(30022);let i=new Map,j=new Map;async function k(a,b,c=null){let d,g,i={userId:(g=a?.providerSpecificData||{}).userId,authToken:a.accessToken,name:a.displayName||"",email:a.email||"",machineId:g.machineId||""};if(!i.userId||!i.authToken)return null;let j=String(i.authToken).startsWith("jt-")?`${h.j9}/algo/api/v2/model/list`:h.t6,l={Accept:"application/json","Accept-Encoding":"identity",...(0,f.d)(Buffer.alloc(0),j,i)},m=new AbortController,n=null,o=null;try{n=setTimeout(()=>m.abort("timeout"),15e3),b&&"function"==typeof b.addEventListener&&(b.aborted?m.abort(b.reason):(o=()=>m.abort(b.reason),b.addEventListener("abort",o))),d=await (0,e.proxyAwareFetch)(j,{method:"GET",headers:l,signal:m.signal},c)}finally{n&&clearTimeout(n),b&&o&&b.removeEventListener("abort",o)}if(!d.ok)return null;let p=await d.json().catch(()=>null);if(!p||!Array.isArray(p.chat))return null;let q=[],r=new Map;for(let a of p.chat){if(!a||"object"!=typeof a)continue;let b=a.key;if(!b||(r.set(b,a),!1===a.enable))continue;let c=a.display_name||b,d=Number(a.max_input_tokens)||131072;q.push({id:b,name:`${c}`,contextLength:d,isVL:!!a.is_vl,isReasoning:!!a.is_reasoning,maxOutputTokens:Number(a.max_output_tokens)||0,description:a.description||""})}return{models:q,rawConfigs:r}}async function l(a,b,c={}){let d=await m(a,c);if(!d)return null;let e=d.rawConfigs.get(b);return e?{...e,key:b}:null}async function m(a,b={}){var c;let e,f;try{e=await (0,g.iC)(a,b)}catch(a){return b.log?.warn?.("QODER","PAT exchange failed",{code:a?.code||null,status:a?.status||null}),null}if(!e?.accessToken||!(e.providerSpecificData||{}).userId)return null;let h=(c=e,f=(c?.providerSpecificData||{}).userId||c?.refreshToken||c?.accessToken||"anonymous",(0,d.createHash)("sha256").update(`qoder:${f}`).digest("hex")),l=Date.now();if(!b.forceRefresh){let a=i.get(h);if(a&&a.expiresAt>l)return a}let n=j.get(h);if(n&&!b.forceRefresh)return n;let o=(async()=>{let a=await k(e,b.signal,b.proxyOptions);if(!a)return null;let c={expiresAt:Date.now()+36e5,models:a.models,rawConfigs:a.rawConfigs,fetched:!0};return i.set(h,c),c})();j.set(h,o);try{return await o}finally{j.get(h)===o&&j.delete(h)}}},78085:(a,b,c)=>{c.d(b,{d:()=>i});var d=c(55511),e=c.n(d),f=c(47293),g=c(30022);function h(a){return e().createHash("md5").update(a).digest("hex")}function i(a,b,c){var d;let i,j;if(!c?.userId)throw Error("cosy: user id is empty");if(!c?.authToken)throw Error("cosy: auth token is empty");let k=Buffer.isBuffer(a)?a:"string"==typeof a?Buffer.from(a,"latin1"):Buffer.from(a||[]),{cosyKey:l,info:m}=(d={uid:c.userId,security_oauth_token:c.authToken,name:c.name||"",aid:"",email:c.email||""},i=(0,f.A)().slice(0,16),j=function(a,b){var c;let d,f,g=Buffer.from(b,"utf8");if(16!==g.length)throw Error(`aes key must be 16 bytes, got ${g.length}`);let h=g.subarray(0,16),i=e().createCipheriv("aes-128-cbc",g,h);i.setAutoPadding(!1);let j=(d=16-(c=Buffer.from(a,"utf8")).length%16,f=Buffer.alloc(c.length+d,d),c.copy(f,0),f);return Buffer.concat([i.update(j),i.final()]).toString("base64")}(JSON.stringify(d),i),{cosyKey:e().publicEncrypt({key:g.pr,padding:e().constants.RSA_PKCS1_PADDING},Buffer.from(i,"utf8")).toString("base64"),info:j}),n=String(Math.floor(Date.now()/1e3)),o=JSON.stringify({version:"v1",requestId:(0,f.A)(),info:m,cosyVersion:g.cT,ideVersion:""}),p=Buffer.from(o,"utf8").toString("base64"),q=function(a){let b;try{b=new URL(a).pathname||""}catch{return""}return b.startsWith("/algo")?b.slice(5):b}(b),r=`${p}
7
7
  ${l}
8
8
  ${n}
9
9
  ${k.toString("latin1")}
@@ -1 +1 @@
1
- "use strict";exports.id=8255,exports.ids=[1998,8255],exports.modules={2574:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>F,OPTIONS:()=>E,buildModelsList:()=>D});var d=c(81329),e=c(75681),f=c(89718),g=c(16655),h=c(29679),i=c(53225),j=c(52007),k=c(28948),l=c(84534),m=c(15929),n=c(9760),o=c(3359),p=c(39326),q=c(66306),r=c(29240),s=c(15626);let t={kiro:async(a,b={})=>{let c=await (0,h.cW)({connectionId:a.id,accessToken:a.accessToken,refreshToken:a.refreshToken,isActive:a.isActive,quarantinedAt:a.quarantinedAt,providerSpecificData:a.providerSpecificData||{}},{log:console,signal:b.signal,onCredentialsRefreshed:async b=>{if(!b?.accessToken)return;let c={accessToken:b.accessToken,lastRefreshAt:new Date().toISOString()};b.refreshToken&&(c.refreshToken=b.refreshToken);let d=Number(b.expiresIn);if(Number.isFinite(d)&&d>0&&(c.expiresIn=d,c.expiresAt=new Date(Date.now()+1e3*d).toISOString()),!await (0,f.updateProviderConnection)(a.id,c))throw Error("Kiro connection disappeared during token refresh");Object.assign(a,c)}});return c?{models:Array.isArray(c.models)?c.models:[]}:null},qoder:async a=>{let b=await (0,p.B)(a.providerSpecificData),c=await (0,i.EV)({apiKey:a.apiKey,accessToken:a.accessToken,refreshToken:a.refreshToken,email:a.email,displayName:a.displayName,providerSpecificData:a.providerSpecificData||{}},{proxyOptions:b});return c?.models?.length?{models:c.models.map(a=>({id:a.id,name:a.name}))}:null},kimchi:async a=>{let b=await (0,j.av)({accessToken:a.accessToken,apiKey:a.apiKey,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null},clinepass:async a=>{let b=await (0,k.P)({accessToken:a.accessToken,apiKey:a.apiKey});return b?.models?.length?{models:b.models}:null},cline:async a=>{let{token:b,isApiKey:d}=(0,s.resolveClineCredential)(a);if(!b)return null;try{let{buildClineHeaders:a}=await Promise.resolve().then(c.bind(c,15626)),e=await fetch("https://api.cline.bot/api/v1/models",{headers:a(b,{Accept:"application/json"},{isApiKey:d})});if(!e.ok)return null;let f=await e.json(),g=Array.isArray(f)?f:f?.data;if(!Array.isArray(g)||0===g.length)return null;let h=g.filter(a=>"string"==typeof a?.id).map(a=>({id:a.id,name:a.name||a.id}));return h.length?{models:h}:null}catch{return null}},github:async a=>{let b=await (0,l.v)({accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null},blackbox:async a=>(0,n.x0)({apiKey:a.apiKey,accessToken:a.accessToken}),codebuddy:async()=>(0,m.A3)("codebuddy",{log:console}),"codebuddy-cn":async()=>(0,m.A3)("codebuddy-cn",{log:console})},u=/[-_][0-9a-f]{8,}$/i,v=0,w={image:"image",tts:"tts",embedding:"embedding",stt:"stt",imageToText:"imageToText",video:"video",music:"music"};function x(a){return a?.type&&w[a.type]||"llm"}async function y(a){if(!a?.apiKey)return[];let b="string"==typeof a?.providerSpecificData?.baseUrl?a.providerSpecificData.baseUrl.trim().replace(/\/$/,""):"";if(!b)return[];let c=`${b}/models`,d={"Content-Type":"application/json"};if((0,e.mq)(a.provider))d.Authorization=`Bearer ${a.apiKey}`;else{if(!(0,e.gb)(a.provider))return[];c.endsWith("/messages/models")?c=c.slice(0,-9):c.endsWith("/messages")&&(c=`${c.slice(0,-9)}/models`),d["x-api-key"]=a.apiKey,d["anthropic-version"]="2023-06-01",d.Authorization=`Bearer ${a.apiKey}`}try{var f;let a=new AbortController,b=setTimeout(()=>a.abort(),5e3),e=await fetch(c,{method:"GET",headers:d,cache:"no-store",signal:a.signal});if(clearTimeout(b),!e.ok)return[];let g=(f=await e.json(),Array.isArray(f)?f:f?.data||f?.models||f?.results||[]);return Array.from(new Set(g.map(a=>a?.id||a?.name||a?.model).filter(a=>"string"==typeof a&&""!==a.trim())))}catch{return[]}}function z(a,b){let c=e.AI_PROVIDERS[a],d=Array.isArray(c?.serviceKinds)&&c.serviceKinds.length>0?c.serviceKinds:["llm"];return b.some(a=>d.includes(a))}function A(a,b,c,d,e){if("string"!=typeof a)return"";let f=a.trim();for(let a of new Set([b?.providerSpecificData?.prefix,c,d,e].filter(a=>"string"==typeof a&&""!==a.trim()))){let b=`${a.trim()}/`;if(f.startsWith(b))return f.slice(b.length)}return f}function B(a,b,c,d){if("string"!=typeof a)return"";let e=a.trim();for(let a of new Set([b?.providerSpecificData?.prefix,c,d,"kiro"].filter(a=>"string"==typeof a&&""!==a.trim()))){let b=`${a.trim()}/`;if(e.startsWith(b))return e.slice(b.length)}return e}async function C(a,b,c){let d=new Set,e=[],f=0;for(let g of a){let a=function(a){let b=a?.providerSpecificData?.enabledModels;return Array.isArray(b)?b.filter(a=>"string"==typeof a&&""!==a.trim()):[]}(g);if(a.length>0)for(let e of a){let a=B(e,g,b,c);a&&d.add(a)}else(g?.providerSpecificData||{}).profileArn||(f+=1),e.push(g)}let g=new Map([...e.filter(a=>(0,h.G9)(a.id)),...function(a){if(0===a.length)return[];let b=[],c=0,d=v%a.length;for(;c<a.length&&b.length<4;){let e=a[d];(0,h.G9)(e.id)||b.push(e),d=(d+1)%a.length,c+=1}return v=d,b}(e)].map(a=>[a.id,a]));if(0===g.size)return{modelIds:[...d],unreadableCount:f};let i=new AbortController,j=setTimeout(()=>i.abort("Kiro catalog discovery timed out"),5e3);j.unref?.();try{for(let a of(await Promise.all([...g.values()].map(async a=>{try{return await t.kiro(a,{signal:i.signal})}catch(a){return console.log(`Live model fetch failed for kiro: ${a?.message||a}`),null}}))))for(let e of Array.isArray(a?.models)?a.models:[]){let a=B(e?.id,null,b,c);a&&d.add(a)}}finally{clearTimeout(j)}return{modelIds:[...d],unreadableCount:f}}async function D(a,{apiKey:b=null,policy:c}={}){let h=void 0===c&&b?await (0,f.uH)(b):c||null;if(h&&!0!==h.active)return[];let i=[],j=!1;try{if(i=await (0,f.getProviderConnections)(),j=!0,i=i.filter(a=>!1!==a.isActive&&!a.quarantinedAt),h?.allowedConnectionIds?.length){let a=new Set(h.allowedConnectionIds);i=i.filter(b=>a.has(b.id))}}catch(a){console.log("Could not fetch providers, returning all models")}let k=[];try{k=await (0,f.Uv)()}catch(a){console.log("Could not fetch combos")}let l=[];try{l=await (0,f.uv)()}catch(a){console.log("Could not fetch custom models")}let m={};try{m=await (0,f.getModelAliases)()}catch(a){console.log("Could not fetch model aliases")}let n={};try{n=await (0,g.vF)()}catch(a){console.log("Could not fetch disabled models")}let p=(a,b)=>Array.isArray(n[a])&&n[a].includes(b),s=new Map;for(let a of i){let b=s.get(a.provider)||[];b.push(a),s.set(a.provider,b)}let v=[];for(let b of k){if(!function(a,b){let c=a?.kind||"llm";return b.includes(c)}(b,a))continue;let c={id:b.name,object:"model",owned_by:"combo"};("webSearch"===b.kind||"webFetch"===b.kind)&&(c.kind=b.kind),v.push(c)}if(0===i.length){let b=Object.fromEntries(Object.entries(d.Xg).map(([a,b])=>[b,a]));for(let[c,f]of Object.entries(d.vq)){let d=b[c]||c;if("kiro"!==d&&(!j||e.AI_PROVIDERS[d]?.noAuth===!0)&&z(d,a))for(let b of f)a.includes(x(b))&&(p(c,b.id)||v.push({id:`${c}/${b.id}`,object:"model",owned_by:c}))}for(let b of j?[]:l){if(!b?.id||b.type&&"llm"!==b.type||!a.includes("llm"))continue;let c=b.providerAlias;if(!c)continue;let d=String(b.id).trim();d&&v.push({id:`${c}/${d}`,object:"model",owned_by:c})}}else for(let[b,c]of s.entries()){let f;if(!z(b,a))continue;let g=c[0],h=d.Xg[b]||b,i=(g?.providerSpecificData?.prefix||(0,e.wG)(b)||h).trim(),j=d.vq[h]||[],k=g?.providerSpecificData?.enabledModels,n=Array.isArray(k)&&k.length>0,o=(0,e.mq)(b)||(0,e.gb)(b),r=new Map(j.map(a=>[a.id,x(a)]));if("kiro"===b){let a=await C(c,i,h);0===(f=a.modelIds).length&&a.unreadableCount>0&&(f=j.map(a=>a.id))}else f=n?Array.from(new Set(k.filter(a=>"string"==typeof a&&""!==a.trim()))):j.map(a=>a.id);o&&0===f.length&&!u.test(b)&&(f=await y(g));let s=t[b];if(s&&"kiro"!==b&&!n)try{let a=await s(g);a?.models?.length&&(f=a.models.map(a=>a.id))}catch(a){console.log(`Live model fetch failed for ${b}: ${a?.message||a}`)}for(let d of Array.from(new Set([...f.map(a=>A(a,g,i,h,b)).filter(a=>"string"==typeof a&&""!==a.trim()),..."kiro"===b?[]:c.map(a=>A(a.defaultModel,a,i,h,b)).filter(a=>""!==a),..."kiro"===b?[]:l.filter(a=>{if(!a?.id||a.type&&"llm"!==a.type)return!1;let c=a.providerAlias;return c===h||c===i||c===b}).map(a=>String(a.id).trim()).filter(a=>""!==a),..."kiro"===b?[]:Object.values(m||{}).filter(a=>"string"==typeof a&&!!a.includes("/")&&(a.startsWith(`${i}/`)||a.startsWith(`${h}/`)||a.startsWith(`${b}/`))).map(a=>a.startsWith(`${i}/`)?a.slice(i.length+1):a.startsWith(`${h}/`)?a.slice(h.length+1):a.startsWith(`${b}/`)?a.slice(b.length+1):a).filter(a=>"string"==typeof a&&""!==a.trim())]))){let c=r.get(d)||function(a){let b=String(a).toLowerCase();return/embed/.test(b)?"embedding":/tts|speech|audio|voice/.test(b)?"tts":/video|sora|veo|kling/.test(b)?"video":/image|imagen|dall-?e|flux|sdxl|sd-|stable-diffusion/.test(b)?"image":"llm"}(d);if(!a.includes(c)||p(i,d)||p(h,d))continue;let e={id:`${i}/${d}`,object:"model",owned_by:i},f=(0,q.a0)(c)||("llm"===c?(0,q.nl)(b,d):null);if(f&&(e.capabilities=f),"llm"===c){let a=f?.contextWindow,c=f?.maxOutput;if(!Number.isFinite(a)||!Number.isFinite(c)){let e=(0,q.nl)(b,d);Number.isFinite(a)||(a=e.contextWindow),Number.isFinite(c)||(c=e.maxOutput)}Number.isFinite(a)&&(e.context_length=a),Number.isFinite(c)&&(e.max_completion_tokens=c)}v.push(e)}let w=e.AI_PROVIDERS[b],B=[];if(a.includes("tts")&&Array.isArray(w?.ttsConfig?.models))for(let a of w.ttsConfig.models)a?.id&&B.push(a.id);if(a.includes("embedding")&&Array.isArray(w?.embeddingConfig?.models))for(let a of w.embeddingConfig.models)a?.id&&B.push(a.id);for(let a of B)p(i,a)||p(h,a)||v.push({id:`${i}/${a}`,object:"model",owned_by:i});a.includes("webSearch")&&w?.searchConfig&&v.push({id:`${i}/search`,object:"model",kind:"webSearch",owned_by:i}),a.includes("webFetch")&&w?.fetchConfig&&v.push({id:`${i}/fetch`,object:"model",kind:"webFetch",owned_by:i})}a.includes("llm")&&v.push(...(0,o.lL)(i));let w=[],B=new Set;for(let a of v)!a?.id||B.has(a.id)||(B.add(a.id),w.push(a));return(0,r.Dw)(w,h?{...h,allowedConnectionIds:[]}:null)}async function E(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function F(a){try{let b=await D(["llm"],{apiKey:(0,r.MZ)(a)});return Response.json({object:"list",data:b},{headers:{"Access-Control-Allow-Origin":"*"}})}catch(a){return console.log("Error fetching models:",a),Response.json({error:{message:a.message,type:"server_error"}},{status:500})}}},3359:(a,b,c)=>{c.d(b,{K0:()=>j,Oh:()=>n,c9:()=>q,lL:()=>r,s9:()=>i});var d=c(89718),e=c(83477);let f="gpt-5.6";function g(a){return String(a||"").trim().replace(/^\/+|\/+$/g,"")}function h(a){let b;return`cx/${(b=g(a)).startsWith("cx/")?b.slice(3):b.startsWith("codex/")?b.slice(6):b||f}`}function i(a){let b=g(a);if(!b)return null;if("auto-codex"===b)return{mode:"router",modelString:`cx/${f}`,strictAccount:!1,label:"Auto Codex"};if(b.startsWith("router/")){let a;return{mode:"router",modelString:(a=g(b.slice(7))||f).includes("/")?a:`cx/${a}`,strictAccount:!1,label:"Router Pool"}}if(b.startsWith("original/"))return{mode:"original",modelString:h(b.slice(9)),strictAccount:!0,label:"Original Codex"};if("original"===b)return{mode:"original",modelString:`cx/${f}`,strictAccount:!0,label:"Original Codex"};let c=b.startsWith("account/")?"account/":b.startsWith("codex-account/")?"codex-account/":null;if(c){let a=b.slice(c.length),d=a.indexOf("/"),e=-1===d?a:a.slice(0,d),g=-1===d?f:a.slice(d+1);return e?{mode:"account",accountRef:e,modelString:h(g),strictAccount:!0,label:"Pinned Codex Account"}:null}return null}function j(a){return a?.displayName||a?.name||a?.email||a?.id||"Codex account"}function k(a){let b=String(j(a)).toLowerCase().replace(/@/g,"-").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"account";return`${b}-${String(a?.id||"").slice(0,8)}`}function l(a){return String(a||"").trim().toLowerCase()}function m(a){let b=a?.providerSpecificData||{};return"GPTJson"===b.importedFrom||String(b.tokenSource||"").startsWith("ChatGPT_team")}async function n(a=5e3){let b=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),c=b.slice(0,a).map(a=>({id:a.id,slug:k(a),label:j(a),email:a.email||null,imported:m(a),priority:a.priority||null})),e=o(b);return{accounts:c,original:e?{id:e.id,slug:k(e),label:j(e),email:e.email||null,imported:m(e),priority:e.priority||null}:null}}function o(a){return Array.isArray(a)&&0!==a.length?a.find(a=>!m(a))||a[0]:null}async function p(a){let b=l(a);if(!b)return null;let c=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),e=c.find(a=>l(a.id)===b||k(a)===b||l(a.email)===b||l(a.name)===b||l(a.displayName)===b);if(e)return e;let f=c.filter(a=>l(a.id).startsWith(b)||k(a).startsWith(b));return 1===f.length?f[0]:null}async function q(a){if(!a||"original"!==a.mode&&"account"!==a.mode)return null;if("account"===a.mode)return p(a.accountRef);let b=await (0,d.mt)(),c=b.codexGatewayOriginalConnectionId||b.codexOriginalConnectionId||"";if(c){let a=await p(c);if(a)return a}return o(await (0,d.getProviderConnections)({provider:"codex",isActive:!0}))}function r(a=[]){if(!a.some(a=>"codex"===a.provider&&!1!==a.isActive))return[];let b=[{id:"auto-codex",object:"model",owned_by:"zevai-codex-gateway"},...(e.vq.cx||[]).filter(a=>!a.type||"llm"===a.type).map(a=>a.id).flatMap(a=>[{id:`router/${a}`,object:"model",owned_by:"zevai-codex-gateway"},{id:`original/${a}`,object:"model",owned_by:"zevai-codex-gateway"}])];for(let c of a.filter(a=>"codex"===a.provider&&!1!==a.isActive))b.push({id:`account/${k(c)}`,object:"model",owned_by:"zevai-codex-account"});return b}},16655:(a,b,c)=>{c.d(b,{oF:()=>d.oF,tm:()=>d.tm,vF:()=>d.vF});var d=c(93999)},19225:(a,b,c)=>{a.exports=c(44870)},29240:(a,b,c)=>{function d(a){let b="string"==typeof a?a.trim():"";return b.startsWith("models/")?b.slice(7):b}function e(a){let b=a?.headers?.get?.("Authorization");return b?.startsWith("Bearer ")?b.slice(7):a?.headers?.get?.("x-api-key")||null}function f(a,b){if(!b)return!0;if(!0!==b.active)return!1;let c=Array.isArray(b.allowedModels)?b.allowedModels:[];if(0===c.length)return!0;let e=d(a);return c.some(a=>d(a)===e)}function g(a,b,c=new Map){if(!b)return[...a];let e=new Set(Array.isArray(b.allowedConnectionIds)?b.allowedConnectionIds:[]);return a.filter(a=>!!f(a?.id,b)&&(0===e.size||(c.get(d(a?.id))||c.get(a?.id)||[]).some(a=>e.has(a))))}c.d(b,{Dw:()=>g,GJ:()=>f,MZ:()=>e})},39326:(a,b,c)=>{c.d(b,{B:()=>h,p:()=>g});var d=c(71998);function e(a){return null==a?"":String(a).trim()}let f=new Map;function g(a,b,c){if(!a||0===a.length)return null;if(1===a.length)return a[0];if("round-robin"===b){let b=f.get(c)||{index:-1};return b.index=(b.index+1)%a.length,f.set(c,b),a[b.index]}return"random"===b?a[Math.floor(Math.random()*a.length)]:a[0]}async function h(a={}){try{let b=e(a?.proxyPoolId),c="__none__"===b?"":b,f=function(a={}){let b=a?.connectionProxyEnabled===!0;return{connectionProxyEnabled:b,connectionProxyUrl:e(a?.connectionProxyUrl),connectionNoProxy:e(a?.connectionNoProxy)}}(a);if(c){let a=await (0,d.hr)(c),b=e(a?.proxyUrl),f=e(a?.noProxy);if(a&&!0===a.isActive&&b){if("vercel"===a.type||"cloudflare"===a.type||"deno"===a.type)return{source:a.type,proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:f,strictProxy:!0===a.strictProxy,vercelRelayUrl:b};return{source:"pool",proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!0,connectionProxyUrl:b,connectionNoProxy:f,strictProxy:!0===a.strictProxy}}}if(f.connectionProxyEnabled&&f.connectionProxyUrl)return{source:"legacy",proxyPoolId:c||null,proxyPool:null,...f};return{source:"none",proxyPoolId:c||null,proxyPool:null,...f}}catch(a){return console.error("[resolveConnectionProxyConfig] Failed to resolve proxy config:",a),{source:"error",proxyPoolId:null,proxyPool:null,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:"",strictProxy:!1}}}},52007:(a,b,c)=>{c.d(b,{av:()=>o,gK:()=>m});var d=c(55511),e=c(39609);let f="https://llm.kimchi.dev",g=new Set([429,500,502,503,504]),h=new Map,i=new Map;function j(a){return(("string"==typeof a?a.trim():"")||f).replace(/\/+$/,"")}function k(a){return a?.accessToken||a?.apiKey||a?.providerSpecificData?.apiKey||null}function l(a){if(!a||"object"!=typeof a)return null;let b=a.slug||a.id||a.model||a.name;if("string"!=typeof b||""===b.trim())return null;let c=Array.isArray(a.input_modalities)?a.input_modalities.filter(a=>"text"===a||"image"===a):[],d=a.limits&&"object"==typeof a.limits?a.limits:{},e=Number(d.context_window||a.contextLength||a.context_length)||void 0,f=Number(d.max_output_tokens||a.maxOutputTokens||a.max_output_tokens)||void 0,g="string"==typeof a.provider?a.provider:"",h=!0===a.reasoning,i=Array.isArray(c)&&c.includes("image")?"imageToText":"llm",j={...a,id:b.trim(),name:String(a.display_name||a.displayName||a.name||b).trim(),provider:g,upstreamProvider:g,reasoning:h,inputModalities:c,kind:i,type:i,capabilities:{vision:c.includes("image"),reasoning:h,...e?{contextWindow:e}:{},...f?{maxOutput:f}:{},...g?{upstreamProvider:g}:{}},...e?{contextLength:e}:{},...f?{maxOutputTokens:f}:{}};return"anthropic"===g&&(j.compat={supportsReasoningEffort:!1,cacheControlFormat:"anthropic"}),j}function m(a){if("string"!=typeof a||""===a.trim())return null;let b=a.includes("/")?a.split("/").pop():a;return i.get(b)||i.get(b.toLowerCase())||null}async function n(a,b,c={}){let d=`${j(b)}/v1/models/metadata?include_in_cli=true`,f=new AbortController,h=setTimeout(()=>f.abort(Error("Kimchi models fetch timeout")),2e4),i=c.signal?AbortSignal.any([c.signal,f.signal]):f.signal;try{let b=await (0,e.proxyAwareFetch)(d,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${a}`,"User-Agent":"kimchi/0.1.40"},cache:"no-store",signal:i},c.proxyOptions||null);if(!b.ok){let a=Error(`Kimchi models ${b.status}: ${b.statusText}`);throw a.status=b.status,a.retryable=g.has(b.status),a}let f=await b.json();return Array.isArray(f?.models)?f.models:[]}finally{clearTimeout(h)}}async function o(a,b={}){let c,e,g,m=k(a);if(!m)return null;let p=a?.providerSpecificData?.kimchiEndpoint||b.endpoint||f,q=(g=(e=a?.providerSpecificData||{}).userId||e.username||a?.refreshToken||k(a)||"anonymous",(0,d.createHash)("sha256").update(`kimchi:${j(p)}:${g}`).digest("hex")),r=Date.now();if(!b.forceRefresh){let a=h.get(q);if(a&&a.expiresAt>r)return a}try{c=await n(m,p,b)}catch(a){return b.log?.warn?.("KIMCHI_MODELS",a.message),null}let s=c.map(l).filter(Boolean);if(0===s.length)return null;for(let a of s||[])a?.id&&(i.set(a.id,a),i.set(a.id.toLowerCase(),a));let t={expiresAt:Date.now()+3e5,models:s,rawModels:c};return h.set(q,t),t}},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,Iu:()=>d.Iu,Kg:()=>d.Kg,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.getModelAliases,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.deleteModelAlias,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(89718)},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}}};
1
+ "use strict";exports.id=8255,exports.ids=[1998,8255],exports.modules={2574:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>G,OPTIONS:()=>F,buildModelsList:()=>E});var d=c(81329),e=c(75681),f=c(89718),g=c(16655),h=c(29679),i=c(53225),j=c(52007),k=c(28948),l=c(84534),m=c(15929),n=c(9760),o=c(3359),p=c(39326),q=c(66306),r=c(29240),s=c(12557),t=c(15626);let u={kiro:async(a,b={})=>{let c=await (0,h.cW)({connectionId:a.id,accessToken:a.accessToken,refreshToken:a.refreshToken,isActive:a.isActive,quarantinedAt:a.quarantinedAt,providerSpecificData:a.providerSpecificData||{}},{log:console,signal:b.signal,onCredentialsRefreshed:async b=>{if(!b?.accessToken)return;let c={accessToken:b.accessToken,lastRefreshAt:new Date().toISOString()};b.refreshToken&&(c.refreshToken=b.refreshToken);let d=Number(b.expiresIn);if(Number.isFinite(d)&&d>0&&(c.expiresIn=d,c.expiresAt=new Date(Date.now()+1e3*d).toISOString()),!await (0,f.updateProviderConnection)(a.id,c))throw Error("Kiro connection disappeared during token refresh");Object.assign(a,c)}});return c?{models:Array.isArray(c.models)?c.models:[]}:null},qoder:async a=>{let b=await (0,p.B)(a.providerSpecificData),c=await (0,i.EV)({apiKey:a.apiKey,accessToken:a.accessToken,refreshToken:a.refreshToken,email:a.email,displayName:a.displayName,providerSpecificData:a.providerSpecificData||{}},{proxyOptions:b});return c?.models?.length?{models:c.models.map(a=>({id:a.id,name:a.name}))}:null},kimchi:async a=>{let b=await (0,j.av)({accessToken:a.accessToken,apiKey:a.apiKey,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null},clinepass:async a=>{let b=await (0,k.P)({accessToken:a.accessToken,apiKey:a.apiKey});return b?.models?.length?{models:b.models}:null},cline:async a=>{let{token:b,isApiKey:d}=(0,t.resolveClineCredential)(a);if(!b)return null;try{let{buildClineHeaders:a}=await Promise.resolve().then(c.bind(c,15626)),e=await fetch("https://api.cline.bot/api/v1/models",{headers:a(b,{Accept:"application/json"},{isApiKey:d})});if(!e.ok)return null;let f=await e.json(),g=Array.isArray(f)?f:f?.data;if(!Array.isArray(g)||0===g.length)return null;let h=g.filter(a=>"string"==typeof a?.id).map(a=>({id:a.id,name:a.name||a.id}));return h.length?{models:h}:null}catch{return null}},github:async a=>{let b=await (0,l.v)({accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}},{log:console});return b?.models?.length?{models:b.models}:null},blackbox:async a=>(0,n.x0)({apiKey:a.apiKey,accessToken:a.accessToken}),codebuddy:async()=>(0,m.A3)("codebuddy",{log:console}),"codebuddy-cn":async()=>(0,m.A3)("codebuddy-cn",{log:console})},v=/[-_][0-9a-f]{8,}$/i,w=0,x={image:"image",tts:"tts",embedding:"embedding",stt:"stt",imageToText:"imageToText",video:"video",music:"music"};function y(a){return a?.type&&x[a.type]||"llm"}async function z(a){if(!a?.apiKey)return[];let b="string"==typeof a?.providerSpecificData?.baseUrl?a.providerSpecificData.baseUrl.trim().replace(/\/$/,""):"";if(!b)return[];let c=`${b}/models`,d={"Content-Type":"application/json"};if((0,e.mq)(a.provider))d.Authorization=`Bearer ${a.apiKey}`;else{if(!(0,e.gb)(a.provider))return[];c.endsWith("/messages/models")?c=c.slice(0,-9):c.endsWith("/messages")&&(c=`${c.slice(0,-9)}/models`),d["x-api-key"]=a.apiKey,d["anthropic-version"]="2023-06-01",d.Authorization=`Bearer ${a.apiKey}`}try{var f;let a=new AbortController,b=setTimeout(()=>a.abort(),5e3),e=await fetch(c,{method:"GET",headers:d,cache:"no-store",signal:a.signal});if(clearTimeout(b),!e.ok)return[];let g=(f=await e.json(),Array.isArray(f)?f:f?.data||f?.models||f?.results||[]);return Array.from(new Set(g.map(a=>a?.id||a?.name||a?.model).filter(a=>"string"==typeof a&&""!==a.trim())))}catch{return[]}}function A(a,b){let c=e.AI_PROVIDERS[a],d=Array.isArray(c?.serviceKinds)&&c.serviceKinds.length>0?c.serviceKinds:["llm"];return b.some(a=>d.includes(a))}function B(a,b,c,d,e){if("string"!=typeof a)return"";let f=a.trim();for(let a of new Set([b?.providerSpecificData?.prefix,c,d,e].filter(a=>"string"==typeof a&&""!==a.trim()))){let b=`${a.trim()}/`;if(f.startsWith(b))return f.slice(b.length)}return f}function C(a,b,c,d){if("string"!=typeof a)return"";let e=a.trim();for(let a of new Set([b?.providerSpecificData?.prefix,c,d,"kiro"].filter(a=>"string"==typeof a&&""!==a.trim()))){let b=`${a.trim()}/`;if(e.startsWith(b))return e.slice(b.length)}return e}async function D(a,b,c){let d=new Set,e=[],f=0;for(let g of a){let a=function(a){let b=a?.providerSpecificData?.enabledModels;return Array.isArray(b)?b.filter(a=>"string"==typeof a&&""!==a.trim()):[]}(g);if(a.length>0)for(let e of a){let a=C(e,g,b,c);a&&d.add(a)}else(g?.providerSpecificData||{}).profileArn||(f+=1),e.push(g)}let g=new Map([...e.filter(a=>(0,h.G9)(a.id)),...function(a){if(0===a.length)return[];let b=[],c=0,d=w%a.length;for(;c<a.length&&b.length<4;){let e=a[d];(0,h.G9)(e.id)||b.push(e),d=(d+1)%a.length,c+=1}return w=d,b}(e)].map(a=>[a.id,a]));if(0===g.size)return{modelIds:[...d],unreadableCount:f};let i=new AbortController,j=setTimeout(()=>i.abort("Kiro catalog discovery timed out"),5e3);j.unref?.();try{for(let a of(await Promise.all([...g.values()].map(async a=>{try{return await u.kiro(a,{signal:i.signal})}catch(a){return console.log(`Live model fetch failed for kiro: ${a?.message||a}`),null}}))))for(let e of Array.isArray(a?.models)?a.models:[]){let a=C(e?.id,null,b,c);a&&d.add(a)}}finally{clearTimeout(j)}return{modelIds:[...d],unreadableCount:f}}async function E(a,{apiKey:b=null,policy:c}={}){let h=void 0===c&&b?await (0,f.uH)(b):c||null;if(h&&!0!==h.active)return[];let i=[],j=!1;try{if(i=await (0,f.getProviderConnections)(),j=!0,i=i.filter(a=>!1!==a.isActive&&!a.quarantinedAt),h?.allowedConnectionIds?.length){let a=new Set(h.allowedConnectionIds);i=i.filter(b=>a.has(b.id))}}catch(a){console.log("Could not fetch providers, returning all models")}let k=[];try{k=await (0,f.Uv)()}catch(a){console.log("Could not fetch combos")}let l=[];try{l=await (0,f.uv)()}catch(a){console.log("Could not fetch custom models")}let m={};try{m=await (0,f.getModelAliases)()}catch(a){console.log("Could not fetch model aliases")}let n={};try{n=await (0,g.vF)()}catch(a){console.log("Could not fetch disabled models")}let p=(a,b)=>Array.isArray(n[a])&&n[a].includes(b),t=new Map;for(let a of i){let b=t.get(a.provider)||[];b.push(a),t.set(a.provider,b)}let w=[];for(let b of k){if(!function(a,b){let c=a?.kind||"llm";return b.includes(c)}(b,a))continue;let c={id:b.name,object:"model",owned_by:"combo"};("webSearch"===b.kind||"webFetch"===b.kind)&&(c.kind=b.kind),w.push(c)}if(0===i.length){let b=Object.fromEntries(Object.entries(d.Xg).map(([a,b])=>[b,a]));for(let[c,f]of Object.entries(d.vq)){let d=b[c]||c;if("kiro"!==d&&(!j||e.AI_PROVIDERS[d]?.noAuth===!0)&&A(d,a))for(let b of f)a.includes(y(b))&&(p(c,b.id)||w.push({id:`${c}/${b.id}`,object:"model",owned_by:c}))}for(let b of j?[]:l){if(!b?.id||b.type&&"llm"!==b.type||!a.includes("llm"))continue;let c=b.providerAlias;if(!c)continue;let d=String(b.id).trim();d&&w.push({id:`${c}/${d}`,object:"model",owned_by:c})}}else for(let[b,c]of t.entries()){let f;if(!A(b,a))continue;let g=c[0],h=d.Xg[b]||b,i=(g?.providerSpecificData?.prefix||(0,e.wG)(b)||h).trim(),j=d.vq[h]||[],k=g?.providerSpecificData?.enabledModels,n=Array.isArray(k)&&k.length>0,o=(0,e.mq)(b)||(0,e.gb)(b),r=new Map(j.map(a=>[a.id,y(a)]));if("kiro"===b){let a=await D(c,i,h);0===(f=a.modelIds).length&&a.unreadableCount>0&&(f=j.map(a=>a.id))}else f=n?Array.from(new Set(k.filter(a=>"string"==typeof a&&""!==a.trim()))):j.map(a=>a.id);o&&0===f.length&&!v.test(b)&&(f=await z(g));let t=u[b];if(t&&"kiro"!==b&&!n)try{let a=await t(g);a?.models?.length&&(f=a.models.map(a=>a.id))}catch(a){console.log(`Live model fetch failed for ${b}: ${a?.message||a}`)}for(let d of Array.from(new Set([...f.map(a=>B(a,g,i,h,b)).filter(a=>"string"==typeof a&&""!==a.trim()),..."kiro"===b?[]:c.map(a=>B(a.defaultModel,a,i,h,b)).filter(a=>""!==a),..."kiro"===b?[]:l.filter(a=>{if(!a?.id||a.type&&"llm"!==a.type)return!1;let c=a.providerAlias;return c===h||c===i||c===b}).map(a=>String(a.id).trim()).filter(a=>""!==a),..."kiro"===b?[]:Object.values(m||{}).filter(a=>"string"==typeof a&&!!a.includes("/")&&(a.startsWith(`${i}/`)||a.startsWith(`${h}/`)||a.startsWith(`${b}/`))).map(a=>a.startsWith(`${i}/`)?a.slice(i.length+1):a.startsWith(`${h}/`)?a.slice(h.length+1):a.startsWith(`${b}/`)?a.slice(b.length+1):a).filter(a=>"string"==typeof a&&""!==a.trim())]))){let e=r.get(d)||function(a){let b=String(a).toLowerCase();return/embed/.test(b)?"embedding":/tts|speech|audio|voice/.test(b)?"tts":/video|sora|veo|kling/.test(b)?"video":/image|imagen|dall-?e|flux|sdxl|sd-|stable-diffusion/.test(b)?"image":"llm"}(d);if(!a.includes(e)||p(i,d)||p(h,d)||c.every(a=>(0,s.FK)(a,d,b)))continue;let f={id:`${i}/${d}`,object:"model",owned_by:i},g=(0,q.a0)(e)||("llm"===e?(0,q.nl)(b,d):null);if(g&&(f.capabilities=g),"llm"===e){let a=g?.contextWindow,c=g?.maxOutput;if(!Number.isFinite(a)||!Number.isFinite(c)){let e=(0,q.nl)(b,d);Number.isFinite(a)||(a=e.contextWindow),Number.isFinite(c)||(c=e.maxOutput)}Number.isFinite(a)&&(f.context_length=a),Number.isFinite(c)&&(f.max_completion_tokens=c)}w.push(f)}let x=e.AI_PROVIDERS[b],C=[];if(a.includes("tts")&&Array.isArray(x?.ttsConfig?.models))for(let a of x.ttsConfig.models)a?.id&&C.push(a.id);if(a.includes("embedding")&&Array.isArray(x?.embeddingConfig?.models))for(let a of x.embeddingConfig.models)a?.id&&C.push(a.id);for(let a of C)p(i,a)||p(h,a)||w.push({id:`${i}/${a}`,object:"model",owned_by:i});a.includes("webSearch")&&x?.searchConfig&&w.push({id:`${i}/search`,object:"model",kind:"webSearch",owned_by:i}),a.includes("webFetch")&&x?.fetchConfig&&w.push({id:`${i}/fetch`,object:"model",kind:"webFetch",owned_by:i})}a.includes("llm")&&w.push(...(0,o.lL)(i));let x=[],C=new Set;for(let a of w)!a?.id||C.has(a.id)||(C.add(a.id),x.push(a));return(0,r.Dw)(x,h?{...h,allowedConnectionIds:[]}:null)}async function F(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function G(a){try{let b=await E(["llm"],{apiKey:(0,r.MZ)(a)});return Response.json({object:"list",data:b},{headers:{"Access-Control-Allow-Origin":"*"}})}catch(a){return console.log("Error fetching models:",a),Response.json({error:{message:a.message,type:"server_error"}},{status:500})}}},3359:(a,b,c)=>{c.d(b,{K0:()=>j,Oh:()=>n,c9:()=>q,lL:()=>r,s9:()=>i});var d=c(89718),e=c(83477);let f="gpt-5.6";function g(a){return String(a||"").trim().replace(/^\/+|\/+$/g,"")}function h(a){let b;return`cx/${(b=g(a)).startsWith("cx/")?b.slice(3):b.startsWith("codex/")?b.slice(6):b||f}`}function i(a){let b=g(a);if(!b)return null;if("auto-codex"===b)return{mode:"router",modelString:`cx/${f}`,strictAccount:!1,label:"Auto Codex"};if(b.startsWith("router/")){let a;return{mode:"router",modelString:(a=g(b.slice(7))||f).includes("/")?a:`cx/${a}`,strictAccount:!1,label:"Router Pool"}}if(b.startsWith("original/"))return{mode:"original",modelString:h(b.slice(9)),strictAccount:!0,label:"Original Codex"};if("original"===b)return{mode:"original",modelString:`cx/${f}`,strictAccount:!0,label:"Original Codex"};let c=b.startsWith("account/")?"account/":b.startsWith("codex-account/")?"codex-account/":null;if(c){let a=b.slice(c.length),d=a.indexOf("/"),e=-1===d?a:a.slice(0,d),g=-1===d?f:a.slice(d+1);return e?{mode:"account",accountRef:e,modelString:h(g),strictAccount:!0,label:"Pinned Codex Account"}:null}return null}function j(a){return a?.displayName||a?.name||a?.email||a?.id||"Codex account"}function k(a){let b=String(j(a)).toLowerCase().replace(/@/g,"-").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"account";return`${b}-${String(a?.id||"").slice(0,8)}`}function l(a){return String(a||"").trim().toLowerCase()}function m(a){let b=a?.providerSpecificData||{};return"GPTJson"===b.importedFrom||String(b.tokenSource||"").startsWith("ChatGPT_team")}async function n(a=5e3){let b=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),c=b.slice(0,a).map(a=>({id:a.id,slug:k(a),label:j(a),email:a.email||null,imported:m(a),priority:a.priority||null})),e=o(b);return{accounts:c,original:e?{id:e.id,slug:k(e),label:j(e),email:e.email||null,imported:m(e),priority:e.priority||null}:null}}function o(a){return Array.isArray(a)&&0!==a.length?a.find(a=>!m(a))||a[0]:null}async function p(a){let b=l(a);if(!b)return null;let c=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),e=c.find(a=>l(a.id)===b||k(a)===b||l(a.email)===b||l(a.name)===b||l(a.displayName)===b);if(e)return e;let f=c.filter(a=>l(a.id).startsWith(b)||k(a).startsWith(b));return 1===f.length?f[0]:null}async function q(a){if(!a||"original"!==a.mode&&"account"!==a.mode)return null;if("account"===a.mode)return p(a.accountRef);let b=await (0,d.mt)(),c=b.codexGatewayOriginalConnectionId||b.codexOriginalConnectionId||"";if(c){let a=await p(c);if(a)return a}return o(await (0,d.getProviderConnections)({provider:"codex",isActive:!0}))}function r(a=[]){if(!a.some(a=>"codex"===a.provider&&!1!==a.isActive))return[];let b=[{id:"auto-codex",object:"model",owned_by:"zevai-codex-gateway"},...(e.vq.cx||[]).filter(a=>!a.type||"llm"===a.type).map(a=>a.id).flatMap(a=>[{id:`router/${a}`,object:"model",owned_by:"zevai-codex-gateway"},{id:`original/${a}`,object:"model",owned_by:"zevai-codex-gateway"}])];for(let c of a.filter(a=>"codex"===a.provider&&!1!==a.isActive))b.push({id:`account/${k(c)}`,object:"model",owned_by:"zevai-codex-account"});return b}},16655:(a,b,c)=>{c.d(b,{oF:()=>d.oF,tm:()=>d.tm,vF:()=>d.vF});var d=c(93999)},19225:(a,b,c)=>{a.exports=c(44870)},29240:(a,b,c)=>{function d(a){let b="string"==typeof a?a.trim():"";return b.startsWith("models/")?b.slice(7):b}function e(a){let b=a?.headers?.get?.("Authorization");return b?.startsWith("Bearer ")?b.slice(7):a?.headers?.get?.("x-api-key")||null}function f(a,b){if(!b)return!0;if(!0!==b.active)return!1;let c=Array.isArray(b.allowedModels)?b.allowedModels:[];if(0===c.length)return!0;let e=d(a);return c.some(a=>d(a)===e)}function g(a,b,c=new Map){if(!b)return[...a];let e=new Set(Array.isArray(b.allowedConnectionIds)?b.allowedConnectionIds:[]);return a.filter(a=>!!f(a?.id,b)&&(0===e.size||(c.get(d(a?.id))||c.get(a?.id)||[]).some(a=>e.has(a))))}c.d(b,{Dw:()=>g,GJ:()=>f,MZ:()=>e})},39326:(a,b,c)=>{c.d(b,{B:()=>h,p:()=>g});var d=c(71998);function e(a){return null==a?"":String(a).trim()}let f=new Map;function g(a,b,c){if(!a||0===a.length)return null;if(1===a.length)return a[0];if("round-robin"===b){let b=f.get(c)||{index:-1};return b.index=(b.index+1)%a.length,f.set(c,b),a[b.index]}return"random"===b?a[Math.floor(Math.random()*a.length)]:a[0]}async function h(a={}){try{let b=e(a?.proxyPoolId),c="__none__"===b?"":b,f=function(a={}){let b=a?.connectionProxyEnabled===!0;return{connectionProxyEnabled:b,connectionProxyUrl:e(a?.connectionProxyUrl),connectionNoProxy:e(a?.connectionNoProxy)}}(a);if(c){let a=await (0,d.hr)(c),b=e(a?.proxyUrl),f=e(a?.noProxy);if(a&&!0===a.isActive&&b){if("vercel"===a.type||"cloudflare"===a.type||"deno"===a.type)return{source:a.type,proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:f,strictProxy:!0===a.strictProxy,vercelRelayUrl:b};return{source:"pool",proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!0,connectionProxyUrl:b,connectionNoProxy:f,strictProxy:!0===a.strictProxy}}}if(f.connectionProxyEnabled&&f.connectionProxyUrl)return{source:"legacy",proxyPoolId:c||null,proxyPool:null,...f};return{source:"none",proxyPoolId:c||null,proxyPool:null,...f}}catch(a){return console.error("[resolveConnectionProxyConfig] Failed to resolve proxy config:",a),{source:"error",proxyPoolId:null,proxyPool:null,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:"",strictProxy:!1}}}},52007:(a,b,c)=>{c.d(b,{av:()=>o,gK:()=>m});var d=c(55511),e=c(39609);let f="https://llm.kimchi.dev",g=new Set([429,500,502,503,504]),h=new Map,i=new Map;function j(a){return(("string"==typeof a?a.trim():"")||f).replace(/\/+$/,"")}function k(a){return a?.accessToken||a?.apiKey||a?.providerSpecificData?.apiKey||null}function l(a){if(!a||"object"!=typeof a)return null;let b=a.slug||a.id||a.model||a.name;if("string"!=typeof b||""===b.trim())return null;let c=Array.isArray(a.input_modalities)?a.input_modalities.filter(a=>"text"===a||"image"===a):[],d=a.limits&&"object"==typeof a.limits?a.limits:{},e=Number(d.context_window||a.contextLength||a.context_length)||void 0,f=Number(d.max_output_tokens||a.maxOutputTokens||a.max_output_tokens)||void 0,g="string"==typeof a.provider?a.provider:"",h=!0===a.reasoning,i=Array.isArray(c)&&c.includes("image")?"imageToText":"llm",j={...a,id:b.trim(),name:String(a.display_name||a.displayName||a.name||b).trim(),provider:g,upstreamProvider:g,reasoning:h,inputModalities:c,kind:i,type:i,capabilities:{vision:c.includes("image"),reasoning:h,...e?{contextWindow:e}:{},...f?{maxOutput:f}:{},...g?{upstreamProvider:g}:{}},...e?{contextLength:e}:{},...f?{maxOutputTokens:f}:{}};return"anthropic"===g&&(j.compat={supportsReasoningEffort:!1,cacheControlFormat:"anthropic"}),j}function m(a){if("string"!=typeof a||""===a.trim())return null;let b=a.includes("/")?a.split("/").pop():a;return i.get(b)||i.get(b.toLowerCase())||null}async function n(a,b,c={}){let d=`${j(b)}/v1/models/metadata?include_in_cli=true`,f=new AbortController,h=setTimeout(()=>f.abort(Error("Kimchi models fetch timeout")),2e4),i=c.signal?AbortSignal.any([c.signal,f.signal]):f.signal;try{let b=await (0,e.proxyAwareFetch)(d,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${a}`,"User-Agent":"kimchi/0.1.40"},cache:"no-store",signal:i},c.proxyOptions||null);if(!b.ok){let a=Error(`Kimchi models ${b.status}: ${b.statusText}`);throw a.status=b.status,a.retryable=g.has(b.status),a}let f=await b.json();return Array.isArray(f?.models)?f.models:[]}finally{clearTimeout(h)}}async function o(a,b={}){let c,e,g,m=k(a);if(!m)return null;let p=a?.providerSpecificData?.kimchiEndpoint||b.endpoint||f,q=(g=(e=a?.providerSpecificData||{}).userId||e.username||a?.refreshToken||k(a)||"anonymous",(0,d.createHash)("sha256").update(`kimchi:${j(p)}:${g}`).digest("hex")),r=Date.now();if(!b.forceRefresh){let a=h.get(q);if(a&&a.expiresAt>r)return a}try{c=await n(m,p,b)}catch(a){return b.log?.warn?.("KIMCHI_MODELS",a.message),null}let s=c.map(l).filter(Boolean);if(0===s.length)return null;for(let a of s||[])a?.id&&(i.set(a.id,a),i.set(a.id.toLowerCase(),a));let t={expiresAt:Date.now()+3e5,models:s,rawModels:c};return h.set(q,t),t}},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,Iu:()=>d.Iu,Kg:()=>d.Kg,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.getModelAliases,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.deleteModelAlias,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(89718)},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}}};
@@ -1 +1 @@
1
- exports.id=8306,exports.ids=[8306],exports.modules={30869:(a,b,c)=>{"use strict";c.d(b,{UY:()=>i,X3:()=>k,eh:()=>f.eh,fg:()=>e.fg,h0:()=>h,oc:()=>j,vQ:()=>g});var d=c(39006),e=c(75681),f=c(81329);let g={name:"ZevaiRouter",description:"AI Infrastructure Management",version:d.version},h={npmPackageName:"zevairouter",installCmd:"npm i -g zevairouter",installCmdLatest:"npm i -g zevairouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:1997},i={maxLines:200,pollIntervalMs:1e3},j={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}},k={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat","notion-ai":"https://app.notion.com/api/v3/runInferenceTranscript"}},38238:(a,b,c)=>{"use strict";c.d(b,{P:()=>h});var d=c(89718),e=c(30869),f=c(54603);async function g(a=null){let b=null;try{let a=await (0,d.PX)(!0);b=a.find(a=>!1!==a.isActive)?.key||null}catch{}let c={"Content-Type":"application/json"};return b&&(c.Authorization=`Bearer ${b}`),c["x-zevai-cli-token"]=await (0,f.Xj)("zevai-cli-auth"),a&&(c["x-zevai-connection-id"]=a),c}async function h(a,b,c=`http://127.0.0.1:${process.env.PORT||e.h0.appPort}`,d={}){let f=await g(d.connectionId),i=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:f,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-i,e=await b.text().catch(()=>""),g=null;try{g=e?JSON.parse(e):null}catch{}if(!b.ok){let a=g?.error?.message||g?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(g?.data)&&g.data.length>0&&Array.isArray(g.data[0]?.embedding)?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no embedding data"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:f,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-i,e=await b.text().catch(()=>""),g=null;try{g=e?JSON.parse(e):null}catch{}if(!b.ok){let a=g?.error?.message||g?.msg||g?.message||g?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(g?.data)&&g.data.length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,d,e,g,h=new FormData,j=(e=new DataView(d=new ArrayBuffer(44+(b=8e3))),(g=(a,b)=>{for(let c=0;c<b.length;c+=1)e.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),e.setUint32(4,36+b,!0),g(8,"WAVE"),g(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,16e3,!0),e.setUint32(28,32e3,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),g(36,"data"),e.setUint32(40,b,!0),new Blob([d],{type:"audio/wav"}));h.append("file",j,"test.wav"),h.append("model",a);let k=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(f).filter(([a])=>"content-type"!==a.toLowerCase())),body:h,signal:AbortSignal.timeout(15e3)}),l=Date.now()-i,m=await k.text().catch(()=>""),n=null;try{n=m?JSON.parse(m):null}catch{}if(!k.ok){let a=n?.error?.message||n?.msg||n?.message||n?.error||m;return{ok:!1,latencyMs:l,error:`HTTP ${k.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:k.status}}return("string"==typeof n?.text?n.text:"").trim()?{ok:!0,latencyMs:l,error:null,status:k.status}:{ok:!1,latencyMs:l,status:k.status,error:"Provider returned no transcription text for this model"}}let j=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:f,body:JSON.stringify({model:a,max_tokens:1,stream:!1,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(15e3)}),k=Date.now()-i,l=await j.text().catch(()=>""),m=null;try{m=l?JSON.parse(l):null}catch{}if(!j.ok){let a=m?.error?.message||m?.msg||m?.message||m?.error||l;return{ok:!1,latencyMs:k,error:`HTTP ${j.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:j.status}}let n=m?.status,o=m?.msg||m?.message;if(null!=n&&"200"!==String(n)&&"0"!==String(n)&&o)return{ok:!1,latencyMs:k,status:j.status,error:`Provider status ${n}: ${String(o).slice(0,240)}`};if(m?.error){let a=m?.error?.message||m?.error||"Provider returned an error";return{ok:!1,latencyMs:k,status:j.status,error:String(a).slice(0,240)}}return Array.isArray(m?.choices)&&m.choices.length>0?{ok:!0,latencyMs:k,error:null,status:j.status}:{ok:!1,latencyMs:k,status:j.status,error:"Provider returned no completion choices for this model"}}},39006:a=>{"use strict";a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.30","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","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":{"@node-saml/node-saml":"5.1.0","next":"16.4.2","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4","sql.js":"1.14.1","yaml":"2.9.0"},"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","@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","confbox":"^0.2.4","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","node-forge":"^1.3.3","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","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.11","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"}')},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.DATA_DIR,"machine-id"),m=h().join(k.DATA_DIR,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.DATA_DIR,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="zevai-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},78335:()=>{},81329:(a,b,c)=>{"use strict";c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(83477);new Set(Object.entries(c(75681).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a));let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))},89718:(a,b,c)=>{"use strict";c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,Iu:()=>d.Iu,K1:()=>d.K1,KJ:()=>d.KJ,KK:()=>d.KK,Kg:()=>d.Kg,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,ME:()=>d.ME,Mc:()=>d.Mc,NR:()=>d.NR,Op:()=>d.Op,PX:()=>d.PX,Pb:()=>d.Pb,Pc:()=>d.Pc,QI:()=>d.QI,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,dK:()=>d.dK,deleteModelAlias:()=>d.fv,ek:()=>d.ek,fK:()=>d.fK,getModelAliases:()=>d.OM,getProviderConnections:()=>d.P,getQuotaSnapshot:()=>d.LF,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,p3:()=>d.p3,qd:()=>d.qd,r4:()=>d.r4,tV:()=>d.tV,uH:()=>d.uH,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yW:()=>d.yW,yg:()=>d.yg,zP:()=>d.zP,zY:()=>d.zY});var d=c(93999)},96487:()=>{}};
1
+ exports.id=8306,exports.ids=[8306],exports.modules={30869:(a,b,c)=>{"use strict";c.d(b,{UY:()=>i,X3:()=>k,eh:()=>f.eh,fg:()=>e.fg,h0:()=>h,oc:()=>j,vQ:()=>g});var d=c(39006),e=c(75681),f=c(81329);let g={name:"ZevaiRouter",description:"AI Infrastructure Management",version:d.version},h={npmPackageName:"zevairouter",installCmd:"npm i -g zevairouter",installCmdLatest:"npm i -g zevairouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:1997},i={maxLines:200,pollIntervalMs:1e3},j={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}},k={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat","notion-ai":"https://app.notion.com/api/v3/runInferenceTranscript"}},38238:(a,b,c)=>{"use strict";c.d(b,{P:()=>h});var d=c(89718),e=c(30869),f=c(54603);async function g(a=null){let b=null;try{let a=await (0,d.PX)(!0);b=a.find(a=>!1!==a.isActive)?.key||null}catch{}let c={"Content-Type":"application/json"};return b&&(c.Authorization=`Bearer ${b}`),c["x-zevai-cli-token"]=await (0,f.Xj)("zevai-cli-auth"),a&&(c["x-zevai-connection-id"]=a),c}async function h(a,b,c=`http://127.0.0.1:${process.env.PORT||e.h0.appPort}`,d={}){let f=await g(d.connectionId),i=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:f,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-i,e=await b.text().catch(()=>""),g=null;try{g=e?JSON.parse(e):null}catch{}if(!b.ok){let a=g?.error?.message||g?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(g?.data)&&g.data.length>0&&Array.isArray(g.data[0]?.embedding)?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no embedding data"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:f,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),d=Date.now()-i,e=await b.text().catch(()=>""),g=null;try{g=e?JSON.parse(e):null}catch{}if(!b.ok){let a=g?.error?.message||g?.msg||g?.message||g?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(g?.data)&&g.data.length>0?{ok:!0,latencyMs:d,error:null,status:b.status}:{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,d,e,g,h=new FormData,j=(e=new DataView(d=new ArrayBuffer(44+(b=8e3))),(g=(a,b)=>{for(let c=0;c<b.length;c+=1)e.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),e.setUint32(4,36+b,!0),g(8,"WAVE"),g(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,16e3,!0),e.setUint32(28,32e3,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),g(36,"data"),e.setUint32(40,b,!0),new Blob([d],{type:"audio/wav"}));h.append("file",j,"test.wav"),h.append("model",a);let k=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(f).filter(([a])=>"content-type"!==a.toLowerCase())),body:h,signal:AbortSignal.timeout(15e3)}),l=Date.now()-i,m=await k.text().catch(()=>""),n=null;try{n=m?JSON.parse(m):null}catch{}if(!k.ok){let a=n?.error?.message||n?.msg||n?.message||n?.error||m;return{ok:!1,latencyMs:l,error:`HTTP ${k.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:k.status}}return("string"==typeof n?.text?n.text:"").trim()?{ok:!0,latencyMs:l,error:null,status:k.status}:{ok:!1,latencyMs:l,status:k.status,error:"Provider returned no transcription text for this model"}}let j=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:f,body:JSON.stringify({model:a,max_tokens:1,stream:!1,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(15e3)}),k=Date.now()-i,l=await j.text().catch(()=>""),m=null;try{m=l?JSON.parse(l):null}catch{}if(!j.ok){let a=m?.error?.message||m?.msg||m?.message||m?.error||l;return{ok:!1,latencyMs:k,error:`HTTP ${j.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:j.status}}let n=m?.status,o=m?.msg||m?.message;if(null!=n&&"200"!==String(n)&&"0"!==String(n)&&o)return{ok:!1,latencyMs:k,status:j.status,error:`Provider status ${n}: ${String(o).slice(0,240)}`};if(m?.error){let a=m?.error?.message||m?.error||"Provider returned an error";return{ok:!1,latencyMs:k,status:j.status,error:String(a).slice(0,240)}}return Array.isArray(m?.choices)&&m.choices.length>0?{ok:!0,latencyMs:k,error:null,status:j.status}:{ok:!1,latencyMs:k,status:j.status,error:"Provider returned no completion choices for this model"}}},39006:a=>{"use strict";a.exports=JSON.parse('{"name":"zevairouter","version":"1.1.32","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"cli/cli.js"},"files":["cli/cli.js","cli/app/","cli/hooks/","cli/src/","cli/package.json","cli/README.md","cli/LICENSE","scripts/start-standalone.mjs","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":{"@node-saml/node-saml":"5.1.0","next":"16.4.2","node-machine-id":"1.1.12","react":"19.2.4","react-dom":"19.2.4","sql.js":"1.14.1","yaml":"2.9.0"},"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","@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","confbox":"^0.2.4","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","node-forge":"^1.3.3","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","tailwindcss":"^4","typescript":"6.0.3","undici":"^8.10.0","uuid":"^14.0.1","vitest":"4.1.11","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"}')},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.DATA_DIR,"machine-id"),m=h().join(k.DATA_DIR,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.DATA_DIR,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="zevai-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},78335:()=>{},81329:(a,b,c)=>{"use strict";c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(83477);new Set(Object.entries(c(75681).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a));let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))},89718:(a,b,c)=>{"use strict";c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,Iu:()=>d.Iu,K1:()=>d.K1,KJ:()=>d.KJ,KK:()=>d.KK,Kg:()=>d.Kg,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,ME:()=>d.ME,Mc:()=>d.Mc,NR:()=>d.NR,Op:()=>d.Op,PX:()=>d.PX,Pb:()=>d.Pb,Pc:()=>d.Pc,QI:()=>d.QI,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,dK:()=>d.dK,deleteModelAlias:()=>d.fv,ek:()=>d.ek,fK:()=>d.fK,getModelAliases:()=>d.OM,getProviderConnections:()=>d.P,getQuotaSnapshot:()=>d.LF,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,p3:()=>d.p3,qd:()=>d.qd,r4:()=>d.r4,tV:()=>d.tV,uH:()=>d.uH,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yW:()=>d.yW,yg:()=>d.yg,zP:()=>d.zP,zY:()=>d.zY});var d=c(93999)},96487:()=>{}};
@@ -1,4 +1,4 @@
1
- "use strict";exports.id=8655,exports.ids=[5752,8655],exports.modules={75752:(a,b,c)=>{c.r(b),c.d(b,{TAILSCALE_SOCKET:()=>v,getTailscaleFunnelUrl:()=>K,installTailscale:()=>L,isTailscaleInstalled:()=>E,isTailscaleLoggedIn:()=>G,isTailscaleRunning:()=>H,isTailscaleRunningStrict:()=>I,provisionCert:()=>V,startDaemonWithPassword:()=>R,startFunnel:()=>U,startLogin:()=>T,stopDaemon:()=>X,stopFunnel:()=>W});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h),j=c(55511),k=c.n(j),l=c(79646),m=c(28354),n=c(81283),o=c(53859);let p=(0,m.promisify)(l.exec),q=g().join(o.n,"bin"),r="darwin"===i().platform();i().platform();let s="win32"===i().platform(),t=g().join(q,s?"tailscale.exe":"tailscale"),u=g().join(o.n,"tailscale"),v=g().join(u,"tailscaled.sock"),w=s?[]:["--socket",v],x="C:\\Program Files\\Tailscale\\tailscale.exe",y=["/usr/local/bin/tailscale","/opt/homebrew/bin/tailscale","/usr/bin/tailscale"],z={value:void 0,fetchedAt:0,refreshing:!1},A={value:!1,fetchedAt:0,refreshing:!1},B={value:null,port:null,fetchedAt:0,refreshing:!1};function C(){return e().existsSync(t)?t:s&&e().existsSync(x)?x:!s&&y.find(a=>e().existsSync(a))||null}function D(){return Date.now()-z.fetchedAt>1e4&&(z.refreshing||(z.refreshing=!0,p(s?"where tailscale 2>nul":"which tailscale 2>/dev/null",{windowsHide:!0,timeout:1500}).then(({stdout:a})=>{z.value=a.trim()||C()}).catch(()=>{z.value=C()}).finally(()=>{z.fetchedAt=Date.now(),z.refreshing=!1}))),void 0===z.value&&(e().existsSync(t)?z.value=t:s&&e().existsSync(x)?z.value=x:s?z.value=null:z.value=y.find(a=>e().existsSync(a))||null),z.value}function E(){return null!==D()}function F(...a){return[...w,...a]}function G(){let a=D();if(!a)return!1;try{let b=(0,l.execSync)(`"${a}" ${w.join(" ")} status --json`,{encoding:"utf8",windowsHide:!0,env:{...process.env,PATH:M},timeout:5e3}),c=JSON.parse(b);return"Running"===c.BackendState&&c.Self?.Online===!0}catch(a){return!1}}function H(){return Date.now()-A.fetchedAt>1e4&&function(){if(A.refreshing)return;let a=D();if(!a){A.value=!1,A.fetchedAt=Date.now();return}A.refreshing=!0,p(`"${a}" ${w.join(" ")} funnel status --json`,{windowsHide:!0,timeout:1500}).then(({stdout:a})=>{try{let b=JSON.parse(a);A.value=Object.keys(b.AllowFunnel||{}).length>0}catch{A.value=!1}}).catch(()=>{A.value=!1}).finally(()=>{A.fetchedAt=Date.now(),A.refreshing=!1})}(),A.value}function I(){let a=D();if(!a)return!1;try{let b=(0,l.execSync)(`"${a}" ${w.join(" ")} funnel status --json`,{encoding:"utf8",windowsHide:!0,stdio:["ignore","pipe","ignore"],timeout:1500}),c=JSON.parse(b),d=Object.keys(c.AllowFunnel||{}).length>0;return A.value=d,A.fetchedAt=Date.now(),d}catch{return!1}}function J(){let a=D();if(!a)return null;try{let b=(0,l.execSync)(`"${a}" ${w.join(" ")} status --json`,{encoding:"utf8",windowsHide:!0,env:{...process.env,PATH:M},timeout:5e3}),c=JSON.parse(b),d=c.Self?.DNSName?.replace(/\.$/,"");return d?`https://${d}`:null}catch{return null}}function K(a){return(Date.now()-B.fetchedAt>1e4||B.port!==a)&&function(a){if(B.refreshing)return;let b=D();b&&(B.refreshing=!0,p(`"${b}" ${w.join(" ")} status --json`,{windowsHide:!0,timeout:1500}).then(({stdout:a})=>{try{let b=JSON.parse(a),c=b.Self?.DNSName?.replace(/\.$/,"");B.value=c?`https://${c}`:null}catch{}}).catch(()=>{}).finally(()=>{B.port=a,B.fetchedAt=Date.now(),B.refreshing=!1}))}(a),B.value}async function L(a,b,c){let d=c||(()=>{});return s?(await P(d),{success:!0}):(r?await N(a,d):await O(a,d),d("Starting daemon..."),await R(a),d("Logging in..."),T(b))}let M=`/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:${process.env.PATH||""}`;async function N(a,b){if(function(){try{return(0,l.execSync)("which brew",{stdio:"ignore",windowsHide:!0,env:{...process.env,PATH:M}}),!0}catch{return!1}}()){b("Installing via Homebrew..."),await new Promise((a,c)=>{let d=(0,l.spawn)("brew",["install","tailscale"],{stdio:["ignore","pipe","pipe"],windowsHide:!0,env:{...process.env,PATH:M}});d.stdout.on("data",a=>{let c=a.toString().trim();c&&b(c)}),d.stderr.on("data",a=>{let c=a.toString().trim();c&&b(c)}),d.on("close",b=>{0===b?a():c(Error(`brew install failed (code ${b})`))}),d.on("error",c)});return}let c=g().join(i().tmpdir(),"tailscale.pkg");b("Downloading Tailscale package..."),await new Promise((a,d)=>{let e=(0,l.spawn)("curl",["-fL","--progress-bar","https://pkgs.tailscale.com/stable/tailscale-latest.pkg","-o",c],{stdio:["ignore","pipe","pipe"],windowsHide:!0});e.stderr.on("data",a=>{let c=a.toString().trim();c&&b(c)}),e.on("close",b=>{0===b?a():d(Error("Download failed"))}),e.on("error",d)}),b("Installing package..."),await new Promise((d,e)=>{let f=(0,l.spawn)("sudo",["-S","installer","-pkg",c,"-target","/"],{stdio:["pipe","pipe","pipe"],windowsHide:!0}),g="";f.stderr.on("data",a=>{g+=a.toString()}),f.stdout.on("data",a=>{let c=a.toString().trim();c&&b(c)}),f.on("close",a=>{try{(0,l.execSync)(`rm -f ${c}`,{stdio:"ignore",windowsHide:!0})}catch{}0===a?d():e(Error(g.includes("incorrect password")||g.includes("Sorry")?"Wrong sudo password":g||`Exit code ${a}`))}),f.on("error",e),f.stdin.write(`${a}
1
+ "use strict";exports.id=8655,exports.ids=[5752,8655],exports.modules={75752:(a,b,c)=>{c.r(b),c.d(b,{TAILSCALE_SOCKET:()=>v,getTailscaleFunnelUrl:()=>K,installTailscale:()=>L,isTailscaleInstalled:()=>E,isTailscaleLoggedIn:()=>G,isTailscaleRunning:()=>H,isTailscaleRunningStrict:()=>I,provisionCert:()=>V,startDaemonWithPassword:()=>R,startFunnel:()=>U,startLogin:()=>T,stopDaemon:()=>X,stopFunnel:()=>W});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h),j=c(55511),k=c.n(j),l=c(79646),m=c(28354),n=c(3664),o=c(53859);let p=(0,m.promisify)(l.exec),q=g().join(o.n,"bin"),r="darwin"===i().platform();i().platform();let s="win32"===i().platform(),t=g().join(q,s?"tailscale.exe":"tailscale"),u=g().join(o.n,"tailscale"),v=g().join(u,"tailscaled.sock"),w=s?[]:["--socket",v],x="C:\\Program Files\\Tailscale\\tailscale.exe",y=["/usr/local/bin/tailscale","/opt/homebrew/bin/tailscale","/usr/bin/tailscale"],z={value:void 0,fetchedAt:0,refreshing:!1},A={value:!1,fetchedAt:0,refreshing:!1},B={value:null,port:null,fetchedAt:0,refreshing:!1};function C(){return e().existsSync(t)?t:s&&e().existsSync(x)?x:!s&&y.find(a=>e().existsSync(a))||null}function D(){return Date.now()-z.fetchedAt>1e4&&(z.refreshing||(z.refreshing=!0,p(s?"where tailscale 2>nul":"which tailscale 2>/dev/null",{windowsHide:!0,timeout:1500}).then(({stdout:a})=>{z.value=a.trim()||C()}).catch(()=>{z.value=C()}).finally(()=>{z.fetchedAt=Date.now(),z.refreshing=!1}))),void 0===z.value&&(e().existsSync(t)?z.value=t:s&&e().existsSync(x)?z.value=x:s?z.value=null:z.value=y.find(a=>e().existsSync(a))||null),z.value}function E(){return null!==D()}function F(...a){return[...w,...a]}function G(){let a=D();if(!a)return!1;try{let b=(0,l.execSync)(`"${a}" ${w.join(" ")} status --json`,{encoding:"utf8",windowsHide:!0,env:{...process.env,PATH:M},timeout:5e3}),c=JSON.parse(b);return"Running"===c.BackendState&&c.Self?.Online===!0}catch(a){return!1}}function H(){return Date.now()-A.fetchedAt>1e4&&function(){if(A.refreshing)return;let a=D();if(!a){A.value=!1,A.fetchedAt=Date.now();return}A.refreshing=!0,p(`"${a}" ${w.join(" ")} funnel status --json`,{windowsHide:!0,timeout:1500}).then(({stdout:a})=>{try{let b=JSON.parse(a);A.value=Object.keys(b.AllowFunnel||{}).length>0}catch{A.value=!1}}).catch(()=>{A.value=!1}).finally(()=>{A.fetchedAt=Date.now(),A.refreshing=!1})}(),A.value}function I(){let a=D();if(!a)return!1;try{let b=(0,l.execSync)(`"${a}" ${w.join(" ")} funnel status --json`,{encoding:"utf8",windowsHide:!0,stdio:["ignore","pipe","ignore"],timeout:1500}),c=JSON.parse(b),d=Object.keys(c.AllowFunnel||{}).length>0;return A.value=d,A.fetchedAt=Date.now(),d}catch{return!1}}function J(){let a=D();if(!a)return null;try{let b=(0,l.execSync)(`"${a}" ${w.join(" ")} status --json`,{encoding:"utf8",windowsHide:!0,env:{...process.env,PATH:M},timeout:5e3}),c=JSON.parse(b),d=c.Self?.DNSName?.replace(/\.$/,"");return d?`https://${d}`:null}catch{return null}}function K(a){return(Date.now()-B.fetchedAt>1e4||B.port!==a)&&function(a){if(B.refreshing)return;let b=D();b&&(B.refreshing=!0,p(`"${b}" ${w.join(" ")} status --json`,{windowsHide:!0,timeout:1500}).then(({stdout:a})=>{try{let b=JSON.parse(a),c=b.Self?.DNSName?.replace(/\.$/,"");B.value=c?`https://${c}`:null}catch{}}).catch(()=>{}).finally(()=>{B.port=a,B.fetchedAt=Date.now(),B.refreshing=!1}))}(a),B.value}async function L(a,b,c){let d=c||(()=>{});return s?(await P(d),{success:!0}):(r?await N(a,d):await O(a,d),d("Starting daemon..."),await R(a),d("Logging in..."),T(b))}let M=`/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:${process.env.PATH||""}`;async function N(a,b){if(function(){try{return(0,l.execSync)("which brew",{stdio:"ignore",windowsHide:!0,env:{...process.env,PATH:M}}),!0}catch{return!1}}()){b("Installing via Homebrew..."),await new Promise((a,c)=>{let d=(0,l.spawn)("brew",["install","tailscale"],{stdio:["ignore","pipe","pipe"],windowsHide:!0,env:{...process.env,PATH:M}});d.stdout.on("data",a=>{let c=a.toString().trim();c&&b(c)}),d.stderr.on("data",a=>{let c=a.toString().trim();c&&b(c)}),d.on("close",b=>{0===b?a():c(Error(`brew install failed (code ${b})`))}),d.on("error",c)});return}let c=g().join(i().tmpdir(),"tailscale.pkg");b("Downloading Tailscale package..."),await new Promise((a,d)=>{let e=(0,l.spawn)("curl",["-fL","--progress-bar","https://pkgs.tailscale.com/stable/tailscale-latest.pkg","-o",c],{stdio:["ignore","pipe","pipe"],windowsHide:!0});e.stderr.on("data",a=>{let c=a.toString().trim();c&&b(c)}),e.on("close",b=>{0===b?a():d(Error("Download failed"))}),e.on("error",d)}),b("Installing package..."),await new Promise((d,e)=>{let f=(0,l.spawn)("sudo",["-S","installer","-pkg",c,"-target","/"],{stdio:["pipe","pipe","pipe"],windowsHide:!0}),g="";f.stderr.on("data",a=>{g+=a.toString()}),f.stdout.on("data",a=>{let c=a.toString().trim();c&&b(c)}),f.on("close",a=>{try{(0,l.execSync)(`rm -f ${c}`,{stdio:"ignore",windowsHide:!0})}catch{}0===a?d():e(Error(g.includes("incorrect password")||g.includes("Sorry")?"Wrong sudo password":g||`Exit code ${a}`))}),f.on("error",e),f.stdin.write(`${a}
2
2
  `),f.stdin.end()})}async function O(a,b){if("string"!=typeof a||a.includes("\n"))throw Error("Invalid sudo password");return b("Downloading install script..."),new Promise((c,d)=>{let f=(0,l.spawn)("curl",["-fsSL","https://tailscale.com/install.sh"],{stdio:["ignore","pipe","pipe"],windowsHide:!0}),h="",j="";f.stdout.on("data",a=>{h+=a.toString()}),f.stderr.on("data",a=>{j+=a.toString()}),f.on("exit",f=>{if(0!==f)return d(Error(`Failed to download install script: ${j}`));b("Running install script...");let m=g().join(i().tmpdir(),`tailscale-install-${k().randomBytes(8).toString("hex")}.sh`);try{e().writeFileSync(m,h,{mode:448})}catch(a){return d(Error(`Failed to write install script: ${a.message}`))}let n=()=>{try{e().unlinkSync(m)}catch{}},o=(0,l.spawn)("sudo",["-S","sh",m],{stdio:["pipe","pipe","pipe"],windowsHide:!0}),p="";o.stdout.on("data",a=>{let c=a.toString().trim();c&&b(c)}),o.stderr.on("data",a=>{p+=a.toString()}),o.on("close",a=>{n(),0===a?c():d(Error(p.includes("incorrect password")||p.includes("Sorry")?"Wrong sudo password":p||`Exit code ${a}`))}),o.on("error",a=>{n(),d(a)}),o.stdin.write(`${a}
3
3
  `),o.stdin.end()}),f.on("error",d)})}async function P(a){let b=g().join(i().tmpdir(),"tailscale-setup.msi");a("Downloading Tailscale installer..."),await new Promise((c,d)=>{let e=(0,l.spawn)("curl.exe",["-L","-#","-o",b,"https://pkgs.tailscale.com/stable/tailscale-setup-latest-amd64.msi"],{stdio:["ignore","pipe","pipe"],windowsHide:!0}),f="";e.stderr.on("data",b=>{let c=b.toString().match(/(\d+\.\d)%/);c&&c[1]!==f&&(f=c[1],a(`Downloading... ${f}%`))}),e.on("close",a=>0===a?c():d(Error("Download failed"))),e.on("error",d)}),a("Installing Tailscale (UAC prompt may appear)..."),await new Promise((c,d)=>{let f=`'/i','${b}','TS_NOLAUNCH=true','/quiet','/norestart'`,g=(0,l.spawn)("powershell",["-NoProfile","-NonInteractive","-Command",`Start-Process msiexec -ArgumentList ${f} -Verb RunAs -Wait`],{stdio:["ignore","pipe","pipe"],windowsHide:!0});g.stderr.on("data",b=>{let c=b.toString().trim();c&&a(c)}),g.on("close",a=>{try{e().unlinkSync(b)}catch{}0===a?c():d(Error(`msiexec failed (code ${a})`))}),g.on("error",d)}),a("Verifying installation...");let c=Date.now();for(;Date.now()-c<1e4;){if(e().existsSync(x))return void a("Installation complete.");await new Promise(a=>setTimeout(a,1e3))}throw Error("Installation finished but tailscale.exe not found")}async function Q(a){try{if(!e().existsSync(a))return void e().mkdirSync(a,{recursive:!0});let b=process.getuid(),c=process.getgid();if(!(()=>{let c=[a];for(;c.length;){let a=c.pop();try{let d=e().statSync(a);if(d.uid!==b)return!0;if(d.isDirectory())for(let b of e().readdirSync(a))c.push(g().join(a,b))}catch{}}return!1})())return;try{(0,l.execSync)(`chown -R ${b}:${c} "${a}"`,{stdio:"ignore",timeout:3e3})}catch{try{(0,l.execSync)(`sudo -n chown -R ${b}:${c} "${a}"`,{stdio:"ignore",timeout:3e3})}catch{}}}catch{}}async function R(a){if(s){let a=D();console.log("[Tailscale] win: net start Tailscale");try{(0,l.execSync)("net start Tailscale",{stdio:"ignore",windowsHide:!0,timeout:1e4})}catch{}if(!a)return;for(let b=0;b<20;b++){try{let c=(0,l.execSync)(`"${a}" status --json`,{encoding:"utf8",windowsHide:!0,timeout:2e3}),d=JSON.parse(c);if(d.BackendState&&"NoState"!==d.BackendState)return void console.log(`[Tailscale] win: BackendState=${d.BackendState} after ${500*b}ms`)}catch{}await new Promise(a=>setTimeout(a,500))}console.log("[Tailscale] win: BackendState still NoState after poll");return}let b=!!a,c=function(){try{let a=(0,l.execSync)(`pgrep -af "tailscaled.*${v}"`,{encoding:"utf8",timeout:2e3}).trim();if(!a)return null;return!a.includes("--tun=userspace-networking")}catch{return null}}();if(null!==c&&c===b)try{let a=D()||"tailscale";(0,l.execSync)(`"${a}" ${w.join(" ")} status --json`,{stdio:"ignore",windowsHide:!0,env:{...process.env,PATH:M},timeout:3e3});return}catch{}try{(0,l.execSync)(`pkill -9 -f "tailscaled.*${v}"`,{stdio:"ignore",timeout:3e3})}catch{}if(a)try{await (0,n.execWithPassword)(`pkill -9 -f "tailscaled.*${v}"`,a)}catch{}else try{(0,l.execSync)(`sudo -n pkill -9 -f "tailscaled.*${v}"`,{stdio:"ignore",timeout:3e3})}catch{}await new Promise(a=>setTimeout(a,1500)),await Q(u);let d=r?"/usr/local/bin/tailscaled":"tailscaled",e=[`--socket=${v}`,`--statedir=${u}`];if(b||e.push("--tun=userspace-networking"),b){let b=(0,l.spawn)("sudo",["-S",d,...e],{detached:!0,stdio:["pipe","ignore","ignore"],cwd:i().tmpdir(),env:{...process.env,PATH:M}});b.stdin.write(`${a}
4
4
  `),b.stdin.end(),b.unref()}else(0,l.spawn)(d,e,{detached:!0,stdio:"ignore",cwd:i().tmpdir(),env:{...process.env,PATH:M}}).unref();await new Promise(a=>setTimeout(a,3e3))}function S(){let a=D();if(!a)return null;try{let b=(0,l.execSync)(`"${a}" ${w.join(" ")} status --json`,{encoding:"utf8",windowsHide:!0,timeout:2e3}),c=JSON.parse(b);if(c.AuthURL)return c.AuthURL;return null}catch{return null}}function T(a){let b=D();return b?new Promise((c,d)=>{if(R("").catch(()=>{}),G())return void c({alreadyLoggedIn:!0});let e=F("up","--accept-routes");a&&e.push(`--hostname=${a}`);let f=(0,l.spawn)(b,e,{stdio:["ignore","pipe","pipe"],detached:!0,windowsHide:!0}),g=!1,h="",i=a=>{let b=a.match(/https:\/\/login\.tailscale\.com\/a\/[a-zA-Z0-9]+/);return b?b[0]:null},j=(a,b)=>{g||(g=!0,clearTimeout(m),clearInterval(k),console.log(`[Tailscale] login authUrl detected (${b})`),f.unref(),c({authUrl:a}))},k=setInterval(()=>{if(g)return;let a=S();a&&j(a,"status")},500),m=setTimeout(()=>{if(g)return;g=!0,clearInterval(k),f.unref();let a=i(h)||S();a?c({authUrl:a}):d(Error("tailscale up timed out without auth URL"))},15e3),n=a=>{let b=i(h+=a.toString());b&&j(b,"stdout")};f.stdout.on("data",n),f.stderr.on("data",n),f.on("error",a=>{g||(g=!0,clearTimeout(m),clearInterval(k),console.error(`[Tailscale] login spawn error: ${a.message}`),d(a))}),f.on("exit",a=>{if(g)return;console.log(`[Tailscale] login exit code=${a}`);let b=i(h)||S();if(b)return void j(b,"exit");if(G()){g=!0,clearTimeout(m),clearInterval(k),c({alreadyLoggedIn:!0});return}})}):Promise.reject(Error("Tailscale not installed"))}async function U(a){let b=D();if(!b)throw Error("Tailscale not installed");try{(0,l.execSync)(`"${b}" ${w.join(" ")} funnel --bg reset`,{stdio:"ignore",windowsHide:!0})}catch(a){}return new Promise((c,d)=>{let e=(0,l.spawn)(b,F("funnel","--bg",`${a}`),{stdio:["ignore","pipe","pipe"],windowsHide:!0}),f=!1,g="",h=setTimeout(()=>{if(f)return;f=!0;let b=J()||K(a);b?c({tunnelUrl:b}):d(Error(`Tailscale funnel timed out: ${g.trim()||"no output"}`))},3e4),i=!1,j=a=>{if((g+=a.toString()).includes("Funnel is not enabled")&&(i=!0),i&&!f){let a=g.match(/https:\/\/login\.tailscale\.com\/[^\s]+/);if(a){f=!0,clearTimeout(h),e.kill(),c({funnelNotEnabled:!0,enableUrl:a[0]});return}}let b=J();b&&!f&&(f=!0,clearTimeout(h),c({tunnelUrl:b}))};e.stdout.on("data",j),e.stderr.on("data",j),e.on("exit",b=>{if(f)return;f=!0,clearTimeout(h),console.log(`[Tailscale] funnel exit code=${b} output="${g.trim().slice(0,200)}"`);let e=J()||K(a);e?c({tunnelUrl:e}):d(Error(`tailscale funnel failed (code ${b}): ${g.trim()}`))}),e.on("error",a=>{f||(f=!0,clearTimeout(h),d(a))})})}async function V(a){let b=D();if(!b||!a)return;let c=g().join(u,"certs");e().mkdirSync(c,{recursive:!0});let d=g().join(c,`${a}.crt`),f=g().join(c,`${a}.key`);try{await p(`"${b}" ${w.join(" ")} cert --cert-file "${d}" --key-file "${f}" "${a}"`,{windowsHide:!0,env:{...process.env,PATH:M},timeout:3e4}),console.log(`[Tailscale] cert provisioned for ${a}`)}catch(a){console.warn(`[Tailscale] cert provision failed (non-fatal): ${a.message}`)}}function W(){let a=D();if(a)try{(0,l.execSync)(`"${a}" ${w.join(" ")} funnel --bg reset`,{stdio:"ignore",windowsHide:!0})}catch(a){}}async function X(a){try{(0,l.execSync)("pkill -x tailscaled",{stdio:"ignore",windowsHide:!0,timeout:3e3})}catch{}try{(0,l.execSync)("pgrep -x tailscaled",{stdio:"ignore",windowsHide:!0,timeout:2e3})}catch{return}if(!s)try{await (0,n.execWithPassword)("pkill -x tailscaled",a||"")}catch{}try{e().existsSync(v)&&e().unlinkSync(v)}catch{}}},96006:(a,b,c)=>{c.d(b,{C7:()=>m,LZ:()=>n,Xk:()=>i,ew:()=>l,jd:()=>o});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(53859);let i=g().join(h.n,"tunnel"),j=g().join(i,"state.json"),k="abcdefghijklmnpqrstuvwxyz23456789";function l(){e().existsSync(i)||e().mkdirSync(i,{recursive:!0})}function m(){try{if(e().existsSync(j))return JSON.parse(e().readFileSync(j,"utf8"))}catch{}return null}function n(a){l(),e().writeFileSync(j,JSON.stringify(a,null,2))}function o(){let a="";for(let b=0;b<6;b++)a+=k.charAt(Math.floor(Math.random()*k.length));return a}},98655:(a,b,c)=>{c.r(b),c.d(b,{disableTailscale:()=>o,enableTailscale:()=>n,getTailscaleService:()=>k,getTailscaleStatus:()=>p,isTailscaleReconnecting:()=>l});var d=c(96006),e=c(75752),f=c(3433);async function g(a){if(!a)return!1;try{new URL(a)}catch{return!1}try{return(await (0,f.hd)(`${a}/api/health`,{cache:"no-store",signal:AbortSignal.timeout(8e3)})).ok}catch{return!1}}async function h(a,b={cancelled:!1}){let c=Date.now();for(;Date.now()-c<18e4;){if(b.cancelled)throw Error("cancelled");if(await g(a))return!0;await new Promise(a=>setTimeout(a,2e3))}throw Error("Health check timeout after 180000ms")}var i=c(70321);let j={cancelToken:{cancelled:!1},spawnInProgress:!1,lastRestartAt:0,activeLocalPort:null};function k(){return j}function l(){return j.spawnInProgress}function m(a){if(a.cancelled)throw Error("tailscale cancelled")}async function n(a=1997){console.log(`[Tailscale] enable start (port=${a})`),j.cancelToken={cancelled:!1},j.activeLocalPort=a,j.spawnInProgress=!0;let b=j.cancelToken;try{let f,{getCachedPassword:g,loadEncryptedPassword:j,initDbHooks:k}=await Promise.all([c.e(5019),c.e(3721)]).then(c.t.bind(c,3721,23));k(i.mt,i.Xx);let l=g()||await j()||"";await (0,e.startDaemonWithPassword)(l),console.log("[Tailscale] daemon ready"),m(b);let n=(0,d.C7)(),o=n?.shortId||(0,d.jd)(),p=(0,e.isTailscaleLoggedIn)();if(console.log(`[Tailscale] loggedIn=${p}`),!p){let a=await (0,e.startLogin)(o);if(a.authUrl)return console.log(`[Tailscale] needs login, authUrl=${a.authUrl}`),{success:!1,needsLogin:!0,authUrl:a.authUrl};console.log("[Tailscale] login resolved alreadyLoggedIn")}m(b),(0,e.stopFunnel)();try{console.log("[Tailscale] starting funnel"),f=await (0,e.startFunnel)(a)}catch(a){if(console.error(`[Tailscale] funnel error: ${a.message}`),/NoState|unexpected state|not logged in|Logged ?out|NeedsLogin/i.test(a.message||"")){console.log("[Tailscale] retry via startLogin");let a=await (0,e.startLogin)(o);if(a.authUrl)return{success:!1,needsLogin:!0,authUrl:a.authUrl}}throw a}if(m(b),f.funnelNotEnabled)return console.log(`[Tailscale] funnel not enabled, enableUrl=${f.enableUrl}`),{success:!1,funnelNotEnabled:!0,enableUrl:f.enableUrl};if(!(0,e.isTailscaleLoggedIn)()||!(0,e.isTailscaleRunningStrict)())return console.error("[Tailscale] strict probe failed (device removed?)"),(0,e.stopFunnel)(),{success:!1,error:"Tailscale not connected. Device may have been removed. Please re-login."};await (0,i.Xx)({tailscaleEnabled:!0,tailscaleUrl:f.tunnelUrl}),console.log(`[Tailscale] funnel up: ${f.tunnelUrl}`);let q=new URL(f.tunnelUrl).hostname;await (0,e.provisionCert)(q);let r=!1;try{await h(f.tunnelUrl,b),r=!0}catch(a){if(!a.message.startsWith("Health check timeout"))throw a;console.warn("[Tailscale] health check timed out, will retry via watchdog")}return console.log(`[Tailscale] enable success (reachable=${r})`),{success:!0,tunnelUrl:f.tunnelUrl}}catch(a){throw console.error(`[Tailscale] enable error: ${a.message}`),a}finally{j.spawnInProgress=!1}}async function o(){return console.log("[Tailscale] disable"),j.cancelToken.cancelled=!0,(0,e.stopFunnel)(),await (0,i.Xx)({tailscaleEnabled:!1,tailscaleUrl:""}),{success:!0}}async function p(){let a=await (0,i.mt)(),b=!0===a.tailscaleEnabled,c=a.tailscaleUrl||"",d=!!b&&(0,e.isTailscaleLoggedIn)(),f=!!d&&(0,e.isTailscaleRunning)();return{enabled:b&&f,settingsEnabled:b,tunnelUrl:c,running:f,loggedIn:d}}}};
@@ -1 +1 @@
1
- "use strict";exports.id=891,exports.ids=[891],exports.modules={40891:(a,b,c)=>{c.d(b,{cO:()=>d.cO,ZV:()=>n,cT:()=>m,w8:()=>o,Ol:()=>D,L_:()=>d.$w});var d=c(13868),e=c(92130),f=c(82506);let g="codebuddy",h="CodeBuddy",i=new Set(["codebuddy.ai","www.codebuddy.ai"]),j="personal-edition-user-id";function k(a){return new Promise(b=>setTimeout(b,a))}async function l({tokens:a,email:b}){let{createProviderConnection:d}=await Promise.resolve().then(c.bind(c,71998)),e={...a.providerSpecificData||{},loginEmail:b,automation:"gsuite-bulk"};a.webCookie&&(e.webCookie=a.webCookie,e.webCookieCapturedAt=a.webCookieCapturedAt||new Date().toISOString()),a.generatedApiKey&&(e.codebuddyApiKeyId=a.generatedApiKey.id||null,e.codebuddyApiKeyName=a.generatedApiKey.name||null,e.codebuddyApiKeyExpiresAt=a.generatedApiKey.expiresAt||null,e.authMode="generated-api-key");let f={provider:g,authType:"oauth",...a,email:b,providerSpecificData:e,expiresAt:a.expiresIn?new Date(Date.now()+1e3*a.expiresIn).toISOString():null,testStatus:"active"},h=a.generatedApiKey?.key||a.apiKey;return h&&(f.apiKey=h),{connection:await d(f)}}async function m(a){let{requestDeviceCode:b}=await Promise.all([c.e(7774),c.e(5433),c.e(5024),c.e(3477),c.e(9609),c.e(6306),c.e(5295),c.e(7634),c.e(3101),c.e(3912),c.e(4586),c.e(1585),c.e(5330),c.e(5434),c.e(8895),c.e(8675),c.e(3662)]).then(c.bind(c,74177));return b(a)}async function n(a,b){let{pollForToken:d}=await Promise.all([c.e(7774),c.e(5433),c.e(5024),c.e(3477),c.e(9609),c.e(6306),c.e(5295),c.e(7634),c.e(3101),c.e(3912),c.e(4586),c.e(1585),c.e(5330),c.e(5434),c.e(8895),c.e(8675),c.e(3662)]).then(c.bind(c,74177));return d(a,b)}async function o(a,b,c="www.codebuddy.ai"){if(!a||!b)return null;try{let d=await fetch(`https://${c}/v2/plugin/login/account?state=${encodeURIComponent(b)}`,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","X-Domain":c}});if(!d.ok)return null;let e=await d.json(),f=e?.data||e||{};if(!f||"object"!=typeof f)return null;return{uid:f.uid||null,nickname:f.nickname||null,email:f.email||null,enterpriseId:f.enterpriseId||null,enterpriseName:f.enterpriseName||null,rawAuth:f}}catch{return null}}async function p(a){if(!a)return null;try{let{getProviderConnections:b}=await Promise.resolve().then(c.bind(c,71998)),d=(await b({provider:g})).find(b=>"oauth"===b.authType&&b.email===a&&b.apiKey);return d?.apiKey||null}catch{return null}}async function q(a){if(!a?.cookies)return console.warn("[CodeBuddy] captureWebCookie: context.cookies not available"),null;try{let b=await a.cookies(["https://www.codebuddy.ai","https://codebuddy.ai"]);console.log(`[CodeBuddy] captureWebCookie: found ${b.length} raw cookies from browser context`);let c=b.filter(a=>{let b=String(a.domain||"").replace(/^\./,"").toLowerCase();return i.has(b)||b.endsWith(".codebuddy.ai")}).filter(a=>a.name&&a.value).sort((a,b)=>String(a.name).localeCompare(String(b.name)));if(0===c.length)return console.warn("[CodeBuddy] captureWebCookie: no useful cookies after filtering. Raw cookie names:",b.map(a=>`${a.name}@${a.domain}`).join(", ")),null;let d=c.map(a=>`${a.name}=${a.value}`).join("; ");return console.log(`[CodeBuddy] captureWebCookie: captured ${c.length} cookies (${d.length} chars). Names: ${c.map(a=>a.name).join(", ")}`),d}catch(a){return console.error("[CodeBuddy] captureWebCookie error:",a.message),null}}async function r(a,b={}){let c=await q(a);return c?{...b,webCookie:c,webCookieCapturedAt:new Date().toISOString()}:b}async function s(a,b,{method:c="POST",headers:d={},referrer:e,body:f}={}){return a.evaluate(async({url:a,method:b,headers:c,referrer:d,body:e})=>{let f=await fetch(a,{method:b,credentials:"include",headers:c,referrer:d,body:null==e?null:JSON.stringify(e)}),g=await f.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{h={raw:g}}return{ok:f.ok,status:f.status,payload:h,text:g}},{url:b,method:c,headers:d,referrer:e,body:f})}async function t(a,b){b?.("submitting_codebuddy_region_profile","Submitting CodeBuddy region profile via account API");let c=await s(a,"https://www.codebuddy.ai/console/login/account",{method:"POST",headers:{accept:"application/json, text/plain, */*","content-type":"application/json","x-requested-with":"XMLHttpRequest","x-domain":"www.codebuddy.ai"},referrer:"https://www.codebuddy.ai/register/user/complete",body:{attributes:{countryCode:["62"],countryFullName:["Indonesia"],countryName:["ID"]}}});return c.ok&&(c.payload?.code===0||c.payload?.code===200||void 0===c.payload?.code)?{ok:!0,code:c.payload?.code??0,message:c.payload?.msg||c.payload?.message||"OK"}:{ok:!1,code:c.payload?.code??c.status,message:c.payload?.msg||c.payload?.message||c.text||`HTTP ${c.status}`}}async function u(a,b){b?.("activating_codebuddy_trial","Applying or verifying CodeBuddy IDE trial");let c=()=>s(a,"https://www.codebuddy.ai/billing/ide/trial",{method:"POST",headers:{accept:"application/json, text/plain, */*","x-requested-with":"XMLHttpRequest","x-domain":"www.codebuddy.ai"},referrer:"https://www.codebuddy.ai/profile/plan",body:null}),d=await c(),e=d?.payload?.code;if(d.ok&&14051===e)return{ok:!0,code:e,state:"already_applied",message:d.payload?.msg||"has applied trial"};if(d.ok&&(0===e||200===e||void 0===e)){await k(1200);let a=await c(),b=a?.payload?.code;return a.ok&&(0===b||200===b||14051===b||void 0===b)?{ok:!0,code:b??e??0,state:14051===b?"applied_confirmed":"applied",message:a.payload?.msg||d.payload?.msg||"OK"}:{ok:!1,code:b??a.status,message:a.payload?.msg||a.payload?.message||a.text||`HTTP ${a.status}`}}return{ok:!1,code:e??d.status,message:d.payload?.msg||d.payload?.message||d.text||`HTTP ${d.status}`}}async function v(a,b,c=45e3){let d=Date.now(),e=null;for(;Date.now()-d<c;){let c=await a.evaluate(async()=>{try{let a=await fetch("/console/accounts",{method:"GET",credentials:"include",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","x-requested-with":"XMLHttpRequest","X-Domain":window.location.hostname||"www.codebuddy.ai"}}),b=await a.text(),c=null;try{c=b?JSON.parse(b):null}catch{c=null}let d=c?.data?.accounts||c?.accounts||[];return{ok:a.ok,status:a.status,payload:c,accounts:d}}catch(a){return{ok:!1,status:0,error:a?.message||String(a)}}});if(c?.ok&&Array.isArray(c.accounts)&&c.accounts.length>0){let a=c.accounts.find(a=>a?.lastLogin)||c.accounts[0]||{};return{account:a,userEnterpriseId:a.type&&"personal"!==a.type&&a.enterpriseId?a.enterpriseId:j}}e=c?.error||`status=${c?.status||"unknown"}`,b?.("waiting_codebuddy_key_session",`Waiting for CodeBuddy web console session (${e})`),await a.waitForTimeout(1500)}let f=Error(`CodeBuddy key session invalid: ${e||"no account session"}`);throw f.step="key_session_invalid",f.status="needs_manual",f}async function w(a,b,c){return a.evaluate(async({endpoint:a,name:b,expireInDays:c,userEnterpriseId:d})=>{let e=await fetch(a,{method:"POST",mode:"cors",credentials:"include",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({name:b,expire_in_days:c,user_enterprise_id:d})}),f=await e.text(),g=null;try{g=f?JSON.parse(f):null}catch{g=null}return{ok:e.ok,status:e.status,payload:g,text:g?null:f.slice(0,300)}},{endpoint:"https://www.codebuddy.ai/console/api/client/v1/api-keys",name:b,expireInDays:365,userEnterpriseId:c})}async function x(a,b,c,{existingApiKey:d=null,directReplay:e=!1,userEnterpriseId:f=null}={}){let g,h;if(d)return{skipped:!0,key:d};if(!a){let a=Error("CodeBuddy browser session is not available for API key creation");throw a.step="key_session_invalid",a.status="needs_manual",a}let i=f||j;e?c?.("creating_codebuddy_api_key_direct","Replaying CodeBuddy API key creation from current web session"):(c?.("opening_codebuddy_keys","Opening CodeBuddy Access Keys page"),await a.goto("https://www.codebuddy.ai/profile/keys",{waitUntil:"domcontentloaded",timeout:3e4}),await a.waitForTimeout(2e3),i=(await v(a,c)).userEnterpriseId||i);let k=(g=String(b||"codebuddy").replace(/[^a-zA-Z0-9_.@-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"codebuddy",h=new Date().toISOString().replace(/[-:.TZ]/g,"").slice(0,14),`zevairouter-${g}-${h}`.slice(0,50)),l=[k,`${k.slice(0,41)}-${Math.random().toString(36).slice(2,8)}`.slice(0,50)],m=null;for(let b=0;b<l.length;b+=1){let d=l[b];c?.("creating_codebuddy_api_key",`Creating CodeBuddy API key${b?" with retry name":""}`);let e=await w(a,d,i);if(e?.ok&&(e.payload?.code===0||e.payload?.code===200||e.payload?.code===void 0)){let a=function(a,b){let c=a?.data||a||{},d=c.key||c.api_key||c.apiKey;if(!d)return null;let e=c.item||c.apiKeyItem||c;return{key:d,id:e?.key_id||e?.id||e?.keyId||null,name:e?.name||c.name||b,expiresAt:c.expires_at||c.expiresAt||e?.expires_at||e?.expiresAt||null,createdAt:e?.created_at||e?.createdAt||null}}(e.payload,d);if(a?.key)return a;let b=Error("CodeBuddy API key created but secret was not returned");throw b.step="key_create_no_secret",b.status="failed",b}let f=function(a,b){let c=b?.code??b?.error?.code??b?.data?.code,d=b?.msg||b?.message||b?.error?.message||b?.error||`HTTP ${a}`;return 401===a||403===a?{step:"key_session_invalid",status:"needs_manual",message:`CodeBuddy key session invalid (${a})`,retryable:!1}:12601===c?{step:"key_limit_reached",status:"failed",message:"CodeBuddy API key limit reached",retryable:!1}:12502===c?{step:"key_name_exists",status:"failed",message:"CodeBuddy API key name already exists",retryable:!0}:{step:"key_create_failed",status:"failed",message:d||"CodeBuddy API key creation failed",retryable:!1}}(e?.status,e?.payload||{message:e?.text});if(m=f,f.retryable&&0===b)continue;let g=Error(f.message);throw g.step=f.step,g.status=f.status,g}let n=Error(m?.message||"CodeBuddy API key creation failed");throw n.step=m?.step||"key_create_failed",n.status=m?.status||"failed",n}async function y(a,b){let c=(a,c)=>b?.(a,c);try{c("navigating_to_dashboard","Navigating to CodeBuddy to complete registration"),await a.goto("https://www.codebuddy.ai/home",{waitUntil:"domcontentloaded",timeout:3e4}),await a.waitForTimeout(3e3);let b=Date.now(),d=!1;for(;Date.now()-b<3e4&&(0,f.Jl)(a);){if(await (0,f.i_)(a,c)||await (0,f.np)(a,c)||await (0,f.$K)(a,c,h)){d=!0,await a.waitForTimeout(1500);continue}break}d&&c("complete_register_done","CodeBuddy registration completed, establishing session"),c("codebuddy_registration_ready","CodeBuddy registration flow is ready for API key creation")}catch(a){c("complete_register_skipped",`Could not complete registration: ${a.message}`)}}async function z({manager:a,job:b,account:c,context:d,page:e,tokens:f,email:g,createOptions:h={}}){let i=f||{};if(e){let d=await t(e,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})});i={...i,providerSpecificData:{...i.providerSpecificData||{},codebuddyRegionSubmitOk:d.ok,codebuddyRegionSubmitCode:d.code??null,codebuddyRegionSubmitMessage:d.message||null}};let f=await u(e,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})});if(!f.ok){let a=Error(f.message||"CodeBuddy IDE trial activation failed");throw a.step="trial_not_activated",a.status="trial_not_activated",a}i={...i,providerSpecificData:{...i.providerSpecificData||{},codebuddyTrialState:f.state||null,codebuddyTrialCode:f.code??null,codebuddyTrialMessage:f.message||null}}}a.setAccountStep(c,"creating_codebuddy_api_key","Generating CodeBuddy Access Key"),await a.persistJobSnapshot(b,{forcePreview:!0});let j=i.apiKey||i.generatedApiKey?.key||await a.findExistingApiKey(g),k=j?{skipped:!0,key:j}:await a.createApiKey(e,g,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})},{existingApiKey:j,...h});a.setAccountStep(c,"saving_connection","Saving CodeBuddy connection with generated API key"),await a.persistJobSnapshot(b,{forcePreview:!0});let l=await r(d,{...i,...j?{apiKey:j}:{},...k?.skipped?{}:{generatedApiKey:k}}),{connection:m}=await a.saveConnection({tokens:l,email:g});return a.finalizeAccount(c,"success",{connectionId:m.id,step:"connection_saved",message:k?.skipped?"CodeBuddy connection already has an API key":"CodeBuddy connection saved with generated API key"}),{connection:m,generatedApiKey:k}}async function A(a,b=500){if(!a)return{};try{let c=await Promise.race([a,k(b).then(()=>null)]);return c?.tokens||{}}catch{return{}}}async function B({manager:a,job:b,account:c,context:d,page:e,successPromise:f,reason:g}){a.setAccountStep(c,"restricted_key_replay","Restricted page detected; replaying CodeBuddy Access Key creation from web session"),await a.persistJobSnapshot(b,{forcePreview:!0});let h=await A(f);return z({manager:a,job:b,account:c,context:d,page:e,tokens:{...h,providerSpecificData:{...h.providerSpecificData||{},restrictedDetected:!0,restrictedReason:g||"Account restricted page detected during automation",oauthTokenCaptured:!!h.accessToken}},email:c.email,createOptions:{directReplay:!0,userEnterpriseId:j}})}class C extends d.Q6{constructor({browserLauncher:a,googleAutomation:b=e.rk,requestDeviceCodeFn:c=m,pollToken:d=n,saveConnection:f=l,createApiKeyFn:g=x,findExistingApiKeyFn:h=p,fetchLoginAccountFn:i=o,pollIntervalMs:j=5e3}={}){super({browserLauncher:a,googleAutomation:b,storageName:"codebuddy-bulk-import"}),this.requestDeviceCode=c,this.pollToken=d,this.saveConnection=f,this.createApiKey=g,this.findExistingApiKey=h,this.fetchLoginAccount=i,this.pollIntervalMs=j}async runManualFollowup(a,b,c,d,e){let f=(async()=>{let c=async()=>{let a=b.manualSession,c=a?.context||d,e=a?.headedBrowser||null;c&&await c.close().catch(()=>null),e&&await e.close().catch(()=>null)};try{let c=await e;if(a.cancelRequested){this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while waiting for manual completion"}),await this.persistJobSnapshot(a,{forcePreview:!0});return}let f=b.manualSession?.page;f&&(this.setAccountStep(b,"completing_registration","Completing CodeBuddy registration"),await this.persistJobSnapshot(a,{forcePreview:!0}),await y(f,(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})})),await z({manager:this,job:a,account:b,context:b.manualSession?.context||d,page:f||b.manualSession?.page,tokens:c.tokens,email:b.email}),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){a.cancelRequested?this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while waiting for manual completion"}):this.finalizeAccount(b,c.status||"failed_exchange",{error:c.message||"Manual assist flow failed during token polling.",step:c.step||"exchange_failed",message:c.message||"Manual assist flow failed during token polling."}),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{await c(),b.manualSession=null,b.runtimeSession=null,a.manualFollowups.delete(f),await this.persistJobSnapshot(a,{forcePreview:!0})}})();a.manualFollowups.add(f)}async processAccount(a,b,c){if(a.cancelRequested||!a.browser)return void this.finalizeAccount(b,"cancelled",{error:"Job cancelled"});let{context:e,page:f}=await (0,d.go)(a.browser,b.proxyUrl);b.runtimeSession={context:e,page:f};try{this.setAccountStep(b,"preparing_worker",`Worker ${c} is preparing a browser context`),await this.persistJobSnapshot(a,{forcePreview:!0}),this.setAccountStep(b,"requesting_codebuddy_state","Requesting CodeBuddy OAuth state");let d=await this.requestDeviceCode(g),i=function(a,b){if(!a&&!b)return a;let c=new URL(a||"https://www.codebuddy.ai/login"),d=c.searchParams.get("platform")||"CLI",e=b||c.searchParams.get("state"),f=new URL("https://www.codebuddy.ai/login");return f.searchParams.set("platform",d),e&&f.searchParams.set("state",e),f.toString()}(d.verification_uri,d.device_code);if(!i||!d.device_code)throw Error("CodeBuddy did not return an OAuth login URL");let j=function({deviceCode:a,pollToken:b,onStep:c,fetchLoginAccount:d=o,timeoutMs:e=9e5,pollIntervalMs:f=5e3,maxTransientErrors:h=6,providerId:i=g,domain:j="www.codebuddy.ai"}){return(async()=>{let g=Date.now(),l=0,m=0;for(;Date.now()-g<e;){Date.now()-l>f-100&&(c?.("polling_codebuddy_token","Waiting for CodeBuddy OAuth token"),l=Date.now());let e=await b(i,a);if(e.success){let b=e.tokens?.accessToken||e.tokens?.access_token,c=await d(b,a,j);return{tokens:{...e.tokens,providerSpecificData:{...e.tokens?.providerSpecificData||{},...c?.uid?{uid:c.uid}:{},...c?.nickname?{nickname:c.nickname}:{},...c?.enterpriseId?{enterpriseId:c.enterpriseId}:{},...c?.enterpriseName?{enterpriseName:c.enterpriseName}:{},...c?.rawAuth?{rawAuth:c.rawAuth}:{},domain:j,oauthState:a}}}}if(!e.pending&&"authorization_pending"!==e.error&&"slow_down"!==e.error){if("request_failed"===e.error&&m<h){m+=1,c?.("codebuddy_poll_retry",`CodeBuddy token poll failed temporarily (${m}/${h}); retrying`),await k(f);continue}throw Error(e.errorDescription||e.error||"CodeBuddy OAuth polling failed")}await k(f)}throw Error("Timed out waiting for CodeBuddy OAuth token")})()}({deviceCode:d.device_code,pollToken:this.pollToken,fetchLoginAccount:this.fetchLoginAccount,pollIntervalMs:this.pollIntervalMs,onStep:(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})}});j.catch(()=>null);let l=await this.googleAutomation({page:f,authUrl:i,email:b.email,password:b.password,successPromise:j,serviceLabel:h,openingStep:"opening_codebuddy_oauth",openingMessage:"Opening CodeBuddy OAuth page",successStep:"codebuddy_token_received",successMessage:"CodeBuddy OAuth token received",onStep:(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})}});if("success"===l.status){this.setAccountStep(b,"completing_registration","Completing CodeBuddy registration"),await this.persistJobSnapshot(a,{forcePreview:!0}),await y(f,(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})});let{connection:c}=await z({manager:this,job:a,account:b,context:e,page:f,tokens:l.tokens,email:b.email});b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("failed_restricted"===l.status){await B({manager:this,job:a,account:b,context:e,page:f,successPromise:j,reason:l.error}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("needs_manual"===l.status){b.manualSession={context:e,page:f,opened:!1,openedAt:null},this.setAccountStep(b,"awaiting_manual","Waiting for manual completion in the browser session"),this.finalizeAccount(b,"needs_manual",{error:l.error,step:"awaiting_manual",message:l.error}),await this.persistJobSnapshot(a,{forcePreview:!0}),await this.runManualFollowup(a,b,c,e,j);return}this.finalizeAccount(b,l.status||"failed",{error:l.error||"CodeBuddy Google automation failed.",step:l.status||"failed",message:l.error||"CodeBuddy Google automation failed."}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){a.cancelRequested?this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while CodeBuddy automation was running"}):this.finalizeAccount(b,c.status||"failed",{error:c.message||"Unexpected CodeBuddy bulk import failure.",step:c.step||"failed",message:c.message||"Unexpected CodeBuddy bulk import failure."}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{b.password=void 0}}}function D(){return(!globalThis.__codeBuddyBulkImportSingleton&&(globalThis.__codeBuddyBulkImportSingleton={manager:new C}),globalThis.__codeBuddyBulkImportSingleton).manager}},92130:(a,b,c)=>{c.d(b,{rk:()=>d.rk});var d=c(82506)}};
1
+ "use strict";exports.id=891,exports.ids=[891],exports.modules={40891:(a,b,c)=>{c.d(b,{cO:()=>d.cO,ZV:()=>n,cT:()=>m,w8:()=>o,Ol:()=>D,L_:()=>d.$w});var d=c(13868),e=c(92130),f=c(82506);let g="codebuddy",h="CodeBuddy",i=new Set(["codebuddy.ai","www.codebuddy.ai"]),j="personal-edition-user-id";function k(a){return new Promise(b=>setTimeout(b,a))}async function l({tokens:a,email:b}){let{createProviderConnection:d}=await Promise.resolve().then(c.bind(c,71998)),e={...a.providerSpecificData||{},loginEmail:b,automation:"gsuite-bulk"};a.webCookie&&(e.webCookie=a.webCookie,e.webCookieCapturedAt=a.webCookieCapturedAt||new Date().toISOString()),a.generatedApiKey&&(e.codebuddyApiKeyId=a.generatedApiKey.id||null,e.codebuddyApiKeyName=a.generatedApiKey.name||null,e.codebuddyApiKeyExpiresAt=a.generatedApiKey.expiresAt||null,e.authMode="generated-api-key");let f={provider:g,authType:"oauth",...a,email:b,providerSpecificData:e,expiresAt:a.expiresIn?new Date(Date.now()+1e3*a.expiresIn).toISOString():null,testStatus:"active"},h=a.generatedApiKey?.key||a.apiKey;return h&&(f.apiKey=h),{connection:await d(f)}}async function m(a){let{requestDeviceCode:b}=await Promise.all([c.e(7774),c.e(5433),c.e(5024),c.e(3477),c.e(9609),c.e(6306),c.e(5295),c.e(7634),c.e(2557),c.e(3912),c.e(4586),c.e(1585),c.e(5330),c.e(5434),c.e(8895),c.e(4315),c.e(3662)]).then(c.bind(c,74177));return b(a)}async function n(a,b){let{pollForToken:d}=await Promise.all([c.e(7774),c.e(5433),c.e(5024),c.e(3477),c.e(9609),c.e(6306),c.e(5295),c.e(7634),c.e(2557),c.e(3912),c.e(4586),c.e(1585),c.e(5330),c.e(5434),c.e(8895),c.e(4315),c.e(3662)]).then(c.bind(c,74177));return d(a,b)}async function o(a,b,c="www.codebuddy.ai"){if(!a||!b)return null;try{let d=await fetch(`https://${c}/v2/plugin/login/account?state=${encodeURIComponent(b)}`,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","X-Domain":c}});if(!d.ok)return null;let e=await d.json(),f=e?.data||e||{};if(!f||"object"!=typeof f)return null;return{uid:f.uid||null,nickname:f.nickname||null,email:f.email||null,enterpriseId:f.enterpriseId||null,enterpriseName:f.enterpriseName||null,rawAuth:f}}catch{return null}}async function p(a){if(!a)return null;try{let{getProviderConnections:b}=await Promise.resolve().then(c.bind(c,71998)),d=(await b({provider:g})).find(b=>"oauth"===b.authType&&b.email===a&&b.apiKey);return d?.apiKey||null}catch{return null}}async function q(a){if(!a?.cookies)return console.warn("[CodeBuddy] captureWebCookie: context.cookies not available"),null;try{let b=await a.cookies(["https://www.codebuddy.ai","https://codebuddy.ai"]);console.log(`[CodeBuddy] captureWebCookie: found ${b.length} raw cookies from browser context`);let c=b.filter(a=>{let b=String(a.domain||"").replace(/^\./,"").toLowerCase();return i.has(b)||b.endsWith(".codebuddy.ai")}).filter(a=>a.name&&a.value).sort((a,b)=>String(a.name).localeCompare(String(b.name)));if(0===c.length)return console.warn("[CodeBuddy] captureWebCookie: no useful cookies after filtering. Raw cookie names:",b.map(a=>`${a.name}@${a.domain}`).join(", ")),null;let d=c.map(a=>`${a.name}=${a.value}`).join("; ");return console.log(`[CodeBuddy] captureWebCookie: captured ${c.length} cookies (${d.length} chars). Names: ${c.map(a=>a.name).join(", ")}`),d}catch(a){return console.error("[CodeBuddy] captureWebCookie error:",a.message),null}}async function r(a,b={}){let c=await q(a);return c?{...b,webCookie:c,webCookieCapturedAt:new Date().toISOString()}:b}async function s(a,b,{method:c="POST",headers:d={},referrer:e,body:f}={}){return a.evaluate(async({url:a,method:b,headers:c,referrer:d,body:e})=>{let f=await fetch(a,{method:b,credentials:"include",headers:c,referrer:d,body:null==e?null:JSON.stringify(e)}),g=await f.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{h={raw:g}}return{ok:f.ok,status:f.status,payload:h,text:g}},{url:b,method:c,headers:d,referrer:e,body:f})}async function t(a,b){b?.("submitting_codebuddy_region_profile","Submitting CodeBuddy region profile via account API");let c=await s(a,"https://www.codebuddy.ai/console/login/account",{method:"POST",headers:{accept:"application/json, text/plain, */*","content-type":"application/json","x-requested-with":"XMLHttpRequest","x-domain":"www.codebuddy.ai"},referrer:"https://www.codebuddy.ai/register/user/complete",body:{attributes:{countryCode:["62"],countryFullName:["Indonesia"],countryName:["ID"]}}});return c.ok&&(c.payload?.code===0||c.payload?.code===200||void 0===c.payload?.code)?{ok:!0,code:c.payload?.code??0,message:c.payload?.msg||c.payload?.message||"OK"}:{ok:!1,code:c.payload?.code??c.status,message:c.payload?.msg||c.payload?.message||c.text||`HTTP ${c.status}`}}async function u(a,b){b?.("activating_codebuddy_trial","Applying or verifying CodeBuddy IDE trial");let c=()=>s(a,"https://www.codebuddy.ai/billing/ide/trial",{method:"POST",headers:{accept:"application/json, text/plain, */*","x-requested-with":"XMLHttpRequest","x-domain":"www.codebuddy.ai"},referrer:"https://www.codebuddy.ai/profile/plan",body:null}),d=await c(),e=d?.payload?.code;if(d.ok&&14051===e)return{ok:!0,code:e,state:"already_applied",message:d.payload?.msg||"has applied trial"};if(d.ok&&(0===e||200===e||void 0===e)){await k(1200);let a=await c(),b=a?.payload?.code;return a.ok&&(0===b||200===b||14051===b||void 0===b)?{ok:!0,code:b??e??0,state:14051===b?"applied_confirmed":"applied",message:a.payload?.msg||d.payload?.msg||"OK"}:{ok:!1,code:b??a.status,message:a.payload?.msg||a.payload?.message||a.text||`HTTP ${a.status}`}}return{ok:!1,code:e??d.status,message:d.payload?.msg||d.payload?.message||d.text||`HTTP ${d.status}`}}async function v(a,b,c=45e3){let d=Date.now(),e=null;for(;Date.now()-d<c;){let c=await a.evaluate(async()=>{try{let a=await fetch("/console/accounts",{method:"GET",credentials:"include",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","x-requested-with":"XMLHttpRequest","X-Domain":window.location.hostname||"www.codebuddy.ai"}}),b=await a.text(),c=null;try{c=b?JSON.parse(b):null}catch{c=null}let d=c?.data?.accounts||c?.accounts||[];return{ok:a.ok,status:a.status,payload:c,accounts:d}}catch(a){return{ok:!1,status:0,error:a?.message||String(a)}}});if(c?.ok&&Array.isArray(c.accounts)&&c.accounts.length>0){let a=c.accounts.find(a=>a?.lastLogin)||c.accounts[0]||{};return{account:a,userEnterpriseId:a.type&&"personal"!==a.type&&a.enterpriseId?a.enterpriseId:j}}e=c?.error||`status=${c?.status||"unknown"}`,b?.("waiting_codebuddy_key_session",`Waiting for CodeBuddy web console session (${e})`),await a.waitForTimeout(1500)}let f=Error(`CodeBuddy key session invalid: ${e||"no account session"}`);throw f.step="key_session_invalid",f.status="needs_manual",f}async function w(a,b,c){return a.evaluate(async({endpoint:a,name:b,expireInDays:c,userEnterpriseId:d})=>{let e=await fetch(a,{method:"POST",mode:"cors",credentials:"include",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({name:b,expire_in_days:c,user_enterprise_id:d})}),f=await e.text(),g=null;try{g=f?JSON.parse(f):null}catch{g=null}return{ok:e.ok,status:e.status,payload:g,text:g?null:f.slice(0,300)}},{endpoint:"https://www.codebuddy.ai/console/api/client/v1/api-keys",name:b,expireInDays:365,userEnterpriseId:c})}async function x(a,b,c,{existingApiKey:d=null,directReplay:e=!1,userEnterpriseId:f=null}={}){let g,h;if(d)return{skipped:!0,key:d};if(!a){let a=Error("CodeBuddy browser session is not available for API key creation");throw a.step="key_session_invalid",a.status="needs_manual",a}let i=f||j;e?c?.("creating_codebuddy_api_key_direct","Replaying CodeBuddy API key creation from current web session"):(c?.("opening_codebuddy_keys","Opening CodeBuddy Access Keys page"),await a.goto("https://www.codebuddy.ai/profile/keys",{waitUntil:"domcontentloaded",timeout:3e4}),await a.waitForTimeout(2e3),i=(await v(a,c)).userEnterpriseId||i);let k=(g=String(b||"codebuddy").replace(/[^a-zA-Z0-9_.@-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"codebuddy",h=new Date().toISOString().replace(/[-:.TZ]/g,"").slice(0,14),`zevairouter-${g}-${h}`.slice(0,50)),l=[k,`${k.slice(0,41)}-${Math.random().toString(36).slice(2,8)}`.slice(0,50)],m=null;for(let b=0;b<l.length;b+=1){let d=l[b];c?.("creating_codebuddy_api_key",`Creating CodeBuddy API key${b?" with retry name":""}`);let e=await w(a,d,i);if(e?.ok&&(e.payload?.code===0||e.payload?.code===200||e.payload?.code===void 0)){let a=function(a,b){let c=a?.data||a||{},d=c.key||c.api_key||c.apiKey;if(!d)return null;let e=c.item||c.apiKeyItem||c;return{key:d,id:e?.key_id||e?.id||e?.keyId||null,name:e?.name||c.name||b,expiresAt:c.expires_at||c.expiresAt||e?.expires_at||e?.expiresAt||null,createdAt:e?.created_at||e?.createdAt||null}}(e.payload,d);if(a?.key)return a;let b=Error("CodeBuddy API key created but secret was not returned");throw b.step="key_create_no_secret",b.status="failed",b}let f=function(a,b){let c=b?.code??b?.error?.code??b?.data?.code,d=b?.msg||b?.message||b?.error?.message||b?.error||`HTTP ${a}`;return 401===a||403===a?{step:"key_session_invalid",status:"needs_manual",message:`CodeBuddy key session invalid (${a})`,retryable:!1}:12601===c?{step:"key_limit_reached",status:"failed",message:"CodeBuddy API key limit reached",retryable:!1}:12502===c?{step:"key_name_exists",status:"failed",message:"CodeBuddy API key name already exists",retryable:!0}:{step:"key_create_failed",status:"failed",message:d||"CodeBuddy API key creation failed",retryable:!1}}(e?.status,e?.payload||{message:e?.text});if(m=f,f.retryable&&0===b)continue;let g=Error(f.message);throw g.step=f.step,g.status=f.status,g}let n=Error(m?.message||"CodeBuddy API key creation failed");throw n.step=m?.step||"key_create_failed",n.status=m?.status||"failed",n}async function y(a,b){let c=(a,c)=>b?.(a,c);try{c("navigating_to_dashboard","Navigating to CodeBuddy to complete registration"),await a.goto("https://www.codebuddy.ai/home",{waitUntil:"domcontentloaded",timeout:3e4}),await a.waitForTimeout(3e3);let b=Date.now(),d=!1;for(;Date.now()-b<3e4&&(0,f.Jl)(a);){if(await (0,f.i_)(a,c)||await (0,f.np)(a,c)||await (0,f.$K)(a,c,h)){d=!0,await a.waitForTimeout(1500);continue}break}d&&c("complete_register_done","CodeBuddy registration completed, establishing session"),c("codebuddy_registration_ready","CodeBuddy registration flow is ready for API key creation")}catch(a){c("complete_register_skipped",`Could not complete registration: ${a.message}`)}}async function z({manager:a,job:b,account:c,context:d,page:e,tokens:f,email:g,createOptions:h={}}){let i=f||{};if(e){let d=await t(e,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})});i={...i,providerSpecificData:{...i.providerSpecificData||{},codebuddyRegionSubmitOk:d.ok,codebuddyRegionSubmitCode:d.code??null,codebuddyRegionSubmitMessage:d.message||null}};let f=await u(e,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})});if(!f.ok){let a=Error(f.message||"CodeBuddy IDE trial activation failed");throw a.step="trial_not_activated",a.status="trial_not_activated",a}i={...i,providerSpecificData:{...i.providerSpecificData||{},codebuddyTrialState:f.state||null,codebuddyTrialCode:f.code??null,codebuddyTrialMessage:f.message||null}}}a.setAccountStep(c,"creating_codebuddy_api_key","Generating CodeBuddy Access Key"),await a.persistJobSnapshot(b,{forcePreview:!0});let j=i.apiKey||i.generatedApiKey?.key||await a.findExistingApiKey(g),k=j?{skipped:!0,key:j}:await a.createApiKey(e,g,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})},{existingApiKey:j,...h});a.setAccountStep(c,"saving_connection","Saving CodeBuddy connection with generated API key"),await a.persistJobSnapshot(b,{forcePreview:!0});let l=await r(d,{...i,...j?{apiKey:j}:{},...k?.skipped?{}:{generatedApiKey:k}}),{connection:m}=await a.saveConnection({tokens:l,email:g});return a.finalizeAccount(c,"success",{connectionId:m.id,step:"connection_saved",message:k?.skipped?"CodeBuddy connection already has an API key":"CodeBuddy connection saved with generated API key"}),{connection:m,generatedApiKey:k}}async function A(a,b=500){if(!a)return{};try{let c=await Promise.race([a,k(b).then(()=>null)]);return c?.tokens||{}}catch{return{}}}async function B({manager:a,job:b,account:c,context:d,page:e,successPromise:f,reason:g}){a.setAccountStep(c,"restricted_key_replay","Restricted page detected; replaying CodeBuddy Access Key creation from web session"),await a.persistJobSnapshot(b,{forcePreview:!0});let h=await A(f);return z({manager:a,job:b,account:c,context:d,page:e,tokens:{...h,providerSpecificData:{...h.providerSpecificData||{},restrictedDetected:!0,restrictedReason:g||"Account restricted page detected during automation",oauthTokenCaptured:!!h.accessToken}},email:c.email,createOptions:{directReplay:!0,userEnterpriseId:j}})}class C extends d.Q6{constructor({browserLauncher:a,googleAutomation:b=e.rk,requestDeviceCodeFn:c=m,pollToken:d=n,saveConnection:f=l,createApiKeyFn:g=x,findExistingApiKeyFn:h=p,fetchLoginAccountFn:i=o,pollIntervalMs:j=5e3}={}){super({browserLauncher:a,googleAutomation:b,storageName:"codebuddy-bulk-import"}),this.requestDeviceCode=c,this.pollToken=d,this.saveConnection=f,this.createApiKey=g,this.findExistingApiKey=h,this.fetchLoginAccount=i,this.pollIntervalMs=j}async runManualFollowup(a,b,c,d,e){let f=(async()=>{let c=async()=>{let a=b.manualSession,c=a?.context||d,e=a?.headedBrowser||null;c&&await c.close().catch(()=>null),e&&await e.close().catch(()=>null)};try{let c=await e;if(a.cancelRequested){this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while waiting for manual completion"}),await this.persistJobSnapshot(a,{forcePreview:!0});return}let f=b.manualSession?.page;f&&(this.setAccountStep(b,"completing_registration","Completing CodeBuddy registration"),await this.persistJobSnapshot(a,{forcePreview:!0}),await y(f,(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})})),await z({manager:this,job:a,account:b,context:b.manualSession?.context||d,page:f||b.manualSession?.page,tokens:c.tokens,email:b.email}),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){a.cancelRequested?this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while waiting for manual completion"}):this.finalizeAccount(b,c.status||"failed_exchange",{error:c.message||"Manual assist flow failed during token polling.",step:c.step||"exchange_failed",message:c.message||"Manual assist flow failed during token polling."}),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{await c(),b.manualSession=null,b.runtimeSession=null,a.manualFollowups.delete(f),await this.persistJobSnapshot(a,{forcePreview:!0})}})();a.manualFollowups.add(f)}async processAccount(a,b,c){if(a.cancelRequested||!a.browser)return void this.finalizeAccount(b,"cancelled",{error:"Job cancelled"});let{context:e,page:f}=await (0,d.go)(a.browser,b.proxyUrl);b.runtimeSession={context:e,page:f};try{this.setAccountStep(b,"preparing_worker",`Worker ${c} is preparing a browser context`),await this.persistJobSnapshot(a,{forcePreview:!0}),this.setAccountStep(b,"requesting_codebuddy_state","Requesting CodeBuddy OAuth state");let d=await this.requestDeviceCode(g),i=function(a,b){if(!a&&!b)return a;let c=new URL(a||"https://www.codebuddy.ai/login"),d=c.searchParams.get("platform")||"CLI",e=b||c.searchParams.get("state"),f=new URL("https://www.codebuddy.ai/login");return f.searchParams.set("platform",d),e&&f.searchParams.set("state",e),f.toString()}(d.verification_uri,d.device_code);if(!i||!d.device_code)throw Error("CodeBuddy did not return an OAuth login URL");let j=function({deviceCode:a,pollToken:b,onStep:c,fetchLoginAccount:d=o,timeoutMs:e=9e5,pollIntervalMs:f=5e3,maxTransientErrors:h=6,providerId:i=g,domain:j="www.codebuddy.ai"}){return(async()=>{let g=Date.now(),l=0,m=0;for(;Date.now()-g<e;){Date.now()-l>f-100&&(c?.("polling_codebuddy_token","Waiting for CodeBuddy OAuth token"),l=Date.now());let e=await b(i,a);if(e.success){let b=e.tokens?.accessToken||e.tokens?.access_token,c=await d(b,a,j);return{tokens:{...e.tokens,providerSpecificData:{...e.tokens?.providerSpecificData||{},...c?.uid?{uid:c.uid}:{},...c?.nickname?{nickname:c.nickname}:{},...c?.enterpriseId?{enterpriseId:c.enterpriseId}:{},...c?.enterpriseName?{enterpriseName:c.enterpriseName}:{},...c?.rawAuth?{rawAuth:c.rawAuth}:{},domain:j,oauthState:a}}}}if(!e.pending&&"authorization_pending"!==e.error&&"slow_down"!==e.error){if("request_failed"===e.error&&m<h){m+=1,c?.("codebuddy_poll_retry",`CodeBuddy token poll failed temporarily (${m}/${h}); retrying`),await k(f);continue}throw Error(e.errorDescription||e.error||"CodeBuddy OAuth polling failed")}await k(f)}throw Error("Timed out waiting for CodeBuddy OAuth token")})()}({deviceCode:d.device_code,pollToken:this.pollToken,fetchLoginAccount:this.fetchLoginAccount,pollIntervalMs:this.pollIntervalMs,onStep:(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})}});j.catch(()=>null);let l=await this.googleAutomation({page:f,authUrl:i,email:b.email,password:b.password,successPromise:j,serviceLabel:h,openingStep:"opening_codebuddy_oauth",openingMessage:"Opening CodeBuddy OAuth page",successStep:"codebuddy_token_received",successMessage:"CodeBuddy OAuth token received",onStep:(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})}});if("success"===l.status){this.setAccountStep(b,"completing_registration","Completing CodeBuddy registration"),await this.persistJobSnapshot(a,{forcePreview:!0}),await y(f,(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})});let{connection:c}=await z({manager:this,job:a,account:b,context:e,page:f,tokens:l.tokens,email:b.email});b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("failed_restricted"===l.status){await B({manager:this,job:a,account:b,context:e,page:f,successPromise:j,reason:l.error}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("needs_manual"===l.status){b.manualSession={context:e,page:f,opened:!1,openedAt:null},this.setAccountStep(b,"awaiting_manual","Waiting for manual completion in the browser session"),this.finalizeAccount(b,"needs_manual",{error:l.error,step:"awaiting_manual",message:l.error}),await this.persistJobSnapshot(a,{forcePreview:!0}),await this.runManualFollowup(a,b,c,e,j);return}this.finalizeAccount(b,l.status||"failed",{error:l.error||"CodeBuddy Google automation failed.",step:l.status||"failed",message:l.error||"CodeBuddy Google automation failed."}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){a.cancelRequested?this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while CodeBuddy automation was running"}):this.finalizeAccount(b,c.status||"failed",{error:c.message||"Unexpected CodeBuddy bulk import failure.",step:c.step||"failed",message:c.message||"Unexpected CodeBuddy bulk import failure."}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{b.password=void 0}}}function D(){return(!globalThis.__codeBuddyBulkImportSingleton&&(globalThis.__codeBuddyBulkImportSingleton={manager:new C}),globalThis.__codeBuddyBulkImportSingleton).manager}},92130:(a,b,c)=>{c.d(b,{rk:()=>d.rk});var d=c(82506)}};
@@ -1,2 +1,2 @@
1
- "use strict";exports.id=8910,exports.ids=[8910],exports.modules={18910:(a,b,c)=>{c.d(b,{Pr:()=>q,UP:()=>o,Vu:()=>p,t8:()=>n,vt:()=>s});var d=c(12557),e=c(43659),f=c(66306),g=c(47593);let h=new Set(["vision","pdf","audioInput","videoInput"]),i="[Called tools: ",j="[Tool result: ";function k(a){return a.filter(Boolean).map(a=>{if("tool"===a.role||"function"===a.role)return{role:"assistant",content:`${j}${(0,g.kU)(a.content)||String(a.content??"")}]`};if("assistant"===a.role&&Array.isArray(a.tool_calls)){let{tool_calls:b,...c}=a,d=b.map(a=>a?.function?.name||a?.name||"tool").join(", "),e=(0,g.kU)(c.content)||("string"==typeof c.content?c.content:"");return{...c,content:`${e}${e?"\n":""}${i}${d}]`}}if(Array.isArray(a.content)&&a.content.some(a=>a?.type==="tool_use"||a?.type==="tool_result")){let b=[],c=[],d=[];for(let e of a.content)e?.type==="text"&&e.text&&b.push(e.text),e?.type==="tool_use"&&c.push(e.name||"tool"),e?.type==="tool_result"&&d.push((0,g.kU)(e.content)||String(e.content??""));let e=b.join("\n");return c.length>0&&(e=`${e}${e?"\n":""}${i}${c.join(", ")}]`),d.length>0&&(e=`${e}${e?"\n":""}${j}${d.join("\n")}]`),{...a,content:e}}return a})}let l=new Map;function m(a){if(!Array.isArray(a)||0===a.length)return[];let b=a.length-1;for(;b>=0&&a[b]?.role!=="assistant"&&a[b]?.role!=="model";)b--;return a.slice(b+1)}function n(a){let b=new Set;if(!a||"object"!=typeof a)return b;let c=a=>{if(!a||"object"!=typeof a)return;["image_url","image","input_image"].includes(a.type)&&b.add("vision"),["file","document","input_file"].includes(a.type)&&b.add("pdf"),["input_audio","audio","audio_url"].includes(a.type)&&b.add("audioInput"),["input_video","video","video_url"].includes(a.type)&&b.add("videoInput");let c=a.inlineData?.mimeType||a.inlineData?.mime_type||a.fileData?.mimeType||a.fileData?.mime_type;"string"==typeof c&&c.startsWith("image/")&&b.add("vision"),"application/pdf"===c&&b.add("pdf"),"string"==typeof c&&c.startsWith("audio/")&&b.add("audioInput"),"string"==typeof c&&c.startsWith("video/")&&b.add("videoInput")},d=a=>{Array.isArray(a)&&a.forEach(c)};return m(a.messages).forEach(a=>d(a?.content)),m(a.input).forEach(a=>d(a?.content)),m(a.contents||a.request?.contents).forEach(a=>d(a?.parts)),Array.isArray(a.tools)&&a.tools.some(a=>{let b=String(a?.type||"").toLowerCase(),c=String(a?.name||a?.function?.name||"").toLowerCase();return b.includes("web_search")||c.includes("web_search")||c.includes("search_web")})&&b.add("search"),b}function o(a){a?l.delete(a):l.clear()}function p(a,b){if(a.includes("/"))return null;let c=(Array.isArray(b)?b:b?.combos||[]).find(b=>b.name===a);return c&&c.models&&c.models.length>0?c.models:null}async function q({body:a,models:b,handleSingleModel:c,log:g,comboName:i,comboStrategy:j,comboStickyLimit:k=1,autoSwitch:m=!0}){let o=function(a,b,c,d=1){let e;if(!a||a.length<=1||"round-robin"!==c)return a;let f=b||"__default__",g=Number.isFinite(e=Number.parseInt(d,10))&&e>0?e:1,h=l.get(f),i="number"==typeof h?{index:h,consecutiveUseCount:0}:h||{index:0,consecutiveUseCount:0},j=i.index%a.length,k=function(a,b){let c=[...a];for(let a=0;a<b;a++){let a=c.shift();c.push(a)}return c}(a,j),m=i.consecutiveUseCount+1;return m>=g?l.set(f,{index:(j+1)%a.length,consecutiveUseCount:0}):l.set(f,{index:j,consecutiveUseCount:m}),k}(b,i,j,k);if(m){let b=n(a);if(b.size>0){let a=function(a,b){if(!b||0===b.size||!Array.isArray(a)||a.length<=1)return a;let c=[...b].filter(a=>h.has(a)),d=[...b].filter(a=>!h.has(a)),e=a.map((a,b)=>{let e,g,h,i;return{model:a,index:b,tier:(g=(e="string"==typeof a?a.indexOf("/"):-1)>0?a.slice(0,e):"",h=e>0?a.slice(e+1):a,i=(0,f.nl)(g,h),c.every(a=>!0===i[a])?+!d.every(a=>!0===i[a]):2)}}).sort((a,b)=>a.tier-b.tier||a.index-b.index);return e.every((a,b)=>a.index===b)?a:e.map(a=>a.model)}(o,b);a[0]!==o[0]&&g.info("COMBO",`Auto-switch for [${[...b].join(", ")}] -> ${a[0]}`),o=a}}let p=null,r=null,s=null;for(let b=0;b<o.length;b++){let e=o[b];g.info("COMBO",`Trying model ${b+1}/${o.length}: ${e}`);try{let b=await c(a,e);if(b.ok)return g.info("COMBO",`Model ${e} succeeded`),b;let f=b.statusText||"",h=null;try{let a=await b.clone().json();f=a?.error?.message||a?.error||a?.message||f,h=a?.retryAfter||null}catch{}if(h&&(!r||new Date(h)<new Date(r))&&(r=h),"string"!=typeof f)try{f=JSON.stringify(f)}catch{f=String(f)}let{shouldFallback:i}=(0,d.hk)(b.status,f);if(!i)return g.warn("COMBO",`Model ${e} failed (no fallback)`,{status:b.status}),b;p=f||String(b.status),s=b.status,g.warn("COMBO",`Model ${e} failed, trying next`,{status:b.status})}catch(a){p=a.message||String(a),s=500,g.warn("COMBO",`Model ${e} threw error, trying next`,{error:p})}}let t=p&&p.toLowerCase().includes("no credentials")?503:s||503,u=p||"All combo models unavailable";if(r){let a=(0,d.Qo)(r);return g.warn("COMBO",`All models failed | ${u} (${a})`),(0,e.wO)(t,u,r,a)}return g.warn("COMBO",`All models failed | ${u}`),new Response(JSON.stringify({error:{message:u}}),{status:t,headers:{"Content-Type":"application/json"}})}let r={minPanel:2,stragglerGraceMs:8e3,panelHardTimeoutMs:9e4};async function s({body:a,models:b,handleSingleModel:c,log:d,comboName:e,judgeModel:f,tuning:h}){var i;let j,l,m=Array.isArray(b)?b.filter(Boolean):[];if(0===m.length)return new Response(JSON.stringify({error:{message:"Fusion combo has no models"}}),{status:400,headers:{"Content-Type":"application/json"}});if(1===m.length)return c(a,m[0]);let n={...r,...h||{}},o=Math.min(Math.max(2,Number(n.minPanel)||2),m.length),p="string"==typeof f&&f.trim()?f.trim():m[0];d.info("FUSION",`Combo "${e||"unnamed"}" | panel=${m.length} | judge=${p} | quorum=${o}`);let{tools:q,tool_choice:t,...u}=a,v={...u,stream:!1};Array.isArray(v.messages)&&(v.messages=k(v.messages)),Array.isArray(v.input)&&(v.input=k(v.input));let w=Date.now(),x=m.map(a=>{var b,d;return b=c(v,a,!0),d=n.panelHardTimeoutMs,new Promise(a=>{let c=setTimeout(()=>a({__timeout:!0}),d);Promise.resolve(b).then(b=>{clearTimeout(c),a(b)}).catch(b=>{clearTimeout(c),a({__error:b})})})}),y=await function(a,{minPanel:b,stragglerGraceMs:c,panelHardTimeoutMs:d}){return new Promise(e=>{let f=Array(a.length),g=0,h=0,i=!1,j=null,k=()=>{i||(i=!0,clearTimeout(l),j&&clearTimeout(j),e(f))},l=setTimeout(k,d);a.forEach((d,e)=>{Promise.resolve(d).then(a=>{f[e]=a}).catch(a=>{f[e]={__error:a}}).finally(()=>{if(g++,f[e]?.ok&&h++,g===a.length)return k();h>=b&&!j&&(j=setTimeout(k,c))})})})}(x,{...n,minPanel:o});d.info("FUSION",`Panel collected in ${Date.now()-w}ms`);let z=[];for(let a=0;a<y.length;a++){let b=y[a],c=m[a];if(!b){d.warn("FUSION",`Panel ${c} dropped (straggler/timeout)`);continue}if(b.__timeout){d.warn("FUSION",`Panel ${c} timed out`);continue}if(b.__error){d.warn("FUSION",`Panel ${c} threw`,{error:b.__error?.message||String(b.__error)});continue}if(!b.ok){d.warn("FUSION",`Panel ${c} failed`,{status:b.status});continue}try{let a=await b.clone().json(),e=function(a){if(!a||"object"!=typeof a)return"";let b=a.choices?.[0];if(b){let a=b.message??b.delta??{},c=(0,g.kU)(a.content);if(c.trim())return c;if("string"==typeof b.text&&b.text.trim())return b.text}let c=(0,g.kU)(a.content);if(c.trim())return c;let d=a.candidates?.[0]?.content?.parts;if(Array.isArray(d)){let a=d.map(a=>a?.text||"").join("");if(a.trim())return a}if(Array.isArray(a.output)){let b=a.output.flatMap(a=>Array.isArray(a.content)?a.content.map(a=>a?.text||""):[]).join("");if(b.trim())return b}return""}(a);e?z.push({model:c,text:e}):d.warn("FUSION",`Panel ${c} returned empty content`)}catch(a){d.warn("FUSION",`Panel ${c} returned an unreadable response`,{error:a.message||String(a)})}}if(0===z.length)return new Response(JSON.stringify({error:{message:"All fusion panel models failed"}}),{status:503,headers:{"Content-Type":"application/json"}});if(1===z.length)return c(a,z[0].model);let A=(j=z.map((a,b)=>`[Source ${b+1}]
2
- ${a.text}`).join("\n\n"),i=[`You are the judge in a model-fusion panel. ${z.length} expert models independently answered the user's most recent request.`,"\nDo not mention the panel or sources. Produce one authoritative final answer addressed directly to the user.\n\nInternally compare consensus, contradictions, partial coverage, unique insights, and blind spots. Resolve conflicts with your own judgment, then write the most complete and correct answer without filler.\n\n=== PANEL RESPONSES ===",j,"=== END PANEL RESPONSES ===\n\nNow answer the user's original request."].join("\n"),l={...a},Array.isArray(a.messages)?l.messages=[...a.messages,{role:"user",content:i}]:Array.isArray(a.input)?l.input=[...a.input,{role:"user",content:i}]:Array.isArray(a.contents)?l.contents=[...a.contents,{role:"user",parts:[{text:i}]}]:Array.isArray(a.request?.contents)?l.request={...a.request,contents:[...a.request.contents,{role:"user",parts:[{text:i}]}]}:l.messages=[{role:"user",content:i}],l);return d.info("FUSION",`Judging ${z.length} answers with ${p}`),c(A,p)}},43659:(a,b,c)=>{c.d(b,{A1:()=>g,lR:()=>i,wO:()=>h,yj:()=>e,zL:()=>f});var d=c(3662);function e(a,b){let c;return new Response(JSON.stringify((c=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:c.type,code:c.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function f(a,b=null){let c="";try{c=await a.text()}catch{c=""}if(b&&"function"==typeof b.parseError)try{let e=b.parseError(a,c);if(e&&"object"==typeof e){let b=e.message||d.O[a.status]||`Upstream error: ${a.status}`,{status:c,message:f,...g}=e;return{statusCode:c||a.status,message:b,...g}}}catch{}let e="";try{let a=JSON.parse(c);e=a.error?.message||a.message||a.error||c}catch{e=c}let g=("string"==typeof e?e:JSON.stringify(e))||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:a.status,message:g}}function g(a,b,c,d=null){return{success:!1,status:a,error:b,resetsAtMs:c,...d&&"object"==typeof d?{failureMetadata:d}:{},response:e(a,b)}}function h(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function i(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}}};
1
+ "use strict";exports.id=8910,exports.ids=[8910],exports.modules={2636:(a,b,c)=>{c.d(b,{e:()=>function a(b){if(!b||"object"!=typeof b)return b;if(Array.isArray(b)){for(let c of b)a(c);return b}if(b.properties&&"object"==typeof b.properties&&!Array.isArray(b.properties)){let a=new Map,c=new Set(Object.keys(b.properties).filter(a=>d.test(a)));for(let e of Object.keys(b.properties))d.test(e)||a.set(e,function(a,b){let c=a.replace(/[^a-zA-Z0-9_.-]/g,"_").slice(0,64);0===c.length&&(c="_");let d=c,e=1;for(;b.has(d);){let a=`_${e++}`;d=c.slice(0,64-a.length)+a}return b.add(d),d}(e,c));for(let[c,d]of a)b.properties[d]=b.properties[c],delete b.properties[c];a.size>0&&Array.isArray(b.required)&&(b.required=b.required.map(b=>a.get(b)||b))}for(let c of Object.values(b))c&&"object"==typeof c&&a(c);return b}});let d=/^[a-zA-Z0-9_.-]{1,64}$/},18910:(a,b,c)=>{c.d(b,{Pr:()=>q,UP:()=>o,Vu:()=>p,t8:()=>n,vt:()=>s});var d=c(12557),e=c(43659),f=c(66306),g=c(47593);let h=new Set(["vision","pdf","audioInput","videoInput"]),i="[Called tools: ",j="[Tool result: ";function k(a){return a.filter(Boolean).map(a=>{if("tool"===a.role||"function"===a.role)return{role:"assistant",content:`${j}${(0,g.kU)(a.content)||String(a.content??"")}]`};if("assistant"===a.role&&Array.isArray(a.tool_calls)){let{tool_calls:b,...c}=a,d=b.map(a=>a?.function?.name||a?.name||"tool").join(", "),e=(0,g.kU)(c.content)||("string"==typeof c.content?c.content:"");return{...c,content:`${e}${e?"\n":""}${i}${d}]`}}if(Array.isArray(a.content)&&a.content.some(a=>a?.type==="tool_use"||a?.type==="tool_result")){let b=[],c=[],d=[];for(let e of a.content)e?.type==="text"&&e.text&&b.push(e.text),e?.type==="tool_use"&&c.push(e.name||"tool"),e?.type==="tool_result"&&d.push((0,g.kU)(e.content)||String(e.content??""));let e=b.join("\n");return c.length>0&&(e=`${e}${e?"\n":""}${i}${c.join(", ")}]`),d.length>0&&(e=`${e}${e?"\n":""}${j}${d.join("\n")}]`),{...a,content:e}}return a})}let l=new Map;function m(a){if(!Array.isArray(a)||0===a.length)return[];let b=a.length-1;for(;b>=0&&a[b]?.role!=="assistant"&&a[b]?.role!=="model";)b--;return a.slice(b+1)}function n(a){let b=new Set;if(!a||"object"!=typeof a)return b;let c=a=>{if(!a||"object"!=typeof a)return;["image_url","image","input_image"].includes(a.type)&&b.add("vision"),["file","document","input_file"].includes(a.type)&&b.add("pdf"),["input_audio","audio","audio_url"].includes(a.type)&&b.add("audioInput"),["input_video","video","video_url"].includes(a.type)&&b.add("videoInput");let c=a.inlineData?.mimeType||a.inlineData?.mime_type||a.fileData?.mimeType||a.fileData?.mime_type;"string"==typeof c&&c.startsWith("image/")&&b.add("vision"),"application/pdf"===c&&b.add("pdf"),"string"==typeof c&&c.startsWith("audio/")&&b.add("audioInput"),"string"==typeof c&&c.startsWith("video/")&&b.add("videoInput")},d=a=>{Array.isArray(a)&&a.forEach(c)};return m(a.messages).forEach(a=>d(a?.content)),m(a.input).forEach(a=>d(a?.content)),m(a.contents||a.request?.contents).forEach(a=>d(a?.parts)),Array.isArray(a.tools)&&a.tools.some(a=>{let b=String(a?.type||"").toLowerCase(),c=String(a?.name||a?.function?.name||"").toLowerCase();return b.includes("web_search")||c.includes("web_search")||c.includes("search_web")})&&b.add("search"),b}function o(a){a?l.delete(a):l.clear()}function p(a,b){if(a.includes("/"))return null;let c=(Array.isArray(b)?b:b?.combos||[]).find(b=>b.name===a);return c&&c.models&&c.models.length>0?c.models:null}async function q({body:a,models:b,handleSingleModel:c,log:g,comboName:i,comboStrategy:j,comboStickyLimit:k=1,autoSwitch:m=!0}){let o=function(a,b,c,d=1){let e;if(!a||a.length<=1||"round-robin"!==c)return a;let f=b||"__default__",g=Number.isFinite(e=Number.parseInt(d,10))&&e>0?e:1,h=l.get(f),i="number"==typeof h?{index:h,consecutiveUseCount:0}:h||{index:0,consecutiveUseCount:0},j=i.index%a.length,k=function(a,b){let c=[...a];for(let a=0;a<b;a++){let a=c.shift();c.push(a)}return c}(a,j),m=i.consecutiveUseCount+1;return m>=g?l.set(f,{index:(j+1)%a.length,consecutiveUseCount:0}):l.set(f,{index:j,consecutiveUseCount:m}),k}(b,i,j,k);if(m){let b=n(a);if(b.size>0){let a=function(a,b){if(!b||0===b.size||!Array.isArray(a)||a.length<=1)return a;let c=[...b].filter(a=>h.has(a)),d=[...b].filter(a=>!h.has(a)),e=a.map((a,b)=>{let e,g,h,i;return{model:a,index:b,tier:(g=(e="string"==typeof a?a.indexOf("/"):-1)>0?a.slice(0,e):"",h=e>0?a.slice(e+1):a,i=(0,f.nl)(g,h),c.every(a=>!0===i[a])?+!d.every(a=>!0===i[a]):2)}}).sort((a,b)=>a.tier-b.tier||a.index-b.index);return e.every((a,b)=>a.index===b)?a:e.map(a=>a.model)}(o,b);a[0]!==o[0]&&g.info("COMBO",`Auto-switch for [${[...b].join(", ")}] -> ${a[0]}`),o=a}}let p=null,r=null,s=null;for(let b=0;b<o.length;b++){let e=o[b];g.info("COMBO",`Trying model ${b+1}/${o.length}: ${e}`);try{let b=await c(a,e);if(b.ok)return g.info("COMBO",`Model ${e} succeeded`),b;let f=b.statusText||"",h=null;try{let a=await b.clone().json();f=a?.error?.message||a?.error||a?.message||f,h=a?.retryAfter||null}catch{}if(h&&(!r||new Date(h)<new Date(r))&&(r=h),"string"!=typeof f)try{f=JSON.stringify(f)}catch{f=String(f)}let{shouldFallback:i}=(0,d.hk)(b.status,f);if(!i)return g.warn("COMBO",`Model ${e} failed (no fallback)`,{status:b.status}),b;p=f||String(b.status),s=b.status,g.warn("COMBO",`Model ${e} failed, trying next`,{status:b.status})}catch(a){p=a.message||String(a),s=500,g.warn("COMBO",`Model ${e} threw error, trying next`,{error:p})}}let t=p&&p.toLowerCase().includes("no credentials")?503:s||503,u=p||"All combo models unavailable";if(r){let a=(0,d.Qo)(r);return g.warn("COMBO",`All models failed | ${u} (${a})`),(0,e.wO)(t,u,r,a)}return g.warn("COMBO",`All models failed | ${u}`),new Response(JSON.stringify({error:{message:u}}),{status:t,headers:{"Content-Type":"application/json"}})}let r={minPanel:2,stragglerGraceMs:8e3,panelHardTimeoutMs:9e4};async function s({body:a,models:b,handleSingleModel:c,log:d,comboName:e,judgeModel:f,tuning:h}){var i;let j,l,m=Array.isArray(b)?b.filter(Boolean):[];if(0===m.length)return new Response(JSON.stringify({error:{message:"Fusion combo has no models"}}),{status:400,headers:{"Content-Type":"application/json"}});if(1===m.length)return c(a,m[0]);let n={...r,...h||{}},o=Math.min(Math.max(2,Number(n.minPanel)||2),m.length),p="string"==typeof f&&f.trim()?f.trim():m[0];d.info("FUSION",`Combo "${e||"unnamed"}" | panel=${m.length} | judge=${p} | quorum=${o}`);let{tools:q,tool_choice:t,...u}=a,v={...u,stream:!1};Array.isArray(v.messages)&&(v.messages=k(v.messages)),Array.isArray(v.input)&&(v.input=k(v.input));let w=Date.now(),x=m.map(a=>{var b,d;return b=c(v,a,!0),d=n.panelHardTimeoutMs,new Promise(a=>{let c=setTimeout(()=>a({__timeout:!0}),d);Promise.resolve(b).then(b=>{clearTimeout(c),a(b)}).catch(b=>{clearTimeout(c),a({__error:b})})})}),y=await function(a,{minPanel:b,stragglerGraceMs:c,panelHardTimeoutMs:d}){return new Promise(e=>{let f=Array(a.length),g=0,h=0,i=!1,j=null,k=()=>{i||(i=!0,clearTimeout(l),j&&clearTimeout(j),e(f))},l=setTimeout(k,d);a.forEach((d,e)=>{Promise.resolve(d).then(a=>{f[e]=a}).catch(a=>{f[e]={__error:a}}).finally(()=>{if(g++,f[e]?.ok&&h++,g===a.length)return k();h>=b&&!j&&(j=setTimeout(k,c))})})})}(x,{...n,minPanel:o});d.info("FUSION",`Panel collected in ${Date.now()-w}ms`);let z=[];for(let a=0;a<y.length;a++){let b=y[a],c=m[a];if(!b){d.warn("FUSION",`Panel ${c} dropped (straggler/timeout)`);continue}if(b.__timeout){d.warn("FUSION",`Panel ${c} timed out`);continue}if(b.__error){d.warn("FUSION",`Panel ${c} threw`,{error:b.__error?.message||String(b.__error)});continue}if(!b.ok){d.warn("FUSION",`Panel ${c} failed`,{status:b.status});continue}try{let a=await b.clone().json(),e=function(a){if(!a||"object"!=typeof a)return"";let b=a.choices?.[0];if(b){let a=b.message??b.delta??{},c=(0,g.kU)(a.content);if(c.trim())return c;if("string"==typeof b.text&&b.text.trim())return b.text}let c=(0,g.kU)(a.content);if(c.trim())return c;let d=a.candidates?.[0]?.content?.parts;if(Array.isArray(d)){let a=d.map(a=>a?.text||"").join("");if(a.trim())return a}if(Array.isArray(a.output)){let b=a.output.flatMap(a=>Array.isArray(a.content)?a.content.map(a=>a?.text||""):[]).join("");if(b.trim())return b}return""}(a);e?z.push({model:c,text:e}):d.warn("FUSION",`Panel ${c} returned empty content`)}catch(a){d.warn("FUSION",`Panel ${c} returned an unreadable response`,{error:a.message||String(a)})}}if(0===z.length)return new Response(JSON.stringify({error:{message:"All fusion panel models failed"}}),{status:503,headers:{"Content-Type":"application/json"}});if(1===z.length)return c(a,z[0].model);let A=(j=z.map((a,b)=>`[Source ${b+1}]
2
+ ${a.text}`).join("\n\n"),i=[`You are the judge in a model-fusion panel. ${z.length} expert models independently answered the user's most recent request.`,"\nDo not mention the panel or sources. Produce one authoritative final answer addressed directly to the user.\n\nInternally compare consensus, contradictions, partial coverage, unique insights, and blind spots. Resolve conflicts with your own judgment, then write the most complete and correct answer without filler.\n\n=== PANEL RESPONSES ===",j,"=== END PANEL RESPONSES ===\n\nNow answer the user's original request."].join("\n"),l={...a},Array.isArray(a.messages)?l.messages=[...a.messages,{role:"user",content:i}]:Array.isArray(a.input)?l.input=[...a.input,{role:"user",content:i}]:Array.isArray(a.contents)?l.contents=[...a.contents,{role:"user",parts:[{text:i}]}]:Array.isArray(a.request?.contents)?l.request={...a.request,contents:[...a.request.contents,{role:"user",parts:[{text:i}]}]}:l.messages=[{role:"user",content:i}],l);return d.info("FUSION",`Judging ${z.length} answers with ${p}`),c(A,p)}},43659:(a,b,c)=>{c.d(b,{A1:()=>g,lR:()=>i,wO:()=>h,yj:()=>e,zL:()=>f});var d=c(3662);function e(a,b){let c;return new Response(JSON.stringify((c=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:c.type,code:c.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function f(a,b=null){let c="";try{c=await a.text()}catch{c=""}if(b&&"function"==typeof b.parseError)try{let e=b.parseError(a,c);if(e&&"object"==typeof e){let b=e.message||d.O[a.status]||`Upstream error: ${a.status}`,{status:c,message:f,...g}=e;return{statusCode:c||a.status,message:b,...g}}}catch{}let e="";try{let a=JSON.parse(c);e=a.error?.message||a.message||a.error||c}catch{e=c}let g=("string"==typeof e?e:JSON.stringify(e))||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:a.status,message:g}}function g(a,b,c,d=null){return{success:!1,status:a,error:b,resetsAtMs:c,...d&&"object"==typeof d?{failureMetadata:d}:{},response:e(a,b)}}function h(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function i(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}},47593:(a,b,c)=>{c.d(b,{KZ:()=>j,S6:()=>g,Yr:()=>n,f6:()=>k,fc:()=>f,kU:()=>h,pT:()=>i,w_:()=>l});var d=c(2636);let e=["minLength","maxLength","exclusiveMinimum","exclusiveMaximum","pattern","minItems","maxItems","format","default","examples","$schema","$defs","definitions","const","$ref","$comment","additionalProperties","propertyNames","patternProperties","enumDescriptions","anyOf","oneOf","allOf","not","dependencies","dependentSchemas","dependentRequired","title","if","then","else","contentMediaType","contentEncoding","cornerRadius","fillColor","fontFamily","fontSize","fontWeight","gap","padding","strokeColor","strokeThickness","textColor"],f=[{category:"HARM_CATEGORY_HATE_SPEECH",threshold:"OFF"},{category:"HARM_CATEGORY_DANGEROUS_CONTENT",threshold:"OFF"},{category:"HARM_CATEGORY_SEXUALLY_EXPLICIT",threshold:"OFF"},{category:"HARM_CATEGORY_HARASSMENT",threshold:"OFF"},{category:"HARM_CATEGORY_CIVIC_INTEGRITY",threshold:"OFF"}];function g(a){let b=[];if("string"==typeof a)b.push({text:a});else if(Array.isArray(a)){for(let c of a)if("text"===c.type)b.push({text:c.text});else if("image_url"===c.type&&c.image_url?.url?.startsWith("data:")){let a=c.image_url.url,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d),e=a.substring(d+1),f=c.split(";")[0];b.push({inlineData:{mime_type:f,data:e}})}}else if("image_url"===c.type&&c.image_url?.url&&(c.image_url.url.startsWith("http://")||c.image_url.url.startsWith("https://")))b.push({fileData:{fileUri:c.image_url.url,mimeType:"image/*"}});else if("input_audio"===c.type&&c.input_audio?.data){let a=c.input_audio.format||"wav",d="mp3"===a?"audio/mpeg":`audio/${a}`;b.push({inlineData:{mime_type:d,data:c.input_audio.data}})}else if("audio_url"===c.type&&c.audio_url?.url?.startsWith("data:")){let a=c.audio_url.url,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d),e=a.substring(d+1),f=c.split(";")[0];b.push({inlineData:{mime_type:f,data:e}})}}}return b}function h(a){return"string"==typeof a?a:Array.isArray(a)?a.filter(a=>"text"===a.type).map(a=>a.text).join(""):""}function i(a){if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return null}}function j(){return`agent-${crypto.randomUUID()}`}function k(){return crypto.randomUUID()+Date.now().toString()}function l(){let a=["useful","bright","swift","calm","bold"],b=["fuze","wave","spark","flow","core"],c=a[Math.floor(Math.random()*a.length)],d=b[Math.floor(Math.random()*b.length)];return`${c}-${d}-${crypto.randomUUID().slice(0,5)}`}function m(a){let b=0,c=-1;for(let d=0;d<a.length;d++){let e=a[d],f=0,g=e.type;"object"===g||e.properties?f=3:"array"===g||e.items?f=2:g&&"null"!==g&&(f=1),f>c&&(c=f,b=d)}return b}function n(a){return a&&"object"==typeof a&&(!function a(b){if(b&&"object"==typeof b)for(let c of(void 0===b.const||b.enum||(b.enum=[b.const],delete b.const),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b){if(b&&"object"==typeof b)for(let c of(b.enum&&Array.isArray(b.enum)&&(b.enum=b.enum.map(a=>String(a)),b.type||(b.type="string")),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b){if(b&&"object"==typeof b){if(b.allOf&&Array.isArray(b.allOf)){let a={};for(let c of b.allOf)if(c.properties&&(a.properties||(a.properties={}),Object.assign(a.properties,c.properties)),c.required&&Array.isArray(c.required))for(let b of(a.required||(a.required=[]),c.required))a.required.includes(b)||a.required.push(b);delete b.allOf,a.properties&&(b.properties={...b.properties,...a.properties}),a.required&&(b.required=[...b.required||[],...a.required])}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(b.anyOf&&Array.isArray(b.anyOf)&&b.anyOf.length>0){let a=b.anyOf.filter(a=>a&&"null"!==a.type);if(a.length>0){let c=m(a),d=a[c];delete b.anyOf,Object.assign(b,d)}}if(b.oneOf&&Array.isArray(b.oneOf)&&b.oneOf.length>0){let a=b.oneOf.filter(a=>a&&"null"!==a.type);if(a.length>0){let c=m(a),d=a[c];delete b.oneOf,Object.assign(b,d)}}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(b.type&&Array.isArray(b.type)){let a=b.type.filter(a=>"null"!==a);b.type=a.length>0?a[0]:"string"}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b)for(let c of(b.properties&&!b.type&&(b.type="object"),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b,c){if(b&&"object"==typeof b){if(Array.isArray(b)){for(let d of b)a(d,c);return}for(let d of Object.keys(b)){if(c.includes(d)||d.startsWith("x-")){delete b[d];continue}let e=b[d];e&&"object"==typeof e&&a(e,c)}}}(a,e),!function a(b){if(b&&"object"==typeof b){if(b.required&&Array.isArray(b.required)&&b.properties){let a=b.required.filter(a=>Object.prototype.hasOwnProperty.call(b.properties,a));0===a.length?delete b.required:b.required=a}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),(0,d.e)(a),!function a(b){if(b&&"object"==typeof b)for(let c of("object"!==b.type||b.properties&&0!==Object.keys(b.properties).length||(b.properties={reason:{type:"string",description:"Brief explanation of why you are calling this tool"}},b.required=["reason"]),Object.values(b)))c&&"object"==typeof c&&a(c)}(a)),a}}};
@@ -1 +1 @@
1
- globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/R483t8_UiX7Hsj2QRGbzM/_buildManifest.js","static/R483t8_UiX7Hsj2QRGbzM/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-b041c9a7d1b8c64f.js","static/chunks/4bd1b696-8cd12253b448cc13.js","static/chunks/3794-04350b0fcecd82e5.js","static/chunks/main-app-88e09177034d71e7.js"],rootMainFilesTree:{},pages:{"/_app":[]}};
1
+ globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/ZV1b0QFpI7Py60MZLjqfn/_buildManifest.js","static/ZV1b0QFpI7Py60MZLjqfn/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-b041c9a7d1b8c64f.js","static/chunks/4bd1b696-8cd12253b448cc13.js","static/chunks/3794-04350b0fcecd82e5.js","static/chunks/main-app-88e09177034d71e7.js"],rootMainFilesTree:{},pages:{"/_app":[]}};