zevairouter 1.0.271 → 1.1.0

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 (1383) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +5 -3
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/prerender-manifest.json +3 -3
  6. package/cli/app/.next-cli-build/required-server-files.json +3 -1
  7. package/cli/app/.next-cli-build/routes-manifest.json +12 -0
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +2 -2
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +2 -2
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +10 -10
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +2 -2
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  64. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  65. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  66. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  67. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  68. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  69. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  70. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  71. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  72. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  73. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  74. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js +2 -2
  75. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  76. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  77. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  78. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  79. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  80. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js +3 -3
  81. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  82. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  83. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  84. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  85. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  86. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  87. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  88. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  89. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  90. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  91. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  92. package/cli/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  93. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  94. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  95. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  96. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  97. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  98. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  99. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  100. package/cli/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  101. package/cli/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  102. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  103. package/cli/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  104. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  105. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  106. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  107. package/cli/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  108. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  109. package/cli/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  110. package/cli/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  111. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  112. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  113. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  114. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  121. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  132. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +4 -4
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  147. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  153. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  155. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  157. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  159. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  161. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  163. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +3 -3
  165. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  167. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  169. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  171. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  173. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  175. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/context/route.js +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/health/route.js +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  223. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/metrics/route.js +2 -2
  237. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  303. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js +2 -2
  375. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/providers/route.js +2 -2
  379. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  380. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -51
  385. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  391. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  393. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  397. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  399. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  401. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  403. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  404. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  405. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  406. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  407. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  408. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  409. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  410. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  411. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  412. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  413. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  414. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  416. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  417. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  418. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  419. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  420. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  421. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  422. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  423. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  424. package/cli/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  425. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  426. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js +1 -1
  427. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  428. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js +1 -1
  429. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  430. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js +1 -1
  431. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  432. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js +1 -1
  433. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  434. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js +1 -1
  435. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  436. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js +1 -1
  437. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  438. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js +2 -2
  439. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  440. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js +1 -1
  441. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  442. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  443. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  444. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  445. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  446. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  447. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  448. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  449. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  450. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  451. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  452. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  453. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  454. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  455. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  456. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  457. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  458. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  459. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  460. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  461. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  462. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  463. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  464. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  465. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  466. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +3 -3
  467. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  468. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  469. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  470. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  471. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  472. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  473. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  474. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  475. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  476. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  477. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  478. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  479. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  480. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  481. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  482. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +3 -0
  483. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -0
  484. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route_client-reference-manifest.js +1 -0
  485. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  486. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  487. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  488. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  489. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js +4 -0
  490. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -0
  491. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route_client-reference-manifest.js +1 -0
  492. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  493. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  494. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  495. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  496. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  497. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  498. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  499. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  500. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  501. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  502. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  503. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  504. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  505. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  506. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  507. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  508. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  509. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  510. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  511. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  512. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  513. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  514. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  515. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  516. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  517. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  518. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  519. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  520. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  521. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  522. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  523. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  524. package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  525. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  526. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  527. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  528. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  529. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  530. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  531. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  532. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  533. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  534. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  535. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  536. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  537. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  538. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  539. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  540. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  541. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  542. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  543. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  544. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  545. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  546. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  547. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  548. package/cli/app/.next-cli-build/server/app/callback/page.js +2 -2
  549. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  550. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  551. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  552. package/cli/app/.next-cli-build/server/app/callback.rsc +4 -4
  553. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  554. package/cli/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  555. package/cli/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  556. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  557. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  558. package/cli/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  559. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  560. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +6 -6
  561. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
  562. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation.segment.rsc +1 -1
  563. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  564. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  565. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +6 -6
  566. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_head.segment.rsc +1 -1
  567. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_index.segment.rsc +4 -4
  568. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +2 -2
  569. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  570. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  571. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  572. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  573. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  574. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  575. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  576. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  577. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  578. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  579. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  580. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  581. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  582. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  583. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  584. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  585. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  586. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  587. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  588. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  589. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  590. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  591. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  592. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  593. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  594. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  595. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  596. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  597. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  598. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  599. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  600. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +6 -6
  601. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +2 -2
  602. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context.segment.rsc +1 -1
  603. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  604. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  605. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +6 -6
  606. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_head.segment.rsc +1 -1
  607. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_index.segment.rsc +4 -4
  608. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +2 -2
  609. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  610. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  611. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  612. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  613. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  614. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  615. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  616. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  617. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  618. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  619. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  620. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  621. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  622. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  623. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  624. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  625. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  626. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  627. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  628. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  629. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  630. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  631. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  632. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  633. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  634. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  635. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  636. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  637. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  638. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  639. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  640. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  641. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +6 -6
  642. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +2 -2
  643. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground.segment.rsc +1 -1
  644. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  645. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  646. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +6 -6
  647. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_head.segment.rsc +1 -1
  648. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_index.segment.rsc +4 -4
  649. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +2 -2
  650. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  651. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  652. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  653. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  654. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  655. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  656. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  657. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  658. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  659. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  660. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  661. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  662. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  663. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  664. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  665. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  666. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  667. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  668. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  669. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  670. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  671. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  672. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  673. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  674. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  675. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  676. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  677. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  678. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  679. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  680. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  681. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  682. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  683. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  684. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  685. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  686. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  687. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  688. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  689. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  690. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  691. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  692. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  693. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  694. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  695. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  696. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  697. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  698. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  699. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
  700. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  701. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  702. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  703. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  704. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  705. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  706. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  707. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  708. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  709. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  710. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  711. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  712. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  713. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  714. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing.segment.rsc +1 -1
  715. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings.segment.rsc +1 -1
  716. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  717. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  718. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  719. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  720. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  721. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  722. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  723. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  724. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  725. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  726. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  727. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  728. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  729. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  730. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  731. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  732. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  733. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  734. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  735. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  736. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  737. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  738. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  739. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  740. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  741. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  742. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  743. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  744. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  745. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  746. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  747. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  748. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  749. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  750. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  751. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  752. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  753. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  754. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  755. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  756. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  757. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  758. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  759. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  760. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  761. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  762. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  763. package/cli/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  764. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  765. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  766. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  767. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  768. package/cli/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  769. package/cli/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  770. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  771. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  772. package/cli/app/.next-cli-build/server/app/index.rsc +4 -4
  773. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  774. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  775. package/cli/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  776. package/cli/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
  777. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  778. package/cli/app/.next-cli-build/server/app/landing/page.js +2 -2
  779. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  780. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  781. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  782. package/cli/app/.next-cli-build/server/app/landing.rsc +5 -5
  783. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  784. package/cli/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  785. package/cli/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  786. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  787. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  788. package/cli/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  789. package/cli/app/.next-cli-build/server/app/login/page.js +2 -2
  790. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  791. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  792. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  793. package/cli/app/.next-cli-build/server/app/login.rsc +5 -5
  794. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  795. package/cli/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  796. package/cli/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  797. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  798. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  799. package/cli/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  800. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  801. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  802. package/cli/app/.next-cli-build/server/app/page.js +2 -2
  803. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  804. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  805. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js +2 -2
  806. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  807. package/cli/app/.next-cli-build/server/app-paths-manifest.json +5 -3
  808. package/cli/app/.next-cli-build/server/chunks/1131.js +1 -1
  809. package/cli/app/.next-cli-build/server/chunks/1133.js +1 -0
  810. package/cli/app/.next-cli-build/server/chunks/1283.js +15 -0
  811. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  812. package/cli/app/.next-cli-build/server/chunks/1585.js +1 -0
  813. package/cli/app/.next-cli-build/server/chunks/1756.js +1 -0
  814. package/cli/app/.next-cli-build/server/chunks/220.js +1 -0
  815. package/cli/app/.next-cli-build/server/chunks/2238.js +1 -0
  816. package/cli/app/.next-cli-build/server/chunks/2442.js +1 -0
  817. package/cli/app/.next-cli-build/server/chunks/2456.js +1 -0
  818. package/cli/app/.next-cli-build/server/chunks/2557.js +1 -1
  819. package/cli/app/.next-cli-build/server/chunks/287.js +1 -0
  820. package/cli/app/.next-cli-build/server/chunks/{2732.js → 3016.js} +2 -2
  821. package/cli/app/.next-cli-build/server/chunks/3373.js +1 -0
  822. package/cli/app/.next-cli-build/server/chunks/3662.js +1 -0
  823. package/cli/app/.next-cli-build/server/chunks/3721.js +49 -0
  824. package/cli/app/.next-cli-build/server/chunks/3792.js +1 -0
  825. package/cli/app/.next-cli-build/server/chunks/3815.js +1 -1
  826. package/cli/app/.next-cli-build/server/chunks/3926.js +2 -0
  827. package/cli/app/.next-cli-build/server/chunks/3949.js +1 -1
  828. package/cli/app/.next-cli-build/server/chunks/3999.js +3 -3
  829. package/cli/app/.next-cli-build/server/chunks/40.js +1 -0
  830. package/cli/app/.next-cli-build/server/chunks/412.js +2 -2
  831. package/cli/app/.next-cli-build/server/chunks/421.js +4 -0
  832. package/cli/app/.next-cli-build/server/chunks/4236.js +1 -0
  833. package/cli/app/.next-cli-build/server/chunks/4315.js +1 -0
  834. package/cli/app/.next-cli-build/server/chunks/4322.js +1 -0
  835. package/cli/app/.next-cli-build/server/chunks/437.js +1 -0
  836. package/cli/app/.next-cli-build/server/chunks/4645.js +1 -0
  837. package/cli/app/.next-cli-build/server/chunks/4720.js +1 -1
  838. package/cli/app/.next-cli-build/server/chunks/4721.js +2 -2
  839. package/cli/app/.next-cli-build/server/chunks/4827.js +1 -1
  840. package/cli/app/.next-cli-build/server/chunks/4897.js +1 -1
  841. package/cli/app/.next-cli-build/server/chunks/5019.js +1 -0
  842. package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
  843. package/cli/app/.next-cli-build/server/chunks/5330.js +35 -39
  844. package/cli/app/.next-cli-build/server/chunks/5434.js +1 -0
  845. package/cli/app/.next-cli-build/server/chunks/5436.js +1 -1
  846. package/cli/app/.next-cli-build/server/chunks/5752.js +4 -0
  847. package/cli/app/.next-cli-build/server/chunks/5754.js +1 -0
  848. package/cli/app/.next-cli-build/server/chunks/5936.js +1 -0
  849. package/cli/app/.next-cli-build/server/chunks/5949.js +11 -11
  850. package/cli/app/.next-cli-build/server/chunks/6182.js +49 -0
  851. package/cli/app/.next-cli-build/server/chunks/6200.js +1 -0
  852. package/cli/app/.next-cli-build/server/chunks/6476.js +1 -0
  853. package/cli/app/.next-cli-build/server/chunks/{3110.js → 6651.js} +6 -6
  854. package/cli/app/.next-cli-build/server/chunks/6802.js +1 -1
  855. package/cli/app/.next-cli-build/server/chunks/6843.js +2 -0
  856. package/cli/app/.next-cli-build/server/chunks/6936.js +15 -0
  857. package/cli/app/.next-cli-build/server/chunks/6951.js +1 -0
  858. package/cli/app/.next-cli-build/server/chunks/7170.js +1 -1
  859. package/cli/app/.next-cli-build/server/chunks/7319.js +60 -128
  860. package/cli/app/.next-cli-build/server/chunks/7432.js +1 -0
  861. package/cli/app/.next-cli-build/server/chunks/7568.js +1 -0
  862. package/cli/app/.next-cli-build/server/chunks/7582.js +51 -0
  863. package/cli/app/.next-cli-build/server/chunks/7611.js +1 -0
  864. package/cli/app/.next-cli-build/server/chunks/7634.js +1 -1
  865. package/cli/app/.next-cli-build/server/chunks/7875.js +1 -0
  866. package/cli/app/.next-cli-build/server/chunks/8028.js +1 -1
  867. package/cli/app/.next-cli-build/server/chunks/8136.js +1 -0
  868. package/cli/app/.next-cli-build/server/chunks/8255.js +1 -1
  869. package/cli/app/.next-cli-build/server/chunks/8306.js +1 -1
  870. package/cli/app/.next-cli-build/server/chunks/8371.js +1 -1
  871. package/cli/app/.next-cli-build/server/chunks/8491.js +1 -0
  872. package/cli/app/.next-cli-build/server/chunks/8590.js +1 -0
  873. package/cli/app/.next-cli-build/server/chunks/{3069.js → 8653.js} +1 -1
  874. package/cli/app/.next-cli-build/server/chunks/8655.js +4 -0
  875. package/cli/app/.next-cli-build/server/chunks/8895.js +15 -13
  876. package/cli/app/.next-cli-build/server/chunks/891.js +1 -1
  877. package/cli/app/.next-cli-build/server/chunks/8910.js +2 -2
  878. package/cli/app/.next-cli-build/server/chunks/9445.js +1 -0
  879. package/cli/app/.next-cli-build/server/chunks/9489.js +1 -1
  880. package/cli/app/.next-cli-build/server/chunks/9539.js +1 -0
  881. package/cli/app/.next-cli-build/server/chunks/9835.js +1 -0
  882. package/cli/app/.next-cli-build/server/chunks/static/media/server.f66733f4.js +8 -0
  883. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  884. package/cli/app/.next-cli-build/server/middleware.js +3 -3
  885. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  886. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  887. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  888. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  889. package/cli/app/.next-cli-build/server/webpack-runtime.js +1 -1
  890. package/cli/app/.next-cli-build/static/C6i_Bn3fJrnsz4at-ntco/_buildManifest.js +1 -0
  891. package/cli/app/.next-cli-build/static/chunks/523-7f951d309a09f363.js +3 -0
  892. package/cli/app/.next-cli-build/static/chunks/5497-27b73ecf920843b1.js +7 -0
  893. package/cli/app/.next-cli-build/static/chunks/{620-014f7e265e6e9748.js → 620-ca95212890b67fc9.js} +1 -1
  894. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-489aca87c755610e.js +1 -0
  895. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-a8613adfc83b3096.js +1 -0
  896. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-15dd47ab818e675d.js → page-a096025e3edc5150.js} +9 -9
  897. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-ca3d31524c44540f.js +3 -0
  898. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-7b3b291fb9d2dc65.js +1 -0
  899. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-36f947b5449cdf6b.js +1 -0
  900. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/layout-9fadcbba0c598e87.js +1 -0
  901. package/cli/app/.next-cli-build/static/chunks/app/_global-error/page-db8d22293b86486b.js +1 -0
  902. package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/route-db8d22293b86486b.js +1 -0
  903. package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/route-db8d22293b86486b.js +1 -0
  904. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-db8d22293b86486b.js +1 -0
  905. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-db8d22293b86486b.js +1 -0
  906. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-db8d22293b86486b.js +1 -0
  907. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-db8d22293b86486b.js +1 -0
  908. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-db8d22293b86486b.js +1 -0
  909. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-db8d22293b86486b.js +1 -0
  910. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-db8d22293b86486b.js +1 -0
  911. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-db8d22293b86486b.js +1 -0
  912. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-db8d22293b86486b.js +1 -0
  913. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-db8d22293b86486b.js +1 -0
  914. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-db8d22293b86486b.js +1 -0
  915. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-db8d22293b86486b.js +1 -0
  916. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-db8d22293b86486b.js +1 -0
  917. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-db8d22293b86486b.js +1 -0
  918. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-db8d22293b86486b.js +1 -0
  919. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-db8d22293b86486b.js +1 -0
  920. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-db8d22293b86486b.js +1 -0
  921. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-db8d22293b86486b.js +1 -0
  922. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-db8d22293b86486b.js +1 -0
  923. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-db8d22293b86486b.js +1 -0
  924. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-db8d22293b86486b.js +1 -0
  925. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-db8d22293b86486b.js +1 -0
  926. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-db8d22293b86486b.js +1 -0
  927. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-db8d22293b86486b.js +1 -0
  928. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-db8d22293b86486b.js +1 -0
  929. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-db8d22293b86486b.js +1 -0
  930. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-db8d22293b86486b.js +1 -0
  931. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-db8d22293b86486b.js +1 -0
  932. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-db8d22293b86486b.js +1 -0
  933. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-db8d22293b86486b.js +1 -0
  934. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-db8d22293b86486b.js +1 -0
  935. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-db8d22293b86486b.js +1 -0
  936. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-db8d22293b86486b.js +1 -0
  937. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-db8d22293b86486b.js +1 -0
  938. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-db8d22293b86486b.js +1 -0
  939. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-db8d22293b86486b.js +1 -0
  940. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-db8d22293b86486b.js +1 -0
  941. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-db8d22293b86486b.js +1 -0
  942. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-db8d22293b86486b.js +1 -0
  943. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-db8d22293b86486b.js +1 -0
  944. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-db8d22293b86486b.js +1 -0
  945. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-db8d22293b86486b.js +1 -0
  946. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-db8d22293b86486b.js +1 -0
  947. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-db8d22293b86486b.js +1 -0
  948. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-db8d22293b86486b.js +1 -0
  949. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-db8d22293b86486b.js +1 -0
  950. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-db8d22293b86486b.js +1 -0
  951. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-db8d22293b86486b.js +1 -0
  952. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-db8d22293b86486b.js +1 -0
  953. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-db8d22293b86486b.js +1 -0
  954. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-db8d22293b86486b.js +1 -0
  955. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-db8d22293b86486b.js +1 -0
  956. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-db8d22293b86486b.js +1 -0
  957. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-db8d22293b86486b.js +1 -0
  958. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-db8d22293b86486b.js +1 -0
  959. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-db8d22293b86486b.js +1 -0
  960. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-db8d22293b86486b.js +1 -0
  961. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-db8d22293b86486b.js +1 -0
  962. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-db8d22293b86486b.js +1 -0
  963. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-db8d22293b86486b.js +1 -0
  964. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-db8d22293b86486b.js +1 -0
  965. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-db8d22293b86486b.js +1 -0
  966. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-db8d22293b86486b.js +1 -0
  967. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-db8d22293b86486b.js +1 -0
  968. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-db8d22293b86486b.js +1 -0
  969. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-db8d22293b86486b.js +1 -0
  970. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-db8d22293b86486b.js +1 -0
  971. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +1 -0
  972. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +1 -0
  973. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-db8d22293b86486b.js +1 -0
  974. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-db8d22293b86486b.js +1 -0
  975. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-db8d22293b86486b.js +1 -0
  976. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +1 -0
  977. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +1 -0
  978. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-db8d22293b86486b.js +1 -0
  979. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-db8d22293b86486b.js +1 -0
  980. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-db8d22293b86486b.js +1 -0
  981. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +1 -0
  982. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +1 -0
  983. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-db8d22293b86486b.js +1 -0
  984. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-db8d22293b86486b.js +1 -0
  985. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-db8d22293b86486b.js +1 -0
  986. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-db8d22293b86486b.js +1 -0
  987. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-db8d22293b86486b.js +1 -0
  988. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +1 -0
  989. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +1 -0
  990. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-db8d22293b86486b.js +1 -0
  991. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-db8d22293b86486b.js +1 -0
  992. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-db8d22293b86486b.js +1 -0
  993. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-db8d22293b86486b.js +1 -0
  994. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-db8d22293b86486b.js +1 -0
  995. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-db8d22293b86486b.js +1 -0
  996. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-db8d22293b86486b.js +1 -0
  997. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-db8d22293b86486b.js +1 -0
  998. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-db8d22293b86486b.js +1 -0
  999. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +1 -0
  1000. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +1 -0
  1001. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-db8d22293b86486b.js +1 -0
  1002. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-db8d22293b86486b.js +1 -0
  1003. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-db8d22293b86486b.js +1 -0
  1004. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-db8d22293b86486b.js +1 -0
  1005. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-db8d22293b86486b.js +1 -0
  1006. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-db8d22293b86486b.js +1 -0
  1007. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-db8d22293b86486b.js +1 -0
  1008. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +1 -0
  1009. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +1 -0
  1010. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-db8d22293b86486b.js +1 -0
  1011. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-db8d22293b86486b.js +1 -0
  1012. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-db8d22293b86486b.js +1 -0
  1013. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-db8d22293b86486b.js +1 -0
  1014. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-db8d22293b86486b.js +1 -0
  1015. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-db8d22293b86486b.js +1 -0
  1016. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-db8d22293b86486b.js +1 -0
  1017. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +1 -0
  1018. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +1 -0
  1019. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-db8d22293b86486b.js +1 -0
  1020. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-db8d22293b86486b.js +1 -0
  1021. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-db8d22293b86486b.js +1 -0
  1022. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-db8d22293b86486b.js +1 -0
  1023. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-db8d22293b86486b.js +1 -0
  1024. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-db8d22293b86486b.js +1 -0
  1025. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-db8d22293b86486b.js +1 -0
  1026. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-db8d22293b86486b.js +1 -0
  1027. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-db8d22293b86486b.js +1 -0
  1028. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-db8d22293b86486b.js +1 -0
  1029. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-db8d22293b86486b.js +1 -0
  1030. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-db8d22293b86486b.js +1 -0
  1031. package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-db8d22293b86486b.js +1 -0
  1032. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-db8d22293b86486b.js +1 -0
  1033. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-db8d22293b86486b.js +1 -0
  1034. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-db8d22293b86486b.js +1 -0
  1035. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-db8d22293b86486b.js +1 -0
  1036. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-db8d22293b86486b.js +1 -0
  1037. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-db8d22293b86486b.js +1 -0
  1038. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-db8d22293b86486b.js +1 -0
  1039. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-db8d22293b86486b.js +1 -0
  1040. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-db8d22293b86486b.js +1 -0
  1041. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-db8d22293b86486b.js +1 -0
  1042. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-db8d22293b86486b.js +1 -0
  1043. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-db8d22293b86486b.js +1 -0
  1044. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-db8d22293b86486b.js +1 -0
  1045. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-db8d22293b86486b.js +1 -0
  1046. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-db8d22293b86486b.js +1 -0
  1047. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-db8d22293b86486b.js +1 -0
  1048. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-db8d22293b86486b.js +1 -0
  1049. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-db8d22293b86486b.js +1 -0
  1050. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-db8d22293b86486b.js +1 -0
  1051. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-db8d22293b86486b.js +1 -0
  1052. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-db8d22293b86486b.js +1 -0
  1053. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-db8d22293b86486b.js +1 -0
  1054. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-db8d22293b86486b.js +1 -0
  1055. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-db8d22293b86486b.js +1 -0
  1056. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-db8d22293b86486b.js +1 -0
  1057. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-db8d22293b86486b.js +1 -0
  1058. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-db8d22293b86486b.js +1 -0
  1059. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-db8d22293b86486b.js +1 -0
  1060. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-db8d22293b86486b.js +1 -0
  1061. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-db8d22293b86486b.js +1 -0
  1062. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-db8d22293b86486b.js +1 -0
  1063. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-db8d22293b86486b.js +1 -0
  1064. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-db8d22293b86486b.js +1 -0
  1065. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-db8d22293b86486b.js +1 -0
  1066. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-db8d22293b86486b.js +1 -0
  1067. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-db8d22293b86486b.js +1 -0
  1068. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-db8d22293b86486b.js +1 -0
  1069. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-db8d22293b86486b.js +1 -0
  1070. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-db8d22293b86486b.js +1 -0
  1071. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-db8d22293b86486b.js +1 -0
  1072. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-db8d22293b86486b.js +1 -0
  1073. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-db8d22293b86486b.js +1 -0
  1074. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-db8d22293b86486b.js +1 -0
  1075. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-db8d22293b86486b.js +1 -0
  1076. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-db8d22293b86486b.js +1 -0
  1077. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-db8d22293b86486b.js +1 -0
  1078. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-db8d22293b86486b.js +1 -0
  1079. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-db8d22293b86486b.js +1 -0
  1080. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-db8d22293b86486b.js +1 -0
  1081. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-db8d22293b86486b.js +1 -0
  1082. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-db8d22293b86486b.js +1 -0
  1083. package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-db8d22293b86486b.js +1 -0
  1084. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-db8d22293b86486b.js +1 -0
  1085. package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-db8d22293b86486b.js +1 -0
  1086. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-db8d22293b86486b.js +1 -0
  1087. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-db8d22293b86486b.js +1 -0
  1088. package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-db8d22293b86486b.js +1 -0
  1089. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-db8d22293b86486b.js +1 -0
  1090. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-db8d22293b86486b.js +1 -0
  1091. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-db8d22293b86486b.js +1 -0
  1092. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-db8d22293b86486b.js +1 -0
  1093. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-db8d22293b86486b.js +1 -0
  1094. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-db8d22293b86486b.js +1 -0
  1095. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-db8d22293b86486b.js +1 -0
  1096. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-db8d22293b86486b.js +1 -0
  1097. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-db8d22293b86486b.js +1 -0
  1098. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-db8d22293b86486b.js +1 -0
  1099. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-db8d22293b86486b.js +1 -0
  1100. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-db8d22293b86486b.js +1 -0
  1101. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-db8d22293b86486b.js +1 -0
  1102. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-db8d22293b86486b.js +1 -0
  1103. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-db8d22293b86486b.js +1 -0
  1104. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-db8d22293b86486b.js +1 -0
  1105. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-db8d22293b86486b.js +1 -0
  1106. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-db8d22293b86486b.js +1 -0
  1107. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-db8d22293b86486b.js +1 -0
  1108. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-db8d22293b86486b.js +1 -0
  1109. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-db8d22293b86486b.js +1 -0
  1110. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-db8d22293b86486b.js +1 -0
  1111. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-db8d22293b86486b.js +1 -0
  1112. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-db8d22293b86486b.js +1 -0
  1113. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-db8d22293b86486b.js +1 -0
  1114. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-db8d22293b86486b.js +1 -0
  1115. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-db8d22293b86486b.js +1 -0
  1116. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-db8d22293b86486b.js +1 -0
  1117. package/cli/app/.next-cli-build/static/chunks/app/landing/page-345d7bf34da86fee.js +1 -0
  1118. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-db8d22293b86486b.js +1 -0
  1119. package/cli/app/.next-cli-build/static/chunks/app/page-db8d22293b86486b.js +1 -0
  1120. package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-db8d22293b86486b.js +1 -0
  1121. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-db8d22293b86486b.js +1 -0
  1122. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-db8d22293b86486b.js +1 -0
  1123. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-db8d22293b86486b.js +1 -0
  1124. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-db8d22293b86486b.js +1 -0
  1125. package/cli/app/.next-cli-build/static/css/2259cb9ea5269549.css +1 -0
  1126. package/cli/app/.worktrees/v1-1-adaptive/.next-cli-build/standalone/src/lib/terminal/ptyBridge.py +163 -0
  1127. package/cli/app/.worktrees/v1-1-adaptive/cli/app/src/lib/terminal/ptyBridge.py +163 -0
  1128. package/cli/app/.worktrees/v1-1-adaptive/src/lib/terminal/ptyBridge.py +163 -0
  1129. package/cli/app/CHANGELOG.md +32 -0
  1130. package/cli/app/cli/hooks/safeGlobalInstall.js +112 -37
  1131. package/cli/app/package.json +6 -1
  1132. package/cli/app/server.js +1 -1
  1133. package/cli/app/src/lib/alerter.js +13 -8
  1134. package/cli/hooks/safeGlobalInstall.js +112 -37
  1135. package/cli/package.json +1 -1
  1136. package/package.json +6 -1
  1137. package/cli/app/.next-cli-build/server/chunks/1051.js +0 -1
  1138. package/cli/app/.next-cli-build/server/chunks/2594.js +0 -1
  1139. package/cli/app/.next-cli-build/server/chunks/3743.js +0 -1
  1140. package/cli/app/.next-cli-build/server/chunks/3839.js +0 -1
  1141. package/cli/app/.next-cli-build/server/chunks/4177.js +0 -1
  1142. package/cli/app/.next-cli-build/server/chunks/5295.js +0 -51
  1143. package/cli/app/.next-cli-build/server/chunks/5307.js +0 -1
  1144. package/cli/app/.next-cli-build/server/chunks/7239.js +0 -63
  1145. package/cli/app/.next-cli-build/server/chunks/7688.js +0 -4
  1146. package/cli/app/.next-cli-build/server/chunks/7769.js +0 -1
  1147. package/cli/app/.next-cli-build/server/chunks/7828.js +0 -1
  1148. package/cli/app/.next-cli-build/server/chunks/8666.js +0 -1
  1149. package/cli/app/.next-cli-build/server/chunks/9484.js +0 -1
  1150. package/cli/app/.next-cli-build/server/chunks/9609.js +0 -1
  1151. package/cli/app/.next-cli-build/static/824D95QIGoN3BCMQNuqnq/_buildManifest.js +0 -1
  1152. package/cli/app/.next-cli-build/static/chunks/523-7fce1a9128358c23.js +0 -3
  1153. package/cli/app/.next-cli-build/static/chunks/5497-1f8d06cd65e1a031.js +0 -7
  1154. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-83d23a03d197fad2.js +0 -1
  1155. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-c3d7b126bbcdeaa2.js +0 -1
  1156. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-e68f446b9c94ade6.js +0 -3
  1157. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-aea189a918ed8a26.js +0 -1
  1158. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-c865ef51004e93fa.js +0 -1
  1159. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/layout-dbfca64b83745c80.js +0 -1
  1160. package/cli/app/.next-cli-build/static/chunks/app/_global-error/page-7f1163bd918d92ca.js +0 -1
  1161. package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/route-7f1163bd918d92ca.js +0 -1
  1162. package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/route-7f1163bd918d92ca.js +0 -1
  1163. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-7f1163bd918d92ca.js +0 -1
  1164. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-7f1163bd918d92ca.js +0 -1
  1165. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-7f1163bd918d92ca.js +0 -1
  1166. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-7f1163bd918d92ca.js +0 -1
  1167. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-7f1163bd918d92ca.js +0 -1
  1168. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-7f1163bd918d92ca.js +0 -1
  1169. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-7f1163bd918d92ca.js +0 -1
  1170. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-7f1163bd918d92ca.js +0 -1
  1171. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-7f1163bd918d92ca.js +0 -1
  1172. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-7f1163bd918d92ca.js +0 -1
  1173. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-7f1163bd918d92ca.js +0 -1
  1174. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-7f1163bd918d92ca.js +0 -1
  1175. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-7f1163bd918d92ca.js +0 -1
  1176. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-7f1163bd918d92ca.js +0 -1
  1177. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-7f1163bd918d92ca.js +0 -1
  1178. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-7f1163bd918d92ca.js +0 -1
  1179. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-7f1163bd918d92ca.js +0 -1
  1180. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-7f1163bd918d92ca.js +0 -1
  1181. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-7f1163bd918d92ca.js +0 -1
  1182. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-7f1163bd918d92ca.js +0 -1
  1183. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-7f1163bd918d92ca.js +0 -1
  1184. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-7f1163bd918d92ca.js +0 -1
  1185. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-7f1163bd918d92ca.js +0 -1
  1186. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-7f1163bd918d92ca.js +0 -1
  1187. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-7f1163bd918d92ca.js +0 -1
  1188. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-7f1163bd918d92ca.js +0 -1
  1189. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-7f1163bd918d92ca.js +0 -1
  1190. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-7f1163bd918d92ca.js +0 -1
  1191. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-7f1163bd918d92ca.js +0 -1
  1192. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-7f1163bd918d92ca.js +0 -1
  1193. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-7f1163bd918d92ca.js +0 -1
  1194. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-7f1163bd918d92ca.js +0 -1
  1195. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-7f1163bd918d92ca.js +0 -1
  1196. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-7f1163bd918d92ca.js +0 -1
  1197. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-7f1163bd918d92ca.js +0 -1
  1198. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-7f1163bd918d92ca.js +0 -1
  1199. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-7f1163bd918d92ca.js +0 -1
  1200. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-7f1163bd918d92ca.js +0 -1
  1201. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-7f1163bd918d92ca.js +0 -1
  1202. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-7f1163bd918d92ca.js +0 -1
  1203. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-7f1163bd918d92ca.js +0 -1
  1204. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-7f1163bd918d92ca.js +0 -1
  1205. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-7f1163bd918d92ca.js +0 -1
  1206. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-7f1163bd918d92ca.js +0 -1
  1207. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-7f1163bd918d92ca.js +0 -1
  1208. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-7f1163bd918d92ca.js +0 -1
  1209. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-7f1163bd918d92ca.js +0 -1
  1210. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-7f1163bd918d92ca.js +0 -1
  1211. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-7f1163bd918d92ca.js +0 -1
  1212. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-7f1163bd918d92ca.js +0 -1
  1213. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-7f1163bd918d92ca.js +0 -1
  1214. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-7f1163bd918d92ca.js +0 -1
  1215. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-7f1163bd918d92ca.js +0 -1
  1216. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-7f1163bd918d92ca.js +0 -1
  1217. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-7f1163bd918d92ca.js +0 -1
  1218. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-7f1163bd918d92ca.js +0 -1
  1219. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-7f1163bd918d92ca.js +0 -1
  1220. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-7f1163bd918d92ca.js +0 -1
  1221. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-7f1163bd918d92ca.js +0 -1
  1222. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-7f1163bd918d92ca.js +0 -1
  1223. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-7f1163bd918d92ca.js +0 -1
  1224. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-7f1163bd918d92ca.js +0 -1
  1225. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-7f1163bd918d92ca.js +0 -1
  1226. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-7f1163bd918d92ca.js +0 -1
  1227. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-7f1163bd918d92ca.js +0 -1
  1228. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-7f1163bd918d92ca.js +0 -1
  1229. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-7f1163bd918d92ca.js +0 -1
  1230. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-7f1163bd918d92ca.js +0 -1
  1231. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-7f1163bd918d92ca.js +0 -1
  1232. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-7f1163bd918d92ca.js +0 -1
  1233. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-7f1163bd918d92ca.js +0 -1
  1234. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-7f1163bd918d92ca.js +0 -1
  1235. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-7f1163bd918d92ca.js +0 -1
  1236. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-7f1163bd918d92ca.js +0 -1
  1237. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-7f1163bd918d92ca.js +0 -1
  1238. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-7f1163bd918d92ca.js +0 -1
  1239. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-7f1163bd918d92ca.js +0 -1
  1240. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-7f1163bd918d92ca.js +0 -1
  1241. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-7f1163bd918d92ca.js +0 -1
  1242. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-7f1163bd918d92ca.js +0 -1
  1243. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-7f1163bd918d92ca.js +0 -1
  1244. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-7f1163bd918d92ca.js +0 -1
  1245. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-7f1163bd918d92ca.js +0 -1
  1246. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-7f1163bd918d92ca.js +0 -1
  1247. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-7f1163bd918d92ca.js +0 -1
  1248. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-7f1163bd918d92ca.js +0 -1
  1249. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-7f1163bd918d92ca.js +0 -1
  1250. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-7f1163bd918d92ca.js +0 -1
  1251. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-7f1163bd918d92ca.js +0 -1
  1252. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-7f1163bd918d92ca.js +0 -1
  1253. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-7f1163bd918d92ca.js +0 -1
  1254. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-7f1163bd918d92ca.js +0 -1
  1255. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-7f1163bd918d92ca.js +0 -1
  1256. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-7f1163bd918d92ca.js +0 -1
  1257. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-7f1163bd918d92ca.js +0 -1
  1258. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-7f1163bd918d92ca.js +0 -1
  1259. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-7f1163bd918d92ca.js +0 -1
  1260. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-7f1163bd918d92ca.js +0 -1
  1261. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-7f1163bd918d92ca.js +0 -1
  1262. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-7f1163bd918d92ca.js +0 -1
  1263. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-7f1163bd918d92ca.js +0 -1
  1264. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-7f1163bd918d92ca.js +0 -1
  1265. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-7f1163bd918d92ca.js +0 -1
  1266. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-7f1163bd918d92ca.js +0 -1
  1267. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-7f1163bd918d92ca.js +0 -1
  1268. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-7f1163bd918d92ca.js +0 -1
  1269. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-7f1163bd918d92ca.js +0 -1
  1270. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-7f1163bd918d92ca.js +0 -1
  1271. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-7f1163bd918d92ca.js +0 -1
  1272. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-7f1163bd918d92ca.js +0 -1
  1273. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-7f1163bd918d92ca.js +0 -1
  1274. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-7f1163bd918d92ca.js +0 -1
  1275. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-7f1163bd918d92ca.js +0 -1
  1276. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-7f1163bd918d92ca.js +0 -1
  1277. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-7f1163bd918d92ca.js +0 -1
  1278. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-7f1163bd918d92ca.js +0 -1
  1279. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-7f1163bd918d92ca.js +0 -1
  1280. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-7f1163bd918d92ca.js +0 -1
  1281. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-7f1163bd918d92ca.js +0 -1
  1282. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-7f1163bd918d92ca.js +0 -1
  1283. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-7f1163bd918d92ca.js +0 -1
  1284. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-7f1163bd918d92ca.js +0 -1
  1285. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-7f1163bd918d92ca.js +0 -1
  1286. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-7f1163bd918d92ca.js +0 -1
  1287. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-7f1163bd918d92ca.js +0 -1
  1288. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-7f1163bd918d92ca.js +0 -1
  1289. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-7f1163bd918d92ca.js +0 -1
  1290. package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-7f1163bd918d92ca.js +0 -1
  1291. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-7f1163bd918d92ca.js +0 -1
  1292. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-7f1163bd918d92ca.js +0 -1
  1293. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-7f1163bd918d92ca.js +0 -1
  1294. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-7f1163bd918d92ca.js +0 -1
  1295. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-7f1163bd918d92ca.js +0 -1
  1296. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-7f1163bd918d92ca.js +0 -1
  1297. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-7f1163bd918d92ca.js +0 -1
  1298. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-7f1163bd918d92ca.js +0 -1
  1299. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-7f1163bd918d92ca.js +0 -1
  1300. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-7f1163bd918d92ca.js +0 -1
  1301. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-7f1163bd918d92ca.js +0 -1
  1302. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-7f1163bd918d92ca.js +0 -1
  1303. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-7f1163bd918d92ca.js +0 -1
  1304. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-7f1163bd918d92ca.js +0 -1
  1305. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-7f1163bd918d92ca.js +0 -1
  1306. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-7f1163bd918d92ca.js +0 -1
  1307. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-7f1163bd918d92ca.js +0 -1
  1308. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-7f1163bd918d92ca.js +0 -1
  1309. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-7f1163bd918d92ca.js +0 -1
  1310. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-7f1163bd918d92ca.js +0 -1
  1311. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-7f1163bd918d92ca.js +0 -1
  1312. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-7f1163bd918d92ca.js +0 -1
  1313. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-7f1163bd918d92ca.js +0 -1
  1314. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-7f1163bd918d92ca.js +0 -1
  1315. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-7f1163bd918d92ca.js +0 -1
  1316. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-7f1163bd918d92ca.js +0 -1
  1317. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-7f1163bd918d92ca.js +0 -1
  1318. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-7f1163bd918d92ca.js +0 -1
  1319. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-7f1163bd918d92ca.js +0 -1
  1320. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-7f1163bd918d92ca.js +0 -1
  1321. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-7f1163bd918d92ca.js +0 -1
  1322. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-7f1163bd918d92ca.js +0 -1
  1323. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-7f1163bd918d92ca.js +0 -1
  1324. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-7f1163bd918d92ca.js +0 -1
  1325. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-7f1163bd918d92ca.js +0 -1
  1326. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-7f1163bd918d92ca.js +0 -1
  1327. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-7f1163bd918d92ca.js +0 -1
  1328. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-7f1163bd918d92ca.js +0 -1
  1329. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-7f1163bd918d92ca.js +0 -1
  1330. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-7f1163bd918d92ca.js +0 -1
  1331. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-7f1163bd918d92ca.js +0 -1
  1332. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-7f1163bd918d92ca.js +0 -1
  1333. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-7f1163bd918d92ca.js +0 -1
  1334. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-7f1163bd918d92ca.js +0 -1
  1335. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-7f1163bd918d92ca.js +0 -1
  1336. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-7f1163bd918d92ca.js +0 -1
  1337. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-7f1163bd918d92ca.js +0 -1
  1338. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-7f1163bd918d92ca.js +0 -1
  1339. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-7f1163bd918d92ca.js +0 -1
  1340. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-7f1163bd918d92ca.js +0 -1
  1341. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-7f1163bd918d92ca.js +0 -1
  1342. package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-7f1163bd918d92ca.js +0 -1
  1343. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-7f1163bd918d92ca.js +0 -1
  1344. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-7f1163bd918d92ca.js +0 -1
  1345. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-7f1163bd918d92ca.js +0 -1
  1346. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-7f1163bd918d92ca.js +0 -1
  1347. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-7f1163bd918d92ca.js +0 -1
  1348. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-7f1163bd918d92ca.js +0 -1
  1349. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-7f1163bd918d92ca.js +0 -1
  1350. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-7f1163bd918d92ca.js +0 -1
  1351. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-7f1163bd918d92ca.js +0 -1
  1352. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-7f1163bd918d92ca.js +0 -1
  1353. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-7f1163bd918d92ca.js +0 -1
  1354. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-7f1163bd918d92ca.js +0 -1
  1355. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-7f1163bd918d92ca.js +0 -1
  1356. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-7f1163bd918d92ca.js +0 -1
  1357. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-7f1163bd918d92ca.js +0 -1
  1358. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-7f1163bd918d92ca.js +0 -1
  1359. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-7f1163bd918d92ca.js +0 -1
  1360. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-7f1163bd918d92ca.js +0 -1
  1361. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-7f1163bd918d92ca.js +0 -1
  1362. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-7f1163bd918d92ca.js +0 -1
  1363. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-7f1163bd918d92ca.js +0 -1
  1364. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-7f1163bd918d92ca.js +0 -1
  1365. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-7f1163bd918d92ca.js +0 -1
  1366. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-7f1163bd918d92ca.js +0 -1
  1367. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-7f1163bd918d92ca.js +0 -1
  1368. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-7f1163bd918d92ca.js +0 -1
  1369. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-7f1163bd918d92ca.js +0 -1
  1370. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-7f1163bd918d92ca.js +0 -1
  1371. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-7f1163bd918d92ca.js +0 -1
  1372. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-7f1163bd918d92ca.js +0 -1
  1373. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-7f1163bd918d92ca.js +0 -1
  1374. package/cli/app/.next-cli-build/static/chunks/app/landing/page-30ffb960e68fba1a.js +0 -1
  1375. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-7f1163bd918d92ca.js +0 -1
  1376. package/cli/app/.next-cli-build/static/chunks/app/page-7f1163bd918d92ca.js +0 -1
  1377. package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-7f1163bd918d92ca.js +0 -1
  1378. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-7f1163bd918d92ca.js +0 -1
  1379. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-7f1163bd918d92ca.js +0 -1
  1380. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-7f1163bd918d92ca.js +0 -1
  1381. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-7f1163bd918d92ca.js +0 -1
  1382. package/cli/app/.next-cli-build/static/css/d3a75038b243e398.css +0 -1
  1383. /package/cli/app/.next-cli-build/static/{824D95QIGoN3BCMQNuqnq → C6i_Bn3fJrnsz4at-ntco}/_ssgManifest.js +0 -0
@@ -1,17 +1,17 @@
1
- "use strict";exports.id=3110,exports.ids=[3110],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}$/},3156:(a,b,c)=>{c.d(b,{M:()=>e});var d=c(41004);function e(a){let b=a.max_tokens||d.Uc;return a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&b<d.eo&&(b=d.eo),a.thinking?.budget_tokens&&b<=a.thinking.budget_tokens&&(b=a.thinking.budget_tokens+1024),b}},4305:(a,b,c)=>{c.d(b,{Jm:()=>h,k_:()=>j,od:()=>i});let d=new Set(["blocklist","content-filter","content_filter","image_safety","model_armor","prohibited_content","recitation","refusal","safety","spii"]),e=new Set(["length","max-tokens","max_tokens"]),f=new Set(["tool-calls","tool-use","tool_calls","tool_use"]),g=new Set(["completed","end-turn","end_of_sequence","end_turn","eos","finish_reason_unspecified","stop","stop_sequence"]);function h(a,{hasToolCalls:b=!1}={}){let c=String(a||"").trim().toLowerCase();return d.has(c)?"content_filter":e.has(c)?"length":f.has(c)?"tool_calls":(g.has(c),b?"tool_calls":"stop")}function i(a){return d.has(String(a||"").trim().toLowerCase())}function j(a){return Array.isArray(a?.choices)?{...a,choices:a.choices.map(a=>({...a,finish_reason:h(a?.finish_reason,{hasToolCalls:Array.isArray(a?.message?.tool_calls)&&a.message.tool_calls.length>0})}))}:a}},4845:(a,b,c)=>{c.r(b),c.d(b,{openaiResponsesToOpenAIResponse:()=>o,openaiToOpenAIResponsesResponse:()=>f});var d=c(33110),e=c(14170);function f(a,b){if(!a){var c=b;if(c.completedSent)return[];let a=[],d=(b,d)=>{d.sequence_number=++c.seq,a.push({event:b,data:d})};for(let a in c.msgItemAdded)k(c,d,a);for(let a in j(c,d),c.funcCallIds)l(c,d,a);return m(c,d),a}if(!a.choices?.length)return[];let d=[],e=(a,c)=>{c.sequence_number=++b.seq,d.push({event:a,data:c})},f=a.choices[0],n=f.index||0,o=f.delta||{};if(b.started||(b.started=!0,b.responseId=a.id?`resp_${a.id}`:b.responseId,e("response.created",{type:"response.created",response:{id:b.responseId,object:"response",created_at:b.created,status:"in_progress",background:!1,error:null,output:[]}}),e("response.in_progress",{type:"response.in_progress",response:{id:b.responseId,object:"response",created_at:b.created,status:"in_progress"}})),o.reasoning_content&&(h(b,e,n),i(b,e,o.reasoning_content)),o.content){let a=o.content;if(a.includes("<think>")&&(b.inThinking=!0,a=a.replace("<think>",""),h(b,e,n)),a.includes("</think>")){let c=a.split("</think>"),d=c[0],f=c.slice(1).join("</think>");d&&i(b,e,d),j(b,e),b.inThinking=!1,a=f}if(b.inThinking&&a)return i(b,e,a),d;a&&function(a,b,c,d){if(!a.msgItemAdded[c]){a.msgItemAdded[c]=!0,a.msgOutputIndices[c]=g(a);let d=`msg_${a.responseId}_${c}`;b("response.output_item.added",{type:"response.output_item.added",output_index:a.msgOutputIndices[c],item:{id:d,type:"message",content:[],role:"assistant"}})}a.msgContentAdded[c]||(a.msgContentAdded[c]=!0,b("response.content_part.added",{type:"response.content_part.added",item_id:`msg_${a.responseId}_${c}`,output_index:a.msgOutputIndices[c],content_index:0,part:{type:"output_text",annotations:[],logprobs:[],text:""}})),b("response.output_text.delta",{type:"response.output_text.delta",item_id:`msg_${a.responseId}_${c}`,output_index:a.msgOutputIndices[c],content_index:0,delta:d,logprobs:[]}),a.msgTextBuf[c]||(a.msgTextBuf[c]=""),a.msgTextBuf[c]+=d}(b,e,n,a)}if(o.tool_calls)for(let a of(k(b,e,n),o.tool_calls))!function(a,b,c){let d=c.index??0,e=c.id,f=c.function?.name;if(void 0===a.funcOutputIndices[d]&&(a.funcOutputIndices[d]=g(a)),f&&(a.funcNames[d]=f),!a.funcCallIds[d]&&e&&(a.funcCallIds[d]=e,b("response.output_item.added",{type:"response.output_item.added",output_index:a.funcOutputIndices[d],item:{id:`fc_${e}`,type:"function_call",arguments:"",call_id:e,name:a.funcNames[d]||""}})),a.funcArgsBuf[d]||(a.funcArgsBuf[d]=""),c.function?.arguments){let f=a.funcCallIds[d]||e;f&&b("response.function_call_arguments.delta",{type:"response.function_call_arguments.delta",item_id:`fc_${f}`,output_index:a.funcOutputIndices[d],delta:c.function.arguments}),a.funcArgsBuf[d]+=c.function.arguments}}(b,e,a);if(a.usage&&"object"==typeof a.usage&&!b.usage&&(b.usage=a.usage),f.finish_reason){for(let a in b.msgItemAdded)k(b,e,a);for(let a in j(b,e),b.funcCallIds)l(b,e,a);m(b,e)}return d}function g(a){let b=Number.isInteger(a.nextOutputIndex)?a.nextOutputIndex:0;return a.nextOutputIndex=b+1,b}function h(a,b,c){a.reasoningId||(a.reasoningId=`rs_${a.responseId}_${c}`,a.reasoningIndex=g(a),b("response.output_item.added",{type:"response.output_item.added",output_index:c,item:{id:a.reasoningId,type:"reasoning",summary:[]}}),b("response.reasoning_summary_part.added",{type:"response.reasoning_summary_part.added",item_id:a.reasoningId,output_index:c,summary_index:0,part:{type:"summary_text",text:""}}),a.reasoningPartAdded=!0)}function i(a,b,c){c&&(a.reasoningBuf+=c,b("response.reasoning_summary_text.delta",{type:"response.reasoning_summary_text.delta",item_id:a.reasoningId,output_index:a.reasoningIndex,summary_index:0,delta:c}))}function j(a,b){a.reasoningId&&!a.reasoningDone&&(a.reasoningDone=!0,b("response.reasoning_summary_text.done",{type:"response.reasoning_summary_text.done",item_id:a.reasoningId,output_index:a.reasoningIndex,summary_index:0,text:a.reasoningBuf}),b("response.reasoning_summary_part.done",{type:"response.reasoning_summary_part.done",item_id:a.reasoningId,output_index:a.reasoningIndex,summary_index:0,part:{type:"summary_text",text:a.reasoningBuf}}),b("response.output_item.done",{type:"response.output_item.done",output_index:a.reasoningIndex,item:{id:a.reasoningId,type:"reasoning",summary:[{type:"summary_text",text:a.reasoningBuf}]}}))}function k(a,b,c){if(a.msgItemAdded[c]&&!a.msgItemDone[c]){a.msgItemDone[c]=!0;let d=a.msgTextBuf[c]||"",e=`msg_${a.responseId}_${c}`,f=a.msgOutputIndices[c];b("response.output_text.done",{type:"response.output_text.done",item_id:e,output_index:f,content_index:0,text:d,logprobs:[]}),b("response.content_part.done",{type:"response.content_part.done",item_id:e,output_index:f,content_index:0,part:{type:"output_text",annotations:[],logprobs:[],text:d}}),b("response.output_item.done",{type:"response.output_item.done",output_index:f,item:{id:e,type:"message",content:[{type:"output_text",annotations:[],logprobs:[],text:d}],role:"assistant"}})}}function l(a,b,c){let d=a.funcCallIds[c];if(d&&!a.funcItemDone[c]){let e=a.funcArgsBuf[c]||"{}",f=a.funcOutputIndices[c];b("response.function_call_arguments.done",{type:"response.function_call_arguments.done",item_id:`fc_${d}`,output_index:f,arguments:e}),b("response.output_item.done",{type:"response.output_item.done",output_index:f,item:{id:`fc_${d}`,type:"function_call",arguments:e,call_id:d,name:a.funcNames[c]||""}}),a.funcItemDone[c]=!0,a.funcArgsDone[c]=!0}}function m(a,b){if(!a.completedSent){a.completedSent=!0;let c={id:a.responseId,object:"response",created_at:a.created,status:"completed",background:!1,error:null,output:function(a){let b=[];for(let c in a.reasoningId&&b.push({index:a.reasoningIndex,item:{id:a.reasoningId,type:"reasoning",summary:a.reasoningBuf?[{type:"summary_text",text:a.reasoningBuf}]:[]}}),a.msgItemAdded)a.msgItemAdded[c]&&b.push({index:a.msgOutputIndices[c]??0,item:{id:`msg_${a.responseId}_${c}`,type:"message",status:"completed",role:"assistant",content:[{type:"output_text",annotations:[],logprobs:[],text:a.msgTextBuf[c]||""}]}});for(let c in a.funcCallIds){let d=a.funcCallIds[c];d&&b.push({index:a.funcOutputIndices[c]??0,item:{id:`fc_${d}`,type:"function_call",arguments:a.funcArgsBuf[c]||"{}",call_id:d,name:a.funcNames[c]||""}})}return b.sort((a,b)=>a.index-b.index),b.map(a=>a.item)}(a)};if(a.model&&(c.model=a.model),a.usage&&"object"==typeof a.usage){let b=a.usage.input_tokens??a.usage.prompt_tokens??0,d=a.usage.output_tokens??a.usage.completion_tokens??0,e=a.usage.input_tokens_details?.cached_tokens??a.usage.prompt_tokens_details?.cached_tokens??0,f=a.usage.output_tokens_details?.reasoning_tokens??a.usage.completion_tokens_details?.reasoning_tokens??0,g={input_tokens:b,output_tokens:d,total_tokens:a.usage.total_tokens??b+d};e>0&&(g.input_tokens_details={cached_tokens:e}),f>0&&(g.output_tokens_details={reasoning_tokens:f}),c.usage=g}b("response.completed",{type:"response.completed",response:c})}}function n(a){return a.toolCallIndex>0||a.currentToolCallId?"tool_calls":"stop"}function o(a,b){if(!a){if(b.finishReasonSent||!b.started)return null;let a=n(b);b.finishReasonSent=!0,b.finishReason=a;let c={id:b.chatId||`chatcmpl-${Date.now()}`,object:"chat.completion.chunk",created:b.created||Math.floor(Date.now()/1e3),model:b.model||"unknown",choices:[{index:0,delta:{},finish_reason:a}]};return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}let c=a.type||a.event,d=a.data||a;if(b.started||(b.started=!0,b.chatId=`chatcmpl-${Date.now()}`,b.created=Math.floor(Date.now()/1e3),b.toolCallIndex=0,b.currentToolCallId=null),"error"===c||"response.failed"===c||d?.response?.status==="failed"||!c&&d?.error){let a,e,f,g,h,i,j,k,l;if(b.finishReasonSent||b.errorSent)return null;let m=(g=(f=(e=(a=d&&"object"==typeof d?d:{}).error??a.response?.error)&&"object"==typeof e&&!Array.isArray(e)?e:{}).code??a.code??("response.failed"===c?"response_failed":"stream_error"),h=f.message||("string"==typeof e?e:null)||a.message||("response.failed"===c?"Responses API request failed":"Responses API stream error"),i=a.type&&a.type!==c&&"error"!==a.type?a.type:null,j="string"==typeof g&&(g.endsWith("_error")||"server_error"===g)?g:null,k=f.type||a.error_type||i||j||"server_error",!("param"in(l={...f,message:h,type:k}))&&"param"in a&&(l.param=a.param),l.code=g,l);return b.error=m,b.errorSent=!0,b.finishReasonSent=!0,{error:m}}if(b.errorSent)return null;if("response.output_text.delta"===c){let a=d.delta||"";return a?{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{content:a},finish_reason:null}]}:null}if("response.output_text.done"===c)return null;if("response.output_item.added"===c&&(d.item?.type==="function_call"||d.item?.type==="custom_tool_call")){let a=d.item;return b.currentToolCallId=a.call_id||`call_${Date.now()}`,{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{tool_calls:[{index:b.toolCallIndex,id:b.currentToolCallId,type:"function",function:{name:a.name||"",arguments:""}}]},finish_reason:null}]}}if("response.function_call_arguments.delta"===c||"response.custom_tool_call_input.delta"===c){let a=d.delta||"";return a?{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{tool_calls:[{index:b.toolCallIndex,function:{arguments:a}}]},finish_reason:null}]}:null}if("response.output_item.done"===c&&(d.item?.type==="function_call"||d.item?.type==="custom_tool_call"))return b.toolCallIndex++,null;if("response.completed"===c||"response.done"===c){let a=d.response?.usage;if(a&&"object"==typeof a){let c=a.input_tokens||a.prompt_tokens||0,d=a.output_tokens||a.completion_tokens||0,e=a.input_tokens_details?.cached_tokens||a.cache_read_input_tokens||0;b.usage={prompt_tokens:c,completion_tokens:d,total_tokens:c+d},e>0&&(b.usage.prompt_tokens_details={cached_tokens:e})}if(!b.finishReasonSent){let a=n(b);b.finishReasonSent=!0,b.finishReason=a;let c={id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{},finish_reason:a}]};return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}return null}if("response.reasoning_summary_text.delta"===c){let a=d.delta||"";return a?{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{reasoning_content:a},finish_reason:null}]}:null}return null}(0,d.kz)(e.h.OPENAI,e.h.OPENAI_RESPONSES,null,f),(0,d.kz)(e.h.OPENAI_RESPONSES,e.h.OPENAI,null,o)},13595:(a,b,c)=>{c.r(b),c.d(b,{buildCursorRequest:()=>j});var d=c(33110),e=c(14170);function f(a){return"string"==typeof a?a:Array.isArray(a)?a.map(a=>{if(!a||"object"!=typeof a)return"";if("text"===a.type&&"string"==typeof a.text)return a.text;if("image_url"===a.type){let b="string"==typeof a.image_url?a.image_url:a.image_url?.url;return b?`<image_url>${g(b)}</image_url>`:""}if("image"===a.type&&a.source?.data){let b=a.source.media_type||"image/png";return`<image_url>data:${b};base64,${a.source.data}</image_url>`}return""}).filter(Boolean).join("\n"):""}function g(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function h(a,b,c){let d=(c||"").replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g,"");return`<tool_result>
1
+ "use strict";exports.id=6651,exports.ids=[6651],exports.modules={3156:(a,b,c)=>{c.d(b,{M:()=>e});var d=c(41004);function e(a){let b=a.max_tokens||d.Uc;return a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&b<d.eo&&(b=d.eo),a.thinking?.budget_tokens&&b<=a.thinking.budget_tokens&&(b=a.thinking.budget_tokens+1024),b}},4305:(a,b,c)=>{c.d(b,{Jm:()=>h,k_:()=>j,od:()=>i});let d=new Set(["blocklist","content-filter","content_filter","image_safety","model_armor","prohibited_content","recitation","refusal","safety","spii"]),e=new Set(["length","max-tokens","max_tokens"]),f=new Set(["tool-calls","tool-use","tool_calls","tool_use"]),g=new Set(["completed","end-turn","end_of_sequence","end_turn","eos","finish_reason_unspecified","stop","stop_sequence"]);function h(a,{hasToolCalls:b=!1}={}){let c=String(a||"").trim().toLowerCase();return d.has(c)?"content_filter":e.has(c)?"length":f.has(c)?"tool_calls":(g.has(c),b?"tool_calls":"stop")}function i(a){return d.has(String(a||"").trim().toLowerCase())}function j(a){return Array.isArray(a?.choices)?{...a,choices:a.choices.map(a=>({...a,finish_reason:h(a?.finish_reason,{hasToolCalls:Array.isArray(a?.message?.tool_calls)&&a.message.tool_calls.length>0})}))}:a}},4845:(a,b,c)=>{c.r(b),c.d(b,{openaiResponsesToOpenAIResponse:()=>o,openaiToOpenAIResponsesResponse:()=>f});var d=c(33110),e=c(14170);function f(a,b){if(!a){var c=b;if(c.completedSent)return[];let a=[],d=(b,d)=>{d.sequence_number=++c.seq,a.push({event:b,data:d})};for(let a in c.msgItemAdded)k(c,d,a);for(let a in j(c,d),c.funcCallIds)l(c,d,a);return m(c,d),a}if(!a.choices?.length)return[];let d=[],e=(a,c)=>{c.sequence_number=++b.seq,d.push({event:a,data:c})},f=a.choices[0],n=f.index||0,o=f.delta||{};if(b.started||(b.started=!0,b.responseId=a.id?`resp_${a.id}`:b.responseId,e("response.created",{type:"response.created",response:{id:b.responseId,object:"response",created_at:b.created,status:"in_progress",background:!1,error:null,output:[]}}),e("response.in_progress",{type:"response.in_progress",response:{id:b.responseId,object:"response",created_at:b.created,status:"in_progress"}})),o.reasoning_content&&(h(b,e,n),i(b,e,o.reasoning_content)),o.content){let a=o.content;if(a.includes("<think>")&&(b.inThinking=!0,a=a.replace("<think>",""),h(b,e,n)),a.includes("</think>")){let c=a.split("</think>"),d=c[0],f=c.slice(1).join("</think>");d&&i(b,e,d),j(b,e),b.inThinking=!1,a=f}if(b.inThinking&&a)return i(b,e,a),d;a&&function(a,b,c,d){if(!a.msgItemAdded[c]){a.msgItemAdded[c]=!0,a.msgOutputIndices[c]=g(a);let d=`msg_${a.responseId}_${c}`;b("response.output_item.added",{type:"response.output_item.added",output_index:a.msgOutputIndices[c],item:{id:d,type:"message",content:[],role:"assistant"}})}a.msgContentAdded[c]||(a.msgContentAdded[c]=!0,b("response.content_part.added",{type:"response.content_part.added",item_id:`msg_${a.responseId}_${c}`,output_index:a.msgOutputIndices[c],content_index:0,part:{type:"output_text",annotations:[],logprobs:[],text:""}})),b("response.output_text.delta",{type:"response.output_text.delta",item_id:`msg_${a.responseId}_${c}`,output_index:a.msgOutputIndices[c],content_index:0,delta:d,logprobs:[]}),a.msgTextBuf[c]||(a.msgTextBuf[c]=""),a.msgTextBuf[c]+=d}(b,e,n,a)}if(o.tool_calls)for(let a of(k(b,e,n),o.tool_calls))!function(a,b,c){let d=c.index??0,e=c.id,f=c.function?.name;if(void 0===a.funcOutputIndices[d]&&(a.funcOutputIndices[d]=g(a)),f&&(a.funcNames[d]=f),!a.funcCallIds[d]&&e&&(a.funcCallIds[d]=e,b("response.output_item.added",{type:"response.output_item.added",output_index:a.funcOutputIndices[d],item:{id:`fc_${e}`,type:"function_call",arguments:"",call_id:e,name:a.funcNames[d]||""}})),a.funcArgsBuf[d]||(a.funcArgsBuf[d]=""),c.function?.arguments){let f=a.funcCallIds[d]||e;f&&b("response.function_call_arguments.delta",{type:"response.function_call_arguments.delta",item_id:`fc_${f}`,output_index:a.funcOutputIndices[d],delta:c.function.arguments}),a.funcArgsBuf[d]+=c.function.arguments}}(b,e,a);if(a.usage&&"object"==typeof a.usage&&!b.usage&&(b.usage=a.usage),f.finish_reason){for(let a in b.msgItemAdded)k(b,e,a);for(let a in j(b,e),b.funcCallIds)l(b,e,a);m(b,e)}return d}function g(a){let b=Number.isInteger(a.nextOutputIndex)?a.nextOutputIndex:0;return a.nextOutputIndex=b+1,b}function h(a,b,c){a.reasoningId||(a.reasoningId=`rs_${a.responseId}_${c}`,a.reasoningIndex=g(a),b("response.output_item.added",{type:"response.output_item.added",output_index:c,item:{id:a.reasoningId,type:"reasoning",summary:[]}}),b("response.reasoning_summary_part.added",{type:"response.reasoning_summary_part.added",item_id:a.reasoningId,output_index:c,summary_index:0,part:{type:"summary_text",text:""}}),a.reasoningPartAdded=!0)}function i(a,b,c){c&&(a.reasoningBuf+=c,b("response.reasoning_summary_text.delta",{type:"response.reasoning_summary_text.delta",item_id:a.reasoningId,output_index:a.reasoningIndex,summary_index:0,delta:c}))}function j(a,b){a.reasoningId&&!a.reasoningDone&&(a.reasoningDone=!0,b("response.reasoning_summary_text.done",{type:"response.reasoning_summary_text.done",item_id:a.reasoningId,output_index:a.reasoningIndex,summary_index:0,text:a.reasoningBuf}),b("response.reasoning_summary_part.done",{type:"response.reasoning_summary_part.done",item_id:a.reasoningId,output_index:a.reasoningIndex,summary_index:0,part:{type:"summary_text",text:a.reasoningBuf}}),b("response.output_item.done",{type:"response.output_item.done",output_index:a.reasoningIndex,item:{id:a.reasoningId,type:"reasoning",summary:[{type:"summary_text",text:a.reasoningBuf}]}}))}function k(a,b,c){if(a.msgItemAdded[c]&&!a.msgItemDone[c]){a.msgItemDone[c]=!0;let d=a.msgTextBuf[c]||"",e=`msg_${a.responseId}_${c}`,f=a.msgOutputIndices[c];b("response.output_text.done",{type:"response.output_text.done",item_id:e,output_index:f,content_index:0,text:d,logprobs:[]}),b("response.content_part.done",{type:"response.content_part.done",item_id:e,output_index:f,content_index:0,part:{type:"output_text",annotations:[],logprobs:[],text:d}}),b("response.output_item.done",{type:"response.output_item.done",output_index:f,item:{id:e,type:"message",content:[{type:"output_text",annotations:[],logprobs:[],text:d}],role:"assistant"}})}}function l(a,b,c){let d=a.funcCallIds[c];if(d&&!a.funcItemDone[c]){let e=a.funcArgsBuf[c]||"{}",f=a.funcOutputIndices[c];b("response.function_call_arguments.done",{type:"response.function_call_arguments.done",item_id:`fc_${d}`,output_index:f,arguments:e}),b("response.output_item.done",{type:"response.output_item.done",output_index:f,item:{id:`fc_${d}`,type:"function_call",arguments:e,call_id:d,name:a.funcNames[c]||""}}),a.funcItemDone[c]=!0,a.funcArgsDone[c]=!0}}function m(a,b){if(!a.completedSent){a.completedSent=!0;let c={id:a.responseId,object:"response",created_at:a.created,status:"completed",background:!1,error:null,output:function(a){let b=[];for(let c in a.reasoningId&&b.push({index:a.reasoningIndex,item:{id:a.reasoningId,type:"reasoning",summary:a.reasoningBuf?[{type:"summary_text",text:a.reasoningBuf}]:[]}}),a.msgItemAdded)a.msgItemAdded[c]&&b.push({index:a.msgOutputIndices[c]??0,item:{id:`msg_${a.responseId}_${c}`,type:"message",status:"completed",role:"assistant",content:[{type:"output_text",annotations:[],logprobs:[],text:a.msgTextBuf[c]||""}]}});for(let c in a.funcCallIds){let d=a.funcCallIds[c];d&&b.push({index:a.funcOutputIndices[c]??0,item:{id:`fc_${d}`,type:"function_call",arguments:a.funcArgsBuf[c]||"{}",call_id:d,name:a.funcNames[c]||""}})}return b.sort((a,b)=>a.index-b.index),b.map(a=>a.item)}(a)};if(a.model&&(c.model=a.model),a.usage&&"object"==typeof a.usage){let b=a.usage.input_tokens??a.usage.prompt_tokens??0,d=a.usage.output_tokens??a.usage.completion_tokens??0,e=a.usage.input_tokens_details?.cached_tokens??a.usage.prompt_tokens_details?.cached_tokens??0,f=a.usage.output_tokens_details?.reasoning_tokens??a.usage.completion_tokens_details?.reasoning_tokens??0,g={input_tokens:b,output_tokens:d,total_tokens:a.usage.total_tokens??b+d};e>0&&(g.input_tokens_details={cached_tokens:e}),f>0&&(g.output_tokens_details={reasoning_tokens:f}),c.usage=g}b("response.completed",{type:"response.completed",response:c})}}function n(a){return a.toolCallIndex>0||a.currentToolCallId?"tool_calls":"stop"}function o(a,b){if(!a){if(b.finishReasonSent||!b.started)return null;let a=n(b);b.finishReasonSent=!0,b.finishReason=a;let c={id:b.chatId||`chatcmpl-${Date.now()}`,object:"chat.completion.chunk",created:b.created||Math.floor(Date.now()/1e3),model:b.model||"unknown",choices:[{index:0,delta:{},finish_reason:a}]};return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}let c=a.type||a.event,d=a.data||a;if(b.started||(b.started=!0,b.chatId=`chatcmpl-${Date.now()}`,b.created=Math.floor(Date.now()/1e3),b.toolCallIndex=0,b.currentToolCallId=null),"error"===c||"response.failed"===c||d?.response?.status==="failed"||!c&&d?.error){let a,e,f,g,h,i,j,k,l;if(b.finishReasonSent||b.errorSent)return null;let m=(g=(f=(e=(a=d&&"object"==typeof d?d:{}).error??a.response?.error)&&"object"==typeof e&&!Array.isArray(e)?e:{}).code??a.code??("response.failed"===c?"response_failed":"stream_error"),h=f.message||("string"==typeof e?e:null)||a.message||("response.failed"===c?"Responses API request failed":"Responses API stream error"),i=a.type&&a.type!==c&&"error"!==a.type?a.type:null,j="string"==typeof g&&(g.endsWith("_error")||"server_error"===g)?g:null,k=f.type||a.error_type||i||j||"server_error",!("param"in(l={...f,message:h,type:k}))&&"param"in a&&(l.param=a.param),l.code=g,l);return b.error=m,b.errorSent=!0,b.finishReasonSent=!0,{error:m}}if(b.errorSent)return null;if("response.output_text.delta"===c){let a=d.delta||"";return a?{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{content:a},finish_reason:null}]}:null}if("response.output_text.done"===c)return null;if("response.output_item.added"===c&&(d.item?.type==="function_call"||d.item?.type==="custom_tool_call")){let a=d.item;return b.currentToolCallId=a.call_id||`call_${Date.now()}`,{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{tool_calls:[{index:b.toolCallIndex,id:b.currentToolCallId,type:"function",function:{name:a.name||"",arguments:""}}]},finish_reason:null}]}}if("response.function_call_arguments.delta"===c||"response.custom_tool_call_input.delta"===c){let a=d.delta||"";return a?{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{tool_calls:[{index:b.toolCallIndex,function:{arguments:a}}]},finish_reason:null}]}:null}if("response.output_item.done"===c&&(d.item?.type==="function_call"||d.item?.type==="custom_tool_call"))return b.toolCallIndex++,null;if("response.completed"===c||"response.done"===c){let a=d.response?.usage;if(a&&"object"==typeof a){let c=a.input_tokens||a.prompt_tokens||0,d=a.output_tokens||a.completion_tokens||0,e=a.input_tokens_details?.cached_tokens||a.cache_read_input_tokens||0;b.usage={prompt_tokens:c,completion_tokens:d,total_tokens:c+d},e>0&&(b.usage.prompt_tokens_details={cached_tokens:e})}if(!b.finishReasonSent){let a=n(b);b.finishReasonSent=!0,b.finishReason=a;let c={id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{},finish_reason:a}]};return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}return null}if("response.reasoning_summary_text.delta"===c){let a=d.delta||"";return a?{id:b.chatId,object:"chat.completion.chunk",created:b.created,model:b.model||"unknown",choices:[{index:0,delta:{reasoning_content:a},finish_reason:null}]}:null}return null}(0,d.kz)(e.h.OPENAI,e.h.OPENAI_RESPONSES,null,f),(0,d.kz)(e.h.OPENAI_RESPONSES,e.h.OPENAI,null,o)},13595:(a,b,c)=>{c.r(b),c.d(b,{buildCursorRequest:()=>j});var d=c(33110),e=c(14170);function f(a){return"string"==typeof a?a:Array.isArray(a)?a.map(a=>{if(!a||"object"!=typeof a)return"";if("text"===a.type&&"string"==typeof a.text)return a.text;if("image_url"===a.type){let b="string"==typeof a.image_url?a.image_url:a.image_url?.url;return b?`<image_url>${g(b)}</image_url>`:""}if("image"===a.type&&a.source?.data){let b=a.source.media_type||"image/png";return`<image_url>data:${b};base64,${a.source.data}</image_url>`}return""}).filter(Boolean).join("\n"):""}function g(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function h(a,b,c){let d=(c||"").replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g,"");return`<tool_result>
2
2
  <tool_name>${g(a||"tool")}</tool_name>
3
3
  <tool_call_id>${g(b||"")}</tool_call_id>
4
4
  <result>${g(d)}</result>
5
5
  </tool_result>`}function i(a){return"string"==typeof a?a.split("\n")[0]:""}function j(a,b,c,d){let e=function(a){let b=[],c=new Map,d=(a,b)=>{if(!a)return;let d=b||"tool";c.set(a,{name:d});let e=i(a);e&&e!==a&&c.set(e,{name:d})};for(let b of a){if("assistant"===b.role&&b.tool_calls)for(let a of b.tool_calls)d(a.id||"",a.function?.name||"tool");if("assistant"===b.role&&Array.isArray(b.content))for(let a of b.content)a?.type==="tool_use"&&d(a.id||"",a.name||"tool")}for(let d=0;d<a.length;d++){let e=a[d];if("system"===e.role){b.push({role:"user",content:`[System Instructions]
6
- ${f(e.content)}`});continue}if("tool"===e.role){let a=f(e.content),d=e.tool_call_id||"",g=c.get(d)||{},i=e.name||g.name||"tool";b.push({role:"user",content:h(i,d,a)});continue}if("user"===e.role||"assistant"===e.role){if("user"===e.role&&Array.isArray(e.content)){let a=[];for(let b of e.content)if(b&&"object"==typeof b){if("text"===b.type){"string"==typeof b.text&&a.push(b.text||"");continue}if("tool_result"===b.type){let d=b.tool_use_id||"",e=c.get(d)||c.get(i(d)),g=e?.name||"tool",j=f(b.content);a.push(h(g,d,j))}else{let c=f([b]);c&&a.push(c)}}let d=a.filter(Boolean).join("\n");d&&b.push({role:"user",content:d});continue}let a=f(e.content);if("assistant"===e.role&&e.tool_calls&&e.tool_calls.length>0){let c={role:"assistant",content:a||""};c.tool_calls=e.tool_calls.map(a=>{let{index:b,...c}=a||{};return c}),b.push(c)}else if("assistant"===e.role&&Array.isArray(e.content)){let c=e.content.filter(a=>a?.type==="tool_use").map(a=>({id:a.id||"",type:"function",function:{name:a.name||"tool",arguments:JSON.stringify(a.input||{})}})).filter(a=>a.id);c.length>0?b.push({role:"assistant",content:a||"",tool_calls:c}):a&&b.push({role:"assistant",content:a})}else a&&b.push({role:e.role,content:a})}}return b}(b.messages||[]),{user:g,metadata:j,tool_choice:k,stream_options:l,system:m,...n}=b;return{...n,messages:e,max_tokens:b.max_tokens??b.max_output_tokens??32e3}}(0,d.kz)(e.h.OPENAI,e.h.CURSOR,j,null)},14170:(a,b,c)=>{c.d(b,{h:()=>d,t:()=>e});let d={OPENAI:"openai",OPENAI_RESPONSES:"openai-responses",OPENAI_RESPONSE:"openai-response",CLAUDE:"claude",GEMINI:"gemini",GEMINI_CLI:"gemini-cli",VERTEX:"vertex",CODEX:"codex",ANTIGRAVITY:"antigravity",KIRO:"kiro",CURSOR:"cursor",OLLAMA:"ollama",COMMANDCODE:"commandcode"};function e(a,b){return a.includes("/v1/responses")?d.OPENAI_RESPONSES:a.includes("/v1/messages")?d.CLAUDE:a.includes("/v1/chat/completions")&&Array.isArray(b?.input)?d.OPENAI:null}},19979:(a,b,c)=>{c.r(b),c.d(b,{openaiToClaudeRequest:()=>i,openaiToClaudeRequestForAntigravity:()=>l});var d=c(33110),e=c(14170),f=c(75924),g=c(3156),h=c(2636);function i(a,b,c,d=null,e=null){let l=new Map,m={model:a,max_tokens:(0,g.M)(b),stream:c};void 0!==b.temperature&&(m.temperature=b.temperature),m.messages=[];let n=[];if(b.messages&&Array.isArray(b.messages)){let a;for(let a of b.messages)"system"===a.role&&n.push("string"==typeof a.content?a.content:k(a.content));let c=b.messages.filter(a=>"system"!==a.role),d=[],e=()=>{a&&d.length>0&&(m.messages.push({role:a,content:d}),d=[])};for(let b of c){let c="user"===b.role||"tool"===b.role?"user":"assistant",f=function(a,b=new Map){let c=[];if("tool"===a.role){let b=a.content,d=!0===a.is_error;"string"==typeof b&&b.startsWith("Tool result error (is_error=true):")&&(d=!0,b=b.replace(/^Tool result error \(is_error=true\):\n?/,"")),c.push({type:"tool_result",tool_use_id:a.tool_call_id,content:b,...d&&{is_error:!0}})}else if("user"===a.role){if("string"==typeof a.content)a.content&&c.push({type:"text",text:a.content});else if(Array.isArray(a.content)){for(let b of a.content)if("text"===b.type&&b.text)c.push({type:"text",text:b.text});else if("tool_result"===b.type)c.push({type:"tool_result",tool_use_id:b.tool_use_id,content:b.content,...b.is_error&&{is_error:b.is_error}});else if("image_url"===b.type){let a=b.image_url.url,d=a.match(/^data:([^;]+);base64,(.+)$/);d?c.push({type:"image",source:{type:"base64",media_type:d[1],data:d[2]}}):(a.startsWith("http://")||a.startsWith("https://"))&&c.push({type:"image",source:{type:"url",url:a}})}else if("image"===b.type&&b.source)c.push({type:"image",source:b.source});else if("input_audio"===b.type&&b.input_audio?.data){let a=String(b.input_audio.format||"wav").toLowerCase();c.push({type:"audio",source:{type:"base64",media_type:"mp3"===a?"audio/mpeg":`audio/${a}`,data:b.input_audio.data}})}}}else if("assistant"===a.role){if(Array.isArray(a.content)){for(let b of a.content)if("text"===b.type&&b.text)c.push({type:"text",text:b.text});else if("tool_use"===b.type)c.push({type:"tool_use",id:b.id,name:b.name,input:b.input});else if("thinking"===b.type){let{cache_control:a,...d}=b;c.push(d)}else if("redacted_thinking"===b.type){let{cache_control:a,...d}=b;c.push(d)}}else if(a.content){let b="string"==typeof a.content?a.content:k(a.content);b&&c.push({type:"text",text:b})}if("string"==typeof a.reasoning_content&&a.reasoning_content&&c.unshift({type:"thinking",thinking:a.reasoning_content}),a.tool_calls&&Array.isArray(a.tool_calls)){for(let b of a.tool_calls)if("function"===b.type){let a=""+b.function.name;c.push({type:"tool_use",id:b.id,name:a,input:function(a){if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return a}}(b.function.arguments)})}}}return c}(b,l),g=f.some(a=>"tool_use"===a.type);if(f.some(a=>"tool_result"===a.type)){let b=f.filter(a=>"tool_result"===a.type),g=f.filter(a=>"tool_result"!==a.type);e(),b.length>0&&m.messages.push({role:"user",content:b}),g.length>0&&(a=c,d.push(...g));continue}a!==c&&(e(),a=c),d.push(...f),g&&e()}e();for(let a=m.messages.length-1;a>=0;a--){let b=m.messages[a];if("assistant"===b.role&&Array.isArray(b.content)&&b.content.length>0){let a=["text","tool_use","tool_result","image"];for(let c=b.content.length-1;c>=0;c--){let d=b.content[c];if(a.includes(d.type)){d.cache_control={type:"ephemeral"};break}}break}}}if(b.response_format){let a=b.response_format;if("json_schema"===a.type&&a.json_schema?.schema){let b=JSON.stringify(a.json_schema.schema,null,2);n.push(`You must respond with valid JSON that strictly follows this JSON schema:
6
+ ${f(e.content)}`});continue}if("tool"===e.role){let a=f(e.content),d=e.tool_call_id||"",g=c.get(d)||{},i=e.name||g.name||"tool";b.push({role:"user",content:h(i,d,a)});continue}if("user"===e.role||"assistant"===e.role){if("user"===e.role&&Array.isArray(e.content)){let a=[];for(let b of e.content)if(b&&"object"==typeof b){if("text"===b.type){"string"==typeof b.text&&a.push(b.text||"");continue}if("tool_result"===b.type){let d=b.tool_use_id||"",e=c.get(d)||c.get(i(d)),g=e?.name||"tool",j=f(b.content);a.push(h(g,d,j))}else{let c=f([b]);c&&a.push(c)}}let d=a.filter(Boolean).join("\n");d&&b.push({role:"user",content:d});continue}let a=f(e.content);if("assistant"===e.role&&e.tool_calls&&e.tool_calls.length>0){let c={role:"assistant",content:a||""};c.tool_calls=e.tool_calls.map(a=>{let{index:b,...c}=a||{};return c}),b.push(c)}else if("assistant"===e.role&&Array.isArray(e.content)){let c=e.content.filter(a=>a?.type==="tool_use").map(a=>({id:a.id||"",type:"function",function:{name:a.name||"tool",arguments:JSON.stringify(a.input||{})}})).filter(a=>a.id);c.length>0?b.push({role:"assistant",content:a||"",tool_calls:c}):a&&b.push({role:"assistant",content:a})}else a&&b.push({role:e.role,content:a})}}return b}(b.messages||[]),{user:g,metadata:j,tool_choice:k,stream_options:l,system:m,...n}=b;return{...n,messages:e,max_tokens:b.max_tokens??b.max_output_tokens??32e3}}(0,d.kz)(e.h.OPENAI,e.h.CURSOR,j,null)},14170:(a,b,c)=>{c.d(b,{h:()=>d,t:()=>e});let d={OPENAI:"openai",OPENAI_RESPONSES:"openai-responses",OPENAI_RESPONSE:"openai-response",CLAUDE:"claude",GEMINI:"gemini",GEMINI_CLI:"gemini-cli",VERTEX:"vertex",CODEX:"codex",ANTIGRAVITY:"antigravity",KIRO:"kiro",CURSOR:"cursor",OLLAMA:"ollama",COMMANDCODE:"commandcode"};function e(a,b){return a.includes("/v1/responses")?d.OPENAI_RESPONSES:a.includes("/v1/messages")?d.CLAUDE:a.includes("/v1/chat/completions")&&Array.isArray(b?.input)?d.OPENAI:null}},19979:(a,b,c)=>{c.r(b),c.d(b,{openaiToClaudeRequest:()=>j,openaiToClaudeRequestForAntigravity:()=>m});var d=c(33110),e=c(14170),f=c(75924),g=c(3156),h=c(2636),i=c(62268);function j(a,b,c,d=null,e=null){let m=new Map,n={model:a,max_tokens:(0,g.M)(b),stream:c};void 0!==b.temperature&&(n.temperature=b.temperature),n.messages=[];let o=[];if(b.messages&&Array.isArray(b.messages)){let a;for(let a of b.messages)"system"===a.role&&o.push("string"==typeof a.content?a.content:l(a.content));let c=b.messages.filter(a=>"system"!==a.role),d=[],e=()=>{a&&d.length>0&&(n.messages.push({role:a,content:d}),d=[])};for(let b of c){let c="user"===b.role||"tool"===b.role?"user":"assistant",f=function(a,b=new Map){let c=[];if("tool"===a.role){let b=a.content,d=!0===a.is_error;"string"==typeof b&&b.startsWith("Tool result error (is_error=true):")&&(d=!0,b=b.replace(/^Tool result error \(is_error=true\):\n?/,"")),c.push({type:"tool_result",tool_use_id:a.tool_call_id,content:b,...d&&{is_error:!0}})}else if("user"===a.role){if("string"==typeof a.content)a.content&&c.push({type:"text",text:a.content});else if(Array.isArray(a.content)){for(let b of a.content)if("text"===b.type&&b.text)c.push({type:"text",text:b.text});else if("tool_result"===b.type)c.push({type:"tool_result",tool_use_id:b.tool_use_id,content:b.content,...b.is_error&&{is_error:b.is_error}});else if("image_url"===b.type){let a=b.image_url.url,d=a.match(/^data:([^;]+);base64,(.+)$/);d?c.push({type:"image",source:{type:"base64",media_type:d[1],data:d[2]}}):(a.startsWith("http://")||a.startsWith("https://"))&&c.push({type:"image",source:{type:"url",url:a}})}else if("image"===b.type&&b.source)c.push({type:"image",source:b.source});else if("input_audio"===b.type&&b.input_audio?.data){let a=String(b.input_audio.format||"wav").toLowerCase();c.push({type:"audio",source:{type:"base64",media_type:"mp3"===a?"audio/mpeg":`audio/${a}`,data:b.input_audio.data}})}}}else if("assistant"===a.role){if(Array.isArray(a.content)){for(let b of a.content)if("text"===b.type&&b.text)c.push({type:"text",text:b.text});else if("tool_use"===b.type)c.push({type:"tool_use",id:b.id,name:b.name,input:b.input});else if("thinking"===b.type){let{cache_control:a,...d}=b;c.push(d)}else if("redacted_thinking"===b.type){let{cache_control:a,...d}=b;c.push(d)}}else if(a.content){let b="string"==typeof a.content?a.content:l(a.content);b&&c.push({type:"text",text:b})}if("string"==typeof a.reasoning_content&&a.reasoning_content&&c.unshift({type:"thinking",thinking:a.reasoning_content}),a.tool_calls&&Array.isArray(a.tool_calls)){for(let b of a.tool_calls)if("function"===b.type){let a=""+b.function.name;c.push({type:"tool_use",id:b.id,name:a,input:function(a){if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return a}}(b.function.arguments)})}}}return c}(b,m),g=f.some(a=>"tool_use"===a.type);if(f.some(a=>"tool_result"===a.type)){let b=f.filter(a=>"tool_result"===a.type),g=f.filter(a=>"tool_result"!==a.type);e(),b.length>0&&n.messages.push({role:"user",content:b}),g.length>0&&(a=c,d.push(...g));continue}a!==c&&(e(),a=c),d.push(...f),g&&e()}e();for(let a=n.messages.length-1;a>=0;a--){let b=n.messages[a];if("assistant"===b.role&&Array.isArray(b.content)&&b.content.length>0){let a=["text","tool_use","tool_result","image"];for(let c=b.content.length-1;c>=0;c--){let d=b.content[c];if(a.includes(d.type)){d.cache_control={type:"ephemeral"};break}}break}}}if(b.response_format){let a=b.response_format;if("json_schema"===a.type&&a.json_schema?.schema){let b=JSON.stringify(a.json_schema.schema,null,2);o.push(`You must respond with valid JSON that strictly follows this JSON schema:
7
7
  \`\`\`json
8
8
  ${b}
9
9
  \`\`\`
10
- Respond ONLY with the JSON object, no other text.`)}else"json_object"===a.type&&n.push("You must respond with valid JSON. Respond ONLY with a JSON object, no other text.")}let o=[];if((null===e||"claude"===e)&&o.push({type:"text",text:f.Co}),n.length>0&&o.push({type:"text",text:n.join("\n"),cache_control:{type:"ephemeral",ttl:"1h"}}),o.length>0&&(m.system=o),b.tools&&Array.isArray(b.tools)){for(let a of(m.tools=[],b.tools)){let b=a.type;if(b&&"function"!==b){m.tools.push(a);continue}let c="function"===b&&a.function?a.function:a,d=c.name,e=""+d;l.set(e,d),m.tools.push({name:e,description:c.description||"",input_schema:(0,h.e)(c.parameters||c.input_schema||{type:"object",properties:{},required:[]})})}m.tools.length>0&&(m.tools[m.tools.length-1].cache_control={type:"ephemeral",ttl:"1h"})}if(b.tool_choice&&(m.tool_choice=function(a){if(!a)return{type:"auto"};if("string"==typeof a)return"required"===a?{type:"any"}:"none"===a?{type:"none"}:{type:"auto"};if("object"==typeof a){if(a.function?.name)return{type:"tool",name:a.function.name};if(j.has(a.type))return a}return{type:"auto"}}(b.tool_choice)),b.thinking&&(m.thinking={type:b.thinking.type||"enabled",...b.thinking.budget_tokens&&{budget_tokens:b.thinking.budget_tokens},...b.thinking.max_tokens&&{max_tokens:b.thinking.max_tokens}}),b.reasoning_effort&&!m.thinking){let a={none:0,low:4096,medium:8192,high:16384,xhigh:32768}[b.reasoning_effort.toLowerCase()];0===a||a&&(m.thinking={type:"enabled",budget_tokens:a})}return l.size>0&&(m._toolNameMap=l),m}let j=new Set(["auto","any","tool","none"]);function k(a){return"string"==typeof a?a:Array.isArray(a)?a.filter(a=>"text"===a.type).map(a=>a.text).join("\n"):""}function l(a,b,c){let d=i(a,b,c);return d.system&&Array.isArray(d.system)&&(d.system=d.system.filter(a=>!a.text||!a.text.includes("You are Claude Code")),0===d.system.length&&delete d.system),d.tools&&Array.isArray(d.tools)&&(d.tools=d.tools.map(a=>a.name&&a.name.startsWith("")?{...a,name:a.name.slice(0)}:a)),d.messages&&Array.isArray(d.messages)&&(d.messages=d.messages.map(a=>{if(!a.content||!Array.isArray(a.content))return a;let b=a.content.map(a=>"tool_use"===a.type&&a.name&&a.name.startsWith("")?{...a,name:a.name.slice(0)}:a);return{...a,content:b}})),d}(0,d.kz)(e.h.OPENAI,e.h.CLAUDE,i,null)},29675:(a,b,c)=>{c.r(b),c.d(b,{claudeToOpenAIResponse:()=>g});var d=c(33110),e=c(14170);function f(a,b,c=null){return{id:`chatcmpl-${a.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:a.model,choices:[{index:0,delta:b,finish_reason:c}]}}function g(a,b){if(!a)return null;let c=[];switch(a.type){case"message_start":b.messageId=a.message?.id||`msg_${Date.now()}`,b.model=a.message?.model,b.toolCallIndex=0,c.push(f(b,{role:"assistant"}));break;case"content_block_start":{let d=a.content_block;if(d?.type==="server_tool_use"){b.serverToolBlockIndex=a.index;break}if(d?.type==="text")b.textBlockStarted=!0;else if(d?.type==="thinking")b.inThinkingBlock=!0,b.currentBlockIndex=a.index,c.push(f(b,{content:"<think>"}));else if(d?.type==="tool_use"){let e=b.toolCallIndex++,g=b.toolNameMap?.get(d.name)||d.name,h={index:e,id:d.id,type:"function",function:{name:g,arguments:""}};b.toolCalls.set(a.index,h),c.push(f(b,{tool_calls:[h]}))}break}case"content_block_delta":{if(a.index===b.serverToolBlockIndex)break;let d=a.delta;if(d?.type==="text_delta"&&d.text)c.push(f(b,{content:d.text}));else if(d?.type==="thinking_delta"&&d.thinking)c.push(f(b,{reasoning_content:d.thinking}));else if(d?.type==="input_json_delta"&&d.partial_json){let e=b.toolCalls.get(a.index);e&&(e.function.arguments+=d.partial_json,c.push(f(b,{tool_calls:[{index:e.index,id:e.id,function:{arguments:d.partial_json}}]})))}break}case"content_block_stop":if(a.index===b.serverToolBlockIndex){b.serverToolBlockIndex=-1;break}b.inThinkingBlock&&a.index===b.currentBlockIndex&&(c.push(f(b,{content:"</think>"})),b.inThinkingBlock=!1),b.textBlockStarted=!1,b.thinkingBlockStarted=!1;break;case"message_delta":if(a.usage&&"object"==typeof a.usage){let c="number"==typeof a.usage.input_tokens?a.usage.input_tokens:0,d="number"==typeof a.usage.output_tokens?a.usage.output_tokens:0,e="number"==typeof a.usage.cache_read_input_tokens?a.usage.cache_read_input_tokens:0,f="number"==typeof a.usage.cache_creation_input_tokens?a.usage.cache_creation_input_tokens:0,g=c+e+f;b.usage={prompt_tokens:g,completion_tokens:d,total_tokens:g+d,input_tokens:c,output_tokens:d},e>0&&(b.usage.cache_read_input_tokens=e),f>0&&(b.usage.cache_creation_input_tokens=f)}if(a.delta?.stop_reason){b.finishReason=function(a){switch(a){case"end_turn":case"stop_sequence":default:return"stop";case"max_tokens":return"length";case"tool_use":return"tool_calls"}}(a.delta.stop_reason);let d={id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{},finish_reason:b.finishReason}]};if(b.usage){d.usage={prompt_tokens:b.usage.prompt_tokens,completion_tokens:b.usage.completion_tokens,total_tokens:b.usage.total_tokens};let a=b.usage.cache_read_input_tokens,c=b.usage.cache_creation_input_tokens;(a>0||c>0)&&(d.usage.prompt_tokens_details={},a>0&&(d.usage.prompt_tokens_details.cached_tokens=a),c>0&&(d.usage.prompt_tokens_details.cache_creation_tokens=c))}c.push(d),b.finishReasonSent=!0}break;case"message_stop":if(!b.finishReasonSent){let a=b.finishReason||(b.toolCalls?.size>0?"tool_calls":"stop"),d=b.usage&&"object"==typeof b.usage?{usage:{prompt_tokens:b.usage.input_tokens||0,completion_tokens:b.usage.output_tokens||0,total_tokens:(b.usage.input_tokens||0)+(b.usage.output_tokens||0)}}:{};c.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{},finish_reason:a}],...d}),b.finishReasonSent=!0}}return c.length>0?c:null}(0,d.kz)(e.h.CLAUDE,e.h.OPENAI,null,g)},32546:(a,b,c)=>{c.r(b),c.d(b,{geminiToOpenAIResponse:()=>j});var d=c(33110),e=c(14170),f=c(4305),g=c(99239);function h(a,b){a.messageId||(a.messageId=b.responseId||`msg_${Date.now()}`,a.model=b.modelVersion||"gemini",a.functionIndex=0)}function i(a,b=null){if(!a.responseStarted||a.finishReasonSent)return null;let c=(0,f.Jm)(b,{format:e.h.GEMINI,hasToolCalls:(a.toolCalls?.size||0)>0});return a.finishReason=c,a.finishReasonSent=!0,{id:`chatcmpl-${a.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:a.model,choices:[{index:0,delta:{},finish_reason:c}],...a.usage?{usage:a.usage}:{}}}function j(a,b){let c,d;if(!a){if("antigravity"!==b.provider)return null;let a=i(b);return a?[a]:null}let e=a.response||a;if(!e)return null;if(c=e?.usageMetadata||a?.usageMetadata,(d=(0,g.i)(c))&&(b.usage=d),!e.candidates?.[0]){let a=e.promptFeedback?.blockReason;if(!(0,f.od)(a))return null;h(b,e),b.responseStarted=!0;let c=i(b,a);return c?[c]:null}let j=[],k=e.candidates[0],l=k.content;if(b.responseStarted=!0,b.messageId||(h(b,e),j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{role:"assistant"},finish_reason:null}]})),l?.parts)for(let a of l.parts){let c=a.thoughtSignature||a.thought_signature,d=!0===a.thought;if(c){let c=void 0!==a.text&&""!==a.text,e=!!a.functionCall;if(c&&j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:d?{reasoning_content:a.text}:{content:a.text},finish_reason:null}]}),e){let c=a.functionCall.name,d=b.toolNameMap?.get(c)||c,e=a.functionCall.args||{},f=b.functionIndex++,g={id:`${d}-${Date.now()}-${f}`,index:f,type:"function",function:{name:d,arguments:JSON.stringify(e)}};b.toolCalls.set(f,g),j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{tool_calls:[g]},finish_reason:null}]})}continue}if(void 0!==a.text&&""!==a.text&&j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{content:a.text},finish_reason:null}]}),a.functionCall){let c=a.functionCall.name,d=b.toolNameMap?.get(c)||c,e=a.functionCall.args||{},f=b.functionIndex++,g={id:`${d}-${Date.now()}-${f}`,index:f,type:"function",function:{name:d,arguments:JSON.stringify(e)}};b.toolCalls.set(f,g),j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{tool_calls:[g]},finish_reason:null}]})}let e=a.inlineData||a.inline_data;if(e?.data){let a=e.mimeType||e.mime_type||"image/png";j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{images:[{type:"image_url",image_url:{url:`data:${a};base64,${e.data}`}}]},finish_reason:null}]})}}if(k.finishReason){let a=i(b,k.finishReason);a&&j.push(a)}return j.length>0?j:null}(0,d.kz)(e.h.GEMINI,e.h.OPENAI,null,j),(0,d.kz)(e.h.GEMINI_CLI,e.h.OPENAI,null,j),(0,d.kz)(e.h.ANTIGRAVITY,e.h.OPENAI,null,j),(0,d.kz)(e.h.VERTEX,e.h.OPENAI,null,j)},33110:(a,b,c)=>{c.d(b,{Ws:()=>w,Ai:()=>x,nZ:()=>v,kz:()=>r,GH:()=>t,Y8:()=>u});var d=c(14170);let e=/^[a-zA-Z0-9_-]+$/;function f(a=0,b=0,c=""){let d=c?`_${c.replace(/[^a-zA-Z0-9_-]/g,"")}`:"";return`call_msg${a}_tc${b}${d}`}function g(a){if(!a||"string"!=typeof a)return null;let b=a.replace(/[^a-zA-Z0-9_-]/g,"");return b.length>0?b:null}var h=c(96281);c(3156);var i=c(55399),j=c(80662),k=c(2636);let l=new Set(["minimax","minimax-cn"]),m=["text","image_url","image","input_audio","audio_url"];var n=c(57647);let o=new Map,p=new Map,q=!1;function r(a,b,c,d){let e=`${a}:${b}`;c&&o.set(e,c),d&&p.set(e,d)}function s(){q||(q=!0,c(60983),c(19979),c(52638),c(97102),c(59611),c(54817),c(65377),c(70954),c(13595),c(74447),c(97821),c(29675),c(66159),c(32546),c(89475),c(4845),c(52830),c(65651),c(39551),c(47723))}function t(a,b,c,p,q=!0,r=null,u=null,v=null,w=[],x=null,y=null){s();let z=p;if(!function(a,b=[]){if(!b.length||!a.messages||!Array.isArray(a.messages))return;let c=new Set(["image_url","image"]),d=new Set(["audio_url","input_audio"]),e=a=>c.has(a)?b.includes("image"):!!d.has(a)&&b.includes("audio");for(let b of a.messages)Array.isArray(b.content)&&(b.content=b.content.filter(a=>!e(a.type)),0===b.content.length&&(b.content=""))}(z,w),(0,n.SZ)(z),!function(a){if(a.messages&&Array.isArray(a.messages))for(let b=0;b<a.messages.length;b++){let c=a.messages[b];if("assistant"===c.role&&c.tool_calls&&Array.isArray(c.tool_calls))for(let a=0;a<c.tool_calls.length;a++){let d=c.tool_calls[a];if(!d.id||!e.test(d.id)){let c=g(d.id);d.id=c||f(b,a,d.function?.name)}d.type||(d.type="function"),d.function?.arguments&&"string"!=typeof d.function.arguments&&(d.function.arguments=JSON.stringify(d.function.arguments))}if("tool"===c.role&&c.tool_call_id&&!e.test(c.tool_call_id)){let a=g(c.tool_call_id);c.tool_call_id=a||f(b,0)}if(Array.isArray(c.content))for(let a=0;a<c.content.length;a++){let d=c.content[a];if("tool_use"===d.type&&d.id&&!e.test(d.id)){let c=g(d.id);d.id=c||f(b,a,d.name)}if("tool_result"===d.type&&d.tool_use_id&&!e.test(d.tool_use_id)){let c=g(d.tool_use_id);d.tool_use_id=c||f(b,a)}}}}(z),!function(a){if(!a.messages||!Array.isArray(a.messages))return;let b=[];for(let c=0;c<a.messages.length;c++){let d=a.messages[c],e=a.messages[c+1];b.push(d);let f=function(a){if("assistant"!==a.role)return[];let b=[];if(a.tool_calls&&Array.isArray(a.tool_calls))for(let c of a.tool_calls)c.id&&b.push(c.id);if(Array.isArray(a.content))for(let c of a.content)"tool_use"===c.type&&c.id&&b.push(c.id);return b}(d);if(0!==f.length&&e&&!function(a,b){if(!a||!b.length)return!1;if("tool"===a.role&&a.tool_call_id)return b.includes(a.tool_call_id);if("user"===a.role&&Array.isArray(a.content)){for(let c of a.content)if("tool_result"===c.type&&b.includes(c.tool_use_id))return!0}return!1}(e,f))for(let a of f)b.push({role:"tool",tool_call_id:a,content:""})}a.messages=b}(z),a!==b){let e=a!==d.h.OPENAI&&b!==d.h.OPENAI?o.get(`${a}:${b}`):null;if(e)z=e(c,z,q,r,u);else{if(a!==d.h.OPENAI){let b=o.get(`${a}:${d.h.OPENAI}`);b&&(z=b(c,z,q,r),v?.logOpenAIRequest?.(z))}if(b!==d.h.OPENAI){let a=o.get(`${d.h.OPENAI}:${b}`);a&&(z=a(c,z,q,r,u))}}}if(b===d.h.OPENAI&&(z=function(a){if(!a.messages||!Array.isArray(a.messages))return a;if(a.messages=a.messages.map(a=>{if("developer"===a.role&&(a={...a,role:"system"}),"tool"===a.role||"assistant"===a.role&&a.tool_calls||"string"==typeof a.content)return a;if(Array.isArray(a.content)){let b=[];for(let c of a.content)if("thinking"!==c.type&&"redacted_thinking"!==c.type){if(m.includes(c.type)){let{signature:a,cache_control:d,...e}=c;b.push(e)}else if("tool_use"===c.type)continue;else if("tool_result"===c.type){let{signature:a,cache_control:d,...e}=c;b.push(e)}}return 0===b.length&&b.push({type:"text",text:""}),{...a,content:b}}return a}),a.messages=a.messages.filter(a=>"tool"===a.role||"assistant"===a.role&&!!a.tool_calls||("string"==typeof a.content?""!==a.content.trim():!Array.isArray(a.content)||a.content.some(a=>"text"===a.type&&a.text?.trim()||"text"!==a.type))),a.tools&&Array.isArray(a.tools)&&0===a.tools.length&&delete a.tools,a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&(a.tools=a.tools.map(a=>"function"===a.type&&a.function?a:a.name&&(a.input_schema||a.description)?{type:"function",function:{name:a.name,description:String(a.description||""),parameters:a.input_schema||{type:"object",properties:{}}}}:a.functionDeclarations&&Array.isArray(a.functionDeclarations)?a.functionDeclarations.map(a=>({type:"function",function:{name:a.name,description:String(a.description||""),parameters:a.parameters||{type:"object",properties:{}}}})):a).flat()),a.tool_choice&&"object"==typeof a.tool_choice){let b=a.tool_choice;"auto"===b.type?a.tool_choice="auto":"any"===b.type?a.tool_choice="required":"tool"===b.type&&b.name&&(a.tool_choice={type:"function",function:{name:b.name}})}return a}(z)),b===d.h.CLAUDE&&(z=function(a,b=null,c=null,d=null){if(l.has(b)&&delete a.output_config,a.system&&Array.isArray(a.system)&&(a.system=a.system.map((b,c)=>{let{cache_control:d,...e}=b;return c===a.system.length-1?{...e,cache_control:{type:"ephemeral",ttl:"1h"}}:e})),a.messages&&Array.isArray(a.messages)){let c=a.messages.length,d=[];for(let b=0;b<c;b++){let e=a.messages[b];if(Array.isArray(e.content))for(let a of e.content)delete a.cache_control;(b===c-1&&"assistant"===e.role||"string"==typeof e.content&&e.content.trim()||Array.isArray(e.content)&&e.content.some(a=>"text"===a.type&&a.text?.trim()||"tool_use"===a.type||"tool_result"===a.type||"image"===a.type||"audio"===a.type))&&d.push(e)}d=function(a){if(a.length<=1)return a;for(let b of a)if("assistant"===b.role&&Array.isArray(b.content)&&b.content.some(a=>"tool_use"===a.type)){let a=[],c=!1;for(let d of b.content)"tool_use"===d.type?(c=!0,a.push(d)):"thinking"===d.type||"redacted_thinking"===d.type?a.push(d):c||a.push(d);b.content=a}let b=[];for(let c of a){let a=b[b.length-1];if(a&&a.role===c.role){let b=Array.isArray(a.content)?a.content:[{type:"text",text:a.content}],d=Array.isArray(c.content)?c.content:[{type:"text",text:c.content}];a.content=[...b.filter(a=>"tool_result"===a.type),...d.filter(a=>"tool_result"===a.type),...b.filter(a=>"tool_result"!==a.type),...d.filter(a=>"tool_result"!==a.type)]}else{let a=Array.isArray(c.content)?c.content:[{type:"text",text:c.content}];b.push({role:c.role,content:[...a]})}}return b}(d),a.messages=d;let e=d[d.length-1],f=e?.role==="user",g=a.thinking?.type==="enabled"&&f,i=!1;for(let a=d.length-1;a>=0;a--){let c=d[a];if("assistant"===c.role&&Array.isArray(c.content)){if(!i&&c.content.length>0){for(let a=c.content.length-1;a>=0;a--){let b=c.content[a];if("thinking"!==b.type&&"redacted_thinking"!==b.type){b.cache_control={type:"ephemeral"};break}}i=!0}if("claude"===b||b?.startsWith("anthropic-compatible")){let a=!1,b=!1;for(let d of c.content)("thinking"===d.type||"redacted_thinking"===d.type)&&(d.signature=h.xr,b=!0),"tool_use"===d.type&&(a=!0);g&&!b&&a&&c.content.unshift({type:"thinking",thinking:".",signature:h.xr})}}}}if(a.tools&&Array.isArray(a.tools)&&("claude"!==b&&(a.tools=a.tools.filter(a=>!a.type||"function"===a.type)),a.tools=a.tools.map((b,c)=>{let{cache_control:d,...e}=b;return(e.input_schema&&"object"==typeof e.input_schema&&(e.input_schema=(0,k.e)(e.input_schema)),c===a.tools.length-1)?{...e,cache_control:{type:"ephemeral",ttl:"1h"}}:e}),0===a.tools.length&&(delete a.tools,delete a.tool_choice)),("claude"===b||b?.startsWith("anthropic-compatible"))&&c){let b=d?(0,j.RF)(d):null;a=(0,i.fO)(a,c,b)}return a}(z,u,r?.accessToken||r?.apiKey||null,x)),"claude"===u){let a=r?.accessToken||r?.apiKey||null;if(a?.includes("sk-ant-oat")){let{body:a,toolNameMap:b}=(0,i.Az)(z);z=a,b?.size>0&&(z._toolNameMap=b)}}return z}function u(a,b,c,e){if(s(),b===a)return[c];let f=[c],g=null,h=a!==d.h.OPENAI&&b!==d.h.OPENAI?p.get(`${a}:${b}`):null;if(h){let a=h(c,e);return a?Array.isArray(a)?a:[a]:[]}if(a!==d.h.OPENAI){let b=p.get(`${a}:${d.h.OPENAI}`);if(b){f=[];let a=b(c,e);a&&(g=f=Array.isArray(a)?a:[a])}}if(b!==d.h.OPENAI){let a=p.get(`${d.h.OPENAI}:${b}`);if(a){let b=[];for(let c of f){let d=a(c,e);d&&b.push(...Array.isArray(d)?d:[d])}f=b}}return g&&b!==d.h.OPENAI&&a!==d.h.OPENAI&&(f._openaiIntermediate=g),f}function v(a,b){return a!==b}function w(a){let b={messageId:null,model:null,textBlockStarted:!1,thinkingBlockStarted:!1,inThinkingBlock:!1,currentBlockIndex:null,toolCalls:new Map,finishReason:null,finishReasonSent:!1,usage:null,contentBlockIndex:-1};return a===d.h.OPENAI_RESPONSES?{...b,seq:0,responseId:`resp_${Date.now()}`,created:Math.floor(Date.now()/1e3),started:!1,nextOutputIndex:0,msgTextBuf:{},msgItemAdded:{},msgContentAdded:{},msgItemDone:{},msgOutputIndices:{},reasoningId:"",reasoningIndex:-1,reasoningBuf:"",reasoningPartAdded:!1,reasoningDone:!1,inThinking:!1,funcArgsBuf:{},funcNames:{},funcCallIds:{},funcArgsDone:{},funcItemDone:{},funcOutputIndices:{},completedSent:!1}:b}function x(){s()}},39551:(a,b,c)=>{c.r(b),c.d(b,{ollamaBodyToOpenAI:()=>j,ollamaToOpenAI:()=>g});var d=c(33110),e=c(14170),f=c(4305);function g(a,b){if(!a||"object"!=typeof a)return null;b.ollama||(b.ollama={id:`chatcmpl-${Date.now()}`,created:Math.floor(Date.now()/1e3),model:a.model||b.model});let{id:c,created:d,model:g}=b.ollama;if(a.done){let i=h(a);return{id:c,object:"chat.completion.chunk",created:d,model:g,choices:[{index:0,delta:{},finish_reason:(0,f.Jm)(a.done_reason,{format:e.h.OLLAMA,hasToolCalls:b.hadToolCalls})}],usage:i}}let j=a.message;if(!j)return null;let k="string"==typeof j.content?j.content:"",l="string"==typeof j.thinking?j.thinking:"",m=Array.isArray(j.tool_calls)?j.tool_calls:null;if(!k&&!l&&!m)return null;k&&(b.accumulatedContent=(b.accumulatedContent||"")+k),l&&(b.accumulatedThinking=(b.accumulatedThinking||"")+l);let n={};return k&&(n.content=k),l&&(n.reasoning_content=l),m&&(b.hadToolCalls=!0,n.tool_calls=i(m)),{id:c,object:"chat.completion.chunk",created:d,model:g,choices:[{index:0,delta:n,finish_reason:null}]}}function h(a){return{prompt_tokens:a.prompt_eval_count||0,completion_tokens:a.eval_count||0,total_tokens:(a.prompt_eval_count||0)+(a.eval_count||0)}}function i(a){return a.map((a,b)=>({index:a.function?.index??b,id:a.id||`call_${b}_${Date.now()}`,type:"function",function:{name:a.function?.name||"",arguments:"string"==typeof a.function?.arguments?a.function.arguments:JSON.stringify(a.function?.arguments||{})}}))}function j(a){let b=a.message||{},c=b.content||"",d=b.thinking||"",g=Array.isArray(b.tool_calls)?b.tool_calls:[],j={role:"assistant"};c&&(j.content=c),d&&(j.reasoning_content=d),g.length>0&&(j.tool_calls=i(g)),j.content||j.tool_calls||(j.content="");let k=(0,f.Jm)(a.done_reason,{format:e.h.OLLAMA,hasToolCalls:g.length>0});return{id:`chatcmpl-${Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:a.model||"ollama",choices:[{index:0,message:j,finish_reason:k}],usage:h(a)}}(0,d.kz)(e.h.OLLAMA,e.h.OPENAI,null,g)},42654:(a,b,c)=>{function d(a){return"string"==typeof a?[{type:"message",role:"user",content:[{type:"input_text",text:""===a.trim()?"...":a}]}]:Array.isArray(a)?0===a.length?[{type:"message",role:"user",content:[{type:"input_text",text:"..."}]}]:a:null}function e(a){var b;if(!a||"object"!=typeof a||!("input"in a))return a;let c={...a};c.messages=[],a.instructions&&c.messages.push({role:"system",content:a.instructions});let e=null,f="",g=d(a.input);if(!g)return a;let h=a=>{if(Array.isArray(a.summary)){let b=a.summary.map(a=>a?.text||"").filter(Boolean).join("\n");if(b)return b}return Array.isArray(a.content)?a.content.map(a=>a?.text||"").filter(Boolean).join("\n"):""};for(let a of g){let b=a.type||(a.role?"message":null);if("message"===b){e&&(c.messages.push(e),e=null);let b=Array.isArray(a.content)?a.content.map(a=>{if("input_text"===a.type||"output_text"===a.type)return{type:"text",text:a.text};if("input_image"===a.type){if(a.image_url)return{type:"image_url",image_url:{url:a.image_url,detail:a.detail||"auto"}};if(a.file_id)return{type:"text",text:`[Image file reference: ${a.file_id}]`}}return a}):a.content,d={role:a.role,content:b};"assistant"===a.role&&f&&(d.reasoning_content=f),f="",c.messages.push(d)}else if("function_call"===b)e||(e={role:"assistant",content:null,tool_calls:[]}),e.tool_calls.push({id:a.call_id,type:"function",function:{name:"string"==typeof a.name&&a.name.trim()?a.name.trim():"_unknown",arguments:"string"==typeof a.arguments?a.arguments:JSON.stringify(a.arguments??{})}}),f&&(e.reasoning_content=f,f="");else if("function_call_output"===b)e&&(c.messages.push(e),e=null),c.messages.push({role:"tool",tool_call_id:a.call_id,content:"string"==typeof a.output?a.output:JSON.stringify(a.output)});else if("reasoning"===b){let b=h(a);b&&(f=f?`${f}
11
- ${b}`:b);continue}}e&&c.messages.push(e),a.tools&&Array.isArray(a.tools)&&(c.tools=a.tools.map(a=>{var b;if(a.function)return a;let c="string"==typeof a.name?a.name.trim():"";return c?{type:"function",function:{name:c,description:String(a.description||""),parameters:(b=a.parameters)?"object"!==b.type||b.properties?b:{...b,properties:{}}:{type:"object",properties:{}},strict:a.strict}}:null}).filter(Boolean)),void 0!==a.max_output_tokens&&void 0===c.max_tokens&&(c.max_tokens=a.max_output_tokens),"string"==typeof a.reasoning?.effort&&void 0===c.reasoning_effort&&(c.reasoning_effort=a.reasoning.effort);let i=function(a){if(!a||"object"!=typeof a)return null;if("json_schema"!==a.type)return{...a};let{type:b,name:c,description:d,schema:e,strict:f}=a;return{type:b,json_schema:{...void 0!==c&&{name:c},...void 0!==d&&{description:d},...void 0!==e&&{schema:e},...void 0!==f&&{strict:f}}}}(a.text?.format);return i&&(c.response_format=i),c.tool_choice=(b=a.tool_choice)&&"object"==typeof b&&!b.function?"function"===b.type&&"string"==typeof b.name&&b.name.trim()?{type:"function",function:{name:b.name.trim()}}:b:b,delete c.input,delete c.instructions,delete c.include,delete c.prompt_cache_key,delete c.store,delete c.reasoning,delete c.text,delete c.max_output_tokens,c}c.d(b,{F:()=>e,m:()=>d})},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}},47723:(a,b,c)=>{c.r(b),c.d(b,{convertCommandCodeToOpenAI:()=>h});var d=c(33110),e=c(14170),f=c(4305);function g(a,b,c=null){return{id:a.responseId,object:"chat.completion.chunk",created:a.created,model:a.model,choices:[{index:0,delta:b,finish_reason:c}]}}function h(a,b){var c;if(!a)return null;if(a&&"object"==typeof a&&"chat.completion.chunk"===a.object)return a;let d=a;if("string"==typeof a){let b=a.trim();if(!b)return null;let c=b.startsWith("data:")?b.slice(5).trim():b;if(!c||"[DONE]"===c)return null;try{d=JSON.parse(c)}catch{return null}}if(!d||"object"!=typeof d||!d.type)return null;c=d.model,b.responseId||(b.responseId=`chatcmpl-${Date.now()}`,b.created=Math.floor(Date.now()/1e3),b.model=b.model||c||"commandcode",b.chunkIndex=0,b.toolIndex=0,b.toolIndexById=new Map,b.openTools=new Set,b.openText=!1,b.finishReason=null,b.finishReasonSent=!1,b.usage=null);let h=[];switch(d.type){case"text-delta":{let a=d.text||d.delta||"";if(!a)break;let c=0===b.chunkIndex?{role:"assistant",content:a}:{content:a};b.chunkIndex++,b.openText=!0,h.push(g(b,c));break}case"reasoning-delta":{let a=d.text||"";if(!a)break;let c=0===b.chunkIndex?{role:"assistant",reasoning_content:a}:{reasoning_content:a};b.chunkIndex++,h.push(g(b,c));break}case"tool-input-start":{let a=d.id||d.toolCallId||`call_${Date.now()}_${b.toolIndex}`,c=b.toolIndexById.get(a);null==c&&(c=b.toolIndex++,b.toolIndexById.set(a,c)),b.openTools.add(a);let e={...0===b.chunkIndex?{role:"assistant"}:{},tool_calls:[{index:c,id:a,type:"function",function:{name:d.toolName||"",arguments:""}}]};b.chunkIndex++,h.push(g(b,e));break}case"tool-input-delta":{let a=d.id||d.toolCallId,c=b.toolIndexById.get(a);if(null==c)break;let e={tool_calls:[{index:c,function:{arguments:d.delta||d.inputTextDelta||""}}]};h.push(g(b,e));break}case"tool-call":{let a=d.toolCallId;if(b.toolIndexById.has(a))break;let c=b.toolIndex++;b.toolIndexById.set(a,c);let e="string"==typeof d.input?d.input:JSON.stringify(d.input??{}),f={...0===b.chunkIndex?{role:"assistant"}:{},tool_calls:[{index:c,id:a,type:"function",function:{name:d.toolName||"",arguments:e}}]};b.chunkIndex++,h.push(g(b,f));break}case"finish-step":b.finishReason=(0,f.Jm)(d.finishReason,{format:e.h.COMMANDCODE,hasToolCalls:b.toolIndex>0}),d.usage&&(b.usage=d.usage);break;case"finish":{if(b.finishReasonSent)break;let a=b.finishReason||(0,f.Jm)(d.finishReason,{format:e.h.COMMANDCODE,hasToolCalls:b.toolIndex>0}),c=g(b,{},a),i=d.totalUsage||b.usage;i&&(c.usage={prompt_tokens:i.inputTokens??0,completion_tokens:i.outputTokens??0,total_tokens:i.totalTokens??(i.inputTokens??0)+(i.outputTokens??0)}),b.finishReasonSent=!0,h.push(c);break}case"error":{b.finishReason="stop";let a=d.error??d.message??"unknown",c="string"==typeof a?a:JSON.stringify(a);h.push(g(b,{content:`
10
+ Respond ONLY with the JSON object, no other text.`)}else"json_object"===a.type&&o.push("You must respond with valid JSON. Respond ONLY with a JSON object, no other text.")}let p=[];if((null===e||"claude"===e)&&p.push({type:"text",text:f.Co}),o.length>0&&p.push({type:"text",text:o.join("\n"),cache_control:{type:"ephemeral",ttl:"1h"}}),p.length>0&&(n.system=p),b.tools&&Array.isArray(b.tools)){for(let a of(n.tools=[],b.tools)){let b=a.type;if(b&&"function"!==b){n.tools.push(a);continue}let c="function"===b&&a.function?a.function:a,d=c.name,e=""+d;m.set(e,d),n.tools.push({name:e,description:c.description||"",input_schema:(0,h.e)(c.parameters||c.input_schema||{type:"object",properties:{},required:[]})})}n.tools.length>0&&(n.tools[n.tools.length-1].cache_control={type:"ephemeral",ttl:"1h"})}if(b.tool_choice&&(n.tool_choice=function(a){if(!a)return{type:"auto"};if("string"==typeof a)return"required"===a?{type:"any"}:"none"===a?{type:"none"}:{type:"auto"};if("object"==typeof a){if(a.function?.name)return{type:"tool",name:a.function.name};if(k.has(a.type))return a}return{type:"auto"}}(b.tool_choice)),b.thinking&&(n.thinking={type:b.thinking.type||"enabled",...b.thinking.budget_tokens&&{budget_tokens:b.thinking.budget_tokens},...b.thinking.max_tokens&&{max_tokens:b.thinking.max_tokens}}),b.reasoning_effort&&!n.thinking){let a={none:0,low:4096,medium:8192,high:16384,xhigh:32768}[b.reasoning_effort.toLowerCase()];0===a||a&&(n.thinking={type:"enabled",budget_tokens:a})}if(b.thinking?.type==="adaptive"){let a=(0,i.uA)({thinking:b.thinking,output_config:b.output_config,reasoning_effort:b.reasoning_effort});n.thinking=a.thinking,n.output_config=a.output_config}return m.size>0&&(n._toolNameMap=m),n}let k=new Set(["auto","any","tool","none"]);function l(a){return"string"==typeof a?a:Array.isArray(a)?a.filter(a=>"text"===a.type).map(a=>a.text).join("\n"):""}function m(a,b,c){let d=j(a,b,c);return d.system&&Array.isArray(d.system)&&(d.system=d.system.filter(a=>!a.text||!a.text.includes("You are Claude Code")),0===d.system.length&&delete d.system),d.tools&&Array.isArray(d.tools)&&(d.tools=d.tools.map(a=>a.name&&a.name.startsWith("")?{...a,name:a.name.slice(0)}:a)),d.messages&&Array.isArray(d.messages)&&(d.messages=d.messages.map(a=>{if(!a.content||!Array.isArray(a.content))return a;let b=a.content.map(a=>"tool_use"===a.type&&a.name&&a.name.startsWith("")?{...a,name:a.name.slice(0)}:a);return{...a,content:b}})),d}(0,d.kz)(e.h.OPENAI,e.h.CLAUDE,j,null)},22391:(a,b,c)=>{c.d(b,{C0:()=>j,GF:()=>r});var d=c(71553),e=c.n(d),f=c(77030),g=c.n(f);let h=new Set(["http:","https:"]),i=new Set(["public","trusted-lan","legacy-trusted","loopback-service"]);function j(a){let b=String(a||"").toLowerCase().replace(/^::ffff:/,"");if(g().isIPv4(b)){let[a,c,d]=b.split(".").map(Number);return 0===a||10===a||127===a||100===a&&c>=64&&c<=127||169===a&&254===c||172===a&&c>=16&&c<=31||192===a&&(0===c||168===c||88===c&&99===d)||198===a&&(18===c||19===c||51===c&&100===d)||203===a&&0===c&&113===d||a>=224}if(!g().isIPv6(b))return!0;let[c,d="0"]=b.split(":"),e=Number.parseInt(c,16),f=Number.parseInt(d,16);return"::"===b||"::1"===b||e<8192||e>16383||8193===e&&(f<=511||3512===f)||8194===e||16383===e}function k(a){return a?.reason?a.reason:Object.assign(Error("The operation was aborted"),{name:"AbortError"})}async function l(a,b,c){if(b?.aborted)throw k(b);let d=Promise.resolve(c(a,{all:!0}));return b?new Promise((a,c)=>{let e=!1,f=(d,f)=>{e||(e=!0,b.removeEventListener("abort",g),d?c(d):a(f))},g=()=>f(k(b));b.addEventListener("abort",g,{once:!0}),d.then(a=>f(null,a),a=>f(a))}):d}function m(a){return a.split(".").reduce((a,b)=>a<<8n|BigInt(b),0n)}function n(a){return(function(a){let[b="",c=""]=a.toLowerCase().replace(/^\[|\]$/g,"").split("::"),d=b?b.split(":"):[],e=c?c.split(":"):[],f=8-d.length-e.length;return[...d,...Array(Math.max(0,f)).fill("0"),...e].map(a=>Number.parseInt(a||"0",16))})(a).reduce((a,b)=>a<<16n|BigInt(b),0n)}function o(a,b){let[c,d]=b.split("/"),e=g().isIP(a);if(!e||e!==g().isIP(c))return!1;let f=4===e?32:128,h=Number(d);if(!Number.isInteger(h)||h<0||h>f)return!1;let i=BigInt(f-h);return(4===e?m(a):n(a))>>i==(4===e?m(c):n(c))>>i}function p(a){return a.port?Number(a.port):"https:"===a.protocol?443:80}function q(a,{httpsOnly:b=!1,expectedOrigin:c}={}){let d;try{d=new URL(a)}catch{throw Error("URL is not an allowed HTTP endpoint")}if(!h.has(d.protocol)||b&&"https:"!==d.protocol||d.username||d.password||c&&d.origin!==c)throw Error("URL is not an allowed HTTP endpoint");return d}async function r(a,b={}){let c=b.trust||"public";if(!i.has(c))throw Error("Unknown outbound target trust mode");let d=q(a,b),f=await l(d.hostname,b.signal,b.lookup||e().lookup);if(!Array.isArray(f)||0===f.length||f.some(({address:a})=>!g().isIP(a)))throw Error("URL did not resolve to valid addresses");let h=null;if("public"===c&&f.some(({address:a})=>j(a)))throw Error("URL must resolve only to public addresses");if("trusted-lan"===c&&!(h=function(a,b,c){let d=a.hostname.toLowerCase().replace(/^\[|\]$/g,""),e=p(a);for(let a of Array.isArray(c)?c:[]){let c;try{c=function(a){if(!a||"object"!=typeof a)throw Error("Trusted target must be an object");let b="string"==typeof a.id?a.id.trim():"",c="string"==typeof a.host?a.host.trim().toLowerCase().replace(/^\[|\]$/g,""):"",d="string"==typeof a.cidr?a.cidr.trim().toLowerCase():"";if(!b||!c&&!d)throw Error("Trusted target requires id and host or CIDR");if(c&&(c.includes("/")||c.includes("@")||c.includes(":"))&&!g().isIP(c))throw Error("Trusted target host is invalid");if(d&&!o(d.split("/")[0],d))throw Error("Trusted target CIDR is invalid");let e=[...new Set((Array.isArray(a.ports)?a.ports:[]).map(Number).filter(a=>Number.isInteger(a)&&a>=1&&a<=65535))].sort((a,b)=>a-b);if(0===e.length)throw Error("Trusted target requires an allowed port");return Object.freeze({id:b,host:c||null,cidr:d||null,ports:Object.freeze(e)})}(a)}catch{continue}if(c.ports.includes(e)&&(c.host&&c.host===d||c.cidr&&b.every(({address:a})=>o(a,c.cidr))))return c}return null}(d,f,b.trustedTargets)))throw Error("URL must match an explicitly trusted host and port");if("legacy-trusted"===c){let a=q(b.legacyOrigin||"").origin;if(d.origin!==a)throw Error("URL must preserve the saved legacy origin")}if("loopback-service"===c){let a=q(b.expectedOrigin||"").origin;if(d.origin!==a||f.some(({address:a})=>{let b=a.toLowerCase().replace(/^::ffff:/,"");return"::1"!==b&&!b.startsWith("127.")}))throw Error("URL must match the owned loopback service")}return Object.freeze({url:d.href,trust:c,origin:d.origin,pinnedAddresses:Object.freeze(f.map(({address:a})=>a)),pinnedAddressFamilies:Object.freeze(f.map(({family:a,address:b})=>a||g().isIP(b))),allowedPorts:Object.freeze(h?[...h.ports]:[p(d)]),trustedTargetId:h?.id||null})}},23004:(a,b,c)=>{c.d(b,{C0:()=>e.C0,WO:()=>f,aO:()=>h,op:()=>g});var d=c(47774),e=c(22391);async function f(a,b){if(Number(a.headers.get("content-length"))>b)throw await a.body?.cancel?.(),Error("Response body is too large");let c=[],d=0;for await(let e of a.body){if((d+=e.byteLength)>b)throw Error("Response body is too large");c.push(e)}return JSON.parse(Buffer.concat(c).toString("utf8"))}async function g(a,b={}){if(!a||!Array.isArray(a.pinnedAddresses)||0===a.pinnedAddresses.length||!a.url)throw Error("A resolved outbound target decision is required");let c=new URL(a.url),e=a.pinnedAddresses.map((b,c)=>({address:b,family:a.pinnedAddressFamilies?.[c]||(b.includes(":")?6:4)})),f=0,h=new d.g6({connect:{lookup(a,b,c){let d=e.filter(({family:a})=>!b.family||a===b.family),g=d.length?d:e;if(b.all)return c(null,g);let h=g[f++%g.length];c(null,h.address,h.family)}}});try{let a=await (0,d.hd)(c,{...b,redirect:"error",dispatcher:h}),e=function(a,b,c){if(!a.body?.getReader)return null;let d=a.body.getReader(),e=null,f=!1,g=()=>{f||(f=!0,d.releaseLock())},h=()=>(c?.removeEventListener("abort",i),e||=Promise.resolve(b.close()).catch(()=>{})),i=()=>{h()};c?.aborted?i():c?.addEventListener("abort",i,{once:!0});let j=new Response(new ReadableStream({async pull(a){try{let{done:b,value:c}=await d.read();if(!b)return void a.enqueue(c);g(),await h(),a.close()}catch(b){g(),await h(),a.error(b)}},async cancel(a){try{await d.cancel(a)}finally{g(),await h()}}}),{headers:a.headers,status:a.status,statusText:a.statusText});for(let b of["url","redirected","type"])Object.defineProperty(j,b,{configurable:!0,value:a[b]});return j}(a,h,b.signal);if(e)return e;return await h.close(),a}catch(a){throw await h.close(),a}}async function h(a,b={},c={}){return g(await (0,e.GF)(a,{...c,trust:c.trust||"public",signal:b.signal}),b)}},29675:(a,b,c)=>{c.r(b),c.d(b,{claudeToOpenAIResponse:()=>g});var d=c(33110),e=c(14170);function f(a,b,c=null){return{id:`chatcmpl-${a.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:a.model,choices:[{index:0,delta:b,finish_reason:c}]}}function g(a,b){if(!a)return null;let c=[];switch(a.type){case"message_start":b.messageId=a.message?.id||`msg_${Date.now()}`,b.model=a.message?.model,b.toolCallIndex=0,c.push(f(b,{role:"assistant"}));break;case"content_block_start":{let d=a.content_block;if(d?.type==="server_tool_use"){b.serverToolBlockIndex=a.index;break}if(d?.type==="text")b.textBlockStarted=!0;else if(d?.type==="thinking")b.inThinkingBlock=!0,b.currentBlockIndex=a.index,c.push(f(b,{content:"<think>"}));else if(d?.type==="tool_use"){let e=b.toolCallIndex++,g=b.toolNameMap?.get(d.name)||d.name,h={index:e,id:d.id,type:"function",function:{name:g,arguments:""}};b.toolCalls.set(a.index,h),c.push(f(b,{tool_calls:[h]}))}break}case"content_block_delta":{if(a.index===b.serverToolBlockIndex)break;let d=a.delta;if(d?.type==="text_delta"&&d.text)c.push(f(b,{content:d.text}));else if(d?.type==="thinking_delta"&&d.thinking)c.push(f(b,{reasoning_content:d.thinking}));else if(d?.type==="input_json_delta"&&d.partial_json){let e=b.toolCalls.get(a.index);e&&(e.function.arguments+=d.partial_json,c.push(f(b,{tool_calls:[{index:e.index,id:e.id,function:{arguments:d.partial_json}}]})))}break}case"content_block_stop":if(a.index===b.serverToolBlockIndex){b.serverToolBlockIndex=-1;break}b.inThinkingBlock&&a.index===b.currentBlockIndex&&(c.push(f(b,{content:"</think>"})),b.inThinkingBlock=!1),b.textBlockStarted=!1,b.thinkingBlockStarted=!1;break;case"message_delta":if(a.usage&&"object"==typeof a.usage){let c="number"==typeof a.usage.input_tokens?a.usage.input_tokens:0,d="number"==typeof a.usage.output_tokens?a.usage.output_tokens:0,e="number"==typeof a.usage.cache_read_input_tokens?a.usage.cache_read_input_tokens:0,f="number"==typeof a.usage.cache_creation_input_tokens?a.usage.cache_creation_input_tokens:0,g=c+e+f;b.usage={prompt_tokens:g,completion_tokens:d,total_tokens:g+d,input_tokens:c,output_tokens:d},e>0&&(b.usage.cache_read_input_tokens=e),f>0&&(b.usage.cache_creation_input_tokens=f)}if(a.delta?.stop_reason){b.finishReason=function(a){switch(a){case"end_turn":case"stop_sequence":default:return"stop";case"max_tokens":return"length";case"tool_use":return"tool_calls"}}(a.delta.stop_reason);let d={id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{},finish_reason:b.finishReason}]};if(b.usage){d.usage={prompt_tokens:b.usage.prompt_tokens,completion_tokens:b.usage.completion_tokens,total_tokens:b.usage.total_tokens};let a=b.usage.cache_read_input_tokens,c=b.usage.cache_creation_input_tokens;(a>0||c>0)&&(d.usage.prompt_tokens_details={},a>0&&(d.usage.prompt_tokens_details.cached_tokens=a),c>0&&(d.usage.prompt_tokens_details.cache_creation_tokens=c))}c.push(d),b.finishReasonSent=!0}break;case"message_stop":if(!b.finishReasonSent){let a=b.finishReason||(b.toolCalls?.size>0?"tool_calls":"stop"),d=b.usage&&"object"==typeof b.usage?{usage:{prompt_tokens:b.usage.input_tokens||0,completion_tokens:b.usage.output_tokens||0,total_tokens:(b.usage.input_tokens||0)+(b.usage.output_tokens||0)}}:{};c.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{},finish_reason:a}],...d}),b.finishReasonSent=!0}}return c.length>0?c:null}(0,d.kz)(e.h.CLAUDE,e.h.OPENAI,null,g)},32546:(a,b,c)=>{c.r(b),c.d(b,{geminiToOpenAIResponse:()=>j});var d=c(33110),e=c(14170),f=c(4305),g=c(99239);function h(a,b){a.messageId||(a.messageId=b.responseId||`msg_${Date.now()}`,a.model=b.modelVersion||"gemini",a.functionIndex=0)}function i(a,b=null){if(!a.responseStarted||a.finishReasonSent)return null;let c=(0,f.Jm)(b,{format:e.h.GEMINI,hasToolCalls:(a.toolCalls?.size||0)>0});return a.finishReason=c,a.finishReasonSent=!0,{id:`chatcmpl-${a.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:a.model,choices:[{index:0,delta:{},finish_reason:c}],...a.usage?{usage:a.usage}:{}}}function j(a,b){let c,d;if(!a){if("antigravity"!==b.provider)return null;let a=i(b);return a?[a]:null}let e=a.response||a;if(!e)return null;if(c=e?.usageMetadata||a?.usageMetadata,(d=(0,g.i)(c))&&(b.usage=d),!e.candidates?.[0]){let a=e.promptFeedback?.blockReason;if(!(0,f.od)(a))return null;h(b,e),b.responseStarted=!0;let c=i(b,a);return c?[c]:null}let j=[],k=e.candidates[0],l=k.content;if(b.responseStarted=!0,b.messageId||(h(b,e),j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{role:"assistant"},finish_reason:null}]})),l?.parts)for(let a of l.parts){let c=a.thoughtSignature||a.thought_signature,d=!0===a.thought;if(c){let c=void 0!==a.text&&""!==a.text,e=!!a.functionCall;if(c&&j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:d?{reasoning_content:a.text}:{content:a.text},finish_reason:null}]}),e){let c=a.functionCall.name,d=b.toolNameMap?.get(c)||c,e=a.functionCall.args||{},f=b.functionIndex++,g={id:`${d}-${Date.now()}-${f}`,index:f,type:"function",function:{name:d,arguments:JSON.stringify(e)}};b.toolCalls.set(f,g),j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{tool_calls:[g]},finish_reason:null}]})}continue}if(void 0!==a.text&&""!==a.text&&j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{content:a.text},finish_reason:null}]}),a.functionCall){let c=a.functionCall.name,d=b.toolNameMap?.get(c)||c,e=a.functionCall.args||{},f=b.functionIndex++,g={id:`${d}-${Date.now()}-${f}`,index:f,type:"function",function:{name:d,arguments:JSON.stringify(e)}};b.toolCalls.set(f,g),j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{tool_calls:[g]},finish_reason:null}]})}let e=a.inlineData||a.inline_data;if(e?.data){let a=e.mimeType||e.mime_type||"image/png";j.push({id:`chatcmpl-${b.messageId}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b.model,choices:[{index:0,delta:{images:[{type:"image_url",image_url:{url:`data:${a};base64,${e.data}`}}]},finish_reason:null}]})}}if(k.finishReason){let a=i(b,k.finishReason);a&&j.push(a)}return j.length>0?j:null}(0,d.kz)(e.h.GEMINI,e.h.OPENAI,null,j),(0,d.kz)(e.h.GEMINI_CLI,e.h.OPENAI,null,j),(0,d.kz)(e.h.ANTIGRAVITY,e.h.OPENAI,null,j),(0,d.kz)(e.h.VERTEX,e.h.OPENAI,null,j)},33110:(a,b,c)=>{c.d(b,{Ws:()=>w,Ai:()=>x,nZ:()=>v,kz:()=>r,GH:()=>t,Y8:()=>u});var d=c(14170);let e=/^[a-zA-Z0-9_-]+$/;function f(a=0,b=0,c=""){let d=c?`_${c.replace(/[^a-zA-Z0-9_-]/g,"")}`:"";return`call_msg${a}_tc${b}${d}`}function g(a){if(!a||"string"!=typeof a)return null;let b=a.replace(/[^a-zA-Z0-9_-]/g,"");return b.length>0?b:null}var h=c(96281);c(3156);var i=c(55399),j=c(80662),k=c(2636);let l=new Set(["minimax","minimax-cn"]),m=["text","image_url","image","input_audio","audio_url"];var n=c(57647);let o=new Map,p=new Map,q=!1;function r(a,b,c,d){let e=`${a}:${b}`;c&&o.set(e,c),d&&p.set(e,d)}function s(){q||(q=!0,c(60983),c(19979),c(52638),c(97102),c(59611),c(54817),c(65377),c(70954),c(13595),c(74447),c(97821),c(29675),c(66159),c(32546),c(89475),c(4845),c(52830),c(65651),c(39551),c(47723))}function t(a,b,c,p,q=!0,r=null,u=null,v=null,w=[],x=null,y=null){s();let z=p;if(!function(a,b=[]){if(!b.length||!a.messages||!Array.isArray(a.messages))return;let c=new Set(["image_url","image"]),d=new Set(["audio_url","input_audio"]),e=a=>c.has(a)?b.includes("image"):!!d.has(a)&&b.includes("audio");for(let b of a.messages)Array.isArray(b.content)&&(b.content=b.content.filter(a=>!e(a.type)),0===b.content.length&&(b.content=""))}(z,w),(0,n.SZ)(z),!function(a){if(a.messages&&Array.isArray(a.messages))for(let b=0;b<a.messages.length;b++){let c=a.messages[b];if("assistant"===c.role&&c.tool_calls&&Array.isArray(c.tool_calls))for(let a=0;a<c.tool_calls.length;a++){let d=c.tool_calls[a];if(!d.id||!e.test(d.id)){let c=g(d.id);d.id=c||f(b,a,d.function?.name)}d.type||(d.type="function"),d.function?.arguments&&"string"!=typeof d.function.arguments&&(d.function.arguments=JSON.stringify(d.function.arguments))}if("tool"===c.role&&c.tool_call_id&&!e.test(c.tool_call_id)){let a=g(c.tool_call_id);c.tool_call_id=a||f(b,0)}if(Array.isArray(c.content))for(let a=0;a<c.content.length;a++){let d=c.content[a];if("tool_use"===d.type&&d.id&&!e.test(d.id)){let c=g(d.id);d.id=c||f(b,a,d.name)}if("tool_result"===d.type&&d.tool_use_id&&!e.test(d.tool_use_id)){let c=g(d.tool_use_id);d.tool_use_id=c||f(b,a)}}}}(z),!function(a){if(!a.messages||!Array.isArray(a.messages))return;let b=[];for(let c=0;c<a.messages.length;c++){let d=a.messages[c],e=a.messages[c+1];b.push(d);let f=function(a){if("assistant"!==a.role)return[];let b=[];if(a.tool_calls&&Array.isArray(a.tool_calls))for(let c of a.tool_calls)c.id&&b.push(c.id);if(Array.isArray(a.content))for(let c of a.content)"tool_use"===c.type&&c.id&&b.push(c.id);return b}(d);if(0!==f.length&&e&&!function(a,b){if(!a||!b.length)return!1;if("tool"===a.role&&a.tool_call_id)return b.includes(a.tool_call_id);if("user"===a.role&&Array.isArray(a.content)){for(let c of a.content)if("tool_result"===c.type&&b.includes(c.tool_use_id))return!0}return!1}(e,f))for(let a of f)b.push({role:"tool",tool_call_id:a,content:""})}a.messages=b}(z),a!==b){let e=a!==d.h.OPENAI&&b!==d.h.OPENAI?o.get(`${a}:${b}`):null;if(e)z=e(c,z,q,r,u);else{if(a!==d.h.OPENAI){let b=o.get(`${a}:${d.h.OPENAI}`);b&&(z=b(c,z,q,r),v?.logOpenAIRequest?.(z))}if(b!==d.h.OPENAI){let a=o.get(`${d.h.OPENAI}:${b}`);a&&(z=a(c,z,q,r,u))}}}if(b===d.h.OPENAI&&(z=function(a){if(!a.messages||!Array.isArray(a.messages))return a;if(a.messages=a.messages.map(a=>{if("developer"===a.role&&(a={...a,role:"system"}),"tool"===a.role||"assistant"===a.role&&a.tool_calls||"string"==typeof a.content)return a;if(Array.isArray(a.content)){let b=[];for(let c of a.content)if("thinking"!==c.type&&"redacted_thinking"!==c.type){if(m.includes(c.type)){let{signature:a,cache_control:d,...e}=c;b.push(e)}else if("tool_use"===c.type)continue;else if("tool_result"===c.type){let{signature:a,cache_control:d,...e}=c;b.push(e)}}return 0===b.length&&b.push({type:"text",text:""}),{...a,content:b}}return a}),a.messages=a.messages.filter(a=>"tool"===a.role||"assistant"===a.role&&!!a.tool_calls||("string"==typeof a.content?""!==a.content.trim():!Array.isArray(a.content)||a.content.some(a=>"text"===a.type&&a.text?.trim()||"text"!==a.type))),a.tools&&Array.isArray(a.tools)&&0===a.tools.length&&delete a.tools,a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&(a.tools=a.tools.map(a=>"function"===a.type&&a.function?a:a.name&&(a.input_schema||a.description)?{type:"function",function:{name:a.name,description:String(a.description||""),parameters:a.input_schema||{type:"object",properties:{}}}}:a.functionDeclarations&&Array.isArray(a.functionDeclarations)?a.functionDeclarations.map(a=>({type:"function",function:{name:a.name,description:String(a.description||""),parameters:a.parameters||{type:"object",properties:{}}}})):a).flat()),a.tool_choice&&"object"==typeof a.tool_choice){let b=a.tool_choice;"auto"===b.type?a.tool_choice="auto":"any"===b.type?a.tool_choice="required":"tool"===b.type&&b.name&&(a.tool_choice={type:"function",function:{name:b.name}})}return a}(z)),b===d.h.CLAUDE&&(z=function(a,b=null,c=null,d=null){if(l.has(b)&&delete a.output_config,a.system&&Array.isArray(a.system)&&(a.system=a.system.map((b,c)=>{let{cache_control:d,...e}=b;return c===a.system.length-1?{...e,cache_control:{type:"ephemeral",ttl:"1h"}}:e})),a.messages&&Array.isArray(a.messages)){let c=a.messages.length,d=[];for(let b=0;b<c;b++){let e=a.messages[b];if(Array.isArray(e.content))for(let a of e.content)delete a.cache_control;(b===c-1&&"assistant"===e.role||"string"==typeof e.content&&e.content.trim()||Array.isArray(e.content)&&e.content.some(a=>"text"===a.type&&a.text?.trim()||"tool_use"===a.type||"tool_result"===a.type||"image"===a.type||"audio"===a.type))&&d.push(e)}d=function(a){if(a.length<=1)return a;for(let b of a)if("assistant"===b.role&&Array.isArray(b.content)&&b.content.some(a=>"tool_use"===a.type)){let a=[],c=!1;for(let d of b.content)"tool_use"===d.type?(c=!0,a.push(d)):"thinking"===d.type||"redacted_thinking"===d.type?a.push(d):c||a.push(d);b.content=a}let b=[];for(let c of a){let a=b[b.length-1];if(a&&a.role===c.role){let b=Array.isArray(a.content)?a.content:[{type:"text",text:a.content}],d=Array.isArray(c.content)?c.content:[{type:"text",text:c.content}];a.content=[...b.filter(a=>"tool_result"===a.type),...d.filter(a=>"tool_result"===a.type),...b.filter(a=>"tool_result"!==a.type),...d.filter(a=>"tool_result"!==a.type)]}else{let a=Array.isArray(c.content)?c.content:[{type:"text",text:c.content}];b.push({role:c.role,content:[...a]})}}return b}(d),a.messages=d;let e=d[d.length-1],f=e?.role==="user",g=a.thinking?.type==="enabled"&&f,i=!1;for(let a=d.length-1;a>=0;a--){let c=d[a];if("assistant"===c.role&&Array.isArray(c.content)){if(!i&&c.content.length>0){for(let a=c.content.length-1;a>=0;a--){let b=c.content[a];if("thinking"!==b.type&&"redacted_thinking"!==b.type){b.cache_control={type:"ephemeral"};break}}i=!0}if("claude"===b||b?.startsWith("anthropic-compatible")){let a=!1,b=!1;for(let d of c.content)("thinking"===d.type||"redacted_thinking"===d.type)&&(d.signature=h.xr,b=!0),"tool_use"===d.type&&(a=!0);g&&!b&&a&&c.content.unshift({type:"thinking",thinking:".",signature:h.xr})}}}}if(a.tools&&Array.isArray(a.tools)&&("claude"!==b&&(a.tools=a.tools.filter(a=>!a.type||"function"===a.type)),a.tools=a.tools.map((b,c)=>{let{cache_control:d,...e}=b;return(e.input_schema&&"object"==typeof e.input_schema&&(e.input_schema=(0,k.e)(e.input_schema)),c===a.tools.length-1)?{...e,cache_control:{type:"ephemeral",ttl:"1h"}}:e}),0===a.tools.length&&(delete a.tools,delete a.tool_choice)),("claude"===b||b?.startsWith("anthropic-compatible"))&&c){let b=d?(0,j.RF)(d):null;a=(0,i.fO)(a,c,b)}return a}(z,u,r?.accessToken||r?.apiKey||null,x)),"claude"===u){let a=r?.accessToken||r?.apiKey||null;if(a?.includes("sk-ant-oat")){let{body:a,toolNameMap:b}=(0,i.Az)(z);z=a,b?.size>0&&(z._toolNameMap=b)}}return z}function u(a,b,c,e){if(s(),b===a)return[c];let f=[c],g=null,h=a!==d.h.OPENAI&&b!==d.h.OPENAI?p.get(`${a}:${b}`):null;if(h){let a=h(c,e);return a?Array.isArray(a)?a:[a]:[]}if(a!==d.h.OPENAI){let b=p.get(`${a}:${d.h.OPENAI}`);if(b){f=[];let a=b(c,e);a&&(g=f=Array.isArray(a)?a:[a])}}if(b!==d.h.OPENAI){let a=p.get(`${d.h.OPENAI}:${b}`);if(a){let b=[];for(let c of f){let d=a(c,e);d&&b.push(...Array.isArray(d)?d:[d])}f=b}}return g&&b!==d.h.OPENAI&&a!==d.h.OPENAI&&(f._openaiIntermediate=g),f}function v(a,b){return a!==b}function w(a){let b={messageId:null,model:null,textBlockStarted:!1,thinkingBlockStarted:!1,inThinkingBlock:!1,currentBlockIndex:null,toolCalls:new Map,finishReason:null,finishReasonSent:!1,usage:null,contentBlockIndex:-1};return a===d.h.OPENAI_RESPONSES?{...b,seq:0,responseId:`resp_${Date.now()}`,created:Math.floor(Date.now()/1e3),started:!1,nextOutputIndex:0,msgTextBuf:{},msgItemAdded:{},msgContentAdded:{},msgItemDone:{},msgOutputIndices:{},reasoningId:"",reasoningIndex:-1,reasoningBuf:"",reasoningPartAdded:!1,reasoningDone:!1,inThinking:!1,funcArgsBuf:{},funcNames:{},funcCallIds:{},funcArgsDone:{},funcItemDone:{},funcOutputIndices:{},completedSent:!1}:b}function x(){s()}},39551:(a,b,c)=>{c.r(b),c.d(b,{ollamaBodyToOpenAI:()=>j,ollamaToOpenAI:()=>g});var d=c(33110),e=c(14170),f=c(4305);function g(a,b){if(!a||"object"!=typeof a)return null;b.ollama||(b.ollama={id:`chatcmpl-${Date.now()}`,created:Math.floor(Date.now()/1e3),model:a.model||b.model});let{id:c,created:d,model:g}=b.ollama;if(a.done){let i=h(a);return{id:c,object:"chat.completion.chunk",created:d,model:g,choices:[{index:0,delta:{},finish_reason:(0,f.Jm)(a.done_reason,{format:e.h.OLLAMA,hasToolCalls:b.hadToolCalls})}],usage:i}}let j=a.message;if(!j)return null;let k="string"==typeof j.content?j.content:"",l="string"==typeof j.thinking?j.thinking:"",m=Array.isArray(j.tool_calls)?j.tool_calls:null;if(!k&&!l&&!m)return null;k&&(b.accumulatedContent=(b.accumulatedContent||"")+k),l&&(b.accumulatedThinking=(b.accumulatedThinking||"")+l);let n={};return k&&(n.content=k),l&&(n.reasoning_content=l),m&&(b.hadToolCalls=!0,n.tool_calls=i(m)),{id:c,object:"chat.completion.chunk",created:d,model:g,choices:[{index:0,delta:n,finish_reason:null}]}}function h(a){return{prompt_tokens:a.prompt_eval_count||0,completion_tokens:a.eval_count||0,total_tokens:(a.prompt_eval_count||0)+(a.eval_count||0)}}function i(a){return a.map((a,b)=>({index:a.function?.index??b,id:a.id||`call_${b}_${Date.now()}`,type:"function",function:{name:a.function?.name||"",arguments:"string"==typeof a.function?.arguments?a.function.arguments:JSON.stringify(a.function?.arguments||{})}}))}function j(a){let b=a.message||{},c=b.content||"",d=b.thinking||"",g=Array.isArray(b.tool_calls)?b.tool_calls:[],j={role:"assistant"};c&&(j.content=c),d&&(j.reasoning_content=d),g.length>0&&(j.tool_calls=i(g)),j.content||j.tool_calls||(j.content="");let k=(0,f.Jm)(a.done_reason,{format:e.h.OLLAMA,hasToolCalls:g.length>0});return{id:`chatcmpl-${Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:a.model||"ollama",choices:[{index:0,message:j,finish_reason:k}],usage:h(a)}}(0,d.kz)(e.h.OLLAMA,e.h.OPENAI,null,g)},42654:(a,b,c)=>{function d(a){return"string"==typeof a?[{type:"message",role:"user",content:[{type:"input_text",text:""===a.trim()?"...":a}]}]:Array.isArray(a)?0===a.length?[{type:"message",role:"user",content:[{type:"input_text",text:"..."}]}]:a:null}function e(a){var b;if(!a||"object"!=typeof a||!("input"in a))return a;let c={...a};c.messages=[],a.instructions&&c.messages.push({role:"system",content:a.instructions});let e=null,f="",g=d(a.input);if(!g)return a;let h=a=>{if(Array.isArray(a.summary)){let b=a.summary.map(a=>a?.text||"").filter(Boolean).join("\n");if(b)return b}return Array.isArray(a.content)?a.content.map(a=>a?.text||"").filter(Boolean).join("\n"):""};for(let a of g){let b=a.type||(a.role?"message":null);if("message"===b){e&&(c.messages.push(e),e=null);let b=Array.isArray(a.content)?a.content.map(a=>{if("input_text"===a.type||"output_text"===a.type)return{type:"text",text:a.text};if("input_image"===a.type){if(a.image_url)return{type:"image_url",image_url:{url:a.image_url,detail:a.detail||"auto"}};if(a.file_id)return{type:"text",text:`[Image file reference: ${a.file_id}]`}}return a}):a.content,d={role:a.role,content:b};"assistant"===a.role&&f&&(d.reasoning_content=f),f="",c.messages.push(d)}else if("function_call"===b)e||(e={role:"assistant",content:null,tool_calls:[]}),e.tool_calls.push({id:a.call_id,type:"function",function:{name:"string"==typeof a.name&&a.name.trim()?a.name.trim():"_unknown",arguments:"string"==typeof a.arguments?a.arguments:JSON.stringify(a.arguments??{})}}),f&&(e.reasoning_content=f,f="");else if("function_call_output"===b)e&&(c.messages.push(e),e=null),c.messages.push({role:"tool",tool_call_id:a.call_id,content:"string"==typeof a.output?a.output:JSON.stringify(a.output)});else if("reasoning"===b){let b=h(a);b&&(f=f?`${f}
11
+ ${b}`:b);continue}}e&&c.messages.push(e),a.tools&&Array.isArray(a.tools)&&(c.tools=a.tools.map(a=>{var b;if(a.function)return a;let c="string"==typeof a.name?a.name.trim():"";return c?{type:"function",function:{name:c,description:String(a.description||""),parameters:(b=a.parameters)?"object"!==b.type||b.properties?b:{...b,properties:{}}:{type:"object",properties:{}},strict:a.strict}}:null}).filter(Boolean)),void 0!==a.max_output_tokens&&void 0===c.max_tokens&&(c.max_tokens=a.max_output_tokens),"string"==typeof a.reasoning?.effort&&void 0===c.reasoning_effort&&(c.reasoning_effort=a.reasoning.effort);let i=function(a){if(!a||"object"!=typeof a)return null;if("json_schema"!==a.type)return{...a};let{type:b,name:c,description:d,schema:e,strict:f}=a;return{type:b,json_schema:{...void 0!==c&&{name:c},...void 0!==d&&{description:d},...void 0!==e&&{schema:e},...void 0!==f&&{strict:f}}}}(a.text?.format);return i&&(c.response_format=i),c.tool_choice=(b=a.tool_choice)&&"object"==typeof b&&!b.function?"function"===b.type&&"string"==typeof b.name&&b.name.trim()?{type:"function",function:{name:b.name.trim()}}:b:b,delete c.input,delete c.instructions,delete c.include,delete c.prompt_cache_key,delete c.store,delete c.reasoning,delete c.text,delete c.max_output_tokens,c}c.d(b,{F:()=>e,m:()=>d})},47723:(a,b,c)=>{c.r(b),c.d(b,{convertCommandCodeToOpenAI:()=>h});var d=c(33110),e=c(14170),f=c(4305);function g(a,b,c=null){return{id:a.responseId,object:"chat.completion.chunk",created:a.created,model:a.model,choices:[{index:0,delta:b,finish_reason:c}]}}function h(a,b){var c;if(!a)return null;if(a&&"object"==typeof a&&"chat.completion.chunk"===a.object)return a;let d=a;if("string"==typeof a){let b=a.trim();if(!b)return null;let c=b.startsWith("data:")?b.slice(5).trim():b;if(!c||"[DONE]"===c)return null;try{d=JSON.parse(c)}catch{return null}}if(!d||"object"!=typeof d||!d.type)return null;c=d.model,b.responseId||(b.responseId=`chatcmpl-${Date.now()}`,b.created=Math.floor(Date.now()/1e3),b.model=b.model||c||"commandcode",b.chunkIndex=0,b.toolIndex=0,b.toolIndexById=new Map,b.openTools=new Set,b.openText=!1,b.finishReason=null,b.finishReasonSent=!1,b.usage=null);let h=[];switch(d.type){case"text-delta":{let a=d.text||d.delta||"";if(!a)break;let c=0===b.chunkIndex?{role:"assistant",content:a}:{content:a};b.chunkIndex++,b.openText=!0,h.push(g(b,c));break}case"reasoning-delta":{let a=d.text||"";if(!a)break;let c=0===b.chunkIndex?{role:"assistant",reasoning_content:a}:{reasoning_content:a};b.chunkIndex++,h.push(g(b,c));break}case"tool-input-start":{let a=d.id||d.toolCallId||`call_${Date.now()}_${b.toolIndex}`,c=b.toolIndexById.get(a);null==c&&(c=b.toolIndex++,b.toolIndexById.set(a,c)),b.openTools.add(a);let e={...0===b.chunkIndex?{role:"assistant"}:{},tool_calls:[{index:c,id:a,type:"function",function:{name:d.toolName||"",arguments:""}}]};b.chunkIndex++,h.push(g(b,e));break}case"tool-input-delta":{let a=d.id||d.toolCallId,c=b.toolIndexById.get(a);if(null==c)break;let e={tool_calls:[{index:c,function:{arguments:d.delta||d.inputTextDelta||""}}]};h.push(g(b,e));break}case"tool-call":{let a=d.toolCallId;if(b.toolIndexById.has(a))break;let c=b.toolIndex++;b.toolIndexById.set(a,c);let e="string"==typeof d.input?d.input:JSON.stringify(d.input??{}),f={...0===b.chunkIndex?{role:"assistant"}:{},tool_calls:[{index:c,id:a,type:"function",function:{name:d.toolName||"",arguments:e}}]};b.chunkIndex++,h.push(g(b,f));break}case"finish-step":b.finishReason=(0,f.Jm)(d.finishReason,{format:e.h.COMMANDCODE,hasToolCalls:b.toolIndex>0}),d.usage&&(b.usage=d.usage);break;case"finish":{if(b.finishReasonSent)break;let a=b.finishReason||(0,f.Jm)(d.finishReason,{format:e.h.COMMANDCODE,hasToolCalls:b.toolIndex>0}),c=g(b,{},a),i=d.totalUsage||b.usage;i&&(c.usage={prompt_tokens:i.inputTokens??0,completion_tokens:i.outputTokens??0,total_tokens:i.totalTokens??(i.inputTokens??0)+(i.outputTokens??0)}),b.finishReasonSent=!0,h.push(c);break}case"error":{b.finishReason="stop";let a=d.error??d.message??"unknown",c="string"==typeof a?a:JSON.stringify(a);h.push(g(b,{content:`
12
12
 
13
- [CommandCode error: ${c}]`})),b.finishReasonSent||(b.finishReasonSent=!0,h.push(g(b,{},"stop")))}}return h.length?h:null}(0,d.kz)(e.h.COMMANDCODE,e.h.OPENAI,null,h)},52638:(a,b,c)=>{c.r(b),c.d(b,{geminiToOpenAIRequest:()=>g});var d=c(33110),e=c(14170),f=c(3156);function g(a,b,c){let d={model:a,messages:[],stream:c};if(b.generationConfig){let a=b.generationConfig;if(a.maxOutputTokens){let c={max_tokens:a.maxOutputTokens,tools:b.tools};d.max_tokens=(0,f.M)(c)}void 0!==a.temperature&&(d.temperature=a.temperature),void 0!==a.topP&&(d.top_p=a.topP)}if(b.systemInstruction){var e;let a="string"==typeof(e=b.systemInstruction)?e:e.parts&&Array.isArray(e.parts)?e.parts.map(a=>a.text||"").join(""):"";a&&d.messages.push({role:"system",content:a})}if(b.contents&&Array.isArray(b.contents))for(let a of b.contents){let b=function(a){let b="user"===a.role?"user":"assistant";if(!a.parts||!Array.isArray(a.parts))return null;let c=[],d=[];for(let b of a.parts)if(void 0!==b.text&&c.push({type:"text",text:b.text}),b.inlineData&&c.push({type:"image_url",image_url:{url:`data:${b.inlineData.mimeType};base64,${b.inlineData.data}`}}),b.functionCall&&d.push({id:`call_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,type:"function",function:{name:b.functionCall.name,arguments:JSON.stringify(b.functionCall.args||{})}}),b.functionResponse)return{role:"tool",tool_call_id:b.functionResponse.id||b.functionResponse.name,content:JSON.stringify(b.functionResponse.response?.result||b.functionResponse.response||{})};if(d.length>0){let a={role:"assistant"};return c.length>0&&(a.content=1===c.length&&"text"===c[0].type?c[0].text:c),a.tool_calls=d,a}return c.length>0?{role:b,content:1===c.length&&"text"===c[0].type?c[0].text:c}:null}(a);b&&d.messages.push(b)}if(b.tools&&Array.isArray(b.tools)){for(let a of(d.tools=[],b.tools))if(a.functionDeclarations)for(let b of a.functionDeclarations)d.tools.push({type:"function",function:{name:b.name,description:b.description||"",parameters:b.parameters||{type:"object",properties:{}}}})}return d}(0,d.kz)(e.h.GEMINI,e.h.OPENAI,g,null),(0,d.kz)(e.h.GEMINI_CLI,e.h.OPENAI,g,null)},52830:(a,b,c)=>{c.r(b),c.d(b,{convertKiroToOpenAI:()=>f});var d=c(33110),e=c(14170);function f(a,b){if(!a)return null;if("chat.completion.chunk"===a.object&&a.choices)return a;let c=a;if("string"==typeof a){let b=a.split("\n"),d="",e="";for(let a of b)a.startsWith("event:")?d=a.slice(6).trim():a.startsWith(":event-type:")?d=a.slice(12).trim():a.startsWith("data:")?e=a.slice(5).trim():a.startsWith(":content-type:")||a.trim()&&!a.startsWith(":")&&(e=a.trim());if(!e)return null;try{(c=JSON.parse(e))._eventType=d}catch{c={text:e,_eventType:d}}}b.responseId||(b.responseId=`chatcmpl-${Date.now()}`,b.created=Math.floor(Date.now()/1e3),b.chunkIndex=0);let d=c._eventType||c.event||"";if("assistantResponseEvent"===d||c.assistantResponseEvent){let a=c.assistantResponseEvent?.content||c.content||"";if(!a)return null;let d={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{...0===b.chunkIndex?{role:"assistant"}:{},content:a},finish_reason:null}]};return b.chunkIndex++,d}if("reasoningContentEvent"===d||c.reasoningContentEvent){let a=c.reasoningContentEvent||c,d="string"==typeof a?a:a.text||a.content||c.content||"";if(!d)return null;let e={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{...0===b.chunkIndex?{role:"assistant"}:{},reasoning_content:d},finish_reason:null}]};return b.chunkIndex++,e}if("toolUseEvent"===d||c.toolUseEvent){let a=c.toolUseEvent||c,d=a.toolUseId||`call_${Date.now()}`,e=a.name||"",f=b.toolNameMap?.get(e)||e,g=a.input||{},h={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{...0===b.chunkIndex?{role:"assistant"}:{},tool_calls:[{index:0,id:d,type:"function",function:{name:f,arguments:JSON.stringify(g)}}]},finish_reason:null}]};return b.chunkIndex++,h}if("messageStopEvent"===d||"done"===d||c.messageStopEvent){b.finishReason="stop";let a={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{},finish_reason:"stop"}]};return b.usage&&"object"==typeof b.usage&&(a.usage=b.usage),a}if("usageEvent"===d||c.usageEvent){let a=c.usageEvent||c;a&&"object"==typeof a&&(b.usage={prompt_tokens:a.inputTokens||0,completion_tokens:a.outputTokens||0,total_tokens:(a.inputTokens||0)+(a.outputTokens||0)})}return null}(0,d.kz)(e.h.KIRO,e.h.OPENAI,null,f)},54817:(a,b,c)=>{c.r(b),c.d(b,{antigravityToOpenAIRequest:()=>g});var d=c(33110),e=c(14170),f=c(3156);function g(a,b,c){let d=b.request||b,e={model:a,messages:[],stream:c};if(d.generationConfig){let a=d.generationConfig;if(a.maxOutputTokens){let b={max_tokens:a.maxOutputTokens,tools:d.tools};e.max_tokens=(0,f.M)(b)}if(void 0!==a.temperature&&(e.temperature=a.temperature),void 0!==a.topP&&(e.top_p=a.topP),void 0!==a.topK&&(e.top_k=a.topK),a.thinkingConfig){let b=a.thinkingConfig.thinkingBudget||0;b>0&&(b<=2048?e.reasoning_effort="low":b<=16384?e.reasoning_effort="medium":e.reasoning_effort="high")}}if(d.systemInstruction){var g;let a="string"==typeof(g=d.systemInstruction)?g:g.parts&&Array.isArray(g.parts)?g.parts.map(a=>a.text||"").join(""):"";a&&e.messages.push({role:"system",content:a})}if(d.contents&&Array.isArray(d.contents)){let a={nextGeneratedId:0,pendingCallIdsByName:new Map};for(let b of d.contents){let c=function(a,b){let c="model"===a.role?"assistant":"user"===a.role?"user":a.role;if(!a.parts||!Array.isArray(a.parts))return null;let d=[],e=[],f=[],g="";for(let c of a.parts){if(!0===c.thought&&c.text){g+=c.text;continue}if(c.thoughtSignature&&void 0!==c.text){d.push({type:"text",text:c.text});continue}if(void 0!==c.text&&d.push({type:"text",text:c.text}),c.inlineData&&d.push({type:"image_url",image_url:{url:`data:${c.inlineData.mimeType};base64,${c.inlineData.data}`}}),c.functionCall){let a=function(a,b){let c=a.name||"tool",d=a.id||`call_${h(c)}_${b.nextGeneratedId++}`,e=b.pendingCallIdsByName.get(c)||[];return e.push(d),b.pendingCallIdsByName.set(c,e),d}(c.functionCall,b);e.push({id:a,type:"function",function:{name:c.functionCall.name,arguments:JSON.stringify(c.functionCall.args||{})}})}c.functionResponse&&f.push({role:"tool",tool_call_id:function(a,b){let c=a.name||"tool",d=b.pendingCallIdsByName.get(c)||[];if(a.id){let b=d.indexOf(a.id);return b>=0&&d.splice(b,1),a.id}let e=d.shift();return 0===d.length&&b.pendingCallIdsByName.delete(c),e||`call_${h(c)}_response_${b.nextGeneratedId++}`}(c.functionResponse,b),content:JSON.stringify(c.functionResponse.response?.result||c.functionResponse.response||{})})}let i=null;if(e.length>0){let a={role:"assistant"};d.length>0&&(a.content=1===d.length&&"text"===d[0].type?d[0].text:d),g&&(a.reasoning_content=g),a.tool_calls=e,i=a}if(!i&&(d.length>0||g)){let a={role:c};d.length>0&&(a.content=1===d.length&&"text"===d[0].type?d[0].text:d),g&&(a.reasoning_content=g),i=a}return f.length>0?i?[...f,i]:f:i}(b,a);c&&(Array.isArray(c)?e.messages.push(...c):e.messages.push(c))}}if(d.tools&&Array.isArray(d.tools)){for(let a of(e.tools=[],d.tools))if(a.functionDeclarations)for(let b of a.functionDeclarations)e.tools.push({type:"function",function:{name:b.name,description:b.description||"",parameters:function a(b){if(!b||"object"!=typeof b)return b;let c=Array.isArray(b)?[...b]:{...b};if("string"==typeof c.type&&(c.type=c.type.toLowerCase()),delete c.enumDescriptions,c.properties){let b={};for(let[d,e]of Object.entries(c.properties))b[d]=a(e);c.properties=b}return c.items&&(c.items=a(c.items)),c}(b.parameters)||{type:"object",properties:{}}}})}return e}function h(a){return String(a||"tool").replace(/[^a-zA-Z0-9_-]/g,"_").slice(0,40)||"tool"}(0,d.kz)(e.h.ANTIGRAVITY,e.h.OPENAI,g,null)},55399:(a,b,c)=>{c.d(b,{Az:()=>f,fO:()=>j,kR:()=>h});var d=c(55511),e=c(75924);function f(a){let b=a.tools;if(!b||0===b.length)return{body:a,toolNameMap:null};let c=a=>`${a}${e.uR}`,d=new Map,f=new Set,g=[];for(let a of b){let b=c(a.name);d.set(b,a.name),f.add(a.name),g.push({...a,name:b})}let h=[...g,...i],j=a.messages?.map(a=>{if(!Array.isArray(a.content))return a;let b=a.content.map(a=>"tool_use"===a.type?{...a,name:c(a.name)}:a);return{...a,content:b}}),k={...a,tools:h,messages:j||a.messages};return a.tool_choice?.type==="tool"&&f.has(a.tool_choice.name)&&(k.tool_choice={...a.tool_choice,name:c(a.tool_choice.name)}),{body:k,toolNameMap:d.size>0?d:null}}function g(a,b){return Array.isArray(a)?a.map(a=>Array.isArray(a?.content?.parts)?{...a,content:{...a.content,parts:a.content.parts.map(a=>{let c=a?.functionCall?.name;return c&&b.has(c)?{...a,functionCall:{...a.functionCall,name:b.get(c)}}:a})}}:a):a}function h(a,b){if(!b?.size||!a||"object"!=typeof a)return a;let c=a;if(Array.isArray(a.content)){let d=a.content.map(a=>a?.type==="tool_use"&&b.has(a.name)?{...a,name:b.get(a.name)}:a);c={...c,content:d}}return Array.isArray(a.response?.candidates)?c={...c,response:{...a.response,candidates:g(a.response.candidates,b)}}:Array.isArray(a.candidates)&&(c={...c,candidates:g(a.candidates,b)}),c}let i=[{name:"Task",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskOutput",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskStop",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskCreate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskGet",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskUpdate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskList",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Bash",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Glob",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Grep",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Read",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Edit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Write",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"NotebookEdit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebFetch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebSearch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"AskUserQuestion",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Skill",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"EnterPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"ExitPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}}];function j(a,b,c){let e,f,g,h,i,j;if(!b||!b.includes("sk-ant-oat"))return a;let k={...a},l={type:"text",text:(e=JSON.stringify(a),f=(0,d.createHash)("sha256").update(e).digest("hex").slice(0,5),g=(0,d.randomBytes)(2).toString("hex").slice(0,3),`x-anthropic-billing-header: cc_version=2.1.92.${g}; cc_entrypoint=sdk-cli; cch=${f};`)};return Array.isArray(k.system)?k.system[0]?.text?.startsWith("x-anthropic-billing-header:")||(k.system=[l,...k.system]):"string"==typeof k.system?k.system=[l,{type:"text",text:k.system}]:k.system=[l],k.metadata?.user_id||(k.metadata={...k.metadata,user_id:(h=(0,d.randomBytes)(32).toString("hex"),i=(0,d.randomUUID)(),j=c||(0,d.randomUUID)(),`{"device_id":"${h}","account_uuid":"${i}","session_id":"${j}"}`)}),k}},57647:(a,b,c)=>{c.d(b,{SZ:()=>l,Tz:()=>j,jJ:()=>k});var d=c(35024),e=c(83477);c(75924),c(15626);let f=Object.fromEntries(Object.entries(e.Xg).map(([a,b])=>[b,a]));function g(a){return"string"==typeof a&&a.startsWith("openai-compatible-")}function h(a){return"string"==typeof a&&a.startsWith("anthropic-compatible-")}function i(a){return g(a)&&a.includes("responses")?"responses":"chat"}function j(a){if(a.input&&(Array.isArray(a.input)||"string"==typeof a.input)&&!a.messages)return"openai-responses";if(a.request?.contents&&"antigravity"===a.userAgent)return"antigravity";if(a.contents&&Array.isArray(a.contents))return"gemini";if(a.stream_options||a.response_format||void 0!==a.logprobs||void 0!==a.top_logprobs||void 0!==a.n||void 0!==a.presence_penalty||void 0!==a.frequency_penalty||a.logit_bias||a.user)return"openai";if(a.messages&&Array.isArray(a.messages)){let b=a.messages[0];if(b?.content&&Array.isArray(b.content)){let c=b.content[0];if(c?.type==="text"&&!a.model?.includes("/")){if(a.system||a.anthropic_version)return"claude";let c=b.content.some(a=>"image"===a.type&&a.source?.type==="base64"),d=b.content.some(a=>"image_url"===a.type&&a.image_url?.url);if(c)return"claude";if(d)return"openai";if(b.content.some(a=>"tool_use"===a.type||"tool_result"===a.type))return"claude"}}if(void 0!==a.system||a.anthropic_version)return"claude"}return"openai"}function k(a){return g(a)?"responses"===i(a)?"openai-responses":"openai":h(a)?"claude":function(a){if(g(a)){let b=i(a);return{...d.xq.openai,format:"responses"===b?"openai-responses":"openai",baseUrl:"https://api.openai.com/v1"}}if(h(a))return{...d.xq.anthropic,format:"claude",baseUrl:"https://api.anthropic.com/v1"};let b=f[a]||a;return d.xq[b]||d.xq.openai}(a).format||"openai"}function l(a){return!function(a){let b=a.messages||a.contents;if(!b?.length)return!0;let c=b[b.length-1];return c?.role==="user"}(a)&&(delete a.reasoning_effort,delete a.thinking),a}},59611:(a,b,c)=>{c.r(b),c.d(b,{openaiToVertexRequest:()=>h});var d=c(33110),e=c(14170),f=c(97102),g=c(96281);function h(a,b,c,d){var e=(0,f.openaiToGeminiRequest)(a,b,c,d);if(!e?.contents)return e;for(let a of e.contents)if(Array.isArray(a.parts))for(let b of a.parts)void 0!==b.thoughtSignature&&(b.thoughtSignature=g.n6),b.functionCall&&"id"in b.functionCall&&delete b.functionCall.id,b.functionResponse&&"id"in b.functionResponse&&delete b.functionResponse.id;return e}(0,d.kz)(e.h.OPENAI,e.h.VERTEX,h,null)},60983:(a,b,c)=>{c.r(b),c.d(b,{claudeToOpenAIRequest:()=>g});var d=c(33110),e=c(14170),f=c(3156);function g(a,b,c){let d={model:a,messages:[],stream:c};if(b.max_tokens&&(d.max_tokens=(0,f.M)(b)),void 0!==b.temperature&&(d.temperature=b.temperature),b.thinking?.type==="enabled"){let a=Number(b.thinking.budget_tokens);Number.isFinite(a)?a>0&&(d.reasoning_effort=a<=2048?"low":a<=16384?"medium":"high"):d.reasoning_effort="medium"}if(b.system){let a=Array.isArray(b.system)?b.system.map(a=>a.text||"").join("\n"):b.system;a&&d.messages.push({role:"system",content:a})}if(b.messages&&Array.isArray(b.messages))for(let a=0;a<b.messages.length;a++){let c=function(a){let b="user"===a.role||"tool"===a.role?"user":"assistant";if("string"==typeof a.content)return{role:b,content:a.content};if(Array.isArray(a.content)){let c=[],d=[],e=[],f=[],g=[];for(let b of a.content)switch(b.type){case"text":c.push({type:"text",text:b.text});break;case"image":{let a=h(b.source);a&&c.push(a)}break;case"thinking":b.thinking&&g.push(b.thinking);break;case"redacted_thinking":b.data&&g.push(b.data);break;case"tool_use":d.push({id:b.id,type:"function",function:{name:b.name,arguments:JSON.stringify(b.input||{})}});break;case"tool_result":{let a="";if("string"==typeof b.content)a=b.content;else if(Array.isArray(b.content)){let c=b.content.filter(a=>"text"===a.type).map(a=>a.text).join("\n"),d=b.content.filter(a=>"image"===a.type).map(a=>h(a.source)).filter(Boolean);f.push(...d),a=c||(d.length>0?"Tool returned image attachment(s) in the following user message.":JSON.stringify(b.content))}else b.content&&(a=JSON.stringify(b.content));b.is_error&&(a=`Tool result error (is_error=true):
14
- ${a}`),e.push({role:"tool",tool_call_id:b.tool_use_id,content:a})}}let j=g.join("\n");if(e.length>0){let a=[...c,...f],b=[...e];if(a.length>0){let c=1===a.length&&"text"===a[0].type?a[0].text:a;b.push({role:"user",content:c})}return d.length>0&&b.push(i(d,[],j)),b}if(d.length>0)return i(d,c,j);if(c.length>0||j){let a={role:b,...c.length>0&&{content:1===c.length&&"text"===c[0].type?c[0].text:c}};return"assistant"===b&&j&&(a.reasoning_content=j),a}if(0===a.content.length)return{role:b,content:""}}return null}(b.messages[a]);c&&(Array.isArray(c)?d.messages.push(...c):d.messages.push(c))}return function(a){for(let b=0;b<a.length;b++){let c=a[b];if("assistant"===c.role&&c.tool_calls&&c.tool_calls.length>0){let d=c.tool_calls.map(a=>a.id),e=new Set,f=b+1;for(let c=b+1;c<a.length;c++){let b=a[c];if("tool"===b.role&&b.tool_call_id)e.add(b.tool_call_id),f=c+1;else break}let g=d.filter(a=>!e.has(a));if(g.length>0){let c=g.map(a=>({role:"tool",tool_call_id:a,content:"[No response received]"}));a.splice(f,0,...c),b=f+c.length-1}}}}(d.messages),b.tools&&Array.isArray(b.tools)&&(d.tools=b.tools.filter(a=>!a.type||"function"===a.type).map(a=>({type:"function",function:{name:a.name,description:String(a.description||""),parameters:a.input_schema||{type:"object",properties:{}}}})),0===d.tools.length&&(delete d.tools,delete d.tool_choice)),b.tool_choice&&(d.tool_choice=function(a){if(!a)return"auto";if("string"==typeof a)return a;switch(a.type){case"auto":default:return"auto";case"any":return"required";case"tool":return{type:"function",function:{name:a.name}}}}(b.tool_choice)),d}function h(a){return a?.type==="base64"&&a.data?{type:"image_url",image_url:{url:`data:${a.media_type||"image/png"};base64,${a.data}`}}:a?.type==="url"&&/^https?:\/\//.test(a.url||"")?{type:"image_url",image_url:{url:a.url}}:null}function i(a,b,c){let d={role:"assistant",tool_calls:a};return b.length>0&&(d.content=1===b.length&&"text"===b[0].type?b[0].text:b),c&&(d.reasoning_content=c),d}(0,d.kz)(e.h.CLAUDE,e.h.OPENAI,g,null)},65377:(a,b,c)=>{c.r(b),c.d(b,{openaiResponsesToOpenAIRequest:()=>h,openaiToOpenAIResponsesRequest:()=>i});var d=c(33110),e=c(14170),f=c(42654);let g=a=>"string"==typeof a&&a.length>64?a.substring(0,64):a;function h(a,b,c,d){return(0,f.F)(b)}function i(a,b,c,d){if(b&&"object"==typeof b&&"input"in b)return{...b,model:a,stream:!0===c};let e={model:a,input:[],stream:!0===c,store:!1},f=[];for(let a of b.messages||[]){if("system"===a.role||"developer"===a.role){var h;let b="string"==typeof(h=a.content)?h:Array.isArray(h)?h.map(a=>"string"==typeof a?a:"string"==typeof a?.text?a.text:"string"==typeof a?.content?a.content:"").filter(Boolean).join("\n"):"";b&&f.push(b);continue}if("user"===a.role||"assistant"===a.role){let b="user"===a.role?"input_text":"output_text",c="string"==typeof a.content?[{type:b,text:a.content}]:Array.isArray(a.content)?a.content.map(a=>{if("text"===a.type)return{type:b,text:a.text};if("image_url"===a.type)return{type:"input_image",image_url:"string"==typeof a.image_url?a.image_url:a.image_url?.url,detail:a.image_url?.detail||"auto"};if("input_image"===a.type)return a;let c=a.text||a.content||JSON.stringify(a);return{type:b,text:"string"==typeof c?c:JSON.stringify(c)}}):[];c.length>0&&e.input.push({type:"message",role:a.role,content:c})}if("assistant"===a.role&&a.tool_calls)for(let b of a.tool_calls)e.input.push({type:"function_call",call_id:g(b.id),name:j(b.function?.name),arguments:k(b.function?.arguments,"{}")});if("tool"===a.role){let b="string"==typeof a.content?a.content:Array.isArray(a.content)?a.content.map(a=>a.text||JSON.stringify(a)).join(""):k(a.content,"");e.input.push({type:"function_call_output",call_id:g(a.tool_call_id),output:b})}}e.instructions=f.join("\n\n"),b.tools&&Array.isArray(b.tools)&&(e.tools=b.tools.map(a=>{if("function"===a.type&&a.function){var b;return{type:"function",name:j(a.function.name),description:String(a.function.description||""),parameters:(b=a.function.parameters)?"object"!==b.type||b.properties?b:{...b,properties:{}}:{type:"object",properties:{}},strict:a.function.strict}}return a})),void 0!==b.temperature&&(e.temperature=b.temperature),void 0!==b.top_p&&(e.top_p=b.top_p);let i=b.max_output_tokens??b.max_completion_tokens??b.max_tokens;void 0!==i&&(e.max_output_tokens=i),b.reasoning&&"object"==typeof b.reasoning?e.reasoning={...b.reasoning}:"string"==typeof b.reasoning_effort&&(e.reasoning={effort:b.reasoning_effort});let l=function(a){if(!a||"object"!=typeof a)return null;if("json_schema"!==a.type)return{...a};let b=a.json_schema;return b&&"object"==typeof b?{type:"json_schema",...void 0!==b.name&&{name:b.name},...void 0!==b.description&&{description:b.description},...void 0!==b.schema&&{schema:b.schema},...void 0!==b.strict&&{strict:b.strict}}:null}(b.response_format);return l&&(e.text={format:l}),void 0!==b.tool_choice&&(e.tool_choice=function(a){if(!a||"object"!=typeof a)return a;let b=a.function?.name;return"function"===a.type&&"string"==typeof b&&b.trim()?{type:"function",name:b.trim()}:a}(b.tool_choice)),void 0!==b.parallel_tool_calls&&(e.parallel_tool_calls=b.parallel_tool_calls),e}function j(a){return"string"==typeof a&&a.trim()?a.trim():"_unknown"}function k(a,b){if("string"==typeof a)return a;if(void 0===a)return b;try{let c=JSON.stringify(a);return void 0===c?b:c}catch{return String(a)}}(0,d.kz)(e.h.OPENAI_RESPONSES,e.h.OPENAI,h,null),(0,d.kz)(e.h.OPENAI,e.h.OPENAI_RESPONSES,i,null)},65651:(a,b,c)=>{c.r(b),c.d(b,{convertCursorToOpenAI:()=>f});var d=c(33110),e=c(14170);function f(a,b){return a?("chat.completion.chunk"===a.object&&a.choices||"chat.completion"===a.object&&a.choices,a):null}(0,d.kz)(e.h.CURSOR,e.h.OPENAI,null,f)},66159:(a,b,c)=>{c.r(b),c.d(b,{openaiToClaudeResponse:()=>i});var d=c(33110),e=c(14170);let f="proxy_";function g(a,b){a.thinkingBlockStarted&&(b.push({type:"content_block_stop",index:a.thinkingBlockIndex}),a.thinkingBlockStarted=!1)}function h(a,b){a.textBlockStarted&&!a.textBlockClosed&&(a.textBlockClosed=!0,b.push({type:"content_block_stop",index:a.textBlockIndex}),a.textBlockStarted=!1)}function i(a,b){if(!a||!a.choices?.[0])return null;let c=[],d=a.choices[0],e=d.delta;if(a.usage&&"object"==typeof a.usage){let c="number"==typeof a.usage.prompt_tokens?a.usage.prompt_tokens:0,d="number"==typeof a.usage.completion_tokens?a.usage.completion_tokens:0,e=a.usage.prompt_tokens_details?.cached_tokens,f=a.usage.prompt_tokens_details?.cache_creation_tokens,g="number"==typeof e?e:0,h="number"==typeof f?f:0;b.usage={input_tokens:c-g-h,output_tokens:d},g>0&&(b.usage.cache_read_input_tokens=g),h>0&&(b.usage.cache_creation_input_tokens=h)}b.messageStartSent||(b.messageStartSent=!0,b.messageId=a.id?.replace("chatcmpl-","")||`msg_${Date.now()}`,(!b.messageId||"chat"===b.messageId||b.messageId.length<8)&&(b.messageId=a.extend_fields?.requestId||a.extend_fields?.traceId||`msg_${Date.now()}`),b.model=a.model||"unknown",b.nextBlockIndex=0,c.push({type:"message_start",message:{id:b.messageId,type:"message",role:"assistant",model:b.model,content:[],stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0}}}));let i=e?.reasoning_content||e?.reasoning;if(i&&(h(b,c),b.thinkingBlockStarted||(b.thinkingBlockIndex=b.nextBlockIndex++,b.thinkingBlockStarted=!0,c.push({type:"content_block_start",index:b.thinkingBlockIndex,content_block:{type:"thinking",thinking:""}})),c.push({type:"content_block_delta",index:b.thinkingBlockIndex,delta:{type:"thinking_delta",thinking:i}})),e?.content&&(g(b,c),b.textBlockStarted||(b.textBlockIndex=b.nextBlockIndex++,b.textBlockStarted=!0,b.textBlockClosed=!1,c.push({type:"content_block_start",index:b.textBlockIndex,content_block:{type:"text",text:""}})),c.push({type:"content_block_delta",index:b.textBlockIndex,delta:{type:"text_delta",text:e.content}})),e?.tool_calls)for(let a of e.tool_calls){let d=a.index??0;if(a.id){g(b,c),h(b,c);let e=b.nextBlockIndex++;b.toolCalls.set(d,{id:a.id,name:a.function?.name||"",blockIndex:e});let i=a.function?.name||"";i.startsWith(f)&&(i=i.slice(f.length)),c.push({type:"content_block_start",index:e,content_block:{type:"tool_use",id:a.id,name:i,input:{}}})}a.function?.arguments&&b.toolCalls.get(d)&&(b.toolArgBuffers||(b.toolArgBuffers=new Map),b.toolArgBuffers.set(d,(b.toolArgBuffers.get(d)||"")+a.function.arguments))}if(d.finish_reason){for(let[a,d]of(g(b,c),h(b,c),b.toolCalls)){let e=b.toolArgBuffers?.get(a);if(e){let a=function(a,b){try{let c=JSON.parse(b),d=a.startsWith(f)?a.slice(f.length):a;return"Read"===d&&function(a){var b,c;"string"==typeof a.limit&&/^\d+$/.test(a.limit)&&(a.limit=Number(a.limit)),"string"==typeof a.offset&&/^-?\d+$/.test(a.offset)&&(a.offset=Number(a.offset)),"number"==typeof a.limit&&(a.limit>2e3&&(a.limit=2e3),a.limit<1&&delete a.limit),"number"==typeof a.offset&&a.offset<0&&(a.offset=0),"pages"in a&&(b=a.file_path,c=a.pages,!("string"==typeof b&&b.toLowerCase().endsWith(".pdf")&&"string"==typeof c&&/^\d+(?:-\d+)?$/.test(c)))&&delete a.pages}(c),JSON.stringify(c)}catch{return b}}(d.name,e);c.push({type:"content_block_delta",index:d.blockIndex,delta:{type:"input_json_delta",partial_json:a}})}c.push({type:"content_block_stop",index:d.blockIndex})}b.finishReason=d.finish_reason;let a=b.usage||{input_tokens:0,output_tokens:0};c.push({type:"message_delta",delta:{stop_reason:function(a){switch(a){case"stop":default:return"end_turn";case"length":return"max_tokens";case"tool_calls":return"tool_use"}}(d.finish_reason)},usage:a}),c.push({type:"message_stop"})}return c.length>0?c:null}(0,d.kz)(e.h.OPENAI,e.h.CLAUDE,null,i)},70954:(a,b,c)=>{c.r(b),c.d(b,{buildKiroPayload:()=>x});var d=c(33110),e=c(14170),f=c(47293),g=c(6382),h=c(55511),i=c.n(h),j=c(41004);let k=new Map;function l(a){return null==a?a:JSON.parse(JSON.stringify(a))}function m(a,b){return a?.userInputMessage&&!a.userInputMessage.modelId&&b&&(a.userInputMessage.modelId=b),a}function n(a,b){for(let c of a||[])m(c,b);return a}function o(a,b,c){let d=l(a)||{userInputMessage:{content:""}};if(d.userInputMessage||(d.userInputMessage={content:""}),m(d,c),b){let a=d.userInputMessage.content||"";d.userInputMessage.content=a?`${b}
13
+ [CommandCode error: ${c}]`})),b.finishReasonSent||(b.finishReasonSent=!0,h.push(g(b,{},"stop")))}}return h.length?h:null}(0,d.kz)(e.h.COMMANDCODE,e.h.OPENAI,null,h)},52638:(a,b,c)=>{c.r(b),c.d(b,{geminiToOpenAIRequest:()=>g});var d=c(33110),e=c(14170),f=c(3156);function g(a,b,c){let d={model:a,messages:[],stream:c};if(b.generationConfig){let a=b.generationConfig;if(a.maxOutputTokens){let c={max_tokens:a.maxOutputTokens,tools:b.tools};d.max_tokens=(0,f.M)(c)}void 0!==a.temperature&&(d.temperature=a.temperature),void 0!==a.topP&&(d.top_p=a.topP)}if(b.systemInstruction){var e;let a="string"==typeof(e=b.systemInstruction)?e:e.parts&&Array.isArray(e.parts)?e.parts.map(a=>a.text||"").join(""):"";a&&d.messages.push({role:"system",content:a})}if(b.contents&&Array.isArray(b.contents))for(let a of b.contents){let b=function(a){let b="user"===a.role?"user":"assistant";if(!a.parts||!Array.isArray(a.parts))return null;let c=[],d=[];for(let b of a.parts)if(void 0!==b.text&&c.push({type:"text",text:b.text}),b.inlineData&&c.push({type:"image_url",image_url:{url:`data:${b.inlineData.mimeType};base64,${b.inlineData.data}`}}),b.functionCall&&d.push({id:`call_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,type:"function",function:{name:b.functionCall.name,arguments:JSON.stringify(b.functionCall.args||{})}}),b.functionResponse)return{role:"tool",tool_call_id:b.functionResponse.id||b.functionResponse.name,content:JSON.stringify(b.functionResponse.response?.result||b.functionResponse.response||{})};if(d.length>0){let a={role:"assistant"};return c.length>0&&(a.content=1===c.length&&"text"===c[0].type?c[0].text:c),a.tool_calls=d,a}return c.length>0?{role:b,content:1===c.length&&"text"===c[0].type?c[0].text:c}:null}(a);b&&d.messages.push(b)}if(b.tools&&Array.isArray(b.tools)){for(let a of(d.tools=[],b.tools))if(a.functionDeclarations)for(let b of a.functionDeclarations)d.tools.push({type:"function",function:{name:b.name,description:b.description||"",parameters:b.parameters||{type:"object",properties:{}}}})}return d}(0,d.kz)(e.h.GEMINI,e.h.OPENAI,g,null),(0,d.kz)(e.h.GEMINI_CLI,e.h.OPENAI,g,null)},52830:(a,b,c)=>{c.r(b),c.d(b,{convertKiroToOpenAI:()=>f});var d=c(33110),e=c(14170);function f(a,b){if(!a)return null;if("chat.completion.chunk"===a.object&&a.choices)return a;let c=a;if("string"==typeof a){let b=a.split("\n"),d="",e="";for(let a of b)a.startsWith("event:")?d=a.slice(6).trim():a.startsWith(":event-type:")?d=a.slice(12).trim():a.startsWith("data:")?e=a.slice(5).trim():a.startsWith(":content-type:")||a.trim()&&!a.startsWith(":")&&(e=a.trim());if(!e)return null;try{(c=JSON.parse(e))._eventType=d}catch{c={text:e,_eventType:d}}}b.responseId||(b.responseId=`chatcmpl-${Date.now()}`,b.created=Math.floor(Date.now()/1e3),b.chunkIndex=0);let d=c._eventType||c.event||"";if("assistantResponseEvent"===d||c.assistantResponseEvent){let a=c.assistantResponseEvent?.content||c.content||"";if(!a)return null;let d={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{...0===b.chunkIndex?{role:"assistant"}:{},content:a},finish_reason:null}]};return b.chunkIndex++,d}if("reasoningContentEvent"===d||c.reasoningContentEvent){let a=c.reasoningContentEvent||c,d="string"==typeof a?a:a.text||a.content||c.content||"";if(!d)return null;let e={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{...0===b.chunkIndex?{role:"assistant"}:{},reasoning_content:d},finish_reason:null}]};return b.chunkIndex++,e}if("toolUseEvent"===d||c.toolUseEvent){let a=c.toolUseEvent||c,d=a.toolUseId||`call_${Date.now()}`,e=a.name||"",f=b.toolNameMap?.get(e)||e,g=a.input||{},h={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{...0===b.chunkIndex?{role:"assistant"}:{},tool_calls:[{index:0,id:d,type:"function",function:{name:f,arguments:JSON.stringify(g)}}]},finish_reason:null}]};return b.chunkIndex++,h}if("messageStopEvent"===d||"done"===d||c.messageStopEvent){b.finishReason="stop";let a={id:b.responseId,object:"chat.completion.chunk",created:b.created,model:b.model||"kiro",choices:[{index:0,delta:{},finish_reason:"stop"}]};return b.usage&&"object"==typeof b.usage&&(a.usage=b.usage),a}if("usageEvent"===d||c.usageEvent){let a=c.usageEvent||c;a&&"object"==typeof a&&(b.usage={prompt_tokens:a.inputTokens||0,completion_tokens:a.outputTokens||0,total_tokens:(a.inputTokens||0)+(a.outputTokens||0)})}return null}(0,d.kz)(e.h.KIRO,e.h.OPENAI,null,f)},54817:(a,b,c)=>{c.r(b),c.d(b,{antigravityToOpenAIRequest:()=>g});var d=c(33110),e=c(14170),f=c(3156);function g(a,b,c){let d=b.request||b,e={model:a,messages:[],stream:c};if(d.generationConfig){let a=d.generationConfig;if(a.maxOutputTokens){let b={max_tokens:a.maxOutputTokens,tools:d.tools};e.max_tokens=(0,f.M)(b)}if(void 0!==a.temperature&&(e.temperature=a.temperature),void 0!==a.topP&&(e.top_p=a.topP),void 0!==a.topK&&(e.top_k=a.topK),a.thinkingConfig){let b=a.thinkingConfig.thinkingBudget||0;b>0&&(b<=2048?e.reasoning_effort="low":b<=16384?e.reasoning_effort="medium":e.reasoning_effort="high")}}if(d.systemInstruction){var g;let a="string"==typeof(g=d.systemInstruction)?g:g.parts&&Array.isArray(g.parts)?g.parts.map(a=>a.text||"").join(""):"";a&&e.messages.push({role:"system",content:a})}if(d.contents&&Array.isArray(d.contents)){let a={nextGeneratedId:0,pendingCallIdsByName:new Map};for(let b of d.contents){let c=function(a,b){let c="model"===a.role?"assistant":"user"===a.role?"user":a.role;if(!a.parts||!Array.isArray(a.parts))return null;let d=[],e=[],f=[],g="";for(let c of a.parts){if(!0===c.thought&&c.text){g+=c.text;continue}if(c.thoughtSignature&&void 0!==c.text){d.push({type:"text",text:c.text});continue}if(void 0!==c.text&&d.push({type:"text",text:c.text}),c.inlineData&&d.push({type:"image_url",image_url:{url:`data:${c.inlineData.mimeType};base64,${c.inlineData.data}`}}),c.functionCall){let a=function(a,b){let c=a.name||"tool",d=a.id||`call_${h(c)}_${b.nextGeneratedId++}`,e=b.pendingCallIdsByName.get(c)||[];return e.push(d),b.pendingCallIdsByName.set(c,e),d}(c.functionCall,b);e.push({id:a,type:"function",function:{name:c.functionCall.name,arguments:JSON.stringify(c.functionCall.args||{})}})}c.functionResponse&&f.push({role:"tool",tool_call_id:function(a,b){let c=a.name||"tool",d=b.pendingCallIdsByName.get(c)||[];if(a.id){let b=d.indexOf(a.id);return b>=0&&d.splice(b,1),a.id}let e=d.shift();return 0===d.length&&b.pendingCallIdsByName.delete(c),e||`call_${h(c)}_response_${b.nextGeneratedId++}`}(c.functionResponse,b),content:JSON.stringify(c.functionResponse.response?.result||c.functionResponse.response||{})})}let i=null;if(e.length>0){let a={role:"assistant"};d.length>0&&(a.content=1===d.length&&"text"===d[0].type?d[0].text:d),g&&(a.reasoning_content=g),a.tool_calls=e,i=a}if(!i&&(d.length>0||g)){let a={role:c};d.length>0&&(a.content=1===d.length&&"text"===d[0].type?d[0].text:d),g&&(a.reasoning_content=g),i=a}return f.length>0?i?[...f,i]:f:i}(b,a);c&&(Array.isArray(c)?e.messages.push(...c):e.messages.push(c))}}if(d.tools&&Array.isArray(d.tools)){for(let a of(e.tools=[],d.tools))if(a.functionDeclarations)for(let b of a.functionDeclarations)e.tools.push({type:"function",function:{name:b.name,description:b.description||"",parameters:function a(b){if(!b||"object"!=typeof b)return b;let c=Array.isArray(b)?[...b]:{...b};if("string"==typeof c.type&&(c.type=c.type.toLowerCase()),delete c.enumDescriptions,c.properties){let b={};for(let[d,e]of Object.entries(c.properties))b[d]=a(e);c.properties=b}return c.items&&(c.items=a(c.items)),c}(b.parameters)||{type:"object",properties:{}}}})}return e}function h(a){return String(a||"tool").replace(/[^a-zA-Z0-9_-]/g,"_").slice(0,40)||"tool"}(0,d.kz)(e.h.ANTIGRAVITY,e.h.OPENAI,g,null)},55399:(a,b,c)=>{c.d(b,{Az:()=>f,fO:()=>j,kR:()=>h});var d=c(55511),e=c(75924);function f(a){let b=a.tools;if(!b||0===b.length)return{body:a,toolNameMap:null};let c=a=>`${a}${e.uR}`,d=new Map,f=new Set,g=[];for(let a of b){let b=c(a.name);d.set(b,a.name),f.add(a.name),g.push({...a,name:b})}let h=[...g,...i],j=a.messages?.map(a=>{if(!Array.isArray(a.content))return a;let b=a.content.map(a=>"tool_use"===a.type?{...a,name:c(a.name)}:a);return{...a,content:b}}),k={...a,tools:h,messages:j||a.messages};return a.tool_choice?.type==="tool"&&f.has(a.tool_choice.name)&&(k.tool_choice={...a.tool_choice,name:c(a.tool_choice.name)}),{body:k,toolNameMap:d.size>0?d:null}}function g(a,b){return Array.isArray(a)?a.map(a=>Array.isArray(a?.content?.parts)?{...a,content:{...a.content,parts:a.content.parts.map(a=>{let c=a?.functionCall?.name;return c&&b.has(c)?{...a,functionCall:{...a.functionCall,name:b.get(c)}}:a})}}:a):a}function h(a,b){if(!b?.size||!a||"object"!=typeof a)return a;let c=a;if(Array.isArray(a.content)){let d=a.content.map(a=>a?.type==="tool_use"&&b.has(a.name)?{...a,name:b.get(a.name)}:a);c={...c,content:d}}return Array.isArray(a.response?.candidates)?c={...c,response:{...a.response,candidates:g(a.response.candidates,b)}}:Array.isArray(a.candidates)&&(c={...c,candidates:g(a.candidates,b)}),c}let i=[{name:"Task",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskOutput",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskStop",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskCreate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskGet",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskUpdate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskList",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Bash",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Glob",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Grep",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Read",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Edit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Write",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"NotebookEdit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebFetch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebSearch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"AskUserQuestion",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Skill",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"EnterPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"ExitPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}}];function j(a,b,c){let e,f,g,h,i,j;if(!b||!b.includes("sk-ant-oat"))return a;let k={...a},l={type:"text",text:(e=JSON.stringify(a),f=(0,d.createHash)("sha256").update(e).digest("hex").slice(0,5),g=(0,d.randomBytes)(2).toString("hex").slice(0,3),`x-anthropic-billing-header: cc_version=2.1.92.${g}; cc_entrypoint=sdk-cli; cch=${f};`)};return Array.isArray(k.system)?k.system[0]?.text?.startsWith("x-anthropic-billing-header:")||(k.system=[l,...k.system]):"string"==typeof k.system?k.system=[l,{type:"text",text:k.system}]:k.system=[l],k.metadata?.user_id||(k.metadata={...k.metadata,user_id:(h=(0,d.randomBytes)(32).toString("hex"),i=(0,d.randomUUID)(),j=c||(0,d.randomUUID)(),`{"device_id":"${h}","account_uuid":"${i}","session_id":"${j}"}`)}),k}},57647:(a,b,c)=>{c.d(b,{SZ:()=>l,Tz:()=>j,jJ:()=>k});var d=c(35024),e=c(83477);c(75924),c(15626);let f=Object.fromEntries(Object.entries(e.Xg).map(([a,b])=>[b,a]));function g(a){return"string"==typeof a&&a.startsWith("openai-compatible-")}function h(a){return"string"==typeof a&&a.startsWith("anthropic-compatible-")}function i(a){return g(a)&&a.includes("responses")?"responses":"chat"}function j(a){if(a.input&&(Array.isArray(a.input)||"string"==typeof a.input)&&!a.messages)return"openai-responses";if(a.request?.contents&&"antigravity"===a.userAgent)return"antigravity";if(a.contents&&Array.isArray(a.contents))return"gemini";if(a.stream_options||a.response_format||void 0!==a.logprobs||void 0!==a.top_logprobs||void 0!==a.n||void 0!==a.presence_penalty||void 0!==a.frequency_penalty||a.logit_bias||a.user)return"openai";if(a.messages&&Array.isArray(a.messages)){let b=a.messages[0];if(b?.content&&Array.isArray(b.content)){let c=b.content[0];if(c?.type==="text"&&!a.model?.includes("/")){if(a.system||a.anthropic_version)return"claude";let c=b.content.some(a=>"image"===a.type&&a.source?.type==="base64"),d=b.content.some(a=>"image_url"===a.type&&a.image_url?.url);if(c)return"claude";if(d)return"openai";if(b.content.some(a=>"tool_use"===a.type||"tool_result"===a.type))return"claude"}}if(void 0!==a.system||a.anthropic_version)return"claude"}return"openai"}function k(a){return g(a)?"responses"===i(a)?"openai-responses":"openai":h(a)?"claude":function(a){if(g(a)){let b=i(a);return{...d.xq.openai,format:"responses"===b?"openai-responses":"openai",baseUrl:"https://api.openai.com/v1"}}if(h(a))return{...d.xq.anthropic,format:"claude",baseUrl:"https://api.anthropic.com/v1"};let b=f[a]||a;return d.xq[b]||d.xq.openai}(a).format||"openai"}function l(a){return!function(a){let b=a.messages||a.contents;if(!b?.length)return!0;let c=b[b.length-1];return c?.role==="user"}(a)&&(delete a.reasoning_effort,delete a.thinking),a}},59611:(a,b,c)=>{c.r(b),c.d(b,{openaiToVertexRequest:()=>h});var d=c(33110),e=c(14170),f=c(97102),g=c(96281);function h(a,b,c,d){var e=(0,f.openaiToGeminiRequest)(a,b,c,d);if(!e?.contents)return e;for(let a of e.contents)if(Array.isArray(a.parts))for(let b of a.parts)void 0!==b.thoughtSignature&&(b.thoughtSignature=g.n6),b.functionCall&&"id"in b.functionCall&&delete b.functionCall.id,b.functionResponse&&"id"in b.functionResponse&&delete b.functionResponse.id;return e}(0,d.kz)(e.h.OPENAI,e.h.VERTEX,h,null)},60983:(a,b,c)=>{c.r(b),c.d(b,{claudeToOpenAIRequest:()=>h});var d=c(33110),e=c(14170),f=c(3156),g=c(62268);function h(a,b,c){let d={model:a,messages:[],stream:c};if(b.max_tokens&&(d.max_tokens=(0,f.M)(b)),void 0!==b.temperature&&(d.temperature=b.temperature),b.thinking?.type==="enabled"){let a=Number(b.thinking.budget_tokens);Number.isFinite(a)?a>0&&(d.reasoning_effort=a<=2048?"low":a<=16384?"medium":"high"):d.reasoning_effort="medium"}else if(b.thinking?.type==="adaptive"){let a=(0,g.uA)(b);d.thinking=a.thinking,d.reasoning_effort=a.output_config.effort}if(b.system){let a=Array.isArray(b.system)?b.system.map(a=>a.text||"").join("\n"):b.system;a&&d.messages.push({role:"system",content:a})}if(b.messages&&Array.isArray(b.messages))for(let a=0;a<b.messages.length;a++){let c=function(a){let b="user"===a.role||"tool"===a.role?"user":"assistant";if("string"==typeof a.content)return{role:b,content:a.content};if(Array.isArray(a.content)){let c=[],d=[],e=[],f=[],g=[];for(let b of a.content)switch(b.type){case"text":c.push({type:"text",text:b.text});break;case"image":{let a=i(b.source);a&&c.push(a)}break;case"thinking":b.thinking&&g.push(b.thinking);break;case"redacted_thinking":b.data&&g.push(b.data);break;case"tool_use":d.push({id:b.id,type:"function",function:{name:b.name,arguments:JSON.stringify(b.input||{})}});break;case"tool_result":{let a="";if("string"==typeof b.content)a=b.content;else if(Array.isArray(b.content)){let c=b.content.filter(a=>"text"===a.type).map(a=>a.text).join("\n"),d=b.content.filter(a=>"image"===a.type).map(a=>i(a.source)).filter(Boolean);f.push(...d),a=c||(d.length>0?"Tool returned image attachment(s) in the following user message.":JSON.stringify(b.content))}else b.content&&(a=JSON.stringify(b.content));b.is_error&&(a=`Tool result error (is_error=true):
14
+ ${a}`),e.push({role:"tool",tool_call_id:b.tool_use_id,content:a})}}let h=g.join("\n");if(e.length>0){let a=[...c,...f],b=[...e];if(a.length>0){let c=1===a.length&&"text"===a[0].type?a[0].text:a;b.push({role:"user",content:c})}return d.length>0&&b.push(j(d,[],h)),b}if(d.length>0)return j(d,c,h);if(c.length>0||h){let a={role:b,...c.length>0&&{content:1===c.length&&"text"===c[0].type?c[0].text:c}};return"assistant"===b&&h&&(a.reasoning_content=h),a}if(0===a.content.length)return{role:b,content:""}}return null}(b.messages[a]);c&&(Array.isArray(c)?d.messages.push(...c):d.messages.push(c))}return function(a){for(let b=0;b<a.length;b++){let c=a[b];if("assistant"===c.role&&c.tool_calls&&c.tool_calls.length>0){let d=c.tool_calls.map(a=>a.id),e=new Set,f=b+1;for(let c=b+1;c<a.length;c++){let b=a[c];if("tool"===b.role&&b.tool_call_id)e.add(b.tool_call_id),f=c+1;else break}let g=d.filter(a=>!e.has(a));if(g.length>0){let c=g.map(a=>({role:"tool",tool_call_id:a,content:"[No response received]"}));a.splice(f,0,...c),b=f+c.length-1}}}}(d.messages),b.tools&&Array.isArray(b.tools)&&(d.tools=b.tools.filter(a=>!a.type||"function"===a.type).map(a=>({type:"function",function:{name:a.name,description:String(a.description||""),parameters:a.input_schema||{type:"object",properties:{}}}})),0===d.tools.length&&(delete d.tools,delete d.tool_choice)),b.tool_choice&&(d.tool_choice=function(a){if(!a)return"auto";if("string"==typeof a)return a;switch(a.type){case"auto":default:return"auto";case"any":return"required";case"tool":return{type:"function",function:{name:a.name}}}}(b.tool_choice)),d}function i(a){return a?.type==="base64"&&a.data?{type:"image_url",image_url:{url:`data:${a.media_type||"image/png"};base64,${a.data}`}}:a?.type==="url"&&/^https?:\/\//.test(a.url||"")?{type:"image_url",image_url:{url:a.url}}:null}function j(a,b,c){let d={role:"assistant",tool_calls:a};return b.length>0&&(d.content=1===b.length&&"text"===b[0].type?b[0].text:b),c&&(d.reasoning_content=c),d}(0,d.kz)(e.h.CLAUDE,e.h.OPENAI,h,null)},62268:(a,b,c)=>{c.d(b,{FO:()=>e,ny:()=>f,uA:()=>g});let d=new Set(["auto","default","flex","priority","scale"]);function e(a={},b={}){let c={...b},f=a?.service_tier;return"string"==typeof f&&d.has(f)?c.service_tier=f:!function(a){if(!a||"object"!=typeof a||Array.isArray(a))return!1;let b=Object.getPrototypeOf(a);return b===Object.prototype||null===b}(f)?delete c.service_tier:c.service_tier={...f},c}function f(a={}){if(!a||"object"!=typeof a||Array.isArray(a))return a;let{client_metadata:b,...c}=a;return c}function g(a={}){if(a?.thinking?.type!=="adaptive")return{...a};let b=a.output_config?.effort||a.reasoning_effort||"high";return{...a,thinking:{type:"adaptive"},output_config:{...a.output_config||{},effort:b}}}},65377:(a,b,c)=>{c.r(b),c.d(b,{openaiResponsesToOpenAIRequest:()=>i,openaiToOpenAIResponsesRequest:()=>j});var d=c(33110),e=c(14170),f=c(42654),g=c(62268);let h=a=>"string"==typeof a&&a.length>64?a.substring(0,64):a;function i(a,b,c,d){return(0,f.F)((0,g.ny)(b))}function j(a,b,c,d){if(b&&"object"==typeof b&&"input"in b)return(0,g.FO)(b,{...b,model:a,stream:!0===c});let e={model:a,input:[],stream:!0===c,store:!1},f=[];for(let a of b.messages||[]){if("system"===a.role||"developer"===a.role){var i;let b="string"==typeof(i=a.content)?i:Array.isArray(i)?i.map(a=>"string"==typeof a?a:"string"==typeof a?.text?a.text:"string"==typeof a?.content?a.content:"").filter(Boolean).join("\n"):"";b&&f.push(b);continue}if("user"===a.role||"assistant"===a.role){let b="user"===a.role?"input_text":"output_text",c="string"==typeof a.content?[{type:b,text:a.content}]:Array.isArray(a.content)?a.content.map(a=>{if("text"===a.type)return{type:b,text:a.text};if("image_url"===a.type)return{type:"input_image",image_url:"string"==typeof a.image_url?a.image_url:a.image_url?.url,detail:a.image_url?.detail||"auto"};if("input_image"===a.type)return a;let c=a.text||a.content||JSON.stringify(a);return{type:b,text:"string"==typeof c?c:JSON.stringify(c)}}):[];c.length>0&&e.input.push({type:"message",role:a.role,content:c})}if("assistant"===a.role&&a.tool_calls)for(let b of a.tool_calls)e.input.push({type:"function_call",call_id:h(b.id),name:k(b.function?.name),arguments:l(b.function?.arguments,"{}")});if("tool"===a.role){let b="string"==typeof a.content?a.content:Array.isArray(a.content)?a.content.map(a=>a.text||JSON.stringify(a)).join(""):l(a.content,"");e.input.push({type:"function_call_output",call_id:h(a.tool_call_id),output:b})}}e.instructions=f.join("\n\n"),b.tools&&Array.isArray(b.tools)&&(e.tools=b.tools.map(a=>{if("function"===a.type&&a.function){var b;return{type:"function",name:k(a.function.name),description:String(a.function.description||""),parameters:(b=a.function.parameters)?"object"!==b.type||b.properties?b:{...b,properties:{}}:{type:"object",properties:{}},strict:a.function.strict}}return a})),void 0!==b.temperature&&(e.temperature=b.temperature),void 0!==b.top_p&&(e.top_p=b.top_p);let j=b.max_output_tokens??b.max_completion_tokens??b.max_tokens;void 0!==j&&(e.max_output_tokens=j),b.reasoning&&"object"==typeof b.reasoning?e.reasoning={...b.reasoning}:"string"==typeof b.reasoning_effort&&(e.reasoning={effort:b.reasoning_effort});let m=function(a){if(!a||"object"!=typeof a)return null;if("json_schema"!==a.type)return{...a};let b=a.json_schema;return b&&"object"==typeof b?{type:"json_schema",...void 0!==b.name&&{name:b.name},...void 0!==b.description&&{description:b.description},...void 0!==b.schema&&{schema:b.schema},...void 0!==b.strict&&{strict:b.strict}}:null}(b.response_format);return m&&(e.text={format:m}),void 0!==b.tool_choice&&(e.tool_choice=function(a){if(!a||"object"!=typeof a)return a;let b=a.function?.name;return"function"===a.type&&"string"==typeof b&&b.trim()?{type:"function",name:b.trim()}:a}(b.tool_choice)),void 0!==b.parallel_tool_calls&&(e.parallel_tool_calls=b.parallel_tool_calls),(0,g.FO)(b,e)}function k(a){return"string"==typeof a&&a.trim()?a.trim():"_unknown"}function l(a,b){if("string"==typeof a)return a;if(void 0===a)return b;try{let c=JSON.stringify(a);return void 0===c?b:c}catch{return String(a)}}(0,d.kz)(e.h.OPENAI_RESPONSES,e.h.OPENAI,i,null),(0,d.kz)(e.h.OPENAI,e.h.OPENAI_RESPONSES,j,null)},65651:(a,b,c)=>{c.r(b),c.d(b,{convertCursorToOpenAI:()=>f});var d=c(33110),e=c(14170);function f(a,b){return a?("chat.completion.chunk"===a.object&&a.choices||"chat.completion"===a.object&&a.choices,a):null}(0,d.kz)(e.h.CURSOR,e.h.OPENAI,null,f)},66159:(a,b,c)=>{c.r(b),c.d(b,{openaiToClaudeResponse:()=>i});var d=c(33110),e=c(14170);let f="proxy_";function g(a,b){a.thinkingBlockStarted&&(b.push({type:"content_block_stop",index:a.thinkingBlockIndex}),a.thinkingBlockStarted=!1)}function h(a,b){a.textBlockStarted&&!a.textBlockClosed&&(a.textBlockClosed=!0,b.push({type:"content_block_stop",index:a.textBlockIndex}),a.textBlockStarted=!1)}function i(a,b){if(!a||!a.choices?.[0])return null;let c=[],d=a.choices[0],e=d.delta;if(a.usage&&"object"==typeof a.usage){let c="number"==typeof a.usage.prompt_tokens?a.usage.prompt_tokens:0,d="number"==typeof a.usage.completion_tokens?a.usage.completion_tokens:0,e=a.usage.prompt_tokens_details?.cached_tokens,f=a.usage.prompt_tokens_details?.cache_creation_tokens,g="number"==typeof e?e:0,h="number"==typeof f?f:0;b.usage={input_tokens:c-g-h,output_tokens:d},g>0&&(b.usage.cache_read_input_tokens=g),h>0&&(b.usage.cache_creation_input_tokens=h)}b.messageStartSent||(b.messageStartSent=!0,b.messageId=a.id?.replace("chatcmpl-","")||`msg_${Date.now()}`,(!b.messageId||"chat"===b.messageId||b.messageId.length<8)&&(b.messageId=a.extend_fields?.requestId||a.extend_fields?.traceId||`msg_${Date.now()}`),b.model=a.model||"unknown",b.nextBlockIndex=0,c.push({type:"message_start",message:{id:b.messageId,type:"message",role:"assistant",model:b.model,content:[],stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0}}}));let i=e?.reasoning_content||e?.reasoning;if(i&&(h(b,c),b.thinkingBlockStarted||(b.thinkingBlockIndex=b.nextBlockIndex++,b.thinkingBlockStarted=!0,c.push({type:"content_block_start",index:b.thinkingBlockIndex,content_block:{type:"thinking",thinking:""}})),c.push({type:"content_block_delta",index:b.thinkingBlockIndex,delta:{type:"thinking_delta",thinking:i}})),e?.content&&(g(b,c),b.textBlockStarted||(b.textBlockIndex=b.nextBlockIndex++,b.textBlockStarted=!0,b.textBlockClosed=!1,c.push({type:"content_block_start",index:b.textBlockIndex,content_block:{type:"text",text:""}})),c.push({type:"content_block_delta",index:b.textBlockIndex,delta:{type:"text_delta",text:e.content}})),e?.tool_calls)for(let a of e.tool_calls){let d=a.index??0;if(a.id){g(b,c),h(b,c);let e=b.nextBlockIndex++;b.toolCalls.set(d,{id:a.id,name:a.function?.name||"",blockIndex:e});let i=a.function?.name||"";i.startsWith(f)&&(i=i.slice(f.length)),c.push({type:"content_block_start",index:e,content_block:{type:"tool_use",id:a.id,name:i,input:{}}})}a.function?.arguments&&b.toolCalls.get(d)&&(b.toolArgBuffers||(b.toolArgBuffers=new Map),b.toolArgBuffers.set(d,(b.toolArgBuffers.get(d)||"")+a.function.arguments))}if(d.finish_reason){for(let[a,d]of(g(b,c),h(b,c),b.toolCalls)){let e=b.toolArgBuffers?.get(a);if(e){let a=function(a,b){try{let c=JSON.parse(b),d=a.startsWith(f)?a.slice(f.length):a;return"Read"===d&&function(a){var b,c;"string"==typeof a.limit&&/^\d+$/.test(a.limit)&&(a.limit=Number(a.limit)),"string"==typeof a.offset&&/^-?\d+$/.test(a.offset)&&(a.offset=Number(a.offset)),"number"==typeof a.limit&&(a.limit>2e3&&(a.limit=2e3),a.limit<1&&delete a.limit),"number"==typeof a.offset&&a.offset<0&&(a.offset=0),"pages"in a&&(b=a.file_path,c=a.pages,!("string"==typeof b&&b.toLowerCase().endsWith(".pdf")&&"string"==typeof c&&/^\d+(?:-\d+)?$/.test(c)))&&delete a.pages}(c),JSON.stringify(c)}catch{return b}}(d.name,e);c.push({type:"content_block_delta",index:d.blockIndex,delta:{type:"input_json_delta",partial_json:a}})}c.push({type:"content_block_stop",index:d.blockIndex})}b.finishReason=d.finish_reason;let a=b.usage||{input_tokens:0,output_tokens:0};c.push({type:"message_delta",delta:{stop_reason:function(a){switch(a){case"stop":default:return"end_turn";case"length":return"max_tokens";case"tool_calls":return"tool_use"}}(d.finish_reason)},usage:a}),c.push({type:"message_stop"})}return c.length>0?c:null}(0,d.kz)(e.h.OPENAI,e.h.CLAUDE,null,i)},70954:(a,b,c)=>{c.r(b),c.d(b,{buildKiroPayload:()=>x});var d=c(33110),e=c(14170),f=c(47293),g=c(6382),h=c(55511),i=c.n(h),j=c(41004);let k=new Map;function l(a){return null==a?a:JSON.parse(JSON.stringify(a))}function m(a,b){return a?.userInputMessage&&!a.userInputMessage.modelId&&b&&(a.userInputMessage.modelId=b),a}function n(a,b){for(let c of a||[])m(c,b);return a}function o(a,b,c){let d=l(a)||{userInputMessage:{content:""}};if(d.userInputMessage||(d.userInputMessage={content:""}),m(d,c),b){let a=d.userInputMessage.content||"";d.userInputMessage.content=a?`${b}
15
15
 
16
16
  ${a}`:b}return d}function p(a){return a.findIndex(a=>a?.userInputMessage)}function q(a,b){var c;return 0===b&&(c=a[b],!c?.userInputMessage?.userInputMessageContext?.toolResults?.length)}let r=setInterval(()=>{let a=Date.now();for(let[b,c]of k)a-c.lastUsed>j.v1.sessionTtlMs&&k.delete(b)},j.v1.sessionCleanupIntervalMs);r.unref&&r.unref();let s=/[^a-zA-Z0-9_-]/g;function t(a,b,c=4096){var d;return d="string"==typeof a&&a.trim()?a:`Tool: ${b}`,"string"!=typeof d||d.length<=c?d:`${d.slice(0,c)}
17
17
 
@@ -1 +1 @@
1
- "use strict";exports.id=6802,exports.ids=[6802],exports.modules={86802:(a,b,c)=>{c.r(b),c.d(b,{alertErrorSpike:()=>i,alertProviderDown:()=>g,alertQuotaExhausted:()=>h,sendAlert:()=>f});var d=c(89718);let e=new Map;async function f(a,b){try{let c,f=await (0,d.mt)();if(!f.alertEnabled||!f.alertWebhookUrl)return{sent:!1,reason:"disabled"};let g=f.alertWebhookType||"generic",h=Number(f.alertMinIntervalMs)||3e5;if(!b.force&&((c=Date.now())-(e.get(a)||0)<h||(e.set(a,c),0)))return{sent:!1,reason:"throttled"};let i=function(a,{title:b,message:c,severity:d="warn",fields:e=[]},f){if("discord"===a)return{embeds:[{title:b,description:c,color:"error"===d?0xef4444:"warn"===d?0xf59e0b:3900150,fields:e.map(a=>({name:a.name,value:String(a.value),inline:!0})),timestamp:new Date().toISOString(),footer:{text:"ZevAI Router"}}]};if("telegram"===a){let a=[`${"error"===d?"\uD83D\uDD34":"warn"===d?"\uD83D\uDFE1":"\uD83D\uDD35"} *${b}*`,c,...e.map(a=>`• ${a.name}: ${a.value}`)].join("\n");return{chat_id:f.alertTelegramChatId,text:a,parse_mode:"Markdown"}}return{title:b,message:c,severity:d,fields:e,ts:new Date().toISOString(),source:"zevairouter"}}(g,b,f),j=new AbortController,k=setTimeout(()=>j.abort(),8e3);try{let a=await fetch(f.alertWebhookUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i),signal:j.signal});if(!a.ok)return console.warn(`[alert] webhook ${g} responded ${a.status}`),{sent:!1,reason:`http-${a.status}`};return{sent:!0}}finally{clearTimeout(k)}}catch(a){return console.warn(`[alert] send failed: ${a.message}`),{sent:!1,reason:a.message}}}function g(a,b){return f(`provider-down:${a}`,{title:`Provider down: ${a}`,message:b||`${a} is returning errors repeatedly.`,severity:"error",fields:[{name:"provider",value:a}]})}function h(a,b){return f(`quota:${a}:${b}`,{title:`Quota exhausted: ${a}`,message:`Account "${b}" has exhausted its quota.`,severity:"warn",fields:[{name:"provider",value:a},{name:"account",value:b}]})}function i(a,b){return f("error-spike",{title:"Error spike detected",message:`${a} failed requests in the last ${b}s.`,severity:"error"})}}};
1
+ "use strict";exports.id=6802,exports.ids=[6802],exports.modules={22391:(a,b,c)=>{c.d(b,{C0:()=>j,GF:()=>r});var d=c(71553),e=c.n(d),f=c(77030),g=c.n(f);let h=new Set(["http:","https:"]),i=new Set(["public","trusted-lan","legacy-trusted","loopback-service"]);function j(a){let b=String(a||"").toLowerCase().replace(/^::ffff:/,"");if(g().isIPv4(b)){let[a,c,d]=b.split(".").map(Number);return 0===a||10===a||127===a||100===a&&c>=64&&c<=127||169===a&&254===c||172===a&&c>=16&&c<=31||192===a&&(0===c||168===c||88===c&&99===d)||198===a&&(18===c||19===c||51===c&&100===d)||203===a&&0===c&&113===d||a>=224}if(!g().isIPv6(b))return!0;let[c,d="0"]=b.split(":"),e=Number.parseInt(c,16),f=Number.parseInt(d,16);return"::"===b||"::1"===b||e<8192||e>16383||8193===e&&(f<=511||3512===f)||8194===e||16383===e}function k(a){return a?.reason?a.reason:Object.assign(Error("The operation was aborted"),{name:"AbortError"})}async function l(a,b,c){if(b?.aborted)throw k(b);let d=Promise.resolve(c(a,{all:!0}));return b?new Promise((a,c)=>{let e=!1,f=(d,f)=>{e||(e=!0,b.removeEventListener("abort",g),d?c(d):a(f))},g=()=>f(k(b));b.addEventListener("abort",g,{once:!0}),d.then(a=>f(null,a),a=>f(a))}):d}function m(a){return a.split(".").reduce((a,b)=>a<<8n|BigInt(b),0n)}function n(a){return(function(a){let[b="",c=""]=a.toLowerCase().replace(/^\[|\]$/g,"").split("::"),d=b?b.split(":"):[],e=c?c.split(":"):[],f=8-d.length-e.length;return[...d,...Array(Math.max(0,f)).fill("0"),...e].map(a=>Number.parseInt(a||"0",16))})(a).reduce((a,b)=>a<<16n|BigInt(b),0n)}function o(a,b){let[c,d]=b.split("/"),e=g().isIP(a);if(!e||e!==g().isIP(c))return!1;let f=4===e?32:128,h=Number(d);if(!Number.isInteger(h)||h<0||h>f)return!1;let i=BigInt(f-h);return(4===e?m(a):n(a))>>i==(4===e?m(c):n(c))>>i}function p(a){return a.port?Number(a.port):"https:"===a.protocol?443:80}function q(a,{httpsOnly:b=!1,expectedOrigin:c}={}){let d;try{d=new URL(a)}catch{throw Error("URL is not an allowed HTTP endpoint")}if(!h.has(d.protocol)||b&&"https:"!==d.protocol||d.username||d.password||c&&d.origin!==c)throw Error("URL is not an allowed HTTP endpoint");return d}async function r(a,b={}){let c=b.trust||"public";if(!i.has(c))throw Error("Unknown outbound target trust mode");let d=q(a,b),f=await l(d.hostname,b.signal,b.lookup||e().lookup);if(!Array.isArray(f)||0===f.length||f.some(({address:a})=>!g().isIP(a)))throw Error("URL did not resolve to valid addresses");let h=null;if("public"===c&&f.some(({address:a})=>j(a)))throw Error("URL must resolve only to public addresses");if("trusted-lan"===c&&!(h=function(a,b,c){let d=a.hostname.toLowerCase().replace(/^\[|\]$/g,""),e=p(a);for(let a of Array.isArray(c)?c:[]){let c;try{c=function(a){if(!a||"object"!=typeof a)throw Error("Trusted target must be an object");let b="string"==typeof a.id?a.id.trim():"",c="string"==typeof a.host?a.host.trim().toLowerCase().replace(/^\[|\]$/g,""):"",d="string"==typeof a.cidr?a.cidr.trim().toLowerCase():"";if(!b||!c&&!d)throw Error("Trusted target requires id and host or CIDR");if(c&&(c.includes("/")||c.includes("@")||c.includes(":"))&&!g().isIP(c))throw Error("Trusted target host is invalid");if(d&&!o(d.split("/")[0],d))throw Error("Trusted target CIDR is invalid");let e=[...new Set((Array.isArray(a.ports)?a.ports:[]).map(Number).filter(a=>Number.isInteger(a)&&a>=1&&a<=65535))].sort((a,b)=>a-b);if(0===e.length)throw Error("Trusted target requires an allowed port");return Object.freeze({id:b,host:c||null,cidr:d||null,ports:Object.freeze(e)})}(a)}catch{continue}if(c.ports.includes(e)&&(c.host&&c.host===d||c.cidr&&b.every(({address:a})=>o(a,c.cidr))))return c}return null}(d,f,b.trustedTargets)))throw Error("URL must match an explicitly trusted host and port");if("legacy-trusted"===c){let a=q(b.legacyOrigin||"").origin;if(d.origin!==a)throw Error("URL must preserve the saved legacy origin")}if("loopback-service"===c){let a=q(b.expectedOrigin||"").origin;if(d.origin!==a||f.some(({address:a})=>{let b=a.toLowerCase().replace(/^::ffff:/,"");return"::1"!==b&&!b.startsWith("127.")}))throw Error("URL must match the owned loopback service")}return Object.freeze({url:d.href,trust:c,origin:d.origin,pinnedAddresses:Object.freeze(f.map(({address:a})=>a)),pinnedAddressFamilies:Object.freeze(f.map(({family:a,address:b})=>a||g().isIP(b))),allowedPorts:Object.freeze(h?[...h.ports]:[p(d)]),trustedTargetId:h?.id||null})}},23004:(a,b,c)=>{c.d(b,{C0:()=>e.C0,WO:()=>f,aO:()=>h,op:()=>g});var d=c(47774),e=c(22391);async function f(a,b){if(Number(a.headers.get("content-length"))>b)throw await a.body?.cancel?.(),Error("Response body is too large");let c=[],d=0;for await(let e of a.body){if((d+=e.byteLength)>b)throw Error("Response body is too large");c.push(e)}return JSON.parse(Buffer.concat(c).toString("utf8"))}async function g(a,b={}){if(!a||!Array.isArray(a.pinnedAddresses)||0===a.pinnedAddresses.length||!a.url)throw Error("A resolved outbound target decision is required");let c=new URL(a.url),e=a.pinnedAddresses.map((b,c)=>({address:b,family:a.pinnedAddressFamilies?.[c]||(b.includes(":")?6:4)})),f=0,h=new d.g6({connect:{lookup(a,b,c){let d=e.filter(({family:a})=>!b.family||a===b.family),g=d.length?d:e;if(b.all)return c(null,g);let h=g[f++%g.length];c(null,h.address,h.family)}}});try{let a=await (0,d.hd)(c,{...b,redirect:"error",dispatcher:h}),e=function(a,b,c){if(!a.body?.getReader)return null;let d=a.body.getReader(),e=null,f=!1,g=()=>{f||(f=!0,d.releaseLock())},h=()=>(c?.removeEventListener("abort",i),e||=Promise.resolve(b.close()).catch(()=>{})),i=()=>{h()};c?.aborted?i():c?.addEventListener("abort",i,{once:!0});let j=new Response(new ReadableStream({async pull(a){try{let{done:b,value:c}=await d.read();if(!b)return void a.enqueue(c);g(),await h(),a.close()}catch(b){g(),await h(),a.error(b)}},async cancel(a){try{await d.cancel(a)}finally{g(),await h()}}}),{headers:a.headers,status:a.status,statusText:a.statusText});for(let b of["url","redirected","type"])Object.defineProperty(j,b,{configurable:!0,value:a[b]});return j}(a,h,b.signal);if(e)return e;return await h.close(),a}catch(a){throw await h.close(),a}}async function h(a,b={},c={}){return g(await (0,e.GF)(a,{...c,trust:c.trust||"public",signal:b.signal}),b)}},86802:(a,b,c)=>{c.r(b),c.d(b,{alertErrorSpike:()=>j,alertProviderDown:()=>h,alertQuotaExhausted:()=>i,sendAlert:()=>g});var d=c(89718),e=c(23004);let f=new Map;async function g(a,b){try{let c,g=await (0,d.mt)();if(!g.alertEnabled||!g.alertWebhookUrl)return{sent:!1,reason:"disabled"};let h=g.alertWebhookType||"generic",i=Number(g.alertMinIntervalMs)||3e5;if(!b.force&&((c=Date.now())-(f.get(a)||0)<i||(f.set(a,c),0)))return{sent:!1,reason:"throttled"};let j=function(a,{title:b,message:c,severity:d="warn",fields:e=[]},f){if("discord"===a)return{embeds:[{title:b,description:c,color:"error"===d?0xef4444:"warn"===d?0xf59e0b:3900150,fields:e.map(a=>({name:a.name,value:String(a.value),inline:!0})),timestamp:new Date().toISOString(),footer:{text:"ZevAI Router"}}]};if("telegram"===a){let a=[`${"error"===d?"\uD83D\uDD34":"warn"===d?"\uD83D\uDFE1":"\uD83D\uDD35"} *${b}*`,c,...e.map(a=>`• ${a.name}: ${a.value}`)].join("\n");return{chat_id:f.alertTelegramChatId,text:a,parse_mode:"Markdown"}}return{title:b,message:c,severity:d,fields:e,ts:new Date().toISOString(),source:"zevairouter"}}(h,b,g),k=g.alertTrustedTargetId?g.trustedOutboundTargets?.find(({id:a})=>a===g.alertTrustedTargetId):null,l=await (0,e.aO)(g.alertWebhookUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(j),signal:AbortSignal.timeout(8e3)},k?{trust:"trusted-lan",trustedTargets:[k]}:{trust:"public"});try{if(!l.ok)return console.warn(`[alert] webhook ${h} responded ${l.status}`),{sent:!1,reason:`http-${l.status}`};return{sent:!0}}finally{await l.body?.cancel?.().catch(()=>{})}}catch(a){return console.warn(`[alert] send failed: ${a.message}`),{sent:!1,reason:a.message}}}function h(a,b){return g(`provider-down:${a}`,{title:`Provider down: ${a}`,message:b||`${a} is returning errors repeatedly.`,severity:"error",fields:[{name:"provider",value:a}]})}function i(a,b){return g(`quota:${a}:${b}`,{title:`Quota exhausted: ${a}`,message:`Account "${b}" has exhausted its quota.`,severity:"warn",fields:[{name:"provider",value:a},{name:"account",value:b}]})}function j(a,b){return g("error-spike",{title:"Error spike detected",message:`${a} failed requests in the last ${b}s.`,severity:"error"})}}};
@@ -0,0 +1,2 @@
1
+ "use strict";exports.id=6843,exports.ids=[6843],exports.modules={8889:(a,b,c)=>{c.d(b,{Sj:()=>A,Su:()=>z,Sy:()=>m,YH:()=>n,ag:()=>u,kI:()=>y,rC:()=>x,rl:()=>C,sy:()=>B});var d=c(79646),e=c(29021),f=c.n(e),g=c(33873),h=c.n(g),i=c(53859);let j=["code","ml"],k={code:["tree-sitter","tree-sitter-language-pack"],ml:["torch","huggingface-hub"]},l=h().join(i.n,"headroom"),m=h().join(l,"python"),n=h().join(l,"runtime.json"),o="win32"===process.platform,p=o?"where":"which",q=o?[`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python313\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python312\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python311\\Scripts`,`${process.env.LOCALAPPDATA||""}\\Programs\\Python\\Python310\\Scripts`,`${process.env.APPDATA||""}\\Python\\Python313\\Scripts`]:["/usr/local/bin","/opt/homebrew/bin","/Library/Frameworks/Python.framework/Versions/3.13/bin","/Library/Frameworks/Python.framework/Versions/3.12/bin","/Library/Frameworks/Python.framework/Versions/3.11/bin","/Library/Frameworks/Python.framework/Versions/3.10/bin",`${process.env.HOME||""}/.local/bin`,"/usr/bin","/bin"],r=[...q,process.env.PATH||""].filter(Boolean).join(h().delimiter),s=["python3.13","python3.12","python3.11","python3.10","python3","python"],t=new Set(["localhost","127.0.0.1","::1","[::1]","0.0.0.0"]),u=process.env.HEADROOM_URL||"http://localhost:8787";function v(a){let b=String(a||"").trim();if(!b)return null;if(h().isAbsolute(b))return f().existsSync(b)?b:null;try{let a=(0,d.execFileSync)(p,[b],{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:r}}).toString().trim(),c=a?a.split(/\r?\n/)[0].trim():"";return c&&f().existsSync(c)?c:null}catch{return null}}function w(){return v("headroom")}function x(){try{let a=JSON.parse(f().readFileSync(n,"utf8")),b=v(a.python);if(!b||!f().existsSync(h().join(m,"headroom")))return null;return{python:b,siteDir:m,runtimeFile:n}}catch{return null}}function y(){let a=x();return a?a.runtimeFile:w()}function z(){let a=x();if(a)return a.python;let b=null;for(let a of function(){let a=[],b=x();b&&a.push(b.python);let c=w();if(c){let b=h().dirname(c);for(let c of o?["python.exe","python3.exe"]:["python3","python3.13","python"])a.push(h().join(b,c))}for(let b of q)if(b)for(let c of s)a.push(h().join(b,o?`${c}.exe`:c));return a.push(...s),a}()){let c=v(a);if(c)try{let a=(0,d.execFileSync)(c,["--version"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,env:{...process.env,PATH:r}}).toString().trim().match(/(\d+)\.(\d+)/);if(!a)continue;let[e,f]=[parseInt(a[1],10),parseInt(a[2],10)];if(!(e>3||3===e&&f>=10))continue;b||(b=c);try{return(0,d.execFileSync)(c,["-m","pip","show","headroom-ai"],{stdio:["ignore","pipe","ignore"],windowsHide:!0,timeout:8e3,env:{...process.env,PATH:r}}),c}catch{}}catch{}}return b}async function A(a){if(!a)return!1;let b=String(a).replace(/\/$/,"");try{return(await fetch(`${b}/health`,{signal:AbortSignal.timeout(1500)})).ok}catch{return!1}}function B(a){try{let b=new URL(a);return["http:","https:"].includes(b.protocol)&&t.has(b.hostname)}catch{return!1}}function C(a){let b=a||z();if(!b)return{installed:!1,version:null,extras:{code:!1,ml:!1}};try{let a=x(),c=a?["-c","import importlib.metadata as m,json,sys; print(json.dumps([{'name': d.metadata.get('Name', ''), 'version': d.version} for d in m.distributions(path=[sys.argv[1]])]))",a.siteDir]:["-m","pip","list","--format=json","--disable-pip-version-check"],e=(0,d.execFileSync)(b,c,{stdio:["ignore","pipe","ignore"],windowsHide:!0,timeout:8e3,env:{...process.env,PATH:r}}).toString(),f=JSON.parse(e),g=new Set(f.map(a=>String(a.name||"").toLowerCase()));if(!g.has("headroom-ai"))return{installed:!1,version:null,extras:{code:!1,ml:!1}};let h=f.find(a=>a.name?.toLowerCase()==="headroom-ai")?.version||null,i={};for(let a of j)i[a]=k[a].some(a=>g.has(a));return{installed:!0,version:h,extras:i}}catch{return{installed:!1,version:null,extras:{code:!1,ml:!1}}}}},96843:(a,b,c)=>{c.d(b,{BS:()=>u,Ol:()=>x,stopHeadroomProxy:()=>y});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(79646),i=c(53859),j=c(8889);let k=g().join(i.n,"headroom"),l=g().join(k,"proxy.pid"),m=g().join(k,"proxy.log"),n=g().join(k,"install.log"),o=new Set(["localhost","127.0.0.1","::1","0.0.0.0"]),p=null;function q(){e().existsSync(k)||e().mkdirSync(k,{recursive:!0})}function r(){try{if(e().existsSync(l))return parseInt(e().readFileSync(l,"utf8"),10)}catch{}return null}function s(a=null){try{if(!e().existsSync(l)||null!=a&&r()!==a)return;e().unlinkSync(l)}catch{}}function t(a){if(!a||"number"!=typeof a)return!1;try{return process.kill(a,0),!0}catch{return!1}}function u(){let a=r();return a&&t(a)?a:null}async function v(){let a=(0,j.rC)();if(a)return{success:!0,alreadyInstalled:!0,path:a.runtimeFile,...(0,j.rl)(a.python)};let b=(0,j.Su)();if(!b){let a=Error("Python >= 3.10 not found");throw a.code="NO_PYTHON",a}let c="headroom-ai[proxy]";return e().rmSync(j.Sy,{recursive:!0,force:!0}),e().rmSync(j.YH,{force:!0}),q(),function(a,b,{label:c,errorCode:d,onSuccess:f,env:g=process.env,timeoutMs:i=6e5}){let j;q();let k=e().openSync(n,"w");try{j=(0,h.spawn)(a,b,{stdio:["ignore",k,k],windowsHide:!0,env:{...g}})}catch(a){throw e().closeSync(k),a}return new Promise((a,b)=>{let g=!1,h=setTimeout(()=>{try{j.kill("SIGKILL")}catch{}let a=Error(`${c} timed out — see headroom/install.log`);a.code="INSTALL_TIMEOUT",l(a)},i);h.unref?.();let l=(c,d=null)=>{if(!g){g=!0,clearTimeout(h);try{e().closeSync(k)}catch{}if(c)return void b(c);try{a(d())}catch(a){b(a)}}};j.once("error",a=>l(a)),j.once("exit",a=>{if(0===a)return void l(null,f);let b=Error(`${c} exited with code=${a} — see headroom/install.log`);b.code=d,l(b)})})}(b,["-m","pip","install","--upgrade","--disable-pip-version-check","--ignore-installed","--target",j.Sy,c],{label:"pip install",errorCode:"INSTALL_FAILED",onSuccess:()=>{if(!e().existsSync(g().join(j.Sy,"headroom"))){let a=Error("Headroom package was not created in the managed runtime");throw a.code="INSTALL_NOT_FOUND",a}e().writeFileSync(j.YH,`${JSON.stringify({python:b},null,2)}
2
+ `,{mode:384});let a=(0,j.rC)();if(!a){let a=Error("Headroom installed, but its managed runtime is unavailable");throw a.code="INSTALL_NOT_FOUND",a}return{success:!0,alreadyInstalled:!1,spec:c,path:a.runtimeFile,...(0,j.rl)(b)}}})}async function w({host:a="127.0.0.1",port:b=8787,codeAware:c=!1,kompress:d=!0}={}){let f,g=Number(b)>0&&65536>Number(b)?Number(b):8787,i=String(a||"").replace(/^\[|\]$/g,"").toLowerCase(),k=o.has(i)?i:"127.0.0.1",n=(0,j.rC)(),p=n?.python||(0,j.kI)();if(!p){let a=Error("Headroom CLI not installed");throw a.code="NOT_INSTALLED",a}let r=u();if(r)return{pid:r,alreadyRunning:!0};q();let v=e().openSync(m,"a"),x=["proxy","--host",k,"--port",String(g),...function({codeAware:a,kompress:b}={}){let c=[];return a&&c.push("--code-aware"),!1===b&&c.push("--disable-kompress"),c}({codeAware:c,kompress:d})],y=n?["-c","import sys; sys.path.insert(0, sys.argv.pop(1)); from headroom.cli import main; main()",n.siteDir,...x]:x;try{f=(0,h.spawn)(p,y,{stdio:["ignore",v,v],detached:!0,windowsHide:!0,env:{...process.env}})}catch(a){throw e().closeSync(v),a}let z=()=>{};if(f.once("error",z),!f.pid){e().closeSync(v);let a=Error("Failed to spawn headroom proxy");throw a.code="SPAWN_FAILED",a}try{var A;A=f.pid,q(),e().writeFileSync(l,String(A))}catch(a){try{f.kill("SIGTERM")}catch{}throw e().closeSync(v),a}return f.unref(),await new Promise((a,b)=>{f.removeListener("error",z);let c=!1,d=!0,g=()=>{if(d){d=!1;try{e().closeSync(v)}catch{}}},h=a=>{c||(c=!0,clearTimeout(i),s(f.pid),g(),b(a))},i=setTimeout(()=>{t(f.pid)?(c=!0,g(),a()):h(Error("headroom proxy exited during startup — see proxy.log"))},8e3);f.once("error",a=>{h(a)}),f.once("exit",a=>{if(clearTimeout(i),s(f.pid),g(),c)return;let b=Error(`headroom proxy exited early (code=${a}) — see proxy.log`);b.code="EARLY_EXIT",h(b)})}),{pid:f.pid,alreadyRunning:!1}}async function x(a={},{restartIfRunning:b=!1}={}){let c=(0,j.rC)()?null:await (p||(p=v().finally(()=>{p=null})));return{...b&&u()?await z(a):await w(a),installedNow:c?.alreadyInstalled===!1,install:c}}function y(){let a=u();if(!a)return{stopped:!1,reason:"not_running"};try{process.kill(a,"SIGTERM");let b=setTimeout(()=>{if(t(a))try{process.kill(a,"SIGKILL")}catch{}},2e3);return b.unref?.(),s(),{stopped:!0,pid:a}}catch(b){s();let a=Error(`Failed to stop headroom proxy: ${b.message}`);throw a.code="STOP_FAILED",a}}async function z(a={}){let b=u();if(b){try{process.kill(b,"SIGTERM")}catch{}for(let a=0;a<30&&t(b);a++)await new Promise(a=>setTimeout(a,100));if(t(b)){try{process.kill(b,"SIGKILL")}catch{}await new Promise(a=>setTimeout(a,300))}s()}return w(a)}}};
@@ -0,0 +1,15 @@
1
+ "use strict";exports.id=6936,exports.ids=[6936],exports.modules={17511:(a,b,c)=>{let d=c(29021);a.exports={IS_DEV:!1,LSOF_BIN:(()=>{if("win32"===process.platform)return null;for(let a of["/usr/sbin/lsof","/usr/bin/lsof","/sbin/lsof"])try{return d.accessSync(a,d.constants.X_OK),a}catch{}return"lsof"})(),TARGET_HOSTS:["daily-cloudcode-pa.googleapis.com","cloudcode-pa.googleapis.com","api.individual.githubcopilot.com","q.us-east-1.amazonaws.com","api2.cursor.sh"],URL_PATTERNS:{antigravity:[":generateContent",":streamGenerateContent"],copilot:["/chat/completions","/v1/messages","/responses"],kiro:["/generateAssistantResponse"],cursor:["/BidiAppend","/RunSSE","/RunPoll","/Run"]},MODEL_SYNONYMS:{antigravity:{"gemini-3.7-flash-high":"gemini-3.7-flash-high","gemini-3.7-flash-medium":"gemini-3.7-flash-medium","gemini-3.7-flash-low":"gemini-3.7-flash-low","gemini-default":"gemini-3.5-flash-low","gemini-3.5-flash-high":"gemini-3-flash-agent","gemini-3.5-flash-medium":"gemini-3.5-flash-low","gemini-3.5-flash-extra-low":"gemini-3.5-flash-extra-low","gemini-3.1-pro-high":"gemini-pro-agent","gemini-3-pro-high":"gemini-pro-agent","gemini-3-pro-low":"gemini-3.1-pro-low"}},MODEL_PATTERNS:{antigravity:[{match:/flash.*extra.*low|extra.*low.*flash|flash.*low|low.*flash/i,alias:"gemini-3.5-flash-extra-low"},{match:/flash.*medium|medium.*flash/i,alias:"gemini-3.5-flash-low"},{match:/flash.*agent|agent.*flash|flash/i,alias:"gemini-3-flash-agent"},{match:/pro.*low|low.*pro/i,alias:"gemini-3.1-pro-low"},{match:/gemini.*pro|pro.*gemini/i,alias:"gemini-pro-agent"},{match:/opus/i,alias:"claude-opus-4-6-thinking"},{match:/sonnet|claude/i,alias:"claude-sonnet-4-6"},{match:/gpt.*oss|oss/i,alias:"gpt-oss-120b-medium"}]},MODEL_NO_MAP:{antigravity:[/^tab[_-]/i]},LOG_BLACKLIST_URL_PARTS:["recordCodeAssistMetrics","recordTrajectoryAnalytics","fetchAdminControls","listExperiments","fetchUserInfo"],getToolForHost:function(a){let b=(a||"").split(":")[0];return"api.individual.githubcopilot.com"===b?"copilot":"daily-cloudcode-pa.googleapis.com"===b||"cloudcode-pa.googleapis.com"===b?"antigravity":"q.us-east-1.amazonaws.com"===b?"kiro":"api2.cursor.sh"===b?"cursor":null}}},64809:(a,b,c)=>{let{exec:d,execSync:e}=c(79646),f="win32"===process.platform;function g(){if(f)try{return e("net session >nul 2>&1",{windowsHide:!0,stdio:"ignore"}),!0}catch{return!1}return"function"==typeof process.getuid&&0===process.getuid()}function h(a){return`'${String(a).replace(/'/g,"''")}'`}a.exports={isAdmin:g,runElevatedPowerShell:function(a){if(!f)return Promise.reject(Error("Windows-only"));let b=Buffer.from(a,"utf16le").toString("base64");if(g())return new Promise((a,c)=>{d(`powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -EncodedCommand ${b}`,{windowsHide:!0},(b,d,e)=>{b?c(Error(e||b.message)):a(d)})});let c=`
2
+ $proc = Start-Process powershell -ArgumentList @(
3
+ '-NoProfile','-NonInteractive','-ExecutionPolicy','Bypass',
4
+ '-WindowStyle','Hidden','-EncodedCommand','${b}'
5
+ ) -Verb RunAs -Wait -PassThru -WindowStyle Hidden;
6
+ if ($proc.ExitCode -ne 0) { throw "Elevated command exited with code $($proc.ExitCode)" }
7
+ `;return new Promise((a,b)=>{d(`powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command ${h(c)}`,{windowsHide:!0},(c,d,e)=>{if(c){let a=e||c.message;a.includes("canceled by the user")||a.includes("operation was canceled")?b(Error("User canceled UAC prompt")):b(Error(a))}else a(d)})})},quotePs:h}},66936:(a,b,c)=>{let{exec:d,spawn:e,execSync:f}=c(79646),g=c(29021),h=c(33873);c(21820);let{log:i,err:j}=c(87777),{TOOL_HOSTS:k}=c(85341),{runElevatedPowerShell:l,isAdmin:m}=c(64809);function n(a,b,c){let d=`${a}.zevai.new`,e=`${a}.zevai.bak`;try{g.writeFileSync(d,c,"utf8");try{g.unlinkSync(e)}catch{}g.renameSync(a,e);try{g.renameSync(d,a)}catch(c){try{g.renameSync(e,a)}catch{g.writeFileSync(a,b,"utf8")}throw c}try{g.unlinkSync(e)}catch{}}finally{try{g.unlinkSync(d)}catch{}}}let o="win32"===process.platform,p="darwin"===process.platform,q=o?h.join(process.env.SystemRoot||"C:\\Windows","System32","drivers","etc","hosts"):"/etc/hosts";function r(){if(o)return!1;try{return f("command -v sudo",{stdio:"ignore",windowsHide:!0}),!0}catch{return!1}}function s(){if(o||!r())return!0;try{return f("sudo -n true",{stdio:"ignore",windowsHide:!0}),!0}catch{return!1}}function t(a,b){return new Promise((c,d)=>{let f=r(),g=f?e("sudo",["-S","sh","-c",a],{stdio:["pipe","pipe","pipe"],windowsHide:!0}):e("sh",["-c",a],{stdio:["ignore","pipe","pipe"],windowsHide:!0}),h="",i="";g.stdout.on("data",a=>{h+=a}),g.stderr.on("data",a=>{i+=a}),g.on("close",a=>{0===a?c(h):d(Error(i||`Exit code ${a}`))}),f&&(g.stdin.write(`${b}
8
+ `),g.stdin.end())})}async function u(a){o||(p?await t("dscacheutil -flushcache && killall -HUP mDNSResponder",a):await t("resolvectl flush-caches 2>/dev/null || true",a))}function v(a=null){try{let b=g.readFileSync(q,"utf8");if(a)return b.includes(a);return k.antigravity.every(a=>b.includes(a))}catch{return!1}}async function w(a,b){let c=k[a];if(!c)throw Error(`Unknown tool: ${a}`);let d=c.filter(a=>!v(a));if(0===d.length)return void i(`🌐 DNS ${a}: already active`);try{if(o){let a=g.readFileSync(q,"utf8"),b=a.replace(/[\r\n\s]+$/g,""),c=d.map(a=>`127.0.0.1 ${a}`).join("\r\n"),e=`${b}\r
9
+ ${c}\r
10
+ `;n(q,a,e),await l("ipconfig /flushdns | Out-Null")}else{let a=g.readFileSync(q,"utf8").replace(/[\r\n\s]+$/g,""),c=d.map(a=>`127.0.0.1 ${a}`).join("\n"),e=`${a}
11
+ ${c}
12
+ `.replace(/'/g,"'\\''");await t(`printf '%s' '${e}' | tee ${q} > /dev/null`,b),await u(b)}i(`🌐 DNS ${a}: ✅ added ${d.join(", ")}`)}catch(a){throw Error(a.message?.includes("incorrect password")?"Wrong sudo password":`Failed to add DNS entry: ${a.message}`)}}async function x(a,b){let c=k[a];if(!c)throw Error(`Unknown tool: ${a}`);let d=c.filter(a=>v(a));if(0===d.length)return void i(`🌐 DNS ${a}: already inactive`);try{if(o){let a=g.readFileSync(q,"utf8"),b=a.split(/\r?\n/).filter(a=>!d.some(b=>a.includes(b))).join("\r\n").replace(/[\r\n\s]+$/g,"")+"\r\n";n(q,a,b),await l("ipconfig /flushdns | Out-Null")}else{let a=(g.readFileSync(q,"utf8").split(/\r?\n/).filter(a=>!d.some(b=>a.includes(b))).join("\n").replace(/[\r\n\s]+$/g,"")+"\n").replace(/'/g,"'\\''");await t(`printf '%s' '${a}' | tee ${q} > /dev/null`,b),await u(b)}i(`🌐 DNS ${a}: ✅ removed ${d.join(", ")}`)}catch(a){throw Error(a.message?.includes("incorrect password")?"Wrong sudo password":`Failed to remove DNS entry: ${a.message}`)}}async function y(a){for(let b of Object.keys(k))try{await x(b,a)}catch(a){j(`DNS ${b}: failed to remove — ${a.message}`)}}a.exports={TOOL_HOSTS:k,addDNSEntry:w,removeDNSEntry:x,removeAllDNSEntries:y,removeAllDNSEntriesSync:function(){try{if(!g.existsSync(q))return;let a=Object.values(k).flat(),b=g.readFileSync(q,"utf8"),c=o?"\r\n":"\n",d=b.split(/\r?\n/).filter(b=>!a.some(a=>b.includes(a))).join(c).replace(/[\r\n\s]+$/g,"")+c;if(d===b)return;if(g.writeFileSync(q,d,"utf8"),o)try{f("ipconfig /flushdns",{windowsHide:!0,stdio:"ignore"})}catch{}else if(p)try{f("dscacheutil -flushcache && killall -HUP mDNSResponder",{stdio:"ignore"})}catch{}else try{f("resolvectl flush-caches 2>/dev/null || true",{stdio:"ignore"})}catch{}}catch{}},execWithPassword:t,isSudoAvailable:r,canRunSudoWithoutPassword:s,isSudoPasswordRequired:function(){return!o&&r()&&!s()},checkDNSEntry:v,checkAllDNSStatus:function(){try{let a=g.readFileSync(q,"utf8"),b={};for(let[c,d]of Object.entries(k))b[c]=d.every(b=>a.includes(b));return b}catch{return Object.fromEntries(Object.keys(k).map(a=>[a,!1]))}}}},82193:(a,b,c)=>{let d=c(29021),e=c(33873),f=c(21820),g="zevairouter";function h(){return"win32"===process.platform?e.join(process.env.APPDATA||e.join(f.homedir(),"AppData","Roaming"),g):e.join(f.homedir(),`.${g}`)}let i=function(){let a=process.env.DATA_DIR;if(!a)return h();try{return d.mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${g}`),h();throw b}}(),j=e.join(i,"mitm");a.exports={DATA_DIR:i,MITM_DIR:j}},85341:a=>{a.exports={TOOL_HOSTS:{antigravity:["daily-cloudcode-pa.googleapis.com","cloudcode-pa.googleapis.com"],copilot:["api.individual.githubcopilot.com"],kiro:["q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com"],cursor:["api2.cursor.sh"]}}},87777:(a,b,c)=>{let d=c(29021),e=c(33873),f=c(74075),{DATA_DIR:g}=c(82193),{LOG_BLACKLIST_URL_PARTS:h}=c(17511);function i(){return new Date().toLocaleTimeString("en-US",{hour12:!1})}let j=e.join(g,"logs","mitm");d.existsSync(j)||d.mkdirSync(j,{recursive:!0});let k=/^\s*(\{\s*\}|\[\s*\]|null)?\s*$/;function l(a,b=80){return String(a).replace(/[^a-zA-Z0-9]/g,"_").substring(0,b)}function m(a){return!!a&&h.some(b=>a.includes(b))}a.exports={log:a=>console.log(`[${i()}] [MITM] ${a}`),err:a=>console.error(`[${i()}] ❌ [MITM] ${a}`),dumpRequest:function(a,b,c="raw"){if(m(a.url))return null;try{let f=new Date().toISOString().replace(/[:.]/g,"-"),g=l((a.headers.host||"")+a.url),h=e.join(j,`${f}_${c}_${g}.req.json`),i=null;try{i=JSON.parse(b.toString())}catch{}return d.writeFileSync(h,JSON.stringify({method:a.method,url:a.url,host:a.headers.host,headers:a.headers,body:i??b.toString("utf8")},null,2)),h}catch{return null}},createResponseDumper:function(a,b="raw"){if(m(a.url))return null;let c=new Date().toISOString().replace(/[:.]/g,"-"),g=l((a.headers.host||"")+a.url),h=e.join(j,`${c}_${b}_${g}.res.txt`),i=0,n={},o=[];return{writeHeader:(a,b)=>{i=a,n=b||{}},writeChunk:a=>{null!=a&&o.push(Buffer.isBuffer(a)?a:Buffer.from(a))},end:()=>{try{let a=Buffer.concat(o),b=n["content-encoding"]||n["Content-Encoding"],c=(function(a,b){if(!a||0===a.length)return a;try{let c=(b||"").toLowerCase();if(c.includes("gzip"))return f.gunzipSync(a);if(c.includes("br"))return f.brotliDecompressSync(a);if(c.includes("deflate"))return f.inflateSync(a)}catch{}return a})(a,b).toString("utf8");if(k.test(c))return;let e={...n};delete e["content-encoding"],delete e["Content-Encoding"];let g=`STATUS: ${i}
13
+ HEADERS: ${JSON.stringify(e,null,2)}
14
+ ---BODY---
15
+ ${c}`;d.writeFileSync(h,g)}catch{}},file:h}},clearDumpDir:function(){try{if(!d.existsSync(j))return;for(let a of d.readdirSync(j))try{d.rmSync(e.join(j,a),{recursive:!0,force:!0})}catch{}}catch{}}}}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=6951,exports.ids=[6951],exports.modules={6951:(a,b,c)=>{c.r(b),c.d(b,{syncToJson:()=>m,writeAliasForTool:()=>n});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j=process.env.DATA_DIR||("win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),"zevai"):g().join(i().homedir(),".zevai")),k=g().join(j,"mitm","aliases.json");function l(a){let b=g().dirname(k);e().mkdirSync(b,{recursive:!0});let c=`${k}.tmp`;e().writeFileSync(c,JSON.stringify(a,null,2),"utf8"),e().renameSync(c,k)}async function m(){try{let{getMitmAlias:a}=await Promise.resolve().then(c.bind(c,37703)),b=await a();l(b||{})}catch(a){console.log("[mitmAliasCache] sync failed:",a.message)}}function n(a,b){try{let c={};if(e().existsSync(k))try{c=JSON.parse(e().readFileSync(k,"utf8"))}catch{}c[a]=b||{},l(c)}catch(a){console.log("[mitmAliasCache] write failed:",a.message)}}}};