@hilbras/omnihilbras 2.9.4 → 2.9.6

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 (1018) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +22 -21
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +23 -23
  5. package/app/.next-cli-build/react-loadable-manifest.json +1 -1
  6. package/app/.next-cli-build/routes-manifest.json +8 -0
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  77. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  79. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  85. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  87. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  88. package/app/.next-cli-build/server/app/_not-found.rsc +7 -7
  89. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +7 -7
  90. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +7 -7
  91. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  92. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  93. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  95. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +2 -2
  109. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
  115. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  117. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  121. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  131. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  133. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  139. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  141. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js +2 -2
  149. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  151. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  153. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  157. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  159. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  163. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
  165. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  167. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  169. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  195. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/models/chat/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/models/chat/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/models/test-batch/route.js +2 -2
  221. package/app/.next-cli-build/server/app/api/models/test-batch/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  251. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
  257. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  271. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/providers/[id]/refresh/route.js +1 -0
  273. package/app/.next-cli-build/server/app/api/providers/[id]/refresh/route.js.nft.json +1 -0
  274. package/app/.next-cli-build/server/app/api/providers/[id]/refresh/route_client-reference-manifest.js +1 -0
  275. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/web-session/[id]/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/providers/web-session/[id]/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  300. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  302. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +2 -2
  304. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  310. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  312. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  314. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  316. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  318. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  320. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  322. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  324. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  328. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/settings/route.js +2 -2
  332. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  338. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  360. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/usage/rate-limit/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/usage/rate-limit/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  382. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  386. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
  396. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  402. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  414. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  415. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  418. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  419. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  420. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  421. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  422. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  424. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  425. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  426. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  427. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  428. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  429. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  430. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  431. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  432. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  433. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  434. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  435. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  436. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  437. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  438. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  439. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  440. package/app/.next-cli-build/server/app/callback.html +1 -1
  441. package/app/.next-cli-build/server/app/callback.rsc +7 -7
  442. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +7 -7
  443. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  444. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +7 -7
  445. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  446. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +12 -12
  447. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +12 -12
  448. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +12 -12
  449. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  450. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  451. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +12 -12
  452. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +12 -12
  453. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +12 -12
  454. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  455. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  456. package/app/.next-cli-build/server/app/dashboard/combos.rsc +12 -12
  457. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +12 -12
  458. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +12 -12
  459. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  460. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  461. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +12 -12
  462. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +12 -12
  463. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +12 -12
  464. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  465. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  466. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +12 -12
  467. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +12 -12
  468. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +12 -12
  469. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  470. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  471. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +12 -12
  472. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +12 -12
  473. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +12 -12
  474. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  475. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  476. package/app/.next-cli-build/server/app/dashboard/profile.rsc +12 -12
  477. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +12 -12
  478. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +12 -12
  479. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  480. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  481. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +12 -12
  482. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +12 -12
  483. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +12 -12
  484. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  485. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  486. package/app/.next-cli-build/server/app/dashboard/providers.rsc +12 -12
  487. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +12 -12
  488. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +12 -12
  489. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  490. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  491. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +12 -12
  492. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +12 -12
  493. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +12 -12
  494. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  495. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  496. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +12 -12
  497. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +12 -12
  498. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +12 -12
  499. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  500. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  501. package/app/.next-cli-build/server/app/dashboard/quota.rsc +13 -13
  502. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +13 -13
  503. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +13 -13
  504. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  505. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  506. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  507. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  508. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  509. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +7 -7
  510. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +7 -7
  511. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  512. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +7 -7
  513. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  514. package/app/.next-cli-build/server/app/dashboard/skills.rsc +12 -12
  515. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +12 -12
  516. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +12 -12
  517. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  518. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  519. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +12 -12
  520. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +12 -12
  521. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +12 -12
  522. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  523. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  524. package/app/.next-cli-build/server/app/dashboard/translator.rsc +12 -12
  525. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +12 -12
  526. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +12 -12
  527. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  528. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  529. package/app/.next-cli-build/server/app/dashboard/usage.rsc +12 -12
  530. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +12 -12
  531. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +12 -12
  532. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  533. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  534. package/app/.next-cli-build/server/app/dashboard.rsc +12 -12
  535. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +12 -12
  536. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +12 -12
  537. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  538. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  539. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  540. package/app/.next-cli-build/server/app/index.html +1 -1
  541. package/app/.next-cli-build/server/app/index.rsc +7 -7
  542. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +7 -7
  543. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +7 -7
  544. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  545. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  546. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  547. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  548. package/app/.next-cli-build/server/app/landing.html +1 -1
  549. package/app/.next-cli-build/server/app/landing.rsc +7 -7
  550. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
  551. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  552. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +7 -7
  553. package/app/.next-cli-build/server/app/login/page.js +1 -1
  554. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  555. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  556. package/app/.next-cli-build/server/app/login.html +1 -1
  557. package/app/.next-cli-build/server/app/login.rsc +9 -9
  558. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +9 -9
  559. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  560. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +9 -9
  561. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  562. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  563. package/app/.next-cli-build/server/app/page.js +1 -1
  564. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  565. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  566. package/app/.next-cli-build/server/app-paths-manifest.json +22 -21
  567. package/app/.next-cli-build/server/chunks/1133.js +1 -1
  568. package/app/.next-cli-build/server/chunks/1220.js +3 -0
  569. package/app/.next-cli-build/server/chunks/1329.js +1 -1
  570. package/app/.next-cli-build/server/chunks/1772.js +1 -0
  571. package/app/.next-cli-build/server/chunks/24.js +1 -1
  572. package/app/.next-cli-build/server/chunks/2617.js +1 -1
  573. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  574. package/app/.next-cli-build/server/chunks/412.js +1 -1
  575. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  576. package/app/.next-cli-build/server/chunks/4125.js +1 -1
  577. package/app/.next-cli-build/server/chunks/4199.js +1 -1
  578. package/app/.next-cli-build/server/chunks/436.js +1 -1
  579. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  580. package/app/.next-cli-build/server/chunks/5942.js +1 -0
  581. package/app/.next-cli-build/server/chunks/5961.js +2 -2
  582. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  583. package/app/.next-cli-build/server/chunks/615.js +1 -1
  584. package/app/.next-cli-build/server/chunks/6500.js +1 -0
  585. package/app/.next-cli-build/server/chunks/6503.js +1 -1
  586. package/app/.next-cli-build/server/chunks/6723.js +1 -1
  587. package/app/.next-cli-build/server/chunks/7066.js +1 -1
  588. package/app/.next-cli-build/server/chunks/7073.js +1 -1
  589. package/app/.next-cli-build/server/chunks/7121.js +1 -1
  590. package/app/.next-cli-build/server/chunks/7211.js +1 -1
  591. package/app/.next-cli-build/server/chunks/7247.js +1 -1
  592. package/app/.next-cli-build/server/chunks/7431.js +2 -2
  593. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  594. package/app/.next-cli-build/server/chunks/{5330.js → 7803.js} +5 -3
  595. package/app/.next-cli-build/server/chunks/7911.js +1 -1
  596. package/app/.next-cli-build/server/chunks/8064.js +14 -0
  597. package/app/.next-cli-build/server/chunks/820.js +1 -1
  598. package/app/.next-cli-build/server/chunks/8251.js +1 -1
  599. package/app/.next-cli-build/server/chunks/8287.js +1 -1
  600. package/app/.next-cli-build/server/chunks/8326.js +1 -0
  601. package/app/.next-cli-build/server/chunks/8401.js +1 -1
  602. package/app/.next-cli-build/server/chunks/8402.js +1 -1
  603. package/app/.next-cli-build/server/chunks/8525.js +1 -1
  604. package/app/.next-cli-build/server/chunks/8895.js +4 -4
  605. package/app/.next-cli-build/server/chunks/8910.js +1 -1
  606. package/app/.next-cli-build/server/chunks/{8499.js → 8932.js} +4 -4
  607. package/app/.next-cli-build/server/chunks/9300.js +1 -0
  608. package/app/.next-cli-build/server/chunks/9696.js +1 -1
  609. package/app/.next-cli-build/server/chunks/9771.js +1 -0
  610. package/app/.next-cli-build/server/instrumentation.js +1 -1
  611. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  612. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  613. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  614. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  615. package/app/.next-cli-build/server/pages/404.html +1 -1
  616. package/app/.next-cli-build/server/pages/500.html +1 -1
  617. package/app/.next-cli-build/static/chunks/{2723-8def0af25f7b656c.js → 2723-7d202e913c52264d.js} +1 -1
  618. package/app/.next-cli-build/static/chunks/{5497-27e3c950b5d97d41.js → 5497-df32bda6e3c66c2a.js} +2 -2
  619. package/app/.next-cli-build/static/chunks/6535-297e67715d4abb85.js +1 -0
  620. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-be58ffbf710a5dec.js → page-87b0b2766b21ede6.js} +1 -1
  621. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-2ee3f149ace63801.js → page-a0ef255d83660350.js} +1 -1
  622. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-033b10da013937e4.js → page-d5de86da01fac9bd.js} +1 -1
  623. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-90317ba3e66b73c8.js → page-14edc70fcece9047.js} +1 -1
  624. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-4773b0af283b77f7.js → page-70c28fbe58e17b0d.js} +1 -1
  625. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-c229336f166fc37b.js +1 -0
  626. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/{error-abf20f892d461b85.js → error-94a0159f99210870.js} +1 -1
  627. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-4431f9b1cc053b18.js → page-5fdea9fd546e0063.js} +1 -1
  628. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-509dda0d0869b182.js → page-d7c1a50fa922ca83.js} +1 -1
  629. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-40f87ec4dfb87552.js → page-046a406b20197530.js} +1 -1
  630. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-a4ab01f328185628.js → page-b50499e48b6a099c.js} +1 -1
  631. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-268b6a5d47d71042.js → page-3bba8935dd92bee4.js} +1 -1
  632. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-ca2960067152743b.js +1 -0
  633. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-7b0e605f98432f1c.js → page-e6c7197f9c81efc3.js} +1 -1
  634. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-a1bacf350c4ae077.js +27 -0
  635. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-4284719a1858706e.js → page-304a66b044fd4ff5.js} +1 -1
  636. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-9c31829dd643cc3e.js → page-e69cdb11bcd71898.js} +1 -1
  637. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-f4cd8f5657152167.js → page-9f64fe08cd8dac8b.js} +1 -1
  638. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-fbd06481ffdbb573.js → page-62e09cbc67d2d4f5.js} +1 -1
  639. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-1cc460b62cf32862.js +1 -0
  640. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-6d6e4ef9ef854866.js → page-c53f4e20cf7b3120.js} +1 -1
  641. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-277d1751a4a9a74b.js → page-541bcf5af0d03fb1.js} +1 -1
  642. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-7f602deed988a26d.js → page-5fab622f98217611.js} +1 -1
  643. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-219ebab18ab5b82b.js → page-ae08604ee21ac8cf.js} +1 -1
  644. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-c10319f075f1df9e.js → layout-af385a4b868c2a9d.js} +1 -1
  645. package/app/.next-cli-build/static/chunks/app/_global-error/{page-706c2ea1969b3c65.js → page-d2a5c6f6bbaeade2.js} +1 -1
  646. package/app/.next-cli-build/static/chunks/app/api/auth/login/{route-706c2ea1969b3c65.js → route-d2a5c6f6bbaeade2.js} +1 -1
  647. package/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-706c2ea1969b3c65.js → route-d2a5c6f6bbaeade2.js} +1 -1
  648. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-706c2ea1969b3c65.js → route-d2a5c6f6bbaeade2.js} +1 -1
  649. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-d2a5c6f6bbaeade2.js +1 -0
  650. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-d2a5c6f6bbaeade2.js +1 -0
  651. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-d2a5c6f6bbaeade2.js +1 -0
  652. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-d2a5c6f6bbaeade2.js +1 -0
  653. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-d2a5c6f6bbaeade2.js +1 -0
  654. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-d2a5c6f6bbaeade2.js +1 -0
  655. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-d2a5c6f6bbaeade2.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-d2a5c6f6bbaeade2.js +1 -0
  657. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-d2a5c6f6bbaeade2.js +1 -0
  658. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-d2a5c6f6bbaeade2.js +1 -0
  659. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-d2a5c6f6bbaeade2.js +1 -0
  660. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-d2a5c6f6bbaeade2.js +1 -0
  661. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-d2a5c6f6bbaeade2.js +1 -0
  662. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-d2a5c6f6bbaeade2.js +1 -0
  663. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-d2a5c6f6bbaeade2.js +1 -0
  664. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-d2a5c6f6bbaeade2.js +1 -0
  665. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-d2a5c6f6bbaeade2.js +1 -0
  666. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-d2a5c6f6bbaeade2.js +1 -0
  667. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-d2a5c6f6bbaeade2.js +1 -0
  668. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-d2a5c6f6bbaeade2.js +1 -0
  669. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-d2a5c6f6bbaeade2.js +1 -0
  670. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-d2a5c6f6bbaeade2.js +1 -0
  671. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-d2a5c6f6bbaeade2.js +1 -0
  672. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-d2a5c6f6bbaeade2.js +1 -0
  673. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-d2a5c6f6bbaeade2.js +1 -0
  674. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-d2a5c6f6bbaeade2.js +1 -0
  675. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-d2a5c6f6bbaeade2.js +1 -0
  676. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-d2a5c6f6bbaeade2.js +1 -0
  677. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-d2a5c6f6bbaeade2.js +1 -0
  678. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-d2a5c6f6bbaeade2.js +1 -0
  679. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-d2a5c6f6bbaeade2.js +1 -0
  680. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-d2a5c6f6bbaeade2.js +1 -0
  681. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-d2a5c6f6bbaeade2.js +1 -0
  682. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-d2a5c6f6bbaeade2.js +1 -0
  683. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-d2a5c6f6bbaeade2.js +1 -0
  684. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-d2a5c6f6bbaeade2.js +1 -0
  685. package/app/.next-cli-build/static/chunks/app/api/combos/route-d2a5c6f6bbaeade2.js +1 -0
  686. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-d2a5c6f6bbaeade2.js +1 -0
  687. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-d2a5c6f6bbaeade2.js +1 -0
  688. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-d2a5c6f6bbaeade2.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-d2a5c6f6bbaeade2.js +1 -0
  690. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-d2a5c6f6bbaeade2.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-d2a5c6f6bbaeade2.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/api/health/route-d2a5c6f6bbaeade2.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/api/init/route-d2a5c6f6bbaeade2.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-d2a5c6f6bbaeade2.js +1 -0
  695. package/app/.next-cli-build/static/chunks/app/api/keys/route-d2a5c6f6bbaeade2.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/api/locale/route-d2a5c6f6bbaeade2.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-d2a5c6f6bbaeade2.js +1 -0
  698. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-d2a5c6f6bbaeade2.js +1 -0
  699. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-d2a5c6f6bbaeade2.js +1 -0
  700. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-d2a5c6f6bbaeade2.js +1 -0
  701. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-d2a5c6f6bbaeade2.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-d2a5c6f6bbaeade2.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-d2a5c6f6bbaeade2.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-d2a5c6f6bbaeade2.js +1 -0
  705. package/app/.next-cli-build/static/chunks/app/api/models/chat/route-d2a5c6f6bbaeade2.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-d2a5c6f6bbaeade2.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-d2a5c6f6bbaeade2.js +1 -0
  708. package/app/.next-cli-build/static/chunks/app/api/models/route-d2a5c6f6bbaeade2.js +1 -0
  709. package/app/.next-cli-build/static/chunks/app/api/models/test/route-d2a5c6f6bbaeade2.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/models/test-batch/route-d2a5c6f6bbaeade2.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-d2a5c6f6bbaeade2.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-d2a5c6f6bbaeade2.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-d2a5c6f6bbaeade2.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-d2a5c6f6bbaeade2.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-d2a5c6f6bbaeade2.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-d2a5c6f6bbaeade2.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-d2a5c6f6bbaeade2.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-d2a5c6f6bbaeade2.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-d2a5c6f6bbaeade2.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-d2a5c6f6bbaeade2.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-d2a5c6f6bbaeade2.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-d2a5c6f6bbaeade2.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-d2a5c6f6bbaeade2.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-d2a5c6f6bbaeade2.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-d2a5c6f6bbaeade2.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-d2a5c6f6bbaeade2.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-d2a5c6f6bbaeade2.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-d2a5c6f6bbaeade2.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-d2a5c6f6bbaeade2.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/pricing/route-d2a5c6f6bbaeade2.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-d2a5c6f6bbaeade2.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-d2a5c6f6bbaeade2.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-d2a5c6f6bbaeade2.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-d2a5c6f6bbaeade2.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-d2a5c6f6bbaeade2.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh/route-d2a5c6f6bbaeade2.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-d2a5c6f6bbaeade2.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-d2a5c6f6bbaeade2.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-d2a5c6f6bbaeade2.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-d2a5c6f6bbaeade2.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-d2a5c6f6bbaeade2.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/providers/route-d2a5c6f6bbaeade2.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-d2a5c6f6bbaeade2.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-d2a5c6f6bbaeade2.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-d2a5c6f6bbaeade2.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/providers/web-session/[id]/route-d2a5c6f6bbaeade2.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-d2a5c6f6bbaeade2.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-d2a5c6f6bbaeade2.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-d2a5c6f6bbaeade2.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-d2a5c6f6bbaeade2.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-d2a5c6f6bbaeade2.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-d2a5c6f6bbaeade2.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-d2a5c6f6bbaeade2.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-d2a5c6f6bbaeade2.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-d2a5c6f6bbaeade2.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-d2a5c6f6bbaeade2.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-d2a5c6f6bbaeade2.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-d2a5c6f6bbaeade2.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-d2a5c6f6bbaeade2.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-d2a5c6f6bbaeade2.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-d2a5c6f6bbaeade2.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-d2a5c6f6bbaeade2.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-d2a5c6f6bbaeade2.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-d2a5c6f6bbaeade2.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/settings/route-d2a5c6f6bbaeade2.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-d2a5c6f6bbaeade2.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-d2a5c6f6bbaeade2.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-d2a5c6f6bbaeade2.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-d2a5c6f6bbaeade2.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-d2a5c6f6bbaeade2.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-d2a5c6f6bbaeade2.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-d2a5c6f6bbaeade2.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-d2a5c6f6bbaeade2.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-d2a5c6f6bbaeade2.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-d2a5c6f6bbaeade2.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-d2a5c6f6bbaeade2.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-d2a5c6f6bbaeade2.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-d2a5c6f6bbaeade2.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-d2a5c6f6bbaeade2.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-d2a5c6f6bbaeade2.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-d2a5c6f6bbaeade2.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-d2a5c6f6bbaeade2.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-d2a5c6f6bbaeade2.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-d2a5c6f6bbaeade2.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-d2a5c6f6bbaeade2.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/usage/rate-limit/route-d2a5c6f6bbaeade2.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-d2a5c6f6bbaeade2.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-d2a5c6f6bbaeade2.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-d2a5c6f6bbaeade2.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-d2a5c6f6bbaeade2.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-d2a5c6f6bbaeade2.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-d2a5c6f6bbaeade2.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-d2a5c6f6bbaeade2.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-d2a5c6f6bbaeade2.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-d2a5c6f6bbaeade2.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-d2a5c6f6bbaeade2.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-d2a5c6f6bbaeade2.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-d2a5c6f6bbaeade2.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-d2a5c6f6bbaeade2.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-d2a5c6f6bbaeade2.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-d2a5c6f6bbaeade2.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-d2a5c6f6bbaeade2.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-d2a5c6f6bbaeade2.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-d2a5c6f6bbaeade2.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/v1/route-d2a5c6f6bbaeade2.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-d2a5c6f6bbaeade2.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-d2a5c6f6bbaeade2.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-d2a5c6f6bbaeade2.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-d2a5c6f6bbaeade2.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-d2a5c6f6bbaeade2.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-d2a5c6f6bbaeade2.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-d2a5c6f6bbaeade2.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-d2a5c6f6bbaeade2.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-d2a5c6f6bbaeade2.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/version/route-d2a5c6f6bbaeade2.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-d2a5c6f6bbaeade2.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/version/update/route-d2a5c6f6bbaeade2.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/login/{page-5b2e90e19afaec82.js → page-1e43af53f6214671.js} +1 -1
  819. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-d2a5c6f6bbaeade2.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/page-d2a5c6f6bbaeade2.js +1 -0
  821. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-d2a5c6f6bbaeade2.js +1 -0
  822. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-d2a5c6f6bbaeade2.js +1 -0
  823. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-d2a5c6f6bbaeade2.js +1 -0
  824. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-d2a5c6f6bbaeade2.js +1 -0
  825. package/app/.next-cli-build/static/chunks/{webpack-782105d317e211e2.js → webpack-2a9ce2c5b55aa5a4.js} +1 -1
  826. package/app/.next-cli-build/static/css/73729572c2967c28.css +1 -0
  827. package/app/package.json +6 -3
  828. package/app/public/providers/zcode.png +0 -0
  829. package/app/src/mitm/server.js +27 -27
  830. package/package.json +1 -1
  831. package/src/cli/menus/settings.js +16 -9
  832. package/app/.next-cli-build/server/chunks/2712.js +0 -3
  833. package/app/.next-cli-build/server/chunks/2881.js +0 -1
  834. package/app/.next-cli-build/server/chunks/7914.js +0 -1
  835. package/app/.next-cli-build/server/chunks/7992.js +0 -1
  836. package/app/.next-cli-build/server/chunks/9617.js +0 -1
  837. package/app/.next-cli-build/static/chunks/246-0bbd2c1424911b5c.js +0 -1
  838. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-22bd9a3196952cf5.js +0 -1
  839. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-631c216c13c7bd3d.js +0 -1
  840. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-7f56fcd67de5a4df.js +0 -27
  841. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-a2334bcea51abcc8.js +0 -1
  842. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-706c2ea1969b3c65.js +0 -1
  843. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-706c2ea1969b3c65.js +0 -1
  844. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-706c2ea1969b3c65.js +0 -1
  845. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-706c2ea1969b3c65.js +0 -1
  846. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-706c2ea1969b3c65.js +0 -1
  847. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-706c2ea1969b3c65.js +0 -1
  848. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-706c2ea1969b3c65.js +0 -1
  849. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-706c2ea1969b3c65.js +0 -1
  850. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-706c2ea1969b3c65.js +0 -1
  851. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-706c2ea1969b3c65.js +0 -1
  852. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-706c2ea1969b3c65.js +0 -1
  853. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-706c2ea1969b3c65.js +0 -1
  854. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-706c2ea1969b3c65.js +0 -1
  855. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-706c2ea1969b3c65.js +0 -1
  856. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-706c2ea1969b3c65.js +0 -1
  857. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-706c2ea1969b3c65.js +0 -1
  858. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-706c2ea1969b3c65.js +0 -1
  859. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-706c2ea1969b3c65.js +0 -1
  860. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-706c2ea1969b3c65.js +0 -1
  861. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-706c2ea1969b3c65.js +0 -1
  862. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-706c2ea1969b3c65.js +0 -1
  863. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-706c2ea1969b3c65.js +0 -1
  864. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-706c2ea1969b3c65.js +0 -1
  865. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-706c2ea1969b3c65.js +0 -1
  866. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-706c2ea1969b3c65.js +0 -1
  867. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-706c2ea1969b3c65.js +0 -1
  868. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-706c2ea1969b3c65.js +0 -1
  869. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-706c2ea1969b3c65.js +0 -1
  870. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-706c2ea1969b3c65.js +0 -1
  871. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-706c2ea1969b3c65.js +0 -1
  872. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-706c2ea1969b3c65.js +0 -1
  873. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-706c2ea1969b3c65.js +0 -1
  874. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-706c2ea1969b3c65.js +0 -1
  875. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-706c2ea1969b3c65.js +0 -1
  876. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-706c2ea1969b3c65.js +0 -1
  877. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-706c2ea1969b3c65.js +0 -1
  878. package/app/.next-cli-build/static/chunks/app/api/combos/route-706c2ea1969b3c65.js +0 -1
  879. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-706c2ea1969b3c65.js +0 -1
  880. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-706c2ea1969b3c65.js +0 -1
  881. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-706c2ea1969b3c65.js +0 -1
  882. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-706c2ea1969b3c65.js +0 -1
  883. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-706c2ea1969b3c65.js +0 -1
  884. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-706c2ea1969b3c65.js +0 -1
  885. package/app/.next-cli-build/static/chunks/app/api/health/route-706c2ea1969b3c65.js +0 -1
  886. package/app/.next-cli-build/static/chunks/app/api/init/route-706c2ea1969b3c65.js +0 -1
  887. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-706c2ea1969b3c65.js +0 -1
  888. package/app/.next-cli-build/static/chunks/app/api/keys/route-706c2ea1969b3c65.js +0 -1
  889. package/app/.next-cli-build/static/chunks/app/api/locale/route-706c2ea1969b3c65.js +0 -1
  890. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-706c2ea1969b3c65.js +0 -1
  891. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-706c2ea1969b3c65.js +0 -1
  892. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-706c2ea1969b3c65.js +0 -1
  893. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-706c2ea1969b3c65.js +0 -1
  894. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-706c2ea1969b3c65.js +0 -1
  895. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-706c2ea1969b3c65.js +0 -1
  896. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-706c2ea1969b3c65.js +0 -1
  897. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-706c2ea1969b3c65.js +0 -1
  898. package/app/.next-cli-build/static/chunks/app/api/models/chat/route-706c2ea1969b3c65.js +0 -1
  899. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-706c2ea1969b3c65.js +0 -1
  900. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-706c2ea1969b3c65.js +0 -1
  901. package/app/.next-cli-build/static/chunks/app/api/models/route-706c2ea1969b3c65.js +0 -1
  902. package/app/.next-cli-build/static/chunks/app/api/models/test/route-706c2ea1969b3c65.js +0 -1
  903. package/app/.next-cli-build/static/chunks/app/api/models/test-batch/route-706c2ea1969b3c65.js +0 -1
  904. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-706c2ea1969b3c65.js +0 -1
  905. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-706c2ea1969b3c65.js +0 -1
  906. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-706c2ea1969b3c65.js +0 -1
  907. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-706c2ea1969b3c65.js +0 -1
  908. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-706c2ea1969b3c65.js +0 -1
  909. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-706c2ea1969b3c65.js +0 -1
  910. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-706c2ea1969b3c65.js +0 -1
  911. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-706c2ea1969b3c65.js +0 -1
  912. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-706c2ea1969b3c65.js +0 -1
  913. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-706c2ea1969b3c65.js +0 -1
  914. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-706c2ea1969b3c65.js +0 -1
  915. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-706c2ea1969b3c65.js +0 -1
  916. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-706c2ea1969b3c65.js +0 -1
  917. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-706c2ea1969b3c65.js +0 -1
  918. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-706c2ea1969b3c65.js +0 -1
  919. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-706c2ea1969b3c65.js +0 -1
  920. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-706c2ea1969b3c65.js +0 -1
  921. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-706c2ea1969b3c65.js +0 -1
  922. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-706c2ea1969b3c65.js +0 -1
  923. package/app/.next-cli-build/static/chunks/app/api/pricing/route-706c2ea1969b3c65.js +0 -1
  924. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-706c2ea1969b3c65.js +0 -1
  925. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-706c2ea1969b3c65.js +0 -1
  926. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-706c2ea1969b3c65.js +0 -1
  927. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-706c2ea1969b3c65.js +0 -1
  928. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-706c2ea1969b3c65.js +0 -1
  929. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-706c2ea1969b3c65.js +0 -1
  930. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-706c2ea1969b3c65.js +0 -1
  931. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-706c2ea1969b3c65.js +0 -1
  932. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-706c2ea1969b3c65.js +0 -1
  933. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-706c2ea1969b3c65.js +0 -1
  934. package/app/.next-cli-build/static/chunks/app/api/providers/route-706c2ea1969b3c65.js +0 -1
  935. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-706c2ea1969b3c65.js +0 -1
  936. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-706c2ea1969b3c65.js +0 -1
  937. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-706c2ea1969b3c65.js +0 -1
  938. package/app/.next-cli-build/static/chunks/app/api/providers/web-session/[id]/route-706c2ea1969b3c65.js +0 -1
  939. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-706c2ea1969b3c65.js +0 -1
  940. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-706c2ea1969b3c65.js +0 -1
  941. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-706c2ea1969b3c65.js +0 -1
  942. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-706c2ea1969b3c65.js +0 -1
  943. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-706c2ea1969b3c65.js +0 -1
  944. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-706c2ea1969b3c65.js +0 -1
  945. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-706c2ea1969b3c65.js +0 -1
  946. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-706c2ea1969b3c65.js +0 -1
  947. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-706c2ea1969b3c65.js +0 -1
  948. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-706c2ea1969b3c65.js +0 -1
  949. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-706c2ea1969b3c65.js +0 -1
  950. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-706c2ea1969b3c65.js +0 -1
  951. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-706c2ea1969b3c65.js +0 -1
  952. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-706c2ea1969b3c65.js +0 -1
  953. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-706c2ea1969b3c65.js +0 -1
  954. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-706c2ea1969b3c65.js +0 -1
  955. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-706c2ea1969b3c65.js +0 -1
  956. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-706c2ea1969b3c65.js +0 -1
  957. package/app/.next-cli-build/static/chunks/app/api/settings/route-706c2ea1969b3c65.js +0 -1
  958. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-706c2ea1969b3c65.js +0 -1
  959. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-706c2ea1969b3c65.js +0 -1
  960. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-706c2ea1969b3c65.js +0 -1
  961. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-706c2ea1969b3c65.js +0 -1
  962. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-706c2ea1969b3c65.js +0 -1
  963. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-706c2ea1969b3c65.js +0 -1
  964. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-706c2ea1969b3c65.js +0 -1
  965. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-706c2ea1969b3c65.js +0 -1
  966. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-706c2ea1969b3c65.js +0 -1
  967. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-706c2ea1969b3c65.js +0 -1
  968. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-706c2ea1969b3c65.js +0 -1
  969. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-706c2ea1969b3c65.js +0 -1
  970. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-706c2ea1969b3c65.js +0 -1
  971. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-706c2ea1969b3c65.js +0 -1
  972. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-706c2ea1969b3c65.js +0 -1
  973. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-706c2ea1969b3c65.js +0 -1
  974. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-706c2ea1969b3c65.js +0 -1
  975. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-706c2ea1969b3c65.js +0 -1
  976. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-706c2ea1969b3c65.js +0 -1
  977. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-706c2ea1969b3c65.js +0 -1
  978. package/app/.next-cli-build/static/chunks/app/api/usage/rate-limit/route-706c2ea1969b3c65.js +0 -1
  979. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-706c2ea1969b3c65.js +0 -1
  980. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-706c2ea1969b3c65.js +0 -1
  981. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-706c2ea1969b3c65.js +0 -1
  982. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-706c2ea1969b3c65.js +0 -1
  983. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-706c2ea1969b3c65.js +0 -1
  984. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-706c2ea1969b3c65.js +0 -1
  985. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-706c2ea1969b3c65.js +0 -1
  986. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-706c2ea1969b3c65.js +0 -1
  987. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-706c2ea1969b3c65.js +0 -1
  988. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-706c2ea1969b3c65.js +0 -1
  989. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-706c2ea1969b3c65.js +0 -1
  990. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-706c2ea1969b3c65.js +0 -1
  991. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-706c2ea1969b3c65.js +0 -1
  992. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-706c2ea1969b3c65.js +0 -1
  993. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-706c2ea1969b3c65.js +0 -1
  994. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-706c2ea1969b3c65.js +0 -1
  995. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-706c2ea1969b3c65.js +0 -1
  996. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-706c2ea1969b3c65.js +0 -1
  997. package/app/.next-cli-build/static/chunks/app/api/v1/route-706c2ea1969b3c65.js +0 -1
  998. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-706c2ea1969b3c65.js +0 -1
  999. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-706c2ea1969b3c65.js +0 -1
  1000. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-706c2ea1969b3c65.js +0 -1
  1001. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-706c2ea1969b3c65.js +0 -1
  1002. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-706c2ea1969b3c65.js +0 -1
  1003. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-706c2ea1969b3c65.js +0 -1
  1004. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-706c2ea1969b3c65.js +0 -1
  1005. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-706c2ea1969b3c65.js +0 -1
  1006. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-706c2ea1969b3c65.js +0 -1
  1007. package/app/.next-cli-build/static/chunks/app/api/version/route-706c2ea1969b3c65.js +0 -1
  1008. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-706c2ea1969b3c65.js +0 -1
  1009. package/app/.next-cli-build/static/chunks/app/api/version/update/route-706c2ea1969b3c65.js +0 -1
  1010. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-706c2ea1969b3c65.js +0 -1
  1011. package/app/.next-cli-build/static/chunks/app/page-706c2ea1969b3c65.js +0 -1
  1012. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-706c2ea1969b3c65.js +0 -1
  1013. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-706c2ea1969b3c65.js +0 -1
  1014. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-706c2ea1969b3c65.js +0 -1
  1015. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-706c2ea1969b3c65.js +0 -1
  1016. package/app/.next-cli-build/static/css/e8a9dbb2db708090.css +0 -1
  1017. /package/app/.next-cli-build/static/{CLokmNR1eeMLVVvsXga7b → 50L_O0gZpitHt-drH8zm8}/_buildManifest.js +0 -0
  1018. /package/app/.next-cli-build/static/{CLokmNR1eeMLVVvsXga7b → 50L_O0gZpitHt-drH8zm8}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";exports.id=8499,exports.ids=[8499],exports.modules={4845:(a,b,c)=>{c.d(b,{v:()=>v});var d=c(88499),e=c(14170),f=c(32271),g=c(34097),h=c(17242),i=c(44090),j=c(43698);function k(a,b,c){a.reasoningId||(a.reasoningId=`rs_${a.responseId}_${c}`,a.reasoningIndex=c,b("response.output_item.added",{type:"response.output_item.added",output_index:c,item:{id:a.reasoningId,type:j.Du.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:j.Du.SUMMARY_TEXT,text:""}}),a.reasoningPartAdded=!0)}function l(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 m(a,b){if(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:j.Du.SUMMARY_TEXT,text:a.reasoningBuf}});let c={id:a.reasoningId,type:j.Du.REASONING,summary:[{type:j.Du.SUMMARY_TEXT,text:a.reasoningBuf}]};b("response.output_item.done",{type:"response.output_item.done",output_index:a.reasoningIndex,item:c}),r(a,a.reasoningIndex,c)}}function n(a,b,c){if(a.msgItemAdded[c]&&!a.msgItemDone[c]){a.msgItemDone[c]=!0;let d=a.msgTextBuf[c]||"",e=`msg_${a.responseId}_${c}`;b("response.output_text.done",{type:"response.output_text.done",item_id:e,output_index:parseInt(c),content_index:0,text:d,logprobs:[]}),b("response.content_part.done",{type:"response.content_part.done",item_id:e,output_index:parseInt(c),content_index:0,part:{type:j.Du.OUTPUT_TEXT,annotations:[],logprobs:[],text:d}});let f={id:e,type:j.Du.MESSAGE,content:[{type:j.Du.OUTPUT_TEXT,annotations:[],logprobs:[],text:d}],role:j.z7.ASSISTANT};b("response.output_item.done",{type:"response.output_item.done",output_index:parseInt(c),item:f}),r(a,parseInt(c),f)}}function o(a,b){return!!b&&a.customToolNames?.has(b)}function p(a){if("string"!=typeof a)return"";try{let b=JSON.parse(a);if(b&&"object"==typeof b&&"string"==typeof b.input)return b.input}catch{}return a}function q(a,b,c){let d=a.funcCallIds[c];if(d&&!a.funcItemDone[c]){let e=a.funcArgsBuf[c]||"{}",f=o(a,a.funcNames[c]);if(f){let a=p(e);b("response.custom_tool_call_input.delta",{type:"response.custom_tool_call_input.delta",item_id:`ctc_${d}`,output_index:parseInt(c),delta:a}),b("response.custom_tool_call_input.done",{type:"response.custom_tool_call_input.done",item_id:`ctc_${d}`,output_index:parseInt(c),input:a})}else b("response.function_call_arguments.done",{type:"response.function_call_arguments.done",item_id:`fc_${d}`,output_index:parseInt(c),arguments:e});let g={id:`${f?"ctc":"fc"}_${d}`,type:f?j.Du.CUSTOM_TOOL_CALL:j.Du.FUNCTION_CALL,...f?{input:p(e)}:{arguments:e},call_id:d,name:a.funcNames[c]||""};b("response.output_item.done",{type:"response.output_item.done",output_index:parseInt(c),item:g}),r(a,parseInt(c),g),a.funcItemDone[c]=!0,a.funcArgsDone[c]=!0}}function r(a,b,c){a.completedOutputItems??=new Map;let d=Number.isInteger(b)?b:Number.parseInt(b,10)||0;a.completedOutputItems.set(d,c)}function s(a,b){if(!a.completedSent){let c;a.completedSent=!0,b("response.completed",{type:"response.completed",response:{id:a.responseId,object:"response",created_at:a.created,status:"completed",background:!1,error:null,output:(c=a.completedOutputItems)instanceof Map&&0!==c.size?[...c.entries()].sort((a,b)=>a[0]-b[0]).map(([,a])=>a):[],...a.responsesUsage?{usage:a.responsesUsage}:{}}})}}function t(a){if(a.completedSent)return[];let b=[],c=(c,d)=>{d.sequence_number=++a.seq,b.push({event:c,data:d})};for(let b in a.msgItemAdded)n(a,c,b);for(let b in m(a,c),a.funcCallIds)q(a,c,b);return s(a,c),b}function u(a){return a.toolCallIndex>0||a.currentToolCallId?j.bC.TOOL_CALLS:j.bC.STOP}function v(a,b){if(!a){if(b.finishReasonSent||!b.started)return null;let a=u(b);b.finishReasonSent=!0,b.finishReason=a;let c=(0,f.k)({id:b.chatId||`chatcmpl-${Date.now()}`,created:b.created||Math.floor(Date.now()/1e3),model:b.model||j.rP},{},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,b.respToolChatIndex??=new Map,b.respToolArgsEmitted??=new Set),"response.output_text.delta"===c){let a=d.delta||"";return a?(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},{content:a}):null}if("response.output_text.done"===c)return null;if("response.output_item.added"===c&&(d.item?.type===j.Du.FUNCTION_CALL||d.item?.type==="custom_tool_call")){let a,c=d.item;b.currentToolCallId=c.call_id||(0,h.eG)(),b.respToolChatIndex??=new Map;let e=c.id||d.item_id||b.currentToolCallId;return e&&b.respToolChatIndex.has(e)?a=b.respToolChatIndex.get(e):(a=b.toolCallIndex++,e&&b.respToolChatIndex.set(e,a)),(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},{tool_calls:[{index:a,id:b.currentToolCallId,type:j.x4.FUNCTION,function:{name:c.name||"",arguments:""}}]})}if("response.function_call_arguments.delta"===c||"response.custom_tool_call_input.delta"===c){let a=d.delta||"";if(!a)return null;let c=(d.item_id?b.respToolChatIndex?.get(d.item_id):void 0)??Math.max(0,(b.toolCallIndex||1)-1);return b.respToolArgsEmitted??=new Set,b.respToolArgsEmitted.add(c),(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},{tool_calls:[{index:c,function:{arguments:a}}]})}if("response.output_item.done"===c&&(d.item?.type===j.Du.FUNCTION_CALL||d.item?.type==="custom_tool_call")){let a=d.item?.id||d.item_id,c=(a&&b.respToolChatIndex?.get(a))??Math.max(0,(b.toolCallIndex||1)-1),e=d.item?.arguments;return"string"==typeof e&&e&&(b.respToolArgsEmitted??=new Set,!b.respToolArgsEmitted.has(c))?(b.respToolArgsEmitted.add(c),(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},{tool_calls:[{index:c,function:{arguments:e}}]})):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=(0,g.c)({promptTokens:c,completionTokens:d,totalTokens:c+d,cachedTokens:e})}if(!b.finishReasonSent){let a=u(b);b.finishReasonSent=!0,b.finishReason=a;let c=(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},{},a);return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}return null}if("error"===c||"response.failed"===c){if(b.finishReasonSent)return null;let a=d.error||d.response?.error;return a?(b.error=a,b.finishReasonSent=!0,(0,f.k)({id:b.chatId||`chatcmpl-${Date.now()}`,created:b.created||Math.floor(Date.now()/1e3),model:b.model||j.rP},{content:`[Error] ${a.message||JSON.stringify(a)}`},j.bC.STOP)):null}if("response.reasoning_summary_text.delta"===c){let a=d.delta||"";return a?(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},(0,i.B)(a)):null}return null}(0,d.kz)(e.h.OPENAI,e.h.OPENAI_RESPONSES,null,function(a,b){if(!a)return t(b);let c=function(a){if(!a||"object"!=typeof a)return null;let b=[a.input_tokens,a.prompt_tokens].find(Number.isInteger),c=[a.output_tokens,a.completion_tokens].find(Number.isInteger);if(void 0===b||void 0===c||b+c<=0)return null;let d={input_tokens:b,output_tokens:c,total_tokens:b+c},e=[a.input_tokens_details?.cached_tokens,a.prompt_tokens_details?.cached_tokens].find(Number.isInteger),f=[a.output_tokens_details?.reasoning_tokens,a.completion_tokens_details?.reasoning_tokens].find(Number.isInteger);return Number.isInteger(e)&&(d.input_tokens_details={cached_tokens:e}),Number.isInteger(f)&&(d.output_tokens_details={reasoning_tokens:f}),d}(a.usage);if(c&&(b.responsesUsage=c),!a.choices?.length)return b.completionPending&&b.responsesUsage?t(b):[];let d=[],f=(a,c)=>{c.sequence_number=++b.seq,d.push({event:a,data:c})},g=a.choices[0],h=g.index||0,p=g.delta||{};b.started||(b.started=!0,b.responseId=a.id?`resp_${a.id}`:b.responseId,f("response.created",{type:"response.created",response:{id:b.responseId,object:"response",created_at:b.created,status:"in_progress",background:!1,error:null,output:[]}}),f("response.in_progress",{type:"response.in_progress",response:{id:b.responseId,object:"response",created_at:b.created,status:"in_progress"}}));let r=(0,i.V)(p);if(r&&(k(b,f,h),l(b,f,r)),p.content){let a=p.content;if(a.includes("<think>")&&(b.inThinking=!0,a=a.replace("<think>",""),k(b,f,h)),a.includes("</think>")){let c=a.split("</think>"),d=c[0],e=c.slice(1).join("</think>");d&&l(b,f,d),m(b,f),b.inThinking=!1,a=e}if(b.inThinking&&a)return l(b,f,a),d;a&&(m(b,f),function(a,b,c,d){if(!a.msgItemAdded[c]){a.msgItemAdded[c]=!0;let d=`msg_${a.responseId}_${c}`;b("response.output_item.added",{type:"response.output_item.added",output_index:c,item:{id:d,type:j.Du.MESSAGE,content:[],role:j.z7.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:c,content_index:0,part:{type:j.Du.OUTPUT_TEXT,annotations:[],logprobs:[],text:""}})),b("response.output_text.delta",{type:"response.output_text.delta",item_id:`msg_${a.responseId}_${c}`,output_index:c,content_index:0,delta:d,logprobs:[]}),a.msgTextBuf[c]||(a.msgTextBuf[c]=""),a.msgTextBuf[c]+=d}(b,f,h,a))}if(p.tool_calls&&p.tool_calls.length)for(let a of(m(b,f),n(b,f,h),p.tool_calls))!function(a,b,c){let d=c.index??0,e=c.id,f=c.function?.name;f&&(a.funcNames[d]=f),e&&(a.funcCallIds[d]=e);let g=a.funcCallIds[d];if(!a.funcItemAdded[d]&&g&&a.funcNames[d]){a.funcItemAdded[d]=!0;let c=o(a,a.funcNames[d]);b("response.output_item.added",{type:"response.output_item.added",output_index:d,item:{id:`${c?"ctc":"fc"}_${g}`,type:c?j.Du.CUSTOM_TOOL_CALL:j.Du.FUNCTION_CALL,...c?{input:""}:{arguments:""},call_id:g,name:a.funcNames[d]||""}})}if(a.funcArgsBuf[d]||(a.funcArgsBuf[d]=""),c.function?.arguments){let f=a.funcCallIds[d]||e;a.funcItemAdded[d]&&f&&!o(a,a.funcNames[d])&&b("response.function_call_arguments.delta",{type:"response.function_call_arguments.delta",item_id:`fc_${f}`,output_index:d,delta:c.function.arguments}),a.funcArgsBuf[d]+=c.function.arguments}}(b,f,a);if(g.finish_reason){for(let a in b.msgItemAdded)n(b,f,a);for(let a in m(b,f),b.funcCallIds)q(b,f,a);let a=b.targetFormat===e.h.OPENAI;b.responsesUsage||!a?s(b,f):b.completionPending=!0}return d}),(0,d.kz)(e.h.OPENAI_RESPONSES,e.h.OPENAI,null,v)},6382:(a,b,c)=>{c.d(b,{$D:()=>y,BB:()=>n,Oj:()=>i,P9:()=>q,QR:()=>l,We:()=>m,Zm:()=>h,aZ:()=>z,cr:()=>u,h3:()=>j,pA:()=>t,rG:()=>p,rx:()=>k,y2:()=>o,yh:()=>v});var d=c(52136),e=c(58028);let f="-agentic",g="-thinking",h=64,i=10237,j=64,k="AmazonCodeWhispererStreamingService.GenerateAssistantResponse",l=new Set([401,403,404]);function m(a){return"google"===a||"github"===a?"arn:aws:codewhisperer:us-east-1:699475941385:profile/EHGA3GRVQMUK":"arn:aws:codewhisperer:us-east-1:638616132270:profile/AAAACCCCXXXX"}function n(a){let{cleanModel:b,override:c}=(0,d.nF)(a);return{model:b,...y(b),thinkingOverride:c}}function o(a,b){if(!b)return a;let c={...a};return"budget"===b.mode?(delete c.output_config,delete c.reasoning_effort,delete c.reasoning,c.thinking={type:"enabled",budget_tokens:b.budget}):c.output_config={...a.output_config||{},effort:"level"===b.mode?b.level:b.mode},c}let p=`
1
+ "use strict";exports.id=8932,exports.ids=[1772,8932],exports.modules={4845:(a,b,c)=>{c.d(b,{v:()=>v});var d=c(88499),e=c(14170),f=c(32271),g=c(34097),h=c(17242),i=c(44090),j=c(43698);function k(a,b,c){a.reasoningId||(a.reasoningId=`rs_${a.responseId}_${c}`,a.reasoningIndex=c,b("response.output_item.added",{type:"response.output_item.added",output_index:c,item:{id:a.reasoningId,type:j.Du.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:j.Du.SUMMARY_TEXT,text:""}}),a.reasoningPartAdded=!0)}function l(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 m(a,b){if(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:j.Du.SUMMARY_TEXT,text:a.reasoningBuf}});let c={id:a.reasoningId,type:j.Du.REASONING,summary:[{type:j.Du.SUMMARY_TEXT,text:a.reasoningBuf}]};b("response.output_item.done",{type:"response.output_item.done",output_index:a.reasoningIndex,item:c}),r(a,a.reasoningIndex,c)}}function n(a,b,c){if(a.msgItemAdded[c]&&!a.msgItemDone[c]){a.msgItemDone[c]=!0;let d=a.msgTextBuf[c]||"",e=`msg_${a.responseId}_${c}`;b("response.output_text.done",{type:"response.output_text.done",item_id:e,output_index:parseInt(c),content_index:0,text:d,logprobs:[]}),b("response.content_part.done",{type:"response.content_part.done",item_id:e,output_index:parseInt(c),content_index:0,part:{type:j.Du.OUTPUT_TEXT,annotations:[],logprobs:[],text:d}});let f={id:e,type:j.Du.MESSAGE,content:[{type:j.Du.OUTPUT_TEXT,annotations:[],logprobs:[],text:d}],role:j.z7.ASSISTANT};b("response.output_item.done",{type:"response.output_item.done",output_index:parseInt(c),item:f}),r(a,parseInt(c),f)}}function o(a,b){return!!b&&a.customToolNames?.has(b)}function p(a){if("string"!=typeof a)return"";try{let b=JSON.parse(a);if(b&&"object"==typeof b&&"string"==typeof b.input)return b.input}catch{}return a}function q(a,b,c){let d=a.funcCallIds[c];if(d&&!a.funcItemDone[c]){let e=a.funcArgsBuf[c]||"{}",f=o(a,a.funcNames[c]);if(f){let a=p(e);b("response.custom_tool_call_input.delta",{type:"response.custom_tool_call_input.delta",item_id:`ctc_${d}`,output_index:parseInt(c),delta:a}),b("response.custom_tool_call_input.done",{type:"response.custom_tool_call_input.done",item_id:`ctc_${d}`,output_index:parseInt(c),input:a})}else b("response.function_call_arguments.done",{type:"response.function_call_arguments.done",item_id:`fc_${d}`,output_index:parseInt(c),arguments:e});let g={id:`${f?"ctc":"fc"}_${d}`,type:f?j.Du.CUSTOM_TOOL_CALL:j.Du.FUNCTION_CALL,...f?{input:p(e)}:{arguments:e},call_id:d,name:a.funcNames[c]||""};b("response.output_item.done",{type:"response.output_item.done",output_index:parseInt(c),item:g}),r(a,parseInt(c),g),a.funcItemDone[c]=!0,a.funcArgsDone[c]=!0}}function r(a,b,c){a.completedOutputItems??=new Map;let d=Number.isInteger(b)?b:Number.parseInt(b,10)||0;a.completedOutputItems.set(d,c)}function s(a,b){if(!a.completedSent){let c;a.completedSent=!0,b("response.completed",{type:"response.completed",response:{id:a.responseId,object:"response",created_at:a.created,status:"completed",background:!1,error:null,output:(c=a.completedOutputItems)instanceof Map&&0!==c.size?[...c.entries()].sort((a,b)=>a[0]-b[0]).map(([,a])=>a):[],...a.responsesUsage?{usage:a.responsesUsage}:{}}})}}function t(a){if(a.completedSent)return[];let b=[],c=(c,d)=>{d.sequence_number=++a.seq,b.push({event:c,data:d})};for(let b in a.msgItemAdded)n(a,c,b);for(let b in m(a,c),a.funcCallIds)q(a,c,b);return s(a,c),b}function u(a){return a.toolCallIndex>0||a.currentToolCallId?j.bC.TOOL_CALLS:j.bC.STOP}function v(a,b){if(!a){if(b.finishReasonSent||!b.started)return null;let a=u(b);b.finishReasonSent=!0,b.finishReason=a;let c=(0,f.k)({id:b.chatId||`chatcmpl-${Date.now()}`,created:b.created||Math.floor(Date.now()/1e3),model:b.model||j.rP},{},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,b.respToolChatIndex??=new Map,b.respToolArgsEmitted??=new Set),"response.output_text.delta"===c){let a=d.delta||"";return a?(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},{content:a}):null}if("response.output_text.done"===c)return null;if("response.output_item.added"===c&&(d.item?.type===j.Du.FUNCTION_CALL||d.item?.type==="custom_tool_call")){let a,c=d.item;b.currentToolCallId=c.call_id||(0,h.eG)(),b.respToolChatIndex??=new Map;let e=c.id||d.item_id||b.currentToolCallId;return e&&b.respToolChatIndex.has(e)?a=b.respToolChatIndex.get(e):(a=b.toolCallIndex++,e&&b.respToolChatIndex.set(e,a)),(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},{tool_calls:[{index:a,id:b.currentToolCallId,type:j.x4.FUNCTION,function:{name:c.name||"",arguments:""}}]})}if("response.function_call_arguments.delta"===c||"response.custom_tool_call_input.delta"===c){let a=d.delta||"";if(!a)return null;let c=(d.item_id?b.respToolChatIndex?.get(d.item_id):void 0)??Math.max(0,(b.toolCallIndex||1)-1);return b.respToolArgsEmitted??=new Set,b.respToolArgsEmitted.add(c),(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},{tool_calls:[{index:c,function:{arguments:a}}]})}if("response.output_item.done"===c&&(d.item?.type===j.Du.FUNCTION_CALL||d.item?.type==="custom_tool_call")){let a=d.item?.id||d.item_id,c=(a&&b.respToolChatIndex?.get(a))??Math.max(0,(b.toolCallIndex||1)-1),e=d.item?.arguments;return"string"==typeof e&&e&&(b.respToolArgsEmitted??=new Set,!b.respToolArgsEmitted.has(c))?(b.respToolArgsEmitted.add(c),(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},{tool_calls:[{index:c,function:{arguments:e}}]})):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=(0,g.c)({promptTokens:c,completionTokens:d,totalTokens:c+d,cachedTokens:e})}if(!b.finishReasonSent){let a=u(b);b.finishReasonSent=!0,b.finishReason=a;let c=(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},{},a);return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}return null}if("error"===c||"response.failed"===c){if(b.finishReasonSent)return null;let a=d.error||d.response?.error;return a?(b.error=a,b.finishReasonSent=!0,(0,f.k)({id:b.chatId||`chatcmpl-${Date.now()}`,created:b.created||Math.floor(Date.now()/1e3),model:b.model||j.rP},{content:`[Error] ${a.message||JSON.stringify(a)}`},j.bC.STOP)):null}if("response.reasoning_summary_text.delta"===c){let a=d.delta||"";return a?(0,f.k)({id:b.chatId,created:b.created,model:b.model||j.rP},(0,i.B)(a)):null}return null}(0,d.kz)(e.h.OPENAI,e.h.OPENAI_RESPONSES,null,function(a,b){if(!a)return t(b);let c=function(a){if(!a||"object"!=typeof a)return null;let b=[a.input_tokens,a.prompt_tokens].find(Number.isInteger),c=[a.output_tokens,a.completion_tokens].find(Number.isInteger);if(void 0===b||void 0===c||b+c<=0)return null;let d={input_tokens:b,output_tokens:c,total_tokens:b+c},e=[a.input_tokens_details?.cached_tokens,a.prompt_tokens_details?.cached_tokens].find(Number.isInteger),f=[a.output_tokens_details?.reasoning_tokens,a.completion_tokens_details?.reasoning_tokens].find(Number.isInteger);return Number.isInteger(e)&&(d.input_tokens_details={cached_tokens:e}),Number.isInteger(f)&&(d.output_tokens_details={reasoning_tokens:f}),d}(a.usage);if(c&&(b.responsesUsage=c),!a.choices?.length)return b.completionPending&&b.responsesUsage?t(b):[];let d=[],f=(a,c)=>{c.sequence_number=++b.seq,d.push({event:a,data:c})},g=a.choices[0],h=g.index||0,p=g.delta||{};b.started||(b.started=!0,b.responseId=a.id?`resp_${a.id}`:b.responseId,f("response.created",{type:"response.created",response:{id:b.responseId,object:"response",created_at:b.created,status:"in_progress",background:!1,error:null,output:[]}}),f("response.in_progress",{type:"response.in_progress",response:{id:b.responseId,object:"response",created_at:b.created,status:"in_progress"}}));let r=(0,i.V)(p);if(r&&(k(b,f,h),l(b,f,r)),p.content){let a=p.content;if(a.includes("<think>")&&(b.inThinking=!0,a=a.replace("<think>",""),k(b,f,h)),a.includes("</think>")){let c=a.split("</think>"),d=c[0],e=c.slice(1).join("</think>");d&&l(b,f,d),m(b,f),b.inThinking=!1,a=e}if(b.inThinking&&a)return l(b,f,a),d;a&&(m(b,f),function(a,b,c,d){if(!a.msgItemAdded[c]){a.msgItemAdded[c]=!0;let d=`msg_${a.responseId}_${c}`;b("response.output_item.added",{type:"response.output_item.added",output_index:c,item:{id:d,type:j.Du.MESSAGE,content:[],role:j.z7.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:c,content_index:0,part:{type:j.Du.OUTPUT_TEXT,annotations:[],logprobs:[],text:""}})),b("response.output_text.delta",{type:"response.output_text.delta",item_id:`msg_${a.responseId}_${c}`,output_index:c,content_index:0,delta:d,logprobs:[]}),a.msgTextBuf[c]||(a.msgTextBuf[c]=""),a.msgTextBuf[c]+=d}(b,f,h,a))}if(p.tool_calls&&p.tool_calls.length)for(let a of(m(b,f),n(b,f,h),p.tool_calls))!function(a,b,c){let d=c.index??0,e=c.id,f=c.function?.name;f&&(a.funcNames[d]=f),e&&(a.funcCallIds[d]=e);let g=a.funcCallIds[d];if(!a.funcItemAdded[d]&&g&&a.funcNames[d]){a.funcItemAdded[d]=!0;let c=o(a,a.funcNames[d]);b("response.output_item.added",{type:"response.output_item.added",output_index:d,item:{id:`${c?"ctc":"fc"}_${g}`,type:c?j.Du.CUSTOM_TOOL_CALL:j.Du.FUNCTION_CALL,...c?{input:""}:{arguments:""},call_id:g,name:a.funcNames[d]||""}})}if(a.funcArgsBuf[d]||(a.funcArgsBuf[d]=""),c.function?.arguments){let f=a.funcCallIds[d]||e;a.funcItemAdded[d]&&f&&!o(a,a.funcNames[d])&&b("response.function_call_arguments.delta",{type:"response.function_call_arguments.delta",item_id:`fc_${f}`,output_index:d,delta:c.function.arguments}),a.funcArgsBuf[d]+=c.function.arguments}}(b,f,a);if(g.finish_reason){for(let a in b.msgItemAdded)n(b,f,a);for(let a in m(b,f),b.funcCallIds)q(b,f,a);let a=b.targetFormat===e.h.OPENAI;b.responsesUsage||!a?s(b,f):b.completionPending=!0}return d}),(0,d.kz)(e.h.OPENAI_RESPONSES,e.h.OPENAI,null,v)},6382:(a,b,c)=>{c.d(b,{$D:()=>y,BB:()=>n,Oj:()=>i,P9:()=>q,QR:()=>l,We:()=>m,Zm:()=>h,aZ:()=>z,cr:()=>u,h3:()=>j,pA:()=>t,rG:()=>p,rx:()=>k,y2:()=>o,yh:()=>v});var d=c(52136),e=c(58028);let f="-agentic",g="-thinking",h=64,i=10237,j=64,k="AmazonCodeWhispererStreamingService.GenerateAssistantResponse",l=new Set([401,403,404]);function m(a){return"google"===a||"github"===a?"arn:aws:codewhisperer:us-east-1:699475941385:profile/EHGA3GRVQMUK":"arn:aws:codewhisperer:us-east-1:638616132270:profile/AAAACCCCXXXX"}function n(a){let{cleanModel:b,override:c}=(0,d.nF)(a);return{model:b,...y(b),thinkingOverride:c}}function o(a,b){if(!b)return a;let c={...a};return"budget"===b.mode?(delete c.output_config,delete c.reasoning_effort,delete c.reasoning,c.thinking={type:"enabled",budget_tokens:b.budget}):c.output_config={...a.output_config||{},effort:"level"===b.mode?b.level:b.mode},c}let p=`
2
2
  # CRITICAL: CHUNKED WRITE PROTOCOL (MANDATORY)
3
3
 
4
4
  You MUST follow these rules for ALL file operations. Violation causes server timeouts and task failure.
@@ -48,18 +48,18 @@ WRONG: Generating massive code blocks without chunking -> TIMEOUT
48
48
 
49
49
  REMEMBER: When in doubt, write LESS per operation. Multiple small operations > one large operation.
50
50
  `.trim();function q(a,b,c){let f=(0,d.sS)(a);if(f)return"none"===f.mode||"level"===f.mode&&"disabled"===f.level?null:"budget"===f.mode?f.budget:"level"===f.mode?(0,e.nE)(f.level)??16e3:16e3;if(b){let a=function(a,b){if(!a)return;if("function"==typeof a.get)return a.get(b);let c=b.toLowerCase();for(let b of Object.keys(a))if(b.toLowerCase()===c)return a[b]}(b,"anthropic-beta");if("string"==typeof a&&a.toLowerCase().includes("interleaved-thinking"))return 16e3}if(function(a){for(let b of Array.isArray(a?.messages)?a.messages:[]){if(!b||"system"!==b.role&&"user"!==b.role)continue;let a=b.content;if("string"==typeof a){if(A(a))return!0}else if(Array.isArray(a))for(let b of a){let a=b?.text;if("string"==typeof a&&A(a))return!0}}return!!("string"==typeof a?.system&&A(a.system))}(a))return 16e3;if("string"==typeof c&&c){let a=c.toLowerCase();if(a.includes("thinking")||a.includes("-reason"))return 16e3}return null}function r(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".").match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);return b?{major:Number(b[1]),minor:void 0===b[2]?null:Number(b[2])}:null}function s(a){let b=a?.output_config?.effort??a?.reasoning_effort??("object"==typeof a?.reasoning?a.reasoning?.effort:null);if("string"!=typeof b)return null;let c=b.toLowerCase();return"max"===c?"xhigh":["low","medium","high","xhigh"].includes(c)?c:null}function t(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(b))return"reasoning";if(!b.includes("claude"))return null;let c=r(a);if(!c)return null;let{major:d,minor:e}=c;return d<4||4===d&&(null===e||e<=5||null!==e&&e>=1e3)?null:"output_config"}function u(a,b){return"reasoning"===t(b)&&null!==s(a)}function v(a,b){let c=t(b);if(c)return function(a,b="output_config",c){let d="reasoning"===b?s(a):function(a,b){let c=a?.output_config?.effort??a?.reasoning_effort??("object"==typeof a?.reasoning?a.reasoning?.effort:null);if("string"!=typeof c)return null;let d=c.toLowerCase();if("none"===d||"off"===d||"disabled"===d)return null;if("xhigh"===d){let a;return(a=r(b))&&(4!==a.major||null===a.minor||!(a.minor<=6))?"xhigh":"high"}return"max"===d?"max":["low","medium","high"].includes(d)?d:null}(a,c);if(d)return"reasoning"===b?{reasoning:{effort:d}}:{thinking:{type:"adaptive",display:"summarized"},output_config:{effort:d}}}(a,c,b)}function w(a){return"string"==typeof a&&a.endsWith(f)}function x(a){return"string"==typeof a&&a.endsWith(g)}function y(a){var b,c;let d=a,e=!1,h=!1;return w(d)&&(e=!0,d=w(b=d)?b.slice(0,-f.length):b),x(d)&&(h=!0,d=x(c=d)?c.slice(0,-g.length):c),{upstream:d,agentic:e,thinking:h}}function z(a=16e3){let b=Math.max(1,Math.min(32e3,Number(a)||16e3));return`<thinking_mode>enabled</thinking_mode>
51
- <max_thinking_length>${b}</max_thinking_length>`}function A(a){return!!a&&!!a.includes("<thinking_mode>")&&(a.includes("<thinking_mode>enabled</thinking_mode>")||a.includes("<thinking_mode>interleaved</thinking_mode>"))}},17242:(a,b,c)=>{c.d(b,{C5:()=>k,SF:()=>j,dV:()=>l,eG:()=>f,fH:()=>i});var d=c(14170);let e=/^[a-zA-Z0-9_-]+$/;function f(a){return void 0===a?`call_${Date.now()}`:`call_${a}_${Date.now()}`}function g(a=0,b=0,c=""){let d=c?`_${c.replace(/[^a-zA-Z0-9_-]/g,"")}`:"";return`call_msg${a}_tc${b}${d}`}function h(a){if(!a||"string"!=typeof a)return null;let b=a.replace(/[^a-zA-Z0-9_-]/g,"");return b.length>0?b:null}function i(a){if(!a.messages||!Array.isArray(a.messages))return a;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=h(d.id);d.id=c||g(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=h(c.tool_call_id);c.tool_call_id=a||g(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=h(d.id);d.id=c||g(b,a,d.name)}if("tool_result"===d.type&&d.tool_use_id&&!e.test(d.tool_use_id)){let c=h(d.tool_use_id);d.tool_use_id=c||g(b,a)}}}return a}function j(a){if(!a.messages||!Array.isArray(a.messages))return a;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:""})}return a.messages=b,a}function k(a){return Array.isArray(a)?a.map(a=>a?.type?a:{...a,type:"custom"}):a}function l(a,b,c,e){return b===d.h.CLAUDE&&Array.isArray(c)&&e?.[a]?.quirks?.requireClaudeToolType===!0}},19979:(a,b,c)=>{c.d(b,{C:()=>o,p:()=>m});var d=c(88499),e=c(14170),f=c(75924),g=c(74525),h=c(62842),i=c(29463),j=c(26922),k=c(43698),l=c(24);function m(a,b,c){let d=new Map,e=(0,l.nl)(null,a).maxOutput||void 0,m={model:a,max_tokens:(0,g.M)(b,e),stream:c};void 0!==b.temperature&&(m.temperature=b.temperature),m.messages=[];let o=[];if(b.messages&&Array.isArray(b.messages)){let a;for(let a of b.messages)a.role===k.z7.SYSTEM&&o.push("string"==typeof a.content?a.content:(0,j.kU)(a.content,"\n"));let c=b.messages.filter(a=>a.role!==k.z7.SYSTEM),e=[],f=()=>{a&&e.length>0&&(m.messages.push({role:a,content:e}),e=[])};for(let b of c){let c=b.role===k.z7.USER||b.role===k.z7.TOOL?k.z7.USER:k.z7.ASSISTANT,g=function(a,b=new Map){let c=[];if(a.role===k.z7.TOOL)c.push({type:k.R4.TOOL_RESULT,tool_use_id:a.tool_call_id,content:a.content});else if(a.role===k.z7.USER){if("string"==typeof a.content)a.content&&c.push({type:k.R4.TEXT,text:a.content});else if(Array.isArray(a.content)){for(let b of a.content)if(b.type===k.x4.TEXT&&b.text)c.push({type:k.R4.TEXT,text:b.text});else if(b.type===k.R4.TOOL_RESULT)c.push({type:k.R4.TOOL_RESULT,tool_use_id:b.tool_use_id,content:b.content,...b.is_error&&{is_error:b.is_error}});else if(b.type===k.x4.IMAGE_URL){let a=b.image_url.url,d=(0,i.W$)(a);d?c.push({type:k.R4.IMAGE,source:{type:"base64",media_type:d.mimeType,data:d.base64}}):(a.startsWith("http://")||a.startsWith("https://"))&&c.push({type:k.R4.IMAGE,source:{type:"url",url:a}})}else if(b.type===k.x4.IMAGE&&b.source)c.push({type:k.R4.IMAGE,source:b.source});else if(b.type===k.x4.FILE&&b.file){let a=b.file.file_data,d=(0,i.W$)(a);d&&"application/pdf"===d.mimeType&&c.push({type:k.R4.DOCUMENT,source:{type:"base64",media_type:d.mimeType,data:d.base64}})}}}else if(a.role===k.z7.ASSISTANT){if(Array.isArray(a.content)){for(let b of a.content)if(b.type===k.x4.TEXT&&b.text)c.push({type:k.R4.TEXT,text:b.text});else if(b.type===k.R4.TOOL_USE)c.push({type:k.R4.TOOL_USE,id:b.id,name:b.name,input:b.input});else if(b.type===k.R4.THINKING){let{cache_control:a,...d}=b;c.push(d)}}else if(a.content){let b="string"==typeof a.content?a.content:(0,j.kU)(a.content,"\n");b&&c.push({type:k.R4.TEXT,text:b})}if(a.tool_calls&&Array.isArray(a.tool_calls)){for(let b of a.tool_calls)if(b.type===k.x4.FUNCTION){let a=""+b.function.name;c.push({type:k.R4.TOOL_USE,id:b.id,name:a,input:(0,h.N)(b.function.arguments,b.function.arguments)})}}}return c}(b,d),l=g.some(a=>a.type===k.R4.TOOL_USE);if(g.some(a=>a.type===k.R4.TOOL_RESULT)){let b=g.filter(a=>a.type===k.R4.TOOL_RESULT),d=g.filter(a=>a.type!==k.R4.TOOL_RESULT);f(),b.length>0&&m.messages.push({role:k.z7.USER,content:b}),d.length>0&&(a=c,e.push(...d));continue}a!==c&&(f(),a=c),e.push(...g),l&&f()}f();for(let a=m.messages.length-1;a>=0;a--){let b=m.messages[a];if(b.role===k.z7.ASSISTANT&&Array.isArray(b.content)&&b.content.length>0){let a=[k.R4.TEXT,k.R4.TOOL_USE,k.R4.TOOL_RESULT,k.R4.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:
51
+ <max_thinking_length>${b}</max_thinking_length>`}function A(a){return!!a&&!!a.includes("<thinking_mode>")&&(a.includes("<thinking_mode>enabled</thinking_mode>")||a.includes("<thinking_mode>interleaved</thinking_mode>"))}},13952:(a,b,c)=>{c.d(b,{Jb:()=>l,Kz:()=>k,Pc:()=>q,iO:()=>p});var d=c(73024),e=c(76760),f=c(48161),g=c(39609);let h=process.env.ADCODE_ORIGIN?.trim()||"https://adcode.bluethenics.com",i=`${h}/v1`,j=`${i}/ai/tagflow`,k=`${j}/chat/completions`,l=`${j}/usage`,m=process.env.ADCODE_FIREBASE_API_KEY?.trim()||"AIzaSyATZzX5Fw2HjR34VxB3UQWTmljprA5uXqE",n={token:null,expiresAt:0};function o(){let a=process.env.ADCODE_IDENTITY_FILE?.trim();if(a)return a;let b=(0,f.platform)(),c="win32"===b?process.env.APPDATA:"darwin"===b?(0,e.join)((0,f.homedir)(),"win32"===b?"AppData":"darwin"===b?"Library/Application Support":".config"):(0,e.join)((0,f.homedir)(),".config");return(0,e.join)(c,"@adcode","desktop","ads","ads","identity.json")}async function p(a,{signal:b,proxyOptions:c}={}){let f=String(a?.apiKey||a?.accessToken||"").trim();if(f)return{token:f,source:"connection"};let h=(process.env.ADCODE_ACCESS_TOKEN||process.env.ADCODE_TOKEN||"").trim();if(h)return{token:h,source:"env"};if(n.token&&Date.now()<n.expiresAt-6e4)return{token:n.token,source:"desktop"};let i=function(a=o()){try{let b=(0,d.readFileSync)(a,"utf8"),c=JSON.parse(b),e="string"==typeof c?.uid?c.uid:"",f="string"==typeof c?.refreshToken?c.refreshToken:"";if(!e||!f)return null;return{uid:e,refreshToken:f}}catch{return null}}();if(!i)throw Error("ADCode desktop client is not signed in on this machine: no identity store found. Install ADCode and sign in once, or set ADCODE_ACCESS_TOKEN / paste an id_token as the key.");let j=`https://securetoken.googleapis.com/v1/token?key=${encodeURIComponent(m)}`,k=`grant_type=refresh_token&refresh_token=${encodeURIComponent(i.refreshToken)}`,l=await (0,g.proxyAwareFetch)(j,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:k,signal:b},c),q=await l.text(),r=null;try{r=JSON.parse(q)}catch{}if(!l.ok||!r?.id_token){let a=r?.error?.message||q.slice(0,160)||`HTTP ${l.status}`;throw Error(`ADCode token refresh failed: ${a}`)}let s=1e3*Number(r.expires_in);return n.token=r.id_token,n.expiresAt=Date.now()+(Number.isFinite(s)&&s>0?s:36e5),!function(a,b=o()){if(!a?.refreshToken)return;let c=b||o();try{(0,d.mkdirSync)((0,e.join)(c,".."),{recursive:!0}),(0,d.writeFileSync)(c,JSON.stringify(a))}catch{}}({uid:i.uid,refreshToken:r.refresh_token||i.refreshToken}),{token:r.id_token,source:"desktop"}}function q(){n.token=null,n.expiresAt=0}},17242:(a,b,c)=>{c.d(b,{C5:()=>k,SF:()=>j,dV:()=>l,eG:()=>f,fH:()=>i});var d=c(14170);let e=/^[a-zA-Z0-9_-]+$/;function f(a){return void 0===a?`call_${Date.now()}`:`call_${a}_${Date.now()}`}function g(a=0,b=0,c=""){let d=c?`_${c.replace(/[^a-zA-Z0-9_-]/g,"")}`:"";return`call_msg${a}_tc${b}${d}`}function h(a){if(!a||"string"!=typeof a)return null;let b=a.replace(/[^a-zA-Z0-9_-]/g,"");return b.length>0?b:null}function i(a){if(!a.messages||!Array.isArray(a.messages))return a;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=h(d.id);d.id=c||g(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=h(c.tool_call_id);c.tool_call_id=a||g(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=h(d.id);d.id=c||g(b,a,d.name)}if("tool_result"===d.type&&d.tool_use_id&&!e.test(d.tool_use_id)){let c=h(d.tool_use_id);d.tool_use_id=c||g(b,a)}}}return a}function j(a){if(!a.messages||!Array.isArray(a.messages))return a;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:""})}return a.messages=b,a}function k(a){return Array.isArray(a)?a.map(a=>a?.type?a:{...a,type:"custom"}):a}function l(a,b,c,e){return b===d.h.CLAUDE&&Array.isArray(c)&&e?.[a]?.quirks?.requireClaudeToolType===!0}},19979:(a,b,c)=>{c.d(b,{C:()=>o,p:()=>m});var d=c(88499),e=c(14170),f=c(75924),g=c(74525),h=c(62842),i=c(29463),j=c(26922),k=c(43698),l=c(24);function m(a,b,c){let d=new Map,e=(0,l.nl)(null,a).maxOutput||void 0,m={model:a,max_tokens:(0,g.M)(b,e),stream:c};void 0!==b.temperature&&(m.temperature=b.temperature),m.messages=[];let o=[];if(b.messages&&Array.isArray(b.messages)){let a;for(let a of b.messages)a.role===k.z7.SYSTEM&&o.push("string"==typeof a.content?a.content:(0,j.kU)(a.content,"\n"));let c=b.messages.filter(a=>a.role!==k.z7.SYSTEM),e=[],f=()=>{a&&e.length>0&&(m.messages.push({role:a,content:e}),e=[])};for(let b of c){let c=b.role===k.z7.USER||b.role===k.z7.TOOL?k.z7.USER:k.z7.ASSISTANT,g=function(a,b=new Map){let c=[];if(a.role===k.z7.TOOL)c.push({type:k.R4.TOOL_RESULT,tool_use_id:a.tool_call_id,content:a.content});else if(a.role===k.z7.USER){if("string"==typeof a.content)a.content&&c.push({type:k.R4.TEXT,text:a.content});else if(Array.isArray(a.content)){for(let b of a.content)if(b.type===k.x4.TEXT&&b.text)c.push({type:k.R4.TEXT,text:b.text});else if(b.type===k.R4.TOOL_RESULT)c.push({type:k.R4.TOOL_RESULT,tool_use_id:b.tool_use_id,content:b.content,...b.is_error&&{is_error:b.is_error}});else if(b.type===k.x4.IMAGE_URL){let a=b.image_url.url,d=(0,i.W$)(a);d?c.push({type:k.R4.IMAGE,source:{type:"base64",media_type:d.mimeType,data:d.base64}}):(a.startsWith("http://")||a.startsWith("https://"))&&c.push({type:k.R4.IMAGE,source:{type:"url",url:a}})}else if(b.type===k.x4.IMAGE&&b.source)c.push({type:k.R4.IMAGE,source:b.source});else if(b.type===k.x4.FILE&&b.file){let a=b.file.file_data,d=(0,i.W$)(a);d&&"application/pdf"===d.mimeType&&c.push({type:k.R4.DOCUMENT,source:{type:"base64",media_type:d.mimeType,data:d.base64}})}}}else if(a.role===k.z7.ASSISTANT){if(Array.isArray(a.content)){for(let b of a.content)if(b.type===k.x4.TEXT&&b.text)c.push({type:k.R4.TEXT,text:b.text});else if(b.type===k.R4.TOOL_USE)c.push({type:k.R4.TOOL_USE,id:b.id,name:b.name,input:b.input});else if(b.type===k.R4.THINKING){let{cache_control:a,...d}=b;c.push(d)}}else if(a.content){let b="string"==typeof a.content?a.content:(0,j.kU)(a.content,"\n");b&&c.push({type:k.R4.TEXT,text:b})}if(a.tool_calls&&Array.isArray(a.tool_calls)){for(let b of a.tool_calls)if(b.type===k.x4.FUNCTION){let a=""+b.function.name;c.push({type:k.R4.TOOL_USE,id:b.id,name:a,input:(0,h.N)(b.function.arguments,b.function.arguments)})}}}return c}(b,d),l=g.some(a=>a.type===k.R4.TOOL_USE);if(g.some(a=>a.type===k.R4.TOOL_RESULT)){let b=g.filter(a=>a.type===k.R4.TOOL_RESULT),d=g.filter(a=>a.type!==k.R4.TOOL_RESULT);f(),b.length>0&&m.messages.push({role:k.z7.USER,content:b}),d.length>0&&(a=c,e.push(...d));continue}a!==c&&(f(),a=c),e.push(...g),l&&f()}f();for(let a=m.messages.length-1;a>=0;a--){let b=m.messages[a];if(b.role===k.z7.ASSISTANT&&Array.isArray(b.content)&&b.content.length>0){let a=[k.R4.TEXT,k.R4.TOOL_USE,k.R4.TOOL_RESULT,k.R4.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:
52
52
  \`\`\`json
53
53
  ${b}
54
54
  \`\`\`
55
- 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={type:k.R4.TEXT,text:f.Co};if(o.length>0){let a=o.join("\n");m.system=[p,{type:k.R4.TEXT,text:a,cache_control:{type:"ephemeral",ttl:"1h"}}]}else m.system=[p];if(b.tools&&Array.isArray(b.tools)){for(let a of(m.tools=[],b.tools)){let b=a.type;if(b&&b!==k.x4.FUNCTION){m.tools.push(a);continue}let c=a.function??a,e=c.name,f=""+e;d.set(f,e),m.tools.push({name:f,description:c.description||"",input_schema: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"})}return b.tool_choice&&(m.tool_choice=function(a){if(!a)return{type:"auto"};if("string"==typeof a)return"required"===a?{type:"any"}:{type:"auto"};if("object"==typeof a){if(a.function?.name)return{type:"tool",name:a.function.name};if(n.has(a.type))return a}return{type:"auto"}}(b.tool_choice)),d.size>0&&(m._toolNameMap=d),m}let n=new Set(["auto","any","tool","none"]);function o(a,b,c){let d=m(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=>a.type===k.R4.TOOL_USE&&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,m,null)},29463:(a,b,c)=>{c.d(b,{$q:()=>g,W$:()=>i,ni:()=>k});var d=c(71553),e=c(47774),f=c(76924);function g(a,b){return`data:${a};base64,${b}`}let h=/^data:([^;]+);base64,([\s\S]+)$/;function i(a){if("string"!=typeof a)return null;let b=a.match(h);return b?{mimeType:b[1],base64:b[2]}:null}async function j(a){if(!a||f.Xc.has(a.toLowerCase()))return null;try{let b=await (0,d.lookup)(a,{all:!0});if(!b.length||b.some(a=>(function(a){if(!a||"::1"===a||a.startsWith("fc")||a.startsWith("fd")||a.startsWith("fe80"))return!0;let b=(a.includes(".")?a.split(":").pop():a).split(".").map(a=>Number.parseInt(a,10));if(4!==b.length||b.some(a=>Number.isNaN(a)))return!a.includes(":");let[c,d]=b;return 10===c||127===c||0===c||172===c&&d>=16&&d<=31||192===c&&168===d||169===c&&254===d||100===c&&d>=64&&d<=127||!1})(a.address)))return null;return b}catch{return null}}async function k(a,b={}){let c,{signal:d,timeoutMs:g=f.MT,maxBytes:h=f.J5}=b;if(!a||!a.startsWith("http://")&&!a.startsWith("https://"))return null;try{c=new URL(a)}catch{return null}let i=await j(c.hostname);if(!i)return null;let l=new AbortController,m=d?null:setTimeout(()=>l.abort(),g),n=d||l.signal,o=new e.Agent({connect:{lookup:(a,b,c)=>c(null,[{address:i[0].address,family:i[0].family}])}});try{let b=await fetch(a,{signal:n,redirect:"manual",dispatcher:o});if(!b.ok||!b.body)return null;let c=b.body.getReader(),d=[],e=0;for(;;){let{done:a,value:b}=await c.read();if(a)break;if((e+=b.length)>h){try{await c.cancel()}catch{}return null}d.push(b)}let g=Buffer.concat(d.map(a=>Buffer.from(a))),i=function(a){for(let{sig:b,offset:c,mime:d,verifyWebp:e}of f.Yv){if(a.length<c+b.length)continue;let f=!0;for(let d=0;d<b.length;d++)if(a[c+d]!==b[d]){f=!1;break}if(f&&(!e||a.length>=12&&87===a[8]&&69===a[9]&&66===a[10]&&80===a[11]))return d}return null}(g);if(!i)return null;return{url:`data:${i};base64,${g.toString("base64")}`,mimeType:i}}catch{return null}finally{m&&clearTimeout(m),o.close().catch(()=>{})}}},29675:(a,b,c)=>{c.d(b,{P:()=>l});var d=c(88499),e=c(14170),f=c(43698),g=c(32271),h=c(34097),i=c(44090),j=c(44236);function k(a,b,c=null){return(0,g.k)({id:`chatcmpl-${a.messageId}`,created:Math.floor(Date.now()/1e3),model:a.model},b,c)}function l(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;let d=a.message?.usage;if(d&&"object"==typeof d){let a="number"==typeof d.input_tokens?d.input_tokens:0,c="number"==typeof d.cache_read_input_tokens?d.cache_read_input_tokens:0,e="number"==typeof d.cache_creation_input_tokens?d.cache_creation_input_tokens:0,f=a+c+e;b.usage={prompt_tokens:f,completion_tokens:0,total_tokens:f,input_tokens:a,output_tokens:0},c>0&&(b.usage.cache_read_input_tokens=c),e>0&&(b.usage.cache_creation_input_tokens=e)}c.push(k(b,{role:f.z7.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===f.R4.TEXT)b.textBlockStarted=!0;else if(d?.type===f.R4.TOOL_USE){let e=b.toolCallIndex++,g=b.toolNameMap?.get(d.name)||d.name,h={index:e,id:d.id,type:f.x4.FUNCTION,function:{name:g,arguments:""}};b.toolCalls.set(a.index,h),c.push(k(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(k(b,{content:d.text}));else if(d?.type==="thinking_delta"&&d.thinking)c.push(k(b,(0,i.B)(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(k(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.textBlockStarted=!1,b.thinkingBlockStarted=!1;break;case"message_delta":if(a.usage&&"object"==typeof a.usage){let c=b.usage||{},d="number"==typeof a.usage.input_tokens?a.usage.input_tokens:c.input_tokens||0,e="number"==typeof a.usage.output_tokens?a.usage.output_tokens:0,f="number"==typeof a.usage.cache_read_input_tokens?a.usage.cache_read_input_tokens:c.cache_read_input_tokens||0,g="number"==typeof a.usage.cache_creation_input_tokens?a.usage.cache_creation_input_tokens:c.cache_creation_input_tokens||0,h=d+f+g;b.usage={prompt_tokens:h,completion_tokens:e,total_tokens:h+e,input_tokens:d,output_tokens:e},f>0&&(b.usage.cache_read_input_tokens=f),g>0&&(b.usage.cache_creation_input_tokens=g)}if(a.delta?.stop_reason){b.finishReason=m(a.delta.stop_reason);let d="refusal"===a.delta.stop_reason&&a.delta.stop_details?.explanation;d&&c.push(k(b,{content:d}));let e=k(b,{},b.finishReason);b.usage&&(e.usage=(0,h.B)({input_tokens:b.usage.input_tokens||0,output_tokens:b.usage.output_tokens||0,cache_read_input_tokens:b.usage.cache_read_input_tokens,cache_creation_input_tokens:b.usage.cache_creation_input_tokens},"claude")),c.push(e),b.finishReasonSent=!0}break;case"message_stop":if(!b.finishReasonSent){let a=b.finishReason||(b.toolCalls?.size>0?f.bC.TOOL_CALLS:f.bC.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({...k(b,{},a),...d}),b.finishReasonSent=!0}}return c.length>0?c:null}let m=a=>(0,j.F)(a,"claude");(0,d.kz)(e.h.CLAUDE,e.h.OPENAI,null,l)},32271:(a,b,c)=>{c.d(b,{k:()=>d});function d({id:a,created:b,model:c},e,f=null){return{id:a,object:"chat.completion.chunk",created:b,model:c,choices:[{index:0,delta:e,finish_reason:f}]}}},32546:(a,b,c)=>{c.d(b,{o:()=>o});var d=c(88499),e=c(14170),f=c(43698),g=c(32271),h=c(34097),i=c(44090),j=c(29463),k=c(44236),l=c(71782);function m(a){return{id:`chatcmpl-${a.messageId}`,created:Math.floor(Date.now()/1e3),model:a.model}}function n(a,b,c=null){let d=a.name,e=b.toolNameMap?.get(d)||d,h=a.args||{},i=b.functionIndex++,j=a.id||`${e}-${Date.now()}-${i}`;c&&(0,l.Sk)(j,c,b.sessionId,b.model);let k={id:j,index:i,type:f.x4.FUNCTION,function:{name:e,arguments:JSON.stringify(h)}};return b.geminiToolCallCount=(b.geminiToolCallCount||0)+1,(0,g.k)(m(b),{tool_calls:[k]},null)}function o(a,b){if(!a)return null;let c=a.response||a;if(!c||!c.candidates?.[0])return null;let d=[],e=c.candidates[0],l=e.content;if(b.messageId||(b.messageId=c.responseId||`msg_${Date.now()}`,b.model=c.modelVersion||b.model||"gemini",b.functionIndex=0,b.geminiToolCallCount=0,d.push((0,g.k)(m(b),{role:f.z7.ASSISTANT},null))),l?.parts)for(let a of l.parts){let c=a.thoughtSignature||a.thought_signature;c&&"string"==typeof c&&(b.pendingThoughtSignature=c);let e=!0===a.thought;if(c){let f=void 0!==a.text&&""!==a.text,h=!!a.functionCall;if(!f&&!h)continue;f&&d.push((0,g.k)(m(b),e?(0,i.B)(a.text):{content:a.text},null)),h&&(d.push(n(a.functionCall,b,c)),b.pendingThoughtSignature=null);continue}if(void 0!==a.text&&""!==a.text&&d.push((0,g.k)(m(b),e?(0,i.B)(a.text):{content:a.text},null)),a.functionCall){let c=b.pendingThoughtSignature||null;d.push(n(a.functionCall,b,c)),b.pendingThoughtSignature=null}let h=a.inlineData||a.inline_data;if(h?.data){let a=h.mimeType||h.mime_type||f.BY;d.push((0,g.k)(m(b),{images:[{type:f.x4.IMAGE_URL,image_url:{url:(0,j.$q)(a,h.data)}}]},null))}}let o=c.usageMetadata||a.usageMetadata,p=(0,h.B)(o,"gemini");if(p&&(b.usage=p),e.finishReason){let a=(0,k.F)(e.finishReason,"gemini");a===f.bC.STOP&&b.geminiToolCallCount>0&&(a=f.bC.TOOL_CALLS);let c=(0,g.k)(m(b),{},a);b.usage&&(c.usage=b.usage),d.push(c),b.finishReason=a}return d.length>0?d:null}(0,d.kz)(e.h.GEMINI,e.h.OPENAI,null,o),(0,d.kz)(e.h.GEMINI_CLI,e.h.OPENAI,null,o),(0,d.kz)(e.h.ANTIGRAVITY,e.h.OPENAI,null,o),(0,d.kz)(e.h.VERTEX,e.h.OPENAI,null,o)},34097:(a,b,c)=>{function d({promptTokens:a,completionTokens:b,totalTokens:c,cachedTokens:e=0,cacheCreationTokens:f=0,reasoningTokens:g=0}){let h={prompt_tokens:a,completion_tokens:b,total_tokens:c};return(e>0||f>0)&&(h.prompt_tokens_details={},e>0&&(h.prompt_tokens_details.cached_tokens=e),f>0&&(h.prompt_tokens_details.cache_creation_tokens=f)),g>0&&(h.completion_tokens_details={reasoning_tokens:g}),h}c.d(b,{B:()=>g,c:()=>d});let e=a=>"number"==typeof a?a:0,f={claude(a){let b=e(a.input_tokens),c=e(a.output_tokens),d=e(a.cache_read_input_tokens),f=e(a.cache_creation_input_tokens),g=b+d+f;return{promptTokens:g,completionTokens:c,totalTokens:g+c,cachedTokens:d,cacheCreationTokens:f}},gemini(a){let b=e(a.cachedContentTokenCount),c=e(a.promptTokenCount),d=e(a.thoughtsTokenCount),f=e(a.totalTokenCount),g=e(a.candidatesTokenCount);return 0===g&&f>0&&(g=f-c-d)<0&&(g=0),{promptTokens:c,completionTokens:g+d,totalTokens:f,cachedTokens:b,reasoningTokens:d}},kiro(a){let b=e(a.inputTokens),c=e(a.outputTokens),d=e(a.cache_read_input_tokens)||e(a.cachedTokens)||e(a.cached_tokens),f=e(a.cache_creation_input_tokens),g={promptTokens:b,completionTokens:c,totalTokens:b+c};return d>0&&(g.cachedTokens=d),f>0&&(g.cacheCreationTokens=f),g},ollama(a){let b=e(a.prompt_eval_count),c=e(a.eval_count);return{promptTokens:b,completionTokens:c,totalTokens:b+c,cachedTokens:e(a.prompt_eval_cached_count)}},commandcode(a){let b=e(a.inputTokens),c=e(a.outputTokens),d="number"==typeof a.totalTokens?a.totalTokens:b+c;return{promptTokens:b,completionTokens:c,totalTokens:d}}};function g(a,b){let c=f[b];return c&&a&&"object"==typeof a?d(c(a)):null}},39551:(a,b,c)=>{c.d(b,{_:()=>m});var d=c(88499),e=c(14170),f=c(43698),g=c(32271),h=c(34097),i=c(17242),j=c(44236);function k(a){return(0,h.B)(a,"ollama")}function l(a){return a.map((a,b)=>({index:a.function?.index??b,id:a.id||(0,i.eG)(b),type:f.x4.FUNCTION,function:{name:a.function?.name||"",arguments:"string"==typeof a.function?.arguments?a.function.arguments:JSON.stringify(a.function?.arguments||{})}}))}function m(a){let b=a.message||{},c=b.content||"",d=b.thinking||"",e=Array.isArray(b.tool_calls)?b.tool_calls:[],g={role:f.z7.ASSISTANT};c&&(g.content=c),d&&(g.reasoning_content=d),e.length>0&&(g.tool_calls=l(e)),g.content||g.tool_calls||(g.content="");let h=(0,j.F)(a.done_reason,"ollama");return e.length>0&&(h=f.bC.TOOL_CALLS),{id:`chatcmpl-${Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:a.model||"ollama",choices:[{index:0,message:g,finish_reason:h}],usage:k(a)}}(0,d.kz)(e.h.OLLAMA,e.h.OPENAI,null,function(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:e}=b.ollama;if(a.done){let h=k(a),i=(0,j.F)(a.done_reason,"ollama");(a.done_reason===f.bC.TOOL_CALLS||b.hadToolCalls)&&(i=f.bC.TOOL_CALLS);let l=(0,g.k)({id:c,created:d,model:e},{},i);return l.usage=h,l}let h=a.message;if(!h)return null;let i="string"==typeof h.content?h.content:"",m="string"==typeof h.thinking?h.thinking:"",n=Array.isArray(h.tool_calls)?h.tool_calls:null;if(!i&&!m&&!n)return null;i&&(b.accumulatedContent=(b.accumulatedContent||"")+i),m&&(b.accumulatedThinking=(b.accumulatedThinking||"")+m);let o={};return i&&(o.content=i),m&&(o.reasoning_content=m),n&&(b.hadToolCalls=!0,o.tool_calls=l(n)),(0,g.k)({id:c,created:d,model:e},o,null)})},44090:(a,b,c)=>{c.d(b,{B:()=>e,V:()=>f});var d=c(43698);function e(a,b=!1){return b?{role:d.z7.ASSISTANT,reasoning_content:a}:{reasoning_content:a}}function f(a){if(!a||"object"!=typeof a)return"";if("string"==typeof a.reasoning_content&&a.reasoning_content)return a.reasoning_content;if("string"==typeof a.reasoning&&a.reasoning)return a.reasoning;let b=a.reasoning_details;return Array.isArray(b)?b.map(a=>"string"==typeof a?a:a?.text||a?.content||"").join(""):""}},44236:(a,b,c)=>{c.d(b,{F:()=>e,Q:()=>f});var d=c(69320);function e(a,b){switch(b){case"claude":switch(a){case d.Ut.END_TURN:return d.bC.STOP;case d.Ut.MAX_TOKENS:return d.bC.LENGTH;case d.Ut.TOOL_USE:return d.bC.TOOL_CALLS;case d.Ut.STOP_SEQUENCE:return d.bC.STOP;case d.Ut.REFUSAL:return d.bC.CONTENT_FILTER;default:return d.bC.STOP}case"commandcode":switch(a){case"stop":case"error":return d.bC.STOP;case"length":return d.bC.LENGTH;case"tool-calls":case"tool_use":return d.bC.TOOL_CALLS;case"content-filter":return d.bC.CONTENT_FILTER;default:return a||d.bC.STOP}case"gemini":switch(String(a).toUpperCase()){case d.a_.STOP:return d.bC.STOP;case d.a_.MAX_TOKENS:return d.bC.LENGTH;case d.a_.SAFETY:case d.a_.RECITATION:case d.a_.BLOCKLIST:case d.a_.PROHIBITED_CONTENT:return d.bC.CONTENT_FILTER;default:return d.bC.STOP}case"kiro":case"ollama":switch(a){case"tool_calls":case"tool_use":return d.bC.TOOL_CALLS;case"length":case"max_tokens":return d.bC.LENGTH;default:return d.bC.STOP}default:return a||d.bC.STOP}}function f(a,b){if("claude"!==b)return a;switch(a){case d.bC.STOP:return d.Ut.END_TURN;case d.bC.LENGTH:return d.Ut.MAX_TOKENS;case d.bC.TOOL_CALLS:return d.Ut.TOOL_USE;case d.bC.CONTENT_FILTER:return d.Ut.REFUSAL;default:return d.Ut.END_TURN}}},47723:(a,b,c)=>{c.d(b,{H:()=>n});var d=c(88499),e=c(14170),f=c(43698),g=c(32271),h=c(34097),i=c(44090),j=c(17242),k=c(44236);function l(a,b,c=null){return(0,g.k)({id:a.responseId,created:a.created,model:a.model},b,c)}let m=a=>(0,k.F)(a,"commandcode");function n(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.usage=null);let e=[];switch(d.type){case"text-delta":{let a=d.text||d.delta||"";if(!a)break;let c=0===b.chunkIndex?{role:f.z7.ASSISTANT,content:a}:{content:a};b.chunkIndex++,b.openText=!0,e.push(l(b,c));break}case"reasoning-delta":{let a=d.text||"";if(!a)break;let c=(0,i.B)(a,0===b.chunkIndex);b.chunkIndex++,e.push(l(b,c));break}case"tool-input-start":{let a=d.id||d.toolCallId||(0,j.eG)(b.toolIndex),c=b.toolIndexById.get(a);null==c&&(c=b.toolIndex++,b.toolIndexById.set(a,c)),b.openTools.add(a);let g={...0===b.chunkIndex?{role:f.z7.ASSISTANT}:{},tool_calls:[{index:c,id:a,type:f.x4.FUNCTION,function:{name:d.toolName||"",arguments:""}}]};b.chunkIndex++,e.push(l(b,g));break}case"tool-input-delta":{let a=d.id||d.toolCallId,c=b.toolIndexById.get(a);if(null==c)break;let f={tool_calls:[{index:c,function:{arguments:d.delta||d.inputTextDelta||""}}]};e.push(l(b,f));break}case"tool-call":{let a=d.toolCallId;if(b.toolIndexById.has(a))break;let c=b.toolIndex++;b.toolIndexById.set(a,c);let g="string"==typeof d.input?d.input:JSON.stringify(d.input??{}),h={...0===b.chunkIndex?{role:f.z7.ASSISTANT}:{},tool_calls:[{index:c,id:a,type:f.x4.FUNCTION,function:{name:d.toolName||"",arguments:g}}]};b.chunkIndex++,e.push(l(b,h));break}case"finish-step":b.finishReason=m(d.finishReason),d.usage&&(b.usage=d.usage);break;case"finish":{let a=b.finishReason||m(d.finishReason||"stop"),c=l(b,{},a),f=d.totalUsage||b.usage,g=(0,h.B)(f,"commandcode");g&&(c.usage=g),e.push(c);break}case"error":{let a=d.error??d.message??"unknown",b="string"==typeof a?a:JSON.stringify(a);throw Error(`[CommandCode error: ${b}]`)}}return e.length?e:null}(0,d.kz)(e.h.COMMANDCODE,e.h.OPENAI,null,n)},52136:(a,b,c)=>{c.d(b,{NU:()=>l,kD:()=>i,nF:()=>j,sS:()=>k,z:()=>v});var d=c(24),e=c(72239),f=c(26070),g=c(58028);let h={openai:"openai","openai-responses":"openai","openai-response":"openai",codex:"openai",claude:"claude-budget",gemini:"gemini-budget","gemini-cli":"gemini-budget",vertex:"gemini-budget",antigravity:"gemini-budget",kiro:"kiro",commandcode:"commandcode"};function i(a){if("string"!=typeof a)return a;let b=a.match(/^(.*)\([^()]+\)\s*$/);return b?b[1].trim():a}function j(a){if("string"!=typeof a)return{cleanModel:a,override:null};let b=a.match(/^(.*)\(([^()]+)\)\s*$/);if(!b)return{cleanModel:a,override:null};let c=b[1].trim(),d=b[2].trim().toLowerCase();return"none"===d||"off"===d?{cleanModel:c,override:{mode:"none"}}:"auto"===d?{cleanModel:c,override:{mode:"auto"}}:"ultra"===d?{cleanModel:c,override:{mode:"level",level:d}}:/^\d+$/.test(d)?{cleanModel:c,override:{mode:"budget",budget:Number(d)}}:void 0!==g.Dl[d]?{cleanModel:c,override:{mode:"level",level:d}}:{cleanModel:c,override:null}}function k(a){if(!a||"object"!=typeof a)return null;let b=a.output_config?.effort;if("string"==typeof b&&b){let a=b.toLowerCase();return"none"===a||"off"===a?{mode:"none"}:"auto"===a?{mode:"auto"}:{mode:"level",level:a}}let c=a.reasoning_effort??("object"==typeof a.reasoning?a.reasoning?.effort:null);if("string"==typeof c&&c){let a=c.toLowerCase();return"none"===a||"off"===a?{mode:"none"}:"auto"===a?{mode:"auto"}:{mode:"level",level:a}}let d=a.thinking;if(d&&"object"==typeof d){if("disabled"===d.type)return{mode:"none"};if("adaptive"===d.type||"enabled"===d.type){let a=Number(d.budget_tokens);return Number.isFinite(a)&&a>0?{mode:"budget",budget:a}:{mode:"auto"}}}let e=a.thinkingConfig||a.generationConfig?.thinkingConfig||a.request?.generationConfig?.thinkingConfig;if(e&&"object"==typeof e){if("string"==typeof e.thinkingLevel)return{mode:"level",level:e.thinkingLevel.toLowerCase()};let a=Number(e.thinkingBudget);if(Number.isFinite(a))return 0===a?{mode:"none"}:a<0?{mode:"auto"}:{mode:"budget",budget:a}}if(!1===a.enable_thinking)return{mode:"none"};if(!0===a.enable_thinking){let b=Number(a.thinking_budget);return Number.isFinite(b)&&b>0?{mode:"budget",budget:b}:{mode:"auto"}}return null}function l(a){let b=k(a);if(!b||"none"===b.mode)return b;let c=function(a){if(a.reasoning&&"object"==typeof a.reasoning){let b=a.reasoning.summary;return"string"==typeof b&&b&&"none"!==b?"summarized":void 0}if("string"==typeof a.reasoning_effort)return"summarized"}(a);return c?{...b,display:c}:b}let m=new Set(["gemini-level","gemini-budget","claude-budget","claude-adaptive","kiro"]);function n(a,b){let c;if("budget"===a.mode)c=a.budget;else if("level"===a.mode)c=(0,g.nE)(a.level);else if("auto"===a.mode)return -1;if(Number.isFinite(c))return b&&(null!=b.min&&c<b.min&&(c=b.min),null!=b.max&&c>b.max&&(c=b.max)),c}function o(a){return"level"===a.mode?a.level:"budget"===a.mode?(0,g.vz)(a.budget)||"medium":"auto"===a.mode?"auto":null}function p(a,b){return"max"!==a&&"ultra"!==a||b?.includes(a)?a:"ultra"===a&&b?.includes("max")?"max":"xhigh"}let q={minimal:4096,low:8192,medium:16384,high:65535};function r(a){return a.request&&"object"==typeof a.request?(a.request.generationConfig&&"object"==typeof a.request.generationConfig||(a.request.generationConfig={}),a.request.generationConfig):(a.generationConfig&&"object"==typeof a.generationConfig||(a.generationConfig={}),a.generationConfig)}function s(a,b){r(a).thinkingConfig=b}function t(a,b,c){let d=Number.isFinite(c?.maxOutput)?c.maxOutput:b,e=Math.min(b,d),f=r(a),g=Number(f.maxOutputTokens);(!Number.isFinite(g)||g<e)&&(f.maxOutputTokens=e)}function u(a){delete a.thinking,delete a.reasoning_effort,delete a.reasoning,delete a.thinkingConfig,delete a.enable_thinking,delete a.thinking_budget,delete a.output_config,a.generationConfig&&delete a.generationConfig.thinkingConfig,a.request?.generationConfig&&delete a.request.generationConfig.thinkingConfig,a.params&&"object"==typeof a.params&&(delete a.params.reasoning_effort,delete a.params.thinking)}function v(a,b,c,i=null,l){if(!c||"object"!=typeof c)return c;let{cleanModel:r,override:w}=j(b),x=w||l||k(c),y=(0,d.nl)(i,r);if(!y.reasoning)return u(c),c;if(!x)return c;let z=function(a,b,c){if("commandcode"===a)return"commandcode";let e=c?f.xq[c]?.thinkingFormat:null;if(e)return e;let g=(0,d.nl)(c,b);return g.thinkingFormat&&!(("openai"===a||"openai-responses"===a)&&m.has(g.thinkingFormat))?"muse"===c&&"openai-responses"===a?"openai-responses":g.thinkingFormat:h[a]||"openai"}(a,r,i),A=(0,e.k)(i,r),B="string"==typeof c.thinking?.display?c.thinking.display:l?.display;return u(c),!function(a,b,c,d,e,f){var h;let i="none"===c.mode,j=!1!==d.thinkingCanDisable,k=i&&!j?{mode:"level",level:"minimal"}:c;switch(a){case"openai":{if(i&&j){b.reasoning_effort="none";break}let a=o(k);a&&(b.reasoning_effort=p(a,e));break}case"openai-responses":{if(i&&j){delete b.reasoning;break}let a=o(k);if(a){let c=b.reasoning&&"object"==typeof b.reasoning&&!Array.isArray(b.reasoning)?b.reasoning:{};b.reasoning={...c,effort:p(a,e)},b.reasoning.summary||(b.reasoning.summary="auto")}delete b.reasoning_effort;break}case"claude-adaptive":{if(i&&j){b.thinking={type:"disabled"};break}j?b.thinking={type:"adaptive",...f?{display:f}:{}}:delete b.thinking;let a=o(k);b.output_config={effort:"auto"===a?"high":"minimal"===a?"low":"xhigh"!==a||e?.includes("xhigh")?a:"high"};break}case"claude-budget":{if(i&&j){b.thinking={type:"disabled"};break}let a=n(k,d.thinkingRange);b.thinking=-1===a?{type:"enabled",...f?{display:f}:{}}:{type:"enabled",budget_tokens:a||8192,...f?{display:f}:{}};break}case"gemini-level":{let a,c=i?"minimal":(a="auto"===k.mode?"high":o(k)||"high",(0,g.wd)(a)),f=e?.find(a=>"none"!==a);e?.length&&f&&!e.includes(c)&&(c=f),s(b,{thinkingLevel:c,includeThoughts:"minimal"!==c}),t(b,q[c]||q.high,d);break}case"gemini-budget":{if(i&&j){s(b,{thinkingBudget:0,includeThoughts:!1});break}let a=n(k,d.thinkingRange);s(b,{thinkingBudget:a??-1,includeThoughts:!0}),t(b,-1!==(h=a??-1)&&Number.isFinite(h)?h<=1024?8192:h<=8192?16384:h<=24576?32768:65535:32768,d);break}case"zai":if(i&&j){b.enable_thinking=!1,delete b.thinking;break}if(b.thinking={type:"enabled"},d.thinkingEffortSupported){let a=o(k);b.reasoning_effort="low"===a||"minimal"===a?"low":"high"===a||"medium"===a?"high":"max"}break;case"qwen":{if(i&&j){b.enable_thinking=!1;break}b.enable_thinking=!0;let a=n(k,d.thinkingRange);Number.isFinite(a)&&a>0&&(b.thinking_budget=a);break}case"deepseek":{if(i&&j){b.thinking={type:"disabled"};break}b.thinking={type:"enabled"};let a=o(k),c="xhigh"===a||"max"===a?"max":"high";b.reasoning_effort="max"===c&&e&&!e.includes("max")?"high":c;break}case"kimi":{let a;if(i&&j){b.thinking={type:"disabled"};break}let c="auto"===(a=o(k))?"high":"minimal"===a?"low":"xhigh"===a?"max":["low","medium","high","max"].includes(a)?a:null;c&&(b.reasoning_effort=c);break}case"minimax":b.thinking={type:i&&j?"disabled":"adaptive"};break;case"hunyuan":{if(i&&j){b.thinking={type:"disabled"};break}let a=n(k,d.thinkingRange);b.thinking=-1===a?{type:"enabled"}:{type:"enabled",budget_tokens:a||8192};break}case"step":{if(i&&j)break;let a=o(k);a&&(b.reasoning_effort="xhigh"===a||"max"===a?"high":a);break}case"nous":{if(i&&j)break;let a="auto"===k.mode?"medium":o(k);b.reasoning={enabled:!0,...a?{effort:a}:{}};break}case"tokenrouter":{if(i||"auto"===k.mode)break;let a=o(k);a&&(b.reasoning_effort=a);break}case"kiro":break;case"commandcode":{if(b.params&&"object"==typeof b.params||(b.params={}),i&&j){delete b.params.reasoning_effort;break}let a=o(k);a&&(b.params.reasoning_effort=a)}}}(z,c,x,y,A,B),c}},58028:(a,b,c)=>{c.d(b,{Dl:()=>d,Vp:()=>h,nE:()=>e,vz:()=>g,wd:()=>f});let d={none:0,minimal:512,low:1024,medium:8192,high:24576,xhigh:32768,max:128e3};function e(a){if(a)return d[String(a).toLowerCase()]}function f(a){let b=String(a).toLowerCase().trim();return"none"===b||"off"===b?"minimal":"xhigh"===b||"max"===b?"high":b}function g(a){let b=Number(a);return!b||b<=0?null:b<=768?"minimal":b<=4096?"low":b<=16384?"medium":b<=28672?"high":b<=80384?"xhigh":"max"}function h(a){return!a||a<=0?null:a<=2048?"low":a<=16384?"medium":"high"}},60210:(a,b,c)=>{c.d(b,{HR:()=>function a(b,c){if(!c?.size||!b)return b;if(Array.isArray(b))return b.map(b=>a(b,c));if("object"!=typeof b)return b;let d=b,e=(a,c)=>{d===b&&(d={...b}),d[a]=c};if("content_block_start"===b.type){let a=b.content_block;a?.type==="tool_use"&&"string"==typeof a.name&&c.has(a.name)&&e("content_block",{...a,name:c.get(a.name)})}Array.isArray(b.content)&&e("content",b.content.map(a=>a?.type==="tool_use"&&"string"==typeof a.name&&c.has(a.name)?{...a,name:c.get(a.name)}:a)),Array.isArray(b.choices)&&e("choices",b.choices.map(a=>{let b=!1,d={...a};for(let e of["delta","message"]){let f=a?.[e];if(!f||!Array.isArray(f.tool_calls)||0===f.tool_calls.length)continue;let g=f.tool_calls.map(a=>{let d=a?.function?.name;return"string"==typeof d&&c.has(d)?(b=!0,{...a,function:{...a.function,name:c.get(d)}}):a});d[e]={...f,tool_calls:g}}return b?d:a})),Array.isArray(b.output)&&e("output",b.output.map(a=>a?.type==="function_call"&&"string"==typeof a.name&&c.has(a.name)?{...a,name:c.get(a.name)}:a));let f=b.item;return f?.type==="function_call"&&"string"==typeof f.name&&c.has(f.name)&&e("item",{...f,name:c.get(f.name)}),d},Ke:()=>k,g4:()=>l});let d=["read","shell"],e={read:{description:"Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",parameters:{type:"object",properties:{path:{type:"string",description:"File or directory to read"},offset:{type:"integer",minimum:0,description:"The line or directory entry to start reading from (1-based)"},limit:{type:"integer",minimum:0,description:"The maximum number of lines or directory entries to read (defaults to and capped at 2000)"}},required:["path"],additionalProperties:!1}},shell:{description:"Execute a shell command and return its output. Commands run on Linux using bash. Quote file paths containing spaces or special characters. Prefer dedicated tools over shell commands when possible. When output is large, the full result is saved to a file and a truncated preview is returned. Rely on automatic truncation unless filtering the output is more useful. Commands accept an optional timeout, background commands have no timeout by default. Background commands return immediately, and you will be notified when they complete.",parameters:{type:"object",properties:{command:{type:"string",description:"Shell command string to execute"},workdir:{type:"string",description:"Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."},timeout:{type:"integer",minimum:0,description:"Timeout in milliseconds. Set to 0 to disable the timeout. Defaults to 120000 for foreground commands. Background commands have no timeout by default."},background:{type:"boolean",description:"Run the command in the background and return immediately (useful for dev servers and long-running builds). You do not need to use '&' at the end of the command when using this parameter. You will be notified when it completes. DO NOT poll for completion."}},required:["command"],additionalProperties:!1}}},f=new WeakMap;function g(a){let b=String(a??"").trim();return d.includes(b)?b:""}function h(a){if(!a||"object"!=typeof a||Array.isArray(a))return"";if("string"==typeof a.name&&a.name.trim())return a.name.trim();let b=a.function;return b&&"object"==typeof b&&!Array.isArray(b)&&"string"==typeof b.name?b.name.trim():""}function i(a){let b=a?.function;return b&&"object"==typeof b&&!Array.isArray(b)?b:null}function j(a){return new Map([...a].map(([a,b])=>[b,a]))}function k(a,b){var c,k;if(!a||"object"!=typeof a)return new Map;let{tools:l,map:m}=function(a){let b=new Map;if(!Array.isArray(a)||0===a.length)return{tools:a,map:b};let c=new Set(a.map(h)),d=new Set,f=[];for(let j of a){if(!j||"object"!=typeof j||Array.isArray(j)){f.push(j);continue}let a=g(h(j));if(!a){f.push(j);continue}if(d.has(a))continue;if(d.add(a),function(a,b){let c=a&&(i(a)||a),d=e[b];return!!c&&c.description===d.description&&JSON.stringify(c.parameters)===JSON.stringify(d.parameters)}(j,a)){f.push(j);continue}let k=`${a}_client`;for(let b=2;c.has(k);b++)k=`${a}_client${b}`;c.add(k),b.set(k,a),f.push(function(a,b){let c=i(a);return c?{...a,function:{...c,name:b}}:{...a,name:b}}(j,k))}return{tools:f,map:b}}(a.tools);a.tools=Array.isArray(l)?l:[];let n=function(a,b){let c=[];if(!Array.isArray(a))return c;for(let f of d){if(a.some(a=>g(h(a))===f))continue;let{description:d,parameters:i}=e[f];a.push(b?{type:"function",name:f,description:d,parameters:i,strict:!1}:{type:"function",function:{name:f,description:d,parameters:i}}),c.push(f)}return c}(a.tools,b);return!function(a,b){if(!a||"object"!=typeof a||!b?.size)return;let c=a.tool_choice;if(!c||"object"!=typeof c||Array.isArray(c))return;let d=j(b);if("string"==typeof c.name){let b=d.get(c.name.trim());b&&(a.tool_choice={...c,name:b});return}let e=c.function;if(e&&"object"==typeof e&&!Array.isArray(e)&&"string"==typeof e.name){let b=d.get(e.name.trim());b&&(a.tool_choice={...c,function:{...e,name:b}})}}(a,m),!function(a,b){if(!a||"object"!=typeof a||!b?.size)return;let c=j(b);Array.isArray(a.input)&&(a.input=a.input.map(a=>a?.type==="function_call"&&c.has(a.name)?{...a,name:c.get(a.name)}:a)),Array.isArray(a.messages)&&(a.messages=a.messages.map(a=>Array.isArray(a?.tool_calls)?{...a,tool_calls:a.tool_calls.map(a=>c.has(a?.function?.name)?{...a,function:{...a.function,name:c.get(a.function.name)}}:a)}:a))}(a,m),n.length&&function(a,b,c){let d=c.map(a=>`\`${a}\``).join(" or "),e=c.length>1?`Do not call the ${d} tools; they are placeholders that do nothing. Use the other tools you have been given instead.`:`Do not call the ${d} tool; it is a placeholder that does nothing. Use the other tools you have been given instead.`;if(b){a.instructions="string"==typeof a.instructions&&a.instructions.trim()?`${a.instructions}
55
+ 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={type:k.R4.TEXT,text:f.Co};if(o.length>0){let a=o.join("\n");m.system=[p,{type:k.R4.TEXT,text:a,cache_control:{type:"ephemeral",ttl:"1h"}}]}else m.system=[p];if(b.tools&&Array.isArray(b.tools)){for(let a of(m.tools=[],b.tools)){let b=a.type;if(b&&b!==k.x4.FUNCTION){m.tools.push(a);continue}let c=a.function??a,e=c.name,f=""+e;d.set(f,e),m.tools.push({name:f,description:c.description||"",input_schema: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"})}return b.tool_choice&&(m.tool_choice=function(a){if(!a)return{type:"auto"};if("string"==typeof a)return"required"===a?{type:"any"}:{type:"auto"};if("object"==typeof a){if(a.function?.name)return{type:"tool",name:a.function.name};if(n.has(a.type))return a}return{type:"auto"}}(b.tool_choice)),d.size>0&&(m._toolNameMap=d),m}let n=new Set(["auto","any","tool","none"]);function o(a,b,c){let d=m(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=>a.type===k.R4.TOOL_USE&&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,m,null)},29463:(a,b,c)=>{c.d(b,{$q:()=>g,W$:()=>i,ni:()=>k});var d=c(71553),e=c(47774),f=c(76924);function g(a,b){return`data:${a};base64,${b}`}let h=/^data:([^;]+);base64,([\s\S]+)$/;function i(a){if("string"!=typeof a)return null;let b=a.match(h);return b?{mimeType:b[1],base64:b[2]}:null}async function j(a){if(!a||f.Xc.has(a.toLowerCase()))return null;try{let b=await (0,d.lookup)(a,{all:!0});if(!b.length||b.some(a=>(function(a){if(!a||"::1"===a||a.startsWith("fc")||a.startsWith("fd")||a.startsWith("fe80"))return!0;let b=(a.includes(".")?a.split(":").pop():a).split(".").map(a=>Number.parseInt(a,10));if(4!==b.length||b.some(a=>Number.isNaN(a)))return!a.includes(":");let[c,d]=b;return 10===c||127===c||0===c||172===c&&d>=16&&d<=31||192===c&&168===d||169===c&&254===d||100===c&&d>=64&&d<=127||!1})(a.address)))return null;return b}catch{return null}}async function k(a,b={}){let c,{signal:d,timeoutMs:g=f.MT,maxBytes:h=f.J5}=b;if(!a||!a.startsWith("http://")&&!a.startsWith("https://"))return null;try{c=new URL(a)}catch{return null}let i=await j(c.hostname);if(!i)return null;let l=new AbortController,m=d?null:setTimeout(()=>l.abort(),g),n=d||l.signal,o=new e.Agent({connect:{lookup:(a,b,c)=>c(null,[{address:i[0].address,family:i[0].family}])}});try{let b=await fetch(a,{signal:n,redirect:"manual",dispatcher:o});if(!b.ok||!b.body)return null;let c=b.body.getReader(),d=[],e=0;for(;;){let{done:a,value:b}=await c.read();if(a)break;if((e+=b.length)>h){try{await c.cancel()}catch{}return null}d.push(b)}let g=Buffer.concat(d.map(a=>Buffer.from(a))),i=function(a){for(let{sig:b,offset:c,mime:d,verifyWebp:e}of f.Yv){if(a.length<c+b.length)continue;let f=!0;for(let d=0;d<b.length;d++)if(a[c+d]!==b[d]){f=!1;break}if(f&&(!e||a.length>=12&&87===a[8]&&69===a[9]&&66===a[10]&&80===a[11]))return d}return null}(g);if(!i)return null;return{url:`data:${i};base64,${g.toString("base64")}`,mimeType:i}}catch{return null}finally{m&&clearTimeout(m),o.close().catch(()=>{})}}},29675:(a,b,c)=>{c.d(b,{P:()=>l});var d=c(88499),e=c(14170),f=c(43698),g=c(32271),h=c(34097),i=c(44090),j=c(44236);function k(a,b,c=null){return(0,g.k)({id:`chatcmpl-${a.messageId}`,created:Math.floor(Date.now()/1e3),model:a.model},b,c)}function l(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;let d=a.message?.usage;if(d&&"object"==typeof d){let a="number"==typeof d.input_tokens?d.input_tokens:0,c="number"==typeof d.cache_read_input_tokens?d.cache_read_input_tokens:0,e="number"==typeof d.cache_creation_input_tokens?d.cache_creation_input_tokens:0,f=a+c+e;b.usage={prompt_tokens:f,completion_tokens:0,total_tokens:f,input_tokens:a,output_tokens:0},c>0&&(b.usage.cache_read_input_tokens=c),e>0&&(b.usage.cache_creation_input_tokens=e)}c.push(k(b,{role:f.z7.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===f.R4.TEXT)b.textBlockStarted=!0;else if(d?.type===f.R4.TOOL_USE){let e=b.toolCallIndex++,g=b.toolNameMap?.get(d.name)||d.name,h={index:e,id:d.id,type:f.x4.FUNCTION,function:{name:g,arguments:""}};b.toolCalls.set(a.index,h),c.push(k(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(k(b,{content:d.text}));else if(d?.type==="thinking_delta"&&d.thinking)c.push(k(b,(0,i.B)(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(k(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.textBlockStarted=!1,b.thinkingBlockStarted=!1;break;case"message_delta":if(a.usage&&"object"==typeof a.usage){let c=b.usage||{},d="number"==typeof a.usage.input_tokens?a.usage.input_tokens:c.input_tokens||0,e="number"==typeof a.usage.output_tokens?a.usage.output_tokens:0,f="number"==typeof a.usage.cache_read_input_tokens?a.usage.cache_read_input_tokens:c.cache_read_input_tokens||0,g="number"==typeof a.usage.cache_creation_input_tokens?a.usage.cache_creation_input_tokens:c.cache_creation_input_tokens||0,h=d+f+g;b.usage={prompt_tokens:h,completion_tokens:e,total_tokens:h+e,input_tokens:d,output_tokens:e},f>0&&(b.usage.cache_read_input_tokens=f),g>0&&(b.usage.cache_creation_input_tokens=g)}if(a.delta?.stop_reason){b.finishReason=m(a.delta.stop_reason);let d="refusal"===a.delta.stop_reason&&a.delta.stop_details?.explanation;d&&c.push(k(b,{content:d}));let e=k(b,{},b.finishReason);b.usage&&(e.usage=(0,h.B)({input_tokens:b.usage.input_tokens||0,output_tokens:b.usage.output_tokens||0,cache_read_input_tokens:b.usage.cache_read_input_tokens,cache_creation_input_tokens:b.usage.cache_creation_input_tokens},"claude")),c.push(e),b.finishReasonSent=!0}break;case"message_stop":if(!b.finishReasonSent){let a=b.finishReason||(b.toolCalls?.size>0?f.bC.TOOL_CALLS:f.bC.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({...k(b,{},a),...d}),b.finishReasonSent=!0}}return c.length>0?c:null}let m=a=>(0,j.F)(a,"claude");(0,d.kz)(e.h.CLAUDE,e.h.OPENAI,null,l)},31772:(a,b,c)=>{c.d(b,{KS:()=>k,fetchAdcodeUsage:()=>l});var d=c(74957),e=c(35024),f=c(13952),g=c(39609);let h={"rate-limit":429,"daily-limit":429,"upstream-rate-limit":429},i=["session","weekly","daily"];function j(a,b){let c=null;try{c=JSON.parse(b)}catch{}let d=c?.code||c?.error?.code,e="string"==typeof c?.error?.limit?c.error.limit:null,f=c?.error?.message||c?.message||b||`HTTP ${a}`;return d&&h[d]&&a<400?{status:h[d],message:`${f}${e?` (${e} limit)`:""}`}:"credits-exhausted"===d||e&&i.includes(e)&&a<400?{status:402,message:`${f} (${e||"credits"} pool spent)`}:{status:a,message:String(f).slice(0,300)}}class k extends d.H{constructor(){super("adcode",e.xq.adcode)}async execute({model:a,body:b,stream:c,credentials:d,signal:e,log:h,proxyOptions:i=null}){let k,l={...b};l.model||(l.model=a);let m=async a=>{let b=this.buildHeadersFor(a,c,d);return(0,g.proxyAwareFetch)(f.Kz,{method:"POST",headers:b,body:JSON.stringify(l),signal:e},i)};try{k=await (0,f.iO)(d,{signal:e,proxyOptions:i})}catch(b){h?.error?.("ADCODE",`Credential error: ${b.message}`);let a=Error(`ADCode auth failed: ${b.message}`);throw a.status=401,a}h?.debug?.("ADCODE",`→ ${f.Kz} | model=${l.model} stream=${!!c} auth=${k.source}`);let n=await m(k.token);if((401===n.status||403===n.status)&&"desktop"===k.source){(0,f.Pc)();try{k=await (0,f.iO)(d,{signal:e,proxyOptions:i}),n=await m(k.token)}catch(a){h?.warn?.("ADCODE",`Token re-mint after ${n.status} failed: ${a.message}`)}}if(!n.ok){let a=await n.text();h?.error?.("ADCODE",`Response ${n.status}: ${a.slice(0,300)}`);let b=j(n.status,a),c=Error(`ADCode API error ${b.status}: ${b.message}`);throw c.status=b.status,c}return{response:n,url:f.Kz,headers:{},transformedBody:l}}buildHeadersFor(a,b,c=null){let d={"Content-Type":"application/json",Accept:b?"text/event-stream":"application/json",Authorization:`Bearer ${a}`,"x-adcode-ai-source":"chat","x-adcode-ai-persona":"coding-assistant","x-adcode-platform":process.env.ADCODE_PLATFORM?.trim()||process.platform};return c?.providerSpecificData?.headers&&"object"==typeof c.providerSpecificData.headers&&Object.assign(d,c.providerSpecificData.headers),d}buildUrl(){return f.Kz}buildHeaders(a,b){return this.buildHeadersFor("public",b,a)}parseError(a,b){let c=j(a.status,b);return{status:c.status,message:c.message}}}async function l(a,{signal:b,proxyOptions:c}={}){let d=await (0,f.iO)(a,{signal:b,proxyOptions:c}),e=await (0,g.proxyAwareFetch)(f.Jb,{headers:{Accept:"application/json",Authorization:`Bearer ${d.token}`},signal:b},c),h=await e.json().catch(()=>null);if(!e.ok){let a=h?.error?.message||h?.message||`HTTP ${e.status}`,b=Error(`ADCode usage check failed: ${String(a).slice(0,160)}`);throw b.status=e.status,b}return h}},32271:(a,b,c)=>{c.d(b,{k:()=>d});function d({id:a,created:b,model:c},e,f=null){return{id:a,object:"chat.completion.chunk",created:b,model:c,choices:[{index:0,delta:e,finish_reason:f}]}}},32546:(a,b,c)=>{c.d(b,{o:()=>o});var d=c(88499),e=c(14170),f=c(43698),g=c(32271),h=c(34097),i=c(44090),j=c(29463),k=c(44236),l=c(71782);function m(a){return{id:`chatcmpl-${a.messageId}`,created:Math.floor(Date.now()/1e3),model:a.model}}function n(a,b,c=null){let d=a.name,e=b.toolNameMap?.get(d)||d,h=a.args||{},i=b.functionIndex++,j=a.id||`${e}-${Date.now()}-${i}`;c&&(0,l.Sk)(j,c,b.sessionId,b.model);let k={id:j,index:i,type:f.x4.FUNCTION,function:{name:e,arguments:JSON.stringify(h)}};return b.geminiToolCallCount=(b.geminiToolCallCount||0)+1,(0,g.k)(m(b),{tool_calls:[k]},null)}function o(a,b){if(!a)return null;let c=a.response||a;if(!c||!c.candidates?.[0])return null;let d=[],e=c.candidates[0],l=e.content;if(b.messageId||(b.messageId=c.responseId||`msg_${Date.now()}`,b.model=c.modelVersion||b.model||"gemini",b.functionIndex=0,b.geminiToolCallCount=0,d.push((0,g.k)(m(b),{role:f.z7.ASSISTANT},null))),l?.parts)for(let a of l.parts){let c=a.thoughtSignature||a.thought_signature;c&&"string"==typeof c&&(b.pendingThoughtSignature=c);let e=!0===a.thought;if(c){let f=void 0!==a.text&&""!==a.text,h=!!a.functionCall;if(!f&&!h)continue;f&&d.push((0,g.k)(m(b),e?(0,i.B)(a.text):{content:a.text},null)),h&&(d.push(n(a.functionCall,b,c)),b.pendingThoughtSignature=null);continue}if(void 0!==a.text&&""!==a.text&&d.push((0,g.k)(m(b),e?(0,i.B)(a.text):{content:a.text},null)),a.functionCall){let c=b.pendingThoughtSignature||null;d.push(n(a.functionCall,b,c)),b.pendingThoughtSignature=null}let h=a.inlineData||a.inline_data;if(h?.data){let a=h.mimeType||h.mime_type||f.BY;d.push((0,g.k)(m(b),{images:[{type:f.x4.IMAGE_URL,image_url:{url:(0,j.$q)(a,h.data)}}]},null))}}let o=c.usageMetadata||a.usageMetadata,p=(0,h.B)(o,"gemini");if(p&&(b.usage=p),e.finishReason){let a=(0,k.F)(e.finishReason,"gemini");a===f.bC.STOP&&b.geminiToolCallCount>0&&(a=f.bC.TOOL_CALLS);let c=(0,g.k)(m(b),{},a);b.usage&&(c.usage=b.usage),d.push(c),b.finishReason=a}return d.length>0?d:null}(0,d.kz)(e.h.GEMINI,e.h.OPENAI,null,o),(0,d.kz)(e.h.GEMINI_CLI,e.h.OPENAI,null,o),(0,d.kz)(e.h.ANTIGRAVITY,e.h.OPENAI,null,o),(0,d.kz)(e.h.VERTEX,e.h.OPENAI,null,o)},34097:(a,b,c)=>{function d({promptTokens:a,completionTokens:b,totalTokens:c,cachedTokens:e=0,cacheCreationTokens:f=0,reasoningTokens:g=0}){let h={prompt_tokens:a,completion_tokens:b,total_tokens:c};return(e>0||f>0)&&(h.prompt_tokens_details={},e>0&&(h.prompt_tokens_details.cached_tokens=e),f>0&&(h.prompt_tokens_details.cache_creation_tokens=f)),g>0&&(h.completion_tokens_details={reasoning_tokens:g}),h}c.d(b,{B:()=>g,c:()=>d});let e=a=>"number"==typeof a?a:0,f={claude(a){let b=e(a.input_tokens),c=e(a.output_tokens),d=e(a.cache_read_input_tokens),f=e(a.cache_creation_input_tokens),g=b+d+f;return{promptTokens:g,completionTokens:c,totalTokens:g+c,cachedTokens:d,cacheCreationTokens:f}},gemini(a){let b=e(a.cachedContentTokenCount),c=e(a.promptTokenCount),d=e(a.thoughtsTokenCount),f=e(a.totalTokenCount),g=e(a.candidatesTokenCount);return 0===g&&f>0&&(g=f-c-d)<0&&(g=0),{promptTokens:c,completionTokens:g+d,totalTokens:f,cachedTokens:b,reasoningTokens:d}},kiro(a){let b=e(a.inputTokens),c=e(a.outputTokens),d=e(a.cache_read_input_tokens)||e(a.cachedTokens)||e(a.cached_tokens),f=e(a.cache_creation_input_tokens),g={promptTokens:b,completionTokens:c,totalTokens:b+c};return d>0&&(g.cachedTokens=d),f>0&&(g.cacheCreationTokens=f),g},ollama(a){let b=e(a.prompt_eval_count),c=e(a.eval_count);return{promptTokens:b,completionTokens:c,totalTokens:b+c,cachedTokens:e(a.prompt_eval_cached_count)}},commandcode(a){let b=e(a.inputTokens),c=e(a.outputTokens),d="number"==typeof a.totalTokens?a.totalTokens:b+c;return{promptTokens:b,completionTokens:c,totalTokens:d}}};function g(a,b){let c=f[b];return c&&a&&"object"==typeof a?d(c(a)):null}},39551:(a,b,c)=>{c.d(b,{_:()=>m});var d=c(88499),e=c(14170),f=c(43698),g=c(32271),h=c(34097),i=c(17242),j=c(44236);function k(a){return(0,h.B)(a,"ollama")}function l(a){return a.map((a,b)=>({index:a.function?.index??b,id:a.id||(0,i.eG)(b),type:f.x4.FUNCTION,function:{name:a.function?.name||"",arguments:"string"==typeof a.function?.arguments?a.function.arguments:JSON.stringify(a.function?.arguments||{})}}))}function m(a){let b=a.message||{},c=b.content||"",d=b.thinking||"",e=Array.isArray(b.tool_calls)?b.tool_calls:[],g={role:f.z7.ASSISTANT};c&&(g.content=c),d&&(g.reasoning_content=d),e.length>0&&(g.tool_calls=l(e)),g.content||g.tool_calls||(g.content="");let h=(0,j.F)(a.done_reason,"ollama");return e.length>0&&(h=f.bC.TOOL_CALLS),{id:`chatcmpl-${Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:a.model||"ollama",choices:[{index:0,message:g,finish_reason:h}],usage:k(a)}}(0,d.kz)(e.h.OLLAMA,e.h.OPENAI,null,function(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:e}=b.ollama;if(a.done){let h=k(a),i=(0,j.F)(a.done_reason,"ollama");(a.done_reason===f.bC.TOOL_CALLS||b.hadToolCalls)&&(i=f.bC.TOOL_CALLS);let l=(0,g.k)({id:c,created:d,model:e},{},i);return l.usage=h,l}let h=a.message;if(!h)return null;let i="string"==typeof h.content?h.content:"",m="string"==typeof h.thinking?h.thinking:"",n=Array.isArray(h.tool_calls)?h.tool_calls:null;if(!i&&!m&&!n)return null;i&&(b.accumulatedContent=(b.accumulatedContent||"")+i),m&&(b.accumulatedThinking=(b.accumulatedThinking||"")+m);let o={};return i&&(o.content=i),m&&(o.reasoning_content=m),n&&(b.hadToolCalls=!0,o.tool_calls=l(n)),(0,g.k)({id:c,created:d,model:e},o,null)})},44090:(a,b,c)=>{c.d(b,{B:()=>e,V:()=>f});var d=c(43698);function e(a,b=!1){return b?{role:d.z7.ASSISTANT,reasoning_content:a}:{reasoning_content:a}}function f(a){if(!a||"object"!=typeof a)return"";if("string"==typeof a.reasoning_content&&a.reasoning_content)return a.reasoning_content;if("string"==typeof a.reasoning&&a.reasoning)return a.reasoning;let b=a.reasoning_details;return Array.isArray(b)?b.map(a=>"string"==typeof a?a:a?.text||a?.content||"").join(""):""}},44236:(a,b,c)=>{c.d(b,{F:()=>e,Q:()=>f});var d=c(69320);function e(a,b){switch(b){case"claude":switch(a){case d.Ut.END_TURN:return d.bC.STOP;case d.Ut.MAX_TOKENS:return d.bC.LENGTH;case d.Ut.TOOL_USE:return d.bC.TOOL_CALLS;case d.Ut.STOP_SEQUENCE:return d.bC.STOP;case d.Ut.REFUSAL:return d.bC.CONTENT_FILTER;default:return d.bC.STOP}case"commandcode":switch(a){case"stop":case"error":return d.bC.STOP;case"length":return d.bC.LENGTH;case"tool-calls":case"tool_use":return d.bC.TOOL_CALLS;case"content-filter":return d.bC.CONTENT_FILTER;default:return a||d.bC.STOP}case"gemini":switch(String(a).toUpperCase()){case d.a_.STOP:return d.bC.STOP;case d.a_.MAX_TOKENS:return d.bC.LENGTH;case d.a_.SAFETY:case d.a_.RECITATION:case d.a_.BLOCKLIST:case d.a_.PROHIBITED_CONTENT:return d.bC.CONTENT_FILTER;default:return d.bC.STOP}case"kiro":case"ollama":switch(a){case"tool_calls":case"tool_use":return d.bC.TOOL_CALLS;case"length":case"max_tokens":return d.bC.LENGTH;default:return d.bC.STOP}default:return a||d.bC.STOP}}function f(a,b){if("claude"!==b)return a;switch(a){case d.bC.STOP:return d.Ut.END_TURN;case d.bC.LENGTH:return d.Ut.MAX_TOKENS;case d.bC.TOOL_CALLS:return d.Ut.TOOL_USE;case d.bC.CONTENT_FILTER:return d.Ut.REFUSAL;default:return d.Ut.END_TURN}}},47723:(a,b,c)=>{c.d(b,{H:()=>n});var d=c(88499),e=c(14170),f=c(43698),g=c(32271),h=c(34097),i=c(44090),j=c(17242),k=c(44236);function l(a,b,c=null){return(0,g.k)({id:a.responseId,created:a.created,model:a.model},b,c)}let m=a=>(0,k.F)(a,"commandcode");function n(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.usage=null);let e=[];switch(d.type){case"text-delta":{let a=d.text||d.delta||"";if(!a)break;let c=0===b.chunkIndex?{role:f.z7.ASSISTANT,content:a}:{content:a};b.chunkIndex++,b.openText=!0,e.push(l(b,c));break}case"reasoning-delta":{let a=d.text||"";if(!a)break;let c=(0,i.B)(a,0===b.chunkIndex);b.chunkIndex++,e.push(l(b,c));break}case"tool-input-start":{let a=d.id||d.toolCallId||(0,j.eG)(b.toolIndex),c=b.toolIndexById.get(a);null==c&&(c=b.toolIndex++,b.toolIndexById.set(a,c)),b.openTools.add(a);let g={...0===b.chunkIndex?{role:f.z7.ASSISTANT}:{},tool_calls:[{index:c,id:a,type:f.x4.FUNCTION,function:{name:d.toolName||"",arguments:""}}]};b.chunkIndex++,e.push(l(b,g));break}case"tool-input-delta":{let a=d.id||d.toolCallId,c=b.toolIndexById.get(a);if(null==c)break;let f={tool_calls:[{index:c,function:{arguments:d.delta||d.inputTextDelta||""}}]};e.push(l(b,f));break}case"tool-call":{let a=d.toolCallId;if(b.toolIndexById.has(a))break;let c=b.toolIndex++;b.toolIndexById.set(a,c);let g="string"==typeof d.input?d.input:JSON.stringify(d.input??{}),h={...0===b.chunkIndex?{role:f.z7.ASSISTANT}:{},tool_calls:[{index:c,id:a,type:f.x4.FUNCTION,function:{name:d.toolName||"",arguments:g}}]};b.chunkIndex++,e.push(l(b,h));break}case"finish-step":b.finishReason=m(d.finishReason),d.usage&&(b.usage=d.usage);break;case"finish":{let a=b.finishReason||m(d.finishReason||"stop"),c=l(b,{},a),f=d.totalUsage||b.usage,g=(0,h.B)(f,"commandcode");g&&(c.usage=g),e.push(c);break}case"error":{let a=d.error??d.message??"unknown",b="string"==typeof a?a:JSON.stringify(a);throw Error(`[CommandCode error: ${b}]`)}}return e.length?e:null}(0,d.kz)(e.h.COMMANDCODE,e.h.OPENAI,null,n)},52136:(a,b,c)=>{c.d(b,{NU:()=>l,kD:()=>i,nF:()=>j,sS:()=>k,z:()=>v});var d=c(24),e=c(72239),f=c(26070),g=c(58028);let h={openai:"openai","openai-responses":"openai","openai-response":"openai",codex:"openai",claude:"claude-budget",gemini:"gemini-budget","gemini-cli":"gemini-budget",vertex:"gemini-budget",antigravity:"gemini-budget",kiro:"kiro",commandcode:"commandcode"};function i(a){if("string"!=typeof a)return a;let b=a.match(/^(.*)\([^()]+\)\s*$/);return b?b[1].trim():a}function j(a){if("string"!=typeof a)return{cleanModel:a,override:null};let b=a.match(/^(.*)\(([^()]+)\)\s*$/);if(!b)return{cleanModel:a,override:null};let c=b[1].trim(),d=b[2].trim().toLowerCase();return"none"===d||"off"===d?{cleanModel:c,override:{mode:"none"}}:"auto"===d?{cleanModel:c,override:{mode:"auto"}}:"ultra"===d?{cleanModel:c,override:{mode:"level",level:d}}:/^\d+$/.test(d)?{cleanModel:c,override:{mode:"budget",budget:Number(d)}}:void 0!==g.Dl[d]?{cleanModel:c,override:{mode:"level",level:d}}:{cleanModel:c,override:null}}function k(a){if(!a||"object"!=typeof a)return null;let b=a.output_config?.effort;if("string"==typeof b&&b){let a=b.toLowerCase();return"none"===a||"off"===a?{mode:"none"}:"auto"===a?{mode:"auto"}:{mode:"level",level:a}}let c=a.reasoning_effort??("object"==typeof a.reasoning?a.reasoning?.effort:null);if("string"==typeof c&&c){let a=c.toLowerCase();return"none"===a||"off"===a?{mode:"none"}:"auto"===a?{mode:"auto"}:{mode:"level",level:a}}let d=a.thinking;if(d&&"object"==typeof d){if("disabled"===d.type)return{mode:"none"};if("adaptive"===d.type||"enabled"===d.type){let a=Number(d.budget_tokens);return Number.isFinite(a)&&a>0?{mode:"budget",budget:a}:{mode:"auto"}}}let e=a.thinkingConfig||a.generationConfig?.thinkingConfig||a.request?.generationConfig?.thinkingConfig;if(e&&"object"==typeof e){if("string"==typeof e.thinkingLevel)return{mode:"level",level:e.thinkingLevel.toLowerCase()};let a=Number(e.thinkingBudget);if(Number.isFinite(a))return 0===a?{mode:"none"}:a<0?{mode:"auto"}:{mode:"budget",budget:a}}if(!1===a.enable_thinking)return{mode:"none"};if(!0===a.enable_thinking){let b=Number(a.thinking_budget);return Number.isFinite(b)&&b>0?{mode:"budget",budget:b}:{mode:"auto"}}return null}function l(a){let b=k(a);if(!b||"none"===b.mode)return b;let c=function(a){if(a.reasoning&&"object"==typeof a.reasoning){let b=a.reasoning.summary;return"string"==typeof b&&b&&"none"!==b?"summarized":void 0}if("string"==typeof a.reasoning_effort)return"summarized"}(a);return c?{...b,display:c}:b}let m=new Set(["gemini-level","gemini-budget","claude-budget","claude-adaptive","kiro"]);function n(a,b){let c;if("budget"===a.mode)c=a.budget;else if("level"===a.mode)c=(0,g.nE)(a.level);else if("auto"===a.mode)return -1;if(Number.isFinite(c))return b&&(null!=b.min&&c<b.min&&(c=b.min),null!=b.max&&c>b.max&&(c=b.max)),c}function o(a){return"level"===a.mode?a.level:"budget"===a.mode?(0,g.vz)(a.budget)||"medium":"auto"===a.mode?"auto":null}function p(a,b){return"max"!==a&&"ultra"!==a||b?.includes(a)?a:"ultra"===a&&b?.includes("max")?"max":"xhigh"}let q={minimal:4096,low:8192,medium:16384,high:65535};function r(a){return a.request&&"object"==typeof a.request?(a.request.generationConfig&&"object"==typeof a.request.generationConfig||(a.request.generationConfig={}),a.request.generationConfig):(a.generationConfig&&"object"==typeof a.generationConfig||(a.generationConfig={}),a.generationConfig)}function s(a,b){r(a).thinkingConfig=b}function t(a,b,c){let d=Number.isFinite(c?.maxOutput)?c.maxOutput:b,e=Math.min(b,d),f=r(a),g=Number(f.maxOutputTokens);(!Number.isFinite(g)||g<e)&&(f.maxOutputTokens=e)}function u(a){delete a.thinking,delete a.reasoning_effort,delete a.reasoning,delete a.thinkingConfig,delete a.enable_thinking,delete a.thinking_budget,delete a.output_config,a.generationConfig&&delete a.generationConfig.thinkingConfig,a.request?.generationConfig&&delete a.request.generationConfig.thinkingConfig,a.params&&"object"==typeof a.params&&(delete a.params.reasoning_effort,delete a.params.thinking)}function v(a,b,c,i=null,l){if(!c||"object"!=typeof c)return c;let{cleanModel:r,override:w}=j(b),x=w||l||k(c),y=(0,d.nl)(i,r);if(!y.reasoning)return u(c),c;if(!x)return c;let z=function(a,b,c){if("commandcode"===a)return"commandcode";let e=c?f.xq[c]?.thinkingFormat:null;if(e)return e;let g=(0,d.nl)(c,b);return g.thinkingFormat&&!(("openai"===a||"openai-responses"===a)&&m.has(g.thinkingFormat))?"muse"===c&&"openai-responses"===a?"openai-responses":g.thinkingFormat:h[a]||"openai"}(a,r,i),A=(0,e.k)(i,r),B="string"==typeof c.thinking?.display?c.thinking.display:l?.display;return u(c),!function(a,b,c,d,e,f){var h;let i="none"===c.mode,j=!1!==d.thinkingCanDisable,k=i&&!j?{mode:"level",level:"minimal"}:c;switch(a){case"openai":{if(i&&j){b.reasoning_effort="none";break}let a=o(k);a&&(b.reasoning_effort=p(a,e));break}case"openai-responses":{if(i&&j){delete b.reasoning;break}let a=o(k);if(a){let c=b.reasoning&&"object"==typeof b.reasoning&&!Array.isArray(b.reasoning)?b.reasoning:{};b.reasoning={...c,effort:p(a,e)},b.reasoning.summary||(b.reasoning.summary="auto")}delete b.reasoning_effort;break}case"claude-adaptive":{if(i&&j){b.thinking={type:"disabled"};break}j?b.thinking={type:"adaptive",...f?{display:f}:{}}:delete b.thinking;let a=o(k);b.output_config={effort:"auto"===a?"high":"minimal"===a?"low":"xhigh"!==a||e?.includes("xhigh")?a:"high"};break}case"claude-budget":{if(i&&j){b.thinking={type:"disabled"};break}let a=n(k,d.thinkingRange);b.thinking=-1===a?{type:"enabled",...f?{display:f}:{}}:{type:"enabled",budget_tokens:a||8192,...f?{display:f}:{}};break}case"gemini-level":{let a,c=i?"minimal":(a="auto"===k.mode?"high":o(k)||"high",(0,g.wd)(a)),f=e?.find(a=>"none"!==a);e?.length&&f&&!e.includes(c)&&(c=f),s(b,{thinkingLevel:c,includeThoughts:"minimal"!==c}),t(b,q[c]||q.high,d);break}case"gemini-budget":{if(i&&j){s(b,{thinkingBudget:0,includeThoughts:!1});break}let a=n(k,d.thinkingRange);s(b,{thinkingBudget:a??-1,includeThoughts:!0}),t(b,-1!==(h=a??-1)&&Number.isFinite(h)?h<=1024?8192:h<=8192?16384:h<=24576?32768:65535:32768,d);break}case"zai":if(i&&j){b.enable_thinking=!1,delete b.thinking;break}if(b.thinking={type:"enabled"},d.thinkingEffortSupported){let a=o(k);b.reasoning_effort="low"===a||"minimal"===a?"low":"high"===a||"medium"===a?"high":"max"}break;case"qwen":{if(i&&j){b.enable_thinking=!1;break}b.enable_thinking=!0;let a=n(k,d.thinkingRange);Number.isFinite(a)&&a>0&&(b.thinking_budget=a);break}case"deepseek":{if(i&&j){b.thinking={type:"disabled"};break}b.thinking={type:"enabled"};let a=o(k),c="xhigh"===a||"max"===a?"max":"high";b.reasoning_effort="max"===c&&e&&!e.includes("max")?"high":c;break}case"zcode":{b.thinking={type:"enabled"};let a=o(k);b.output_config={effort:"low"===a||"minimal"===a?"low":"high"===a||"medium"===a?"high":"max"};break}case"kimi":{let a;if(i&&j){b.thinking={type:"disabled"};break}let c="auto"===(a=o(k))?"high":"minimal"===a?"low":"xhigh"===a?"max":["low","medium","high","max"].includes(a)?a:null;c&&(b.reasoning_effort=c);break}case"minimax":b.thinking={type:i&&j?"disabled":"adaptive"};break;case"hunyuan":{if(i&&j){b.thinking={type:"disabled"};break}let a=n(k,d.thinkingRange);b.thinking=-1===a?{type:"enabled"}:{type:"enabled",budget_tokens:a||8192};break}case"step":{if(i&&j)break;let a=o(k);a&&(b.reasoning_effort="xhigh"===a||"max"===a?"high":a);break}case"nous":{if(i&&j)break;let a="auto"===k.mode?"medium":o(k);b.reasoning={enabled:!0,...a?{effort:a}:{}};break}case"tokenrouter":{if(i||"auto"===k.mode)break;let a=o(k);a&&(b.reasoning_effort=a);break}case"kiro":break;case"commandcode":{if(b.params&&"object"==typeof b.params||(b.params={}),i&&j){delete b.params.reasoning_effort;break}let a=o(k);a&&(b.params.reasoning_effort=a)}}}(z,c,x,y,A,B),c}},58028:(a,b,c)=>{c.d(b,{Dl:()=>d,Vp:()=>h,nE:()=>e,vz:()=>g,wd:()=>f});let d={none:0,minimal:512,low:1024,medium:8192,high:24576,xhigh:32768,max:128e3};function e(a){if(a)return d[String(a).toLowerCase()]}function f(a){let b=String(a).toLowerCase().trim();return"none"===b||"off"===b?"minimal":"xhigh"===b||"max"===b?"high":b}function g(a){let b=Number(a);return!b||b<=0?null:b<=768?"minimal":b<=4096?"low":b<=16384?"medium":b<=28672?"high":b<=80384?"xhigh":"max"}function h(a){return!a||a<=0?null:a<=2048?"low":a<=16384?"medium":"high"}},60210:(a,b,c)=>{c.d(b,{HR:()=>function a(b,c){if(!c?.size||!b)return b;if(Array.isArray(b))return b.map(b=>a(b,c));if("object"!=typeof b)return b;let d=b,e=(a,c)=>{d===b&&(d={...b}),d[a]=c};if("content_block_start"===b.type){let a=b.content_block;a?.type==="tool_use"&&"string"==typeof a.name&&c.has(a.name)&&e("content_block",{...a,name:c.get(a.name)})}Array.isArray(b.content)&&e("content",b.content.map(a=>a?.type==="tool_use"&&"string"==typeof a.name&&c.has(a.name)?{...a,name:c.get(a.name)}:a)),Array.isArray(b.choices)&&e("choices",b.choices.map(a=>{let b=!1,d={...a};for(let e of["delta","message"]){let f=a?.[e];if(!f||!Array.isArray(f.tool_calls)||0===f.tool_calls.length)continue;let g=f.tool_calls.map(a=>{let d=a?.function?.name;return"string"==typeof d&&c.has(d)?(b=!0,{...a,function:{...a.function,name:c.get(d)}}):a});d[e]={...f,tool_calls:g}}return b?d:a})),Array.isArray(b.output)&&e("output",b.output.map(a=>a?.type==="function_call"&&"string"==typeof a.name&&c.has(a.name)?{...a,name:c.get(a.name)}:a));let f=b.item;return f?.type==="function_call"&&"string"==typeof f.name&&c.has(f.name)&&e("item",{...f,name:c.get(f.name)}),d},Ke:()=>k,g4:()=>l});let d=["read","shell"],e={read:{description:"Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",parameters:{type:"object",properties:{path:{type:"string",description:"File or directory to read"},offset:{type:"integer",minimum:0,description:"The line or directory entry to start reading from (1-based)"},limit:{type:"integer",minimum:0,description:"The maximum number of lines or directory entries to read (defaults to and capped at 2000)"}},required:["path"],additionalProperties:!1}},shell:{description:"Execute a shell command and return its output. Commands run on Linux using bash. Quote file paths containing spaces or special characters. Prefer dedicated tools over shell commands when possible. When output is large, the full result is saved to a file and a truncated preview is returned. Rely on automatic truncation unless filtering the output is more useful. Commands accept an optional timeout, background commands have no timeout by default. Background commands return immediately, and you will be notified when they complete.",parameters:{type:"object",properties:{command:{type:"string",description:"Shell command string to execute"},workdir:{type:"string",description:"Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."},timeout:{type:"integer",minimum:0,description:"Timeout in milliseconds. Set to 0 to disable the timeout. Defaults to 120000 for foreground commands. Background commands have no timeout by default."},background:{type:"boolean",description:"Run the command in the background and return immediately (useful for dev servers and long-running builds). You do not need to use '&' at the end of the command when using this parameter. You will be notified when it completes. DO NOT poll for completion."}},required:["command"],additionalProperties:!1}}},f=new WeakMap;function g(a){let b=String(a??"").trim();return d.includes(b)?b:""}function h(a){if(!a||"object"!=typeof a||Array.isArray(a))return"";if("string"==typeof a.name&&a.name.trim())return a.name.trim();let b=a.function;return b&&"object"==typeof b&&!Array.isArray(b)&&"string"==typeof b.name?b.name.trim():""}function i(a){let b=a?.function;return b&&"object"==typeof b&&!Array.isArray(b)?b:null}function j(a){return new Map([...a].map(([a,b])=>[b,a]))}function k(a,b){var c,k;if(!a||"object"!=typeof a)return new Map;let{tools:l,map:m}=function(a){let b=new Map;if(!Array.isArray(a)||0===a.length)return{tools:a,map:b};let c=new Set(a.map(h)),d=new Set,f=[];for(let j of a){if(!j||"object"!=typeof j||Array.isArray(j)){f.push(j);continue}let a=g(h(j));if(!a){f.push(j);continue}if(d.has(a))continue;if(d.add(a),function(a,b){let c=a&&(i(a)||a),d=e[b];return!!c&&c.description===d.description&&JSON.stringify(c.parameters)===JSON.stringify(d.parameters)}(j,a)){f.push(j);continue}let k=`${a}_client`;for(let b=2;c.has(k);b++)k=`${a}_client${b}`;c.add(k),b.set(k,a),f.push(function(a,b){let c=i(a);return c?{...a,function:{...c,name:b}}:{...a,name:b}}(j,k))}return{tools:f,map:b}}(a.tools);a.tools=Array.isArray(l)?l:[];let n=function(a,b){let c=[];if(!Array.isArray(a))return c;for(let f of d){if(a.some(a=>g(h(a))===f))continue;let{description:d,parameters:i}=e[f];a.push(b?{type:"function",name:f,description:d,parameters:i,strict:!1}:{type:"function",function:{name:f,description:d,parameters:i}}),c.push(f)}return c}(a.tools,b);return!function(a,b){if(!a||"object"!=typeof a||!b?.size)return;let c=a.tool_choice;if(!c||"object"!=typeof c||Array.isArray(c))return;let d=j(b);if("string"==typeof c.name){let b=d.get(c.name.trim());b&&(a.tool_choice={...c,name:b});return}let e=c.function;if(e&&"object"==typeof e&&!Array.isArray(e)&&"string"==typeof e.name){let b=d.get(e.name.trim());b&&(a.tool_choice={...c,function:{...e,name:b}})}}(a,m),!function(a,b){if(!a||"object"!=typeof a||!b?.size)return;let c=j(b);Array.isArray(a.input)&&(a.input=a.input.map(a=>a?.type==="function_call"&&c.has(a.name)?{...a,name:c.get(a.name)}:a)),Array.isArray(a.messages)&&(a.messages=a.messages.map(a=>Array.isArray(a?.tool_calls)?{...a,tool_calls:a.tool_calls.map(a=>c.has(a?.function?.name)?{...a,function:{...a.function,name:c.get(a.function.name)}}:a)}:a))}(a,m),n.length&&function(a,b,c){let d=c.map(a=>`\`${a}\``).join(" or "),e=c.length>1?`Do not call the ${d} tools; they are placeholders that do nothing. Use the other tools you have been given instead.`:`Do not call the ${d} tool; it is a placeholder that does nothing. Use the other tools you have been given instead.`;if(b){a.instructions="string"==typeof a.instructions&&a.instructions.trim()?`${a.instructions}
56
56
 
57
57
  ${e}`:e;return}if(!Array.isArray(a.messages)||void 0!==a.system)return;let f=a.messages[0];f?.role==="system"&&"string"==typeof f.content?a.messages=[{...f,content:`${f.content}
58
58
 
59
59
  ${e}`},...a.messages.slice(1)]:a.messages=[{role:"system",content:e},...a.messages]}(a,b,n),!a.tool_choice&&b&&(a.tool_choice="auto"),c=a,k=m,c&&"object"==typeof c&&k?.size&&f.set(c,k),m}function l(a){return a&&"object"==typeof a&&f.get(a)||null}},60983:(a,b,c)=>{c.d(b,{t:()=>k});var d=c(88499),e=c(14170),f=c(74525),g=c(29463),h=c(43698),i=c(97721);function j(a){return"string"!=typeof a?"":a.replace(/^x-anthropic-billing-header:[^\n]*(?:\r?\n)?/i,"")}function k(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.system){let a=Array.isArray(b.system)?b.system.map(a=>j(a.text||"")).filter(Boolean).join("\n"):j(b.system);a&&d.messages.push({role:h.z7.SYSTEM,content:a})}if(b.messages&&Array.isArray(b.messages))for(let a=0;a<b.messages.length;a++){let c=function(a){if(a.content&&"object"==typeof a.content&&!Array.isArray(a.content)&&(a.content=[a.content]),a.role===h.z7.SYSTEM){var b;let c,d=(c=(Array.isArray(b=a.content)?b.filter(a=>a?.type===h.R4.TEXT).map(a=>a.text||""):["string"==typeof b?b:""]).filter(Boolean).join("\n")).trim()?`<instructions>
60
60
  ${c}
61
61
  </instructions>`:"";return d?{role:h.z7.USER,content:d}:null}let c=a.role===h.z7.USER||a.role===h.z7.TOOL?h.z7.USER:h.z7.ASSISTANT;if("string"==typeof a.content)return{role:c,content:a.content};if(Array.isArray(a.content)){let b=[],d=[],e=[];for(let c of a.content)switch(c.type){case h.R4.TEXT:b.push({type:h.x4.TEXT,text:c.text});break;case h.R4.IMAGE:c.source?.type==="base64"&&b.push({type:h.x4.IMAGE_URL,image_url:{url:(0,g.$q)(c.source.media_type,c.source.data)}});break;case h.R4.TOOL_USE:d.push({id:c.id,type:h.x4.FUNCTION,function:{name:c.name,arguments:JSON.stringify(c.input||{})}});break;case h.R4.TOOL_RESULT:{let a="",d=[];if("string"==typeof c.content)a=c.content;else if(Array.isArray(c.content)){for(let a of c.content)a?.type===h.R4.IMAGE&&a.source?.type==="base64"&&d.push({type:h.x4.IMAGE_URL,image_url:{url:(0,g.$q)(a.source.media_type,a.source.data)}});a=c.content.filter(a=>a?.type===h.R4.TEXT).map(a=>a.text).join("\n")||(d.length?"":JSON.stringify(c.content))}else c.content&&(a=JSON.stringify(c.content));e.push({role:h.z7.TOOL,tool_call_id:c.tool_use_id,content:a}),d.length&&(b.push({type:h.x4.TEXT,text:`[Image from tool result ${c.tool_use_id}]`}),b.push(...d))}}if(e.length>0)return b.length>0?[...e,{role:h.z7.USER,content:(0,i.z)(b)}]:e;if(d.length>0){let a={role:h.z7.ASSISTANT};return b.length>0&&(a.content=(0,i.z)(b)),a.tool_calls=d,a}if(b.length>0)return{role:c,content:(0,i.z)(b)};if(0===a.content.length)return{role:c,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(c.role===h.z7.ASSISTANT&&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(b.role===h.z7.TOOL&&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:h.z7.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.map(a=>({type:h.x4.FUNCTION,function:{name:a.name,description:String(a.description||""),parameters:a.input_schema||{type:"object",properties:{}}}}))),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:h.x4.FUNCTION,function:{name:a.name}}}}(b.tool_choice)),void 0!==b.reasoning_effort?d.reasoning_effort=b.reasoning_effort:b.reasoning?.effort!==void 0&&(d.reasoning_effort=b.reasoning.effort),void 0!==b.reasoning&&(d.reasoning=b.reasoning),d}(0,d.kz)(e.h.CLAUDE,e.h.OPENAI,k,null)},65377:(a,b,c)=>{c.d(b,{Z:()=>h,h:()=>j});var d=c(88499),e=c(14170),f=c(37981),g=c(43698);function h(a,b,c,d){if(!b.input)return b;let e={...b};e.messages=[],b.instructions&&e.messages.push({role:g.z7.SYSTEM,content:b.instructions});let h=null,j=[],k="",l="",m=[],n=new Set,o=(0,f.me)(b.input);if(!o)return b;let p=a=>{if(Array.isArray(a.summary)){let b=a.summary.map(a=>a?.text||"").filter(Boolean).join("\n");if(b)return b}if(Array.isArray(a.content)){let b=a.content.map(a=>a?.text||"").filter(Boolean).join("\n");if(b)return b}return""},q=a=>{k&&(a.reasoning_content=k),l&&(a.encrypted_content=l),k="",l=""};for(let a of o){let b=a.type||(a.role?g.Du.MESSAGE:null);if(b===g.Du.MESSAGE){if(h&&(e.messages.push(h),h=null),j.length>0){for(let a of j)e.messages.push(a);j=[]}let b=Array.isArray(a.content)?a.content.map(a=>{if(a.type===g.Du.INPUT_TEXT||a.type===g.Du.OUTPUT_TEXT)return{type:g.x4.TEXT,text:a.text};if(a.type===g.Du.INPUT_IMAGE){let b=a.image_url||a.file_id||"";return{type:g.x4.IMAGE_URL,image_url:{url:b,detail:a.detail||"auto"}}}return a}):a.content,c={role:a.role,content:b};a.role===g.z7.ASSISTANT?q(c):(k="",l=""),e.messages.push(c)}else if(b===g.Du.FUNCTION_CALL||b===g.Du.CUSTOM_TOOL_CALL){if(h||q(h={role:g.z7.ASSISTANT,content:null,tool_calls:[]}),!a.name||"string"!=typeof a.name||""===a.name.trim())continue;b===g.Du.CUSTOM_TOOL_CALL&&n.add(a.name);let c=b===g.Du.CUSTOM_TOOL_CALL?{input:"string"==typeof a.input?a.input:JSON.stringify(a.input??"")}:a.arguments;h.tool_calls.push({id:a.call_id,type:g.x4.FUNCTION,function:{name:a.name,arguments:"string"==typeof c?c:JSON.stringify(c??{})}})}else if(b===g.Du.FUNCTION_CALL_OUTPUT||b===g.Du.CUSTOM_TOOL_CALL_OUTPUT){if(h&&(e.messages.push(h),h=null),j.length>0){for(let a of j)e.messages.push(a);j=[]}e.messages.push({role:g.z7.TOOL,tool_call_id:a.call_id,content:"string"==typeof a.output?a.output:JSON.stringify(a.output)})}else if(b===g.Du.ADDITIONAL_TOOLS)Array.isArray(a.tools)&&m.push(...a.tools);else if(b===g.Du.REASONING){let b=p(a);b&&(k=k?`${k}
62
- ${b}`:b),"string"==typeof a.encrypted_content&&a.encrypted_content&&(l=a.encrypted_content);continue}}if(h&&e.messages.push(h),j.length>0)for(let a of j)e.messages.push(a);let r=[...Array.isArray(b.tools)?b.tools:[],...m];return r.length>0&&(e.tools=r.map(a=>{if(a.function)return a;let b=a.name;if(!b||"string"!=typeof b||""===b.trim())return null;if("custom"===a.type){n.add(b);let c=[a.format?.syntax,a.format?.definition].filter(Boolean).join("\n");return{type:g.x4.FUNCTION,function:{name:b,description:[String(a.description||""),c].filter(Boolean).join("\n\n"),parameters:{type:"object",properties:{input:{type:"string",description:"Raw freeform input for this custom tool"}},required:["input"],additionalProperties:!1}}}}return{type:g.x4.FUNCTION,function:{name:b,description:String(a.description||""),parameters:i(a.parameters),strict:a.strict}}}).filter(Boolean)),n.size>0&&(e._customToolNames=[...n]),void 0!==e.max_output_tokens&&(void 0===e.max_tokens&&(e.max_tokens=e.max_output_tokens),delete e.max_output_tokens),delete e.input,delete e.instructions,delete e.include,delete e.prompt_cache_key,delete e.store,"string"==typeof e.reasoning?.effort&&(e.reasoning_effort=e.reasoning.effort),delete e.reasoning,delete e.client_metadata,e}function i(a){return a?"object"!==a.type||a.properties?a:{...a,properties:{}}:{type:"object",properties:{}}}function j(a,b,c,d){if(b.input){let c={...b,model:a,stream:!0};return void 0===c.max_output_tokens&&(void 0!==c.max_completion_tokens?c.max_output_tokens=c.max_completion_tokens:void 0!==c.max_tokens&&(c.max_output_tokens=c.max_tokens)),delete c.max_tokens,delete c.max_completion_tokens,c}let e={model:a,input:[],stream:!0,store:!1},h=!1;for(let a of b.messages||[]){if(a.role===g.z7.SYSTEM||a.role===g.z7.DEVELOPER){if(!h){var j;e.instructions="string"==typeof(j=a.content)?j:Array.isArray(j)?j.map(a=>"string"==typeof a?.text?a.text:"string"==typeof a?.content?a.content:"").filter(Boolean).join("\n"):"",h=!0}continue}if(a.role===g.z7.USER||a.role===g.z7.ASSISTANT){if(a.role===g.z7.ASSISTANT){let b=function(a){if(!a||"object"!=typeof a)return null;let b="string"==typeof a.encrypted_content&&a.encrypted_content||"string"==typeof a.reasoning_encrypted_content&&a.reasoning_encrypted_content||"string"==typeof a.reasoning?.encrypted_content&&a.reasoning.encrypted_content||"",c="";if("string"==typeof a.reasoning_content&&a.reasoning_content.trim()?c=a.reasoning_content:"string"==typeof a.reasoning&&a.reasoning.trim()?c=a.reasoning:Array.isArray(a.reasoning_details)&&(c=a.reasoning_details.map(a=>"string"==typeof a?.text?a.text:"string"==typeof a?.content?a.content:"").filter(Boolean).join("\n")),!b&&!c)return null;let d={type:g.Du.REASONING};return c&&(d.summary=[{type:g.Du.SUMMARY_TEXT,text:c}]),b&&(d.encrypted_content=b),d}(a);b&&e.input.push(b)}let b=a.role===g.z7.USER?g.Du.INPUT_TEXT:g.Du.OUTPUT_TEXT,c="string"==typeof a.content?[{type:b,text:a.content}]:Array.isArray(a.content)?a.content.map(a=>{if(a.type===g.x4.TEXT)return{type:b,text:a.text};if(a.type===g.x4.IMAGE_URL){let b="string"==typeof a.image_url?a.image_url:a.image_url?.url;return{type:g.Du.INPUT_IMAGE,image_url:b,detail:a.image_url?.detail||"auto"}}if(a.type===g.Du.INPUT_IMAGE)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:g.Du.MESSAGE,role:a.role,content:c})}if(a.role===g.z7.ASSISTANT&&a.tool_calls)for(let b of a.tool_calls){let a="string"==typeof b.function?.name?b.function.name.trim():"";a&&e.input.push({type:g.Du.FUNCTION_CALL,call_id:(0,f.N8)(b.id),name:a.slice(0,128),arguments:(0,f.We)(b.function?.arguments)})}a.role===g.z7.TOOL&&e.input.push({type:g.Du.FUNCTION_CALL_OUTPUT,call_id:(0,f.N8)(a.tool_call_id),output:(0,f.DP)(a.content)})}return h||(e.instructions=""),b.tools&&Array.isArray(b.tools)&&(e.tools=b.tools.map(a=>{if(a.type===g.x4.FUNCTION){let b="string"==typeof a.function?.name?a.function.name.trim():"";return b?{type:g.x4.FUNCTION,name:b.slice(0,128),description:String(a.function.description||""),parameters:i(a.function.parameters),strict:a.function.strict}:null}return a}).filter(Boolean)),void 0!==b.temperature&&(e.temperature=b.temperature),void 0!==b.max_output_tokens?e.max_output_tokens=b.max_output_tokens:void 0!==b.max_completion_tokens?e.max_output_tokens=b.max_completion_tokens:void 0!==b.max_tokens&&(e.max_output_tokens=b.max_tokens),void 0!==b.top_p&&(e.top_p=b.top_p),void 0!==b.reasoning&&(e.reasoning=b.reasoning),void 0!==b.reasoning_effort&&(e.reasoning={effort:b.reasoning_effort,summary:"auto"}),void 0!==b.service_tier&&(e.service_tier=b.service_tier),void 0!==b.prompt_cache_key&&(e.prompt_cache_key=b.prompt_cache_key),e}(0,d.kz)(e.h.OPENAI_RESPONSES,e.h.OPENAI,h,null),(0,d.kz)(e.h.OPENAI,e.h.OPENAI_RESPONSES,j,null)},71782:(a,b,c)=>{c.d(b,{Sk:()=>k,el:()=>l});let d=(0,c(22846).U)("gemini_thought_signatures"),e=new Map,f=0;function g(a){let b="string"==typeof a?a.toLowerCase():"";return b?b.includes("claude")?"claude":b.includes("gemini")?"gemini":b:null}function h(a,b){return!a.family||!b||a.family===b}function i(){let a=Date.now();for(let[b,c]of e.entries())c.expiresAt<=a&&e.delete(b);for(;e.size>2e3;){let a=e.keys().next().value;if(!a)break;e.delete(a)}}async function j(){if(++f%100==0)try{let a=await d.getAll(),b=Object.keys(a),c=Date.now(),e=[],f=[];for(let d of b){let b=a[d];!b||"string"!=typeof b.signature||b.expiresAt&&b.expiresAt<=c?e.push(d):f.push({key:d,createdAt:b.createdAt||0})}for(let a of e)await d.remove(a).catch(()=>{});if(f.length>1e4)for(let a of(f.sort((a,b)=>b.createdAt-a.createdAt),f.slice(1e4)))await d.remove(a.key).catch(()=>{})}catch{}}function k(a,b,c=null,f=null){if("string"!=typeof a||!a||"string"!=typeof b||!b)return;let h=Date.now(),l=g(f);i();let m=[];for(let f of(c&&"string"==typeof c&&m.push(`${c}:${a}`),m.push(a),m))e.set(f,{signature:b,family:l,expiresAt:h+36e5}),d.set(f,{signature:b,family:l,createdAt:h,expiresAt:h+6048e5}).catch(()=>{});j().catch(()=>{})}function l(a,b=null,c=null){if("string"!=typeof a||!a)return null;let d=g(c);if(i(),b&&"string"==typeof b){let c=`${b}:${a}`,f=e.get(c);if(f&&f.expiresAt>Date.now()&&h(f,d))return f.signature}let f=e.get(a);return f&&f.expiresAt>Date.now()&&h(f,d)?f.signature:null}},72239:(a,b,c)=>{c.d(b,{k:()=>o});var d=c(24),e=c(58920),f=c(6382),g=c(57247);let h=["none","low","medium","high"],i=["none","thinking"],j=["none","low","medium","high","xhigh","max"],k={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":j,"claude-budget":j,"gemini-level":["minimal","low","medium","high"],"gemini-budget":h,zai:i,qwen:h,kimi:["none","low","medium","high","max"],deepseek:["none","high","max"],commandcode:["none","low","medium","high","xhigh","max"],minimax:i,hunyuan:h,step:h,nous:h},l=["none","minimal","low","medium","high","xhigh","max"],m=["none","low","medium","high","max"],n=[{pattern:"*gemini-4*",levels:["low","medium","high"]},{pattern:"*claude*4.6*",levels:m},{pattern:"*claude*4-6*",levels:m},{provider:"codex",pattern:"*gpt-6*",levels:l},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...l,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...l,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:l},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{pattern:"*mimo*v2.6*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4-pro",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4.1-flash",levels:["low","high","max"]},{pattern:"*deepseek-v4.*",levels:["none","low","medium","high","xhigh","max"]},{provider:"codebuddy-cn",pattern:"glm-5.3",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.3-flash",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"kimi-k2.8-preview",levels:["low","medium","high"]},{provider:"codebuddy-cn",pattern:"hy3",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4-preview",levels:["high"]},{provider:"codebuddy-intl",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"minimax-code",pattern:"MiniMax-M3.1*",levels:["low","medium","high","xhigh","max"]},{provider:"minimax-code",pattern:"MiniMax-M3",levels:["none","high"]},{provider:"minimax-code-global",pattern:"MiniMax-M3.1*",levels:["low","medium","high","xhigh","max"]},{provider:"minimax-code-global",pattern:"MiniMax-M3",levels:["none","high"]}];function o(a,b){if("kiro"===a&&null===(0,f.pA)(b))return null;let c=(0,d.nl)(a,b);if(!c.reasoning)return null;let i=String(b||"").replace(/\([^()]+\)\s*$/,""),j="codex"===a?(0,g.SM)("cx").find(a=>a.id===i)?.thinkingLevels:null,l=n.find(c=>(!c.provider||c.provider===a)&&(0,e.gH)(c.pattern,b)),m=j||l?.levels||k[c.thinkingFormat]||h;return!1===c.thinkingCanDisable&&(m=m.filter(a=>"none"!==a)),m}},74525:(a,b,c)=>{c.d(b,{M:()=>e});var d=c(41004);function e(a,b=d.Uc){let c=a.max_tokens||d.Uc;return a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&c<d.eo&&(c=d.eo),a.thinking?.budget_tokens&&c<=a.thinking.budget_tokens&&(c=a.thinking.budget_tokens+1024),c>b&&(c=b),c}},76924:(a,b,c)=>{c.d(b,{J5:()=>d,MT:()=>e,Xc:()=>g,Yv:()=>f});let d=0xa00000,e=1e4,f=[{sig:[137,80,78,71],offset:0,mime:"image/png"},{sig:[255,216,255],offset:0,mime:"image/jpeg"},{sig:[71,73,70,56],offset:0,mime:"image/gif"},{sig:[82,73,70,70],offset:0,mime:"image/webp",verifyWebp:!0},{sig:[66,77],offset:0,mime:"image/bmp"}],g=new Set(["localhost","127.0.0.1","0.0.0.0","::1","169.254.169.254","metadata.google.internal"])},88499:(a,b,c)=>{c.d(b,{Ws:()=>as,Ai:()=>at,nZ:()=>ar,kz:()=>ao,GH:()=>ap,Y8:()=>aq});var d,e,f=c(14170),g=c(17242),h=c(95189),i=c(55399),j=c(60210),k=c(43698),l=c(57647),m=c(52136),n=c(80662),o=c(26070),p=c(33077);c(60983),c(19979);var q=c(74525),r=c(29463),s=c(97721);function t(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,q.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:k.z7.SYSTEM,content:a})}if(b.contents&&Array.isArray(b.contents))for(let a of b.contents){let b=function(a){let b=a.role===k.RV.USER?k.z7.USER:k.z7.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:k.x4.TEXT,text:b.text}),b.inlineData&&c.push({type:k.x4.IMAGE_URL,image_url:{url:(0,r.$q)(b.inlineData.mimeType,b.inlineData.data)}}),b.functionCall&&d.push({id:b.functionCall.id||`call_${b.functionCall.name}`,type:k.x4.FUNCTION,function:{name:b.functionCall.name,arguments:JSON.stringify(b.functionCall.args||{})}}),b.functionResponse)return{role:k.z7.TOOL,tool_call_id:b.functionResponse.id||`call_${b.functionResponse.name}`,content:JSON.stringify(b.functionResponse.response?.result||b.functionResponse.response||{})};if(d.length>0){let a={role:k.z7.ASSISTANT};return c.length>0&&(a.content=1===c.length?c[0].text:c),a.tool_calls=d,a}return c.length>0?{role:b,content:(0,s.z)(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:k.x4.FUNCTION,function:{name:b.name,description:b.description||"",parameters:b.parameters||{type:"object",properties:{}}}})}return d}ao(f.h.GEMINI,f.h.OPENAI,t,null),ao(f.h.GEMINI_CLI,f.h.OPENAI,t,null);var u=c(97102),v=c(96281);ao(f.h.OPENAI,f.h.VERTEX,function(a,b,c,d){var e=(0,u.m$)(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=v.n6),b.functionCall&&"id"in b.functionCall&&delete b.functionCall.id,b.functionResponse&&"id"in b.functionResponse&&delete b.functionResponse.id;return e},null);var w=c(58028);ao(f.h.ANTIGRAVITY,f.h.OPENAI,function(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,q.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=(0,w.Vp)(a.thinkingConfig.thinkingBudget||0);b&&(e.reasoning_effort=b)}}if(d.systemInstruction){var f;let a="string"==typeof(f=d.systemInstruction)?f:f.parts&&Array.isArray(f.parts)?f.parts.map(a=>a.text||"").join(""):"";a&&e.messages.push({role:k.z7.SYSTEM,content:a})}if(d.contents&&Array.isArray(d.contents))for(let a of d.contents){let b=function(a){let b=a.role===k.RV.MODEL?k.z7.ASSISTANT:a.role===k.RV.USER?k.z7.USER:a.role;if(!a.parts||!Array.isArray(a.parts))return null;let c=[],d=[],e=[],f="";for(let b of a.parts){if(!0===b.thought&&b.text){f+=b.text;continue}if(b.thoughtSignature&&void 0!==b.text){b.text&&c.push({type:k.x4.TEXT,text:b.text});continue}void 0!==b.text&&""!==b.text&&c.push({type:k.x4.TEXT,text:b.text}),b.inlineData&&c.push({type:k.x4.IMAGE_URL,image_url:{url:(0,r.$q)(b.inlineData.mimeType,b.inlineData.data)}}),b.functionCall&&d.push({id:b.functionCall.id||`call_${b.functionCall.name}`,type:k.x4.FUNCTION,function:{name:b.functionCall.name,arguments:JSON.stringify(b.functionCall.args||{})}}),b.functionResponse&&e.push({role:k.z7.TOOL,tool_call_id:b.functionResponse.id||`call_${b.functionResponse.name}`,content:JSON.stringify(b.functionResponse.response?.result||b.functionResponse.response||{})})}if(e.length>0){if(d.length>0||c.length>0||f){let a={role:k.z7.ASSISTANT};return c.length>0&&(a.content=(0,s.z)(c)),f&&(a.reasoning_content=f),d.length>0&&(a.tool_calls=d),[...e,a]}return e}if(d.length>0){let a={role:k.z7.ASSISTANT};return c.length>0&&(a.content=(0,s.z)(c)),f&&(a.reasoning_content=f),a.tool_calls=d,a}if(c.length>0||f){let a={role:b};return c.length>0&&(a.content=(0,s.z)(c)),f&&(a.reasoning_content=f),a}return null}(a);b&&(Array.isArray(b)?e.messages.push(...b):e.messages.push(b))}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:k.x4.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},null),c(65377);var x=c(94755),y=c(41004);let z=new Map;function A(a){return null==a?a:JSON.parse(JSON.stringify(a))}function B(a,b){return a?.userInputMessage&&!a.userInputMessage.modelId&&b&&(a.userInputMessage.modelId=b),a}function C(a,b){for(let c of a||[])B(c,b);return a}function D(a,b,c){let d=A(a)||{userInputMessage:{content:""}};if(d.userInputMessage||(d.userInputMessage={content:""}),B(d,c),b){let a=d.userInputMessage.content||"";d.userInputMessage.content=a?`${b}
62
+ ${b}`:b),"string"==typeof a.encrypted_content&&a.encrypted_content&&(l=a.encrypted_content);continue}}if(h&&e.messages.push(h),j.length>0)for(let a of j)e.messages.push(a);let r=[...Array.isArray(b.tools)?b.tools:[],...m];return r.length>0&&(e.tools=r.map(a=>{if(a.function)return a;let b=a.name;if(!b||"string"!=typeof b||""===b.trim())return null;if("custom"===a.type){n.add(b);let c=[a.format?.syntax,a.format?.definition].filter(Boolean).join("\n");return{type:g.x4.FUNCTION,function:{name:b,description:[String(a.description||""),c].filter(Boolean).join("\n\n"),parameters:{type:"object",properties:{input:{type:"string",description:"Raw freeform input for this custom tool"}},required:["input"],additionalProperties:!1}}}}return{type:g.x4.FUNCTION,function:{name:b,description:String(a.description||""),parameters:i(a.parameters),strict:a.strict}}}).filter(Boolean)),n.size>0&&(e._customToolNames=[...n]),void 0!==e.max_output_tokens&&(void 0===e.max_tokens&&(e.max_tokens=e.max_output_tokens),delete e.max_output_tokens),delete e.input,delete e.instructions,delete e.include,delete e.prompt_cache_key,delete e.store,"string"==typeof e.reasoning?.effort&&(e.reasoning_effort=e.reasoning.effort),delete e.reasoning,delete e.client_metadata,e}function i(a){return a?"object"!==a.type||a.properties?a:{...a,properties:{}}:{type:"object",properties:{}}}function j(a,b,c,d){if(b.input){let c={...b,model:a,stream:!0};return void 0===c.max_output_tokens&&(void 0!==c.max_completion_tokens?c.max_output_tokens=c.max_completion_tokens:void 0!==c.max_tokens&&(c.max_output_tokens=c.max_tokens)),delete c.max_tokens,delete c.max_completion_tokens,c}let e={model:a,input:[],stream:!0,store:!1},h=!1;for(let a of b.messages||[]){if(a.role===g.z7.SYSTEM||a.role===g.z7.DEVELOPER){if(!h){var j;e.instructions="string"==typeof(j=a.content)?j:Array.isArray(j)?j.map(a=>"string"==typeof a?.text?a.text:"string"==typeof a?.content?a.content:"").filter(Boolean).join("\n"):"",h=!0}continue}if(a.role===g.z7.USER||a.role===g.z7.ASSISTANT){if(a.role===g.z7.ASSISTANT){let b=function(a){if(!a||"object"!=typeof a)return null;let b="string"==typeof a.encrypted_content&&a.encrypted_content||"string"==typeof a.reasoning_encrypted_content&&a.reasoning_encrypted_content||"string"==typeof a.reasoning?.encrypted_content&&a.reasoning.encrypted_content||"",c="";if("string"==typeof a.reasoning_content&&a.reasoning_content.trim()?c=a.reasoning_content:"string"==typeof a.reasoning&&a.reasoning.trim()?c=a.reasoning:Array.isArray(a.reasoning_details)&&(c=a.reasoning_details.map(a=>"string"==typeof a?.text?a.text:"string"==typeof a?.content?a.content:"").filter(Boolean).join("\n")),!b&&!c)return null;let d={type:g.Du.REASONING};return c&&(d.summary=[{type:g.Du.SUMMARY_TEXT,text:c}]),b&&(d.encrypted_content=b),d}(a);b&&e.input.push(b)}let b=a.role===g.z7.USER?g.Du.INPUT_TEXT:g.Du.OUTPUT_TEXT,c="string"==typeof a.content?[{type:b,text:a.content}]:Array.isArray(a.content)?a.content.map(a=>{if(a.type===g.x4.TEXT)return{type:b,text:a.text};if(a.type===g.x4.IMAGE_URL){let b="string"==typeof a.image_url?a.image_url:a.image_url?.url;return{type:g.Du.INPUT_IMAGE,image_url:b,detail:a.image_url?.detail||"auto"}}if(a.type===g.Du.INPUT_IMAGE)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:g.Du.MESSAGE,role:a.role,content:c})}if(a.role===g.z7.ASSISTANT&&a.tool_calls)for(let b of a.tool_calls){let a="string"==typeof b.function?.name?b.function.name.trim():"";a&&e.input.push({type:g.Du.FUNCTION_CALL,call_id:(0,f.N8)(b.id),name:a.slice(0,128),arguments:(0,f.We)(b.function?.arguments)})}a.role===g.z7.TOOL&&e.input.push({type:g.Du.FUNCTION_CALL_OUTPUT,call_id:(0,f.N8)(a.tool_call_id),output:(0,f.DP)(a.content)})}return h||(e.instructions=""),b.tools&&Array.isArray(b.tools)&&(e.tools=b.tools.map(a=>{if(a.type===g.x4.FUNCTION){let b="string"==typeof a.function?.name?a.function.name.trim():"";return b?{type:g.x4.FUNCTION,name:b.slice(0,128),description:String(a.function.description||""),parameters:i(a.function.parameters),strict:a.function.strict}:null}return a}).filter(Boolean)),void 0!==b.temperature&&(e.temperature=b.temperature),void 0!==b.max_output_tokens?e.max_output_tokens=b.max_output_tokens:void 0!==b.max_completion_tokens?e.max_output_tokens=b.max_completion_tokens:void 0!==b.max_tokens&&(e.max_output_tokens=b.max_tokens),void 0!==b.top_p&&(e.top_p=b.top_p),void 0!==b.reasoning&&(e.reasoning=b.reasoning),void 0!==b.reasoning_effort&&(e.reasoning={effort:b.reasoning_effort,summary:"auto"}),void 0!==b.service_tier&&(e.service_tier=b.service_tier),void 0!==b.prompt_cache_key&&(e.prompt_cache_key=b.prompt_cache_key),e}(0,d.kz)(e.h.OPENAI_RESPONSES,e.h.OPENAI,h,null),(0,d.kz)(e.h.OPENAI,e.h.OPENAI_RESPONSES,j,null)},71782:(a,b,c)=>{c.d(b,{Sk:()=>k,el:()=>l});let d=(0,c(22846).U)("gemini_thought_signatures"),e=new Map,f=0;function g(a){let b="string"==typeof a?a.toLowerCase():"";return b?b.includes("claude")?"claude":b.includes("gemini")?"gemini":b:null}function h(a,b){return!a.family||!b||a.family===b}function i(){let a=Date.now();for(let[b,c]of e.entries())c.expiresAt<=a&&e.delete(b);for(;e.size>2e3;){let a=e.keys().next().value;if(!a)break;e.delete(a)}}async function j(){if(++f%100==0)try{let a=await d.getAll(),b=Object.keys(a),c=Date.now(),e=[],f=[];for(let d of b){let b=a[d];!b||"string"!=typeof b.signature||b.expiresAt&&b.expiresAt<=c?e.push(d):f.push({key:d,createdAt:b.createdAt||0})}for(let a of e)await d.remove(a).catch(()=>{});if(f.length>1e4)for(let a of(f.sort((a,b)=>b.createdAt-a.createdAt),f.slice(1e4)))await d.remove(a.key).catch(()=>{})}catch{}}function k(a,b,c=null,f=null){if("string"!=typeof a||!a||"string"!=typeof b||!b)return;let h=Date.now(),l=g(f);i();let m=[];for(let f of(c&&"string"==typeof c&&m.push(`${c}:${a}`),m.push(a),m))e.set(f,{signature:b,family:l,expiresAt:h+36e5}),d.set(f,{signature:b,family:l,createdAt:h,expiresAt:h+6048e5}).catch(()=>{});j().catch(()=>{})}function l(a,b=null,c=null){if("string"!=typeof a||!a)return null;let d=g(c);if(i(),b&&"string"==typeof b){let c=`${b}:${a}`,f=e.get(c);if(f&&f.expiresAt>Date.now()&&h(f,d))return f.signature}let f=e.get(a);return f&&f.expiresAt>Date.now()&&h(f,d)?f.signature:null}},72239:(a,b,c)=>{c.d(b,{k:()=>o});var d=c(24),e=c(58920),f=c(6382),g=c(57247);let h=["none","low","medium","high"],i=["none","thinking"],j=["none","low","medium","high","xhigh","max"],k={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":j,"claude-budget":j,"gemini-level":["minimal","low","medium","high"],"gemini-budget":h,zai:i,qwen:h,kimi:["none","low","medium","high","max"],zcode:["low","high","max"],deepseek:["none","high","max"],commandcode:["none","low","medium","high","xhigh","max"],minimax:i,hunyuan:h,step:h,nous:h},l=["none","minimal","low","medium","high","xhigh","max"],m=["none","low","medium","high","max"],n=[{pattern:"*gemini-4*",levels:["low","medium","high"]},{pattern:"*claude*4.6*",levels:m},{pattern:"*claude*4-6*",levels:m},{provider:"codex",pattern:"*gpt-6*",levels:l},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...l,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...l,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:l},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{pattern:"*mimo*v2.6*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4-pro",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4.1-flash",levels:["low","high","max"]},{pattern:"*deepseek-v4.*",levels:["none","low","medium","high","xhigh","max"]},{provider:"codebuddy-cn",pattern:"glm-5.3",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.3-flash",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"kimi-k2.8-preview",levels:["low","medium","high"]},{provider:"codebuddy-cn",pattern:"hy3",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4-preview",levels:["high"]},{provider:"codebuddy-intl",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"minimax-code",pattern:"MiniMax-M3.1*",levels:["low","medium","high","xhigh","max"]},{provider:"minimax-code",pattern:"MiniMax-M3",levels:["none","high"]},{provider:"minimax-code-global",pattern:"MiniMax-M3.1*",levels:["low","medium","high","xhigh","max"]},{provider:"minimax-code-global",pattern:"MiniMax-M3",levels:["none","high"]}];function o(a,b){if("kiro"===a&&null===(0,f.pA)(b))return null;let c=(0,d.nl)(a,b);if(!c.reasoning)return null;let i=String(b||"").replace(/\([^()]+\)\s*$/,""),j="codex"===a?(0,g.SM)("cx").find(a=>a.id===i)?.thinkingLevels:null,l=n.find(c=>(!c.provider||c.provider===a)&&(0,e.gH)(c.pattern,b)),m=j||l?.levels||k[c.thinkingFormat]||h;return!1===c.thinkingCanDisable&&(m=m.filter(a=>"none"!==a)),m}},74525:(a,b,c)=>{c.d(b,{M:()=>e});var d=c(41004);function e(a,b=d.Uc){let c=a.max_tokens||d.Uc;return a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&c<d.eo&&(c=d.eo),a.thinking?.budget_tokens&&c<=a.thinking.budget_tokens&&(c=a.thinking.budget_tokens+1024),c>b&&(c=b),c}},76924:(a,b,c)=>{c.d(b,{J5:()=>d,MT:()=>e,Xc:()=>g,Yv:()=>f});let d=0xa00000,e=1e4,f=[{sig:[137,80,78,71],offset:0,mime:"image/png"},{sig:[255,216,255],offset:0,mime:"image/jpeg"},{sig:[71,73,70,56],offset:0,mime:"image/gif"},{sig:[82,73,70,70],offset:0,mime:"image/webp",verifyWebp:!0},{sig:[66,77],offset:0,mime:"image/bmp"}],g=new Set(["localhost","127.0.0.1","0.0.0.0","::1","169.254.169.254","metadata.google.internal"])},88499:(a,b,c)=>{c.d(b,{Ws:()=>as,Ai:()=>at,nZ:()=>ar,kz:()=>ao,GH:()=>ap,Y8:()=>aq});var d,e,f=c(14170),g=c(17242),h=c(95189),i=c(55399),j=c(60210),k=c(43698),l=c(57647),m=c(52136),n=c(80662),o=c(26070),p=c(33077);c(60983),c(19979);var q=c(74525),r=c(29463),s=c(97721);function t(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,q.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:k.z7.SYSTEM,content:a})}if(b.contents&&Array.isArray(b.contents))for(let a of b.contents){let b=function(a){let b=a.role===k.RV.USER?k.z7.USER:k.z7.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:k.x4.TEXT,text:b.text}),b.inlineData&&c.push({type:k.x4.IMAGE_URL,image_url:{url:(0,r.$q)(b.inlineData.mimeType,b.inlineData.data)}}),b.functionCall&&d.push({id:b.functionCall.id||`call_${b.functionCall.name}`,type:k.x4.FUNCTION,function:{name:b.functionCall.name,arguments:JSON.stringify(b.functionCall.args||{})}}),b.functionResponse)return{role:k.z7.TOOL,tool_call_id:b.functionResponse.id||`call_${b.functionResponse.name}`,content:JSON.stringify(b.functionResponse.response?.result||b.functionResponse.response||{})};if(d.length>0){let a={role:k.z7.ASSISTANT};return c.length>0&&(a.content=1===c.length?c[0].text:c),a.tool_calls=d,a}return c.length>0?{role:b,content:(0,s.z)(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:k.x4.FUNCTION,function:{name:b.name,description:b.description||"",parameters:b.parameters||{type:"object",properties:{}}}})}return d}ao(f.h.GEMINI,f.h.OPENAI,t,null),ao(f.h.GEMINI_CLI,f.h.OPENAI,t,null);var u=c(97102),v=c(96281);ao(f.h.OPENAI,f.h.VERTEX,function(a,b,c,d){var e=(0,u.m$)(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=v.n6),b.functionCall&&"id"in b.functionCall&&delete b.functionCall.id,b.functionResponse&&"id"in b.functionResponse&&delete b.functionResponse.id;return e},null);var w=c(58028);ao(f.h.ANTIGRAVITY,f.h.OPENAI,function(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,q.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=(0,w.Vp)(a.thinkingConfig.thinkingBudget||0);b&&(e.reasoning_effort=b)}}if(d.systemInstruction){var f;let a="string"==typeof(f=d.systemInstruction)?f:f.parts&&Array.isArray(f.parts)?f.parts.map(a=>a.text||"").join(""):"";a&&e.messages.push({role:k.z7.SYSTEM,content:a})}if(d.contents&&Array.isArray(d.contents))for(let a of d.contents){let b=function(a){let b=a.role===k.RV.MODEL?k.z7.ASSISTANT:a.role===k.RV.USER?k.z7.USER:a.role;if(!a.parts||!Array.isArray(a.parts))return null;let c=[],d=[],e=[],f="";for(let b of a.parts){if(!0===b.thought&&b.text){f+=b.text;continue}if(b.thoughtSignature&&void 0!==b.text){b.text&&c.push({type:k.x4.TEXT,text:b.text});continue}void 0!==b.text&&""!==b.text&&c.push({type:k.x4.TEXT,text:b.text}),b.inlineData&&c.push({type:k.x4.IMAGE_URL,image_url:{url:(0,r.$q)(b.inlineData.mimeType,b.inlineData.data)}}),b.functionCall&&d.push({id:b.functionCall.id||`call_${b.functionCall.name}`,type:k.x4.FUNCTION,function:{name:b.functionCall.name,arguments:JSON.stringify(b.functionCall.args||{})}}),b.functionResponse&&e.push({role:k.z7.TOOL,tool_call_id:b.functionResponse.id||`call_${b.functionResponse.name}`,content:JSON.stringify(b.functionResponse.response?.result||b.functionResponse.response||{})})}if(e.length>0){if(d.length>0||c.length>0||f){let a={role:k.z7.ASSISTANT};return c.length>0&&(a.content=(0,s.z)(c)),f&&(a.reasoning_content=f),d.length>0&&(a.tool_calls=d),[...e,a]}return e}if(d.length>0){let a={role:k.z7.ASSISTANT};return c.length>0&&(a.content=(0,s.z)(c)),f&&(a.reasoning_content=f),a.tool_calls=d,a}if(c.length>0||f){let a={role:b};return c.length>0&&(a.content=(0,s.z)(c)),f&&(a.reasoning_content=f),a}return null}(a);b&&(Array.isArray(b)?e.messages.push(...b):e.messages.push(b))}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:k.x4.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},null),c(65377);var x=c(94755),y=c(41004);let z=new Map;function A(a){return null==a?a:JSON.parse(JSON.stringify(a))}function B(a,b){return a?.userInputMessage&&!a.userInputMessage.modelId&&b&&(a.userInputMessage.modelId=b),a}function C(a,b){for(let c of a||[])B(c,b);return a}function D(a,b,c){let d=A(a)||{userInputMessage:{content:""}};if(d.userInputMessage||(d.userInputMessage={content:""}),B(d,c),b){let a=d.userInputMessage.content||"";d.userInputMessage.content=a?`${b}
63
63
 
64
64
  ${a}`:b}return d}function E(a){return a.findIndex(a=>a?.userInputMessage)}function F(a,b){var c;return 0===b&&(c=a[b],!c?.userInputMessage?.userInputMessageContext?.toolResults?.length)}function G({conversationId:a,connectionId:b,modelId:c,systemPrompt:d="",contentPrefix:e="",currentContentPrefix:f="",history:g=[],currentMessage:h}={}){var i;let j,k=`${b||""}:${a||""}`,l=a?z.get(k):null,m=A(g)||[],n=A(h)||{userInputMessage:{content:""}};if(l&&l.modelId===c&&l.systemPrompt===d){l.lastUsed=Date.now();let a=E(m),b=B(A(l.sessionStart),c);return F(m,a)?m[a]=b:(m.unshift(b),1===m.length&&m.push({assistantResponseMessage:{content:"..."}})),{history:C(m,c),currentMessage:D(n,f,c),replayed:!0}}let o=E(m),p=B(n,c);return F(m,o)?(j=D(m[o],e,c),m[o]=A(j),p=D(n,f,c)):o>=0?(j=D({userInputMessage:{content:"",modelId:c}},e,c),m.unshift(A(j)),p=D(n,f,c)):p=A(j=D(n,e,c)),a&&(i={sessionStart:A(j),modelId:c,systemPrompt:d},z.size>=5e3&&z.delete(z.keys().next().value),z.set(k,{...i,lastUsed:Date.now()})),{history:C(m,c),currentMessage:p,replayed:!1}}let H=setInterval(()=>{let a=Date.now();for(let[b,c]of z)a-c.lastUsed>y.v1.sessionTtlMs&&z.delete(b)},y.v1.sessionCleanupIntervalMs);H.unref&&H.unref();var I=c(6382);let J=/^[a-zA-Z0-9_-]+$/;function K(a){return a?"Tool results provided.":"continue"}let L=/[^a-zA-Z0-9_-]/g;function M(a){return null==a?a:JSON.parse(JSON.stringify(a))}function N(a){if("string"==typeof a)return a;if(null==a)return"";try{return JSON.stringify(a)}catch{return String(a)}}function O(a,b){b&&(a.content=a.content?`${a.content}
65
65
 
@@ -0,0 +1 @@
1
+ exports.id=9300,exports.ids=[9300],exports.modules={1801:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"puzzle",size:24,node:[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]};e.node;let f=(0,d.A)(e)},7178:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"panel-left-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],aliases:["sidebar-close"]};e.node;let f=(0,d.A)(e)},8124:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"cable",size:24,node:[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]]};e.node;let f=(0,d.A)(e)},14953:(a,b,c)=>{"use strict";var d=c(68662);function e(){}function f(){}f.resetWarningCache=e,a.exports=function(){function a(a,b,c,e,f,g){if(g!==d){var h=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}function b(){return a}a.isRequired=a;var c={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:b,element:a,elementType:a,instanceOf:b,node:a,objectOf:b,oneOf:b,oneOfType:b,shape:b,exact:b,checkPropTypes:f,resetWarningCache:e};return c.PropTypes=c,c}},15741:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};e.node;let f=(0,d.A)(e)},16664:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};e.node;let f=(0,d.A)(e)},18908:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};e.node;let f=(0,d.A)(e)},20878:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};e.node;let f=(0,d.A)(e)},26773:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};e.node;let f=(0,d.A)(e)},27238:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"piggy-bank",size:24,node:[["path",{d:"M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z",key:"1piglc"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M2 8v1a2 2 0 0 0 2 2h1",key:"1env43"}]]};e.node;let f=(0,d.A)(e)},29813:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};e.node;let f=(0,d.A)(e)},36274:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]};e.node;let f=(0,d.A)(e)},41665:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};e.node;let f=(0,d.A)(e)},45535:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};e.node;let f=(0,d.A)(e)},49885:(a,b,c)=>{a.exports=c(14953)()},54183:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};e.node;let f=(0,d.A)(e)},57762:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"settings",size:24,node:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};e.node;let f=(0,d.A)(e)},57974:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};e.node;let f=(0,d.A)(e)},58250:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};e.node;let f=(0,d.A)(e)},67254:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]};e.node;let f=(0,d.A)(e)},68508:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"languages",size:24,node:[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]};e.node;let f=(0,d.A)(e)},68662:a=>{"use strict";a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},69627:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};e.node;let f=(0,d.A)(e)},84483:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(67484);let e=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),f={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},g=(0,d.createContext)({}),h=(0,d.forwardRef)(({color:a,size:b,width:c,height:h,strokeWidth:i,absoluteStrokeWidth:j,nonScalingStroke:k,className:l="",children:m,iconNode:n=[],icon:o={node:n,aliases:[],size:24},...p},q)=>{let{size:r=24,strokeWidth:s=2,absoluteStrokeWidth:t=!1,nonScalingStroke:u=!1,color:v="currentColor",className:w=""}=(0,d.useContext)(g)??{},x=!!m||(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(p),[y,z,A=[]]=function(a,b={}){return function(a,b={}){let c=b.attributeNames??{},d=a=>c[a]??a,g=a.size??a.width??f.width,h=a.size??a.height??f.height,i=a.aliases?.filter(a=>"string"==typeof a&&""!==a.trim()).map(a=>`lucide-${a}`)??[],j=[...a.name?[`lucide-${a.name}`]:[],...i],k=b.className?.split(" ").filter(Boolean)??[],l=!1===b.includeDefaultClasses?e(...k):e("lucide",...j,...k),m=b.absoluteStrokeWidth?Number(b.strokeWidth??f["stroke-width"])*Number(a.size??a.width??f.width)/Number(b.size??b.width??f.width):b.strokeWidth??f["stroke-width"];return["svg",{...Object.entries(f).reduce((a,[b,c])=>(a[d(b)]=c,a),{}),..."color"in b&&b.color&&{[d("stroke")]:b.color},..."size"in b&&null!=b.size&&{[d("width")]:b.size,[d("height")]:b.size},..."width"in b&&null!=b.width&&{[d("width")]:b.width},..."height"in b&&null!=b.height&&{[d("height")]:b.height},[d("stroke-width")]:m,...l&&{[d("class")]:l},[d("viewBox")]:`0 0 ${g} ${h}`,...!1===b.hasA11yProp?{[d("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},a.node.map(a=>{let[c,e,f]=a,g=b.nonScalingStroke?{[d("vector-effect")]:"non-scaling-stroke",...e}:e;return f?[c,g,f]:[c,g]})]}(a,{...b,attributeNames:{...b.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(o,{color:a??v,width:c??b??r,height:h??b??r,strokeWidth:i??s,absoluteStrokeWidth:j??t,nonScalingStroke:k??u,className:e(w,l),hasA11yProp:x,attributes:p});return(0,d.createElement)(y,{ref:q,...z},[...A.map(([a,b])=>(0,d.createElement)(a,b)),...Array.isArray(m)?m:[m]])});function i(a,b=[],c=[]){let e,f="string"==typeof a?function(a,b,c=[]){if(null==b)throw Error("[lucide]: iconNode is required when icon name is used");return{name:a?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:b,...c.length>0?{aliases:c}:{}}}(a,b,c):a,g=(0,d.forwardRef)(({className:a,...b},c)=>(0,d.createElement)(h,{ref:c,icon:f,className:a,...b}));return f.name&&(g.displayName=(e=(a=>{let b="",c=!1;for(let d of a){if("-"===d||"_"===d||d<=" "){c=b.length>0;continue}0===b.length?b+=d.toLowerCase():b+=c?d.toUpperCase():d,c=!1}return b})(f.name)).charAt(0).toUpperCase()+e.slice(1)),g}},91995:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};e.node;let f=(0,d.A)(e)},93217:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};e.node;let f=(0,d.A)(e)},96006:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(84483);let e={name:"panel-left-open",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],aliases:["sidebar-open"]};e.node;let f=(0,d.A)(e)}};
@@ -4,4 +4,4 @@ data: ${JSON.stringify(c)}
4
4
 
5
5
  `:`data: ${JSON.stringify(c)}
6
6
 
7
- `;a.enqueue(d.encode(e))},l=(a,c)=>!j&&(j=!0,b?.error?.("BEDROCK",`${a}: ${c}`),k("error",this.isClaudeWire?{type:"error",error:{type:a,message:c}}:{error:{type:a,message:c,code:a}}),!1),n=()=>{for(;g.byteLength>=12;){let a,c,d=new DataView(g.buffer,g.byteOffset,g.byteLength);if(d.getUint32(8,!1)!==(0,m.QR)(g.subarray(0,8)))return l("api_error","Bedrock EventStream prelude CRC mismatch");let i=d.getUint32(0,!1),j=d.getUint32(4,!1);if(i<16||i>f.bJ.maxMessageBytes||j>f.bJ.maxHeadersBytes||j>i-16)return l("api_error","Bedrock EventStream frame bounds are invalid");if(g.byteLength<i)break;let n=g.slice(0,i);g=g.slice(i);try{a=(0,m.xc)(n)}catch(a){return l("api_error",a.message)}let o=a.headers[":message-type"];if("exception"===o||"error"===o)return l(a.headers[":exception-type"]||a.headers[":error-code"]||"api_error",a.payload?.message||a.payload?.Message||a.headers[":error-message"]||`Bedrock returned an EventStream ${o}`);if(a.headers[":event-type"]!==f.TV.chunkEventName){b?.warn?.("BEDROCK",`skipped unrecognised EventStream event type ${JSON.stringify(a.headers[":event-type"])}`);continue}let p=a.payload?.bytes;if(!p)return l("api_error","Bedrock chunk frame carried no payload bytes");try{c=JSON.parse(e.decode(Buffer.from(p,"base64")))}catch(a){return l("api_error",`Bedrock chunk was not valid JSON (${a.message})`)}if(this.isClaudeWire){if(!c?.type)return l("api_error","Bedrock chunk decoded to an event with no type");k(c.type,c),c.type===f.TV.terminalEventType&&(h=!0)}else{if(!Array.isArray(c?.choices))return l("api_error","Bedrock chunk decoded without a `choices` array");k(null,c),c.choices.some(a=>a?.finish_reason)&&(h=!0)}}return!0};for(;;){let a;try{a=await c.read()}catch(a){l("api_error",`Bedrock stream read failed: ${a.message}`);break}if(a.done)break;let b=a.value;if(b?.byteLength){if(0===g.byteLength)g=b;else{let a=new Uint8Array(g.byteLength+b.byteLength);a.set(g),a.set(b,g.byteLength),g=a}if(!n())break}}i||(!j&&g.byteLength?l("api_error","Bedrock stream ended mid-frame"):j||h||l("api_error",this.isClaudeWire?`Bedrock stream ended before ${f.TV.terminalEventType}`:"Bedrock stream ended before any choice reported a finish_reason"),this.isClaudeWire||j||a.enqueue(d.encode(t.$U)),a.close()),await c.cancel().catch(a=>b?.debug?.("BEDROCK",`upstream cancel failed: ${a.message}`)),c.releaseLock?.()},cancel:a=>(i=!0,c.cancel(a))})}}async function x(a,b){let c,d;try{c=await l(a)}catch(a){return{valid:!1,error:a.message}}let e=`https://bedrock.${c.region}.amazonaws.com/${f.TV.probePath}`,g=r({method:"GET",url:e,headers:{Accept:"application/json"},region:c.region,service:f.TV.service,credentials:c}),h=new AbortController,i=setTimeout(()=>h.abort(Error("AWS credential probe timed out")),f.TV.probeTimeoutMs);try{d=await b(e,{method:"GET",headers:g,redirect:"error",signal:h.signal})}catch(a){if(h.signal.aborted)return{valid:!1,error:"AWS credential probe timed out"};throw a}finally{clearTimeout(i)}if(d.ok)return{valid:!0,error:null};let j=(d.headers.get(f.TV.errorTypeHeader)||"").split(":")[0];if(j===f.TV.accessDeniedErrorType)return{valid:!0,error:null};let k=(await d.json().catch(()=>null))?.message;return{valid:!1,error:`AWS rejected the credentials (${j||`HTTP ${d.status}`})${k?`: ${k}`:""}`}}},57647:(a,b,c)=>{c.d(b,{SZ:()=>n,Tz:()=>k,jD:()=>j,jJ:()=>l,oF:()=>m});var d=c(35024),e=c(74129);let f={baseUrl:e.Es},g={baseUrl:e.ky};function h(a){return"string"==typeof a&&a.startsWith("openai-compatible-")}function i(a){return"string"==typeof a&&a.startsWith("anthropic-compatible-")}function j(a,b=null){let c=b?.providerSpecificData?.apiType;return"chat"===c||"responses"===c?c:"string"==typeof a&&a.includes("responses")?"responses":"chat"}function k(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 l(a,b=null){return h(a)?"responses"===j(a,b)?"openai-responses":"openai":i(a)?"claude":function(a,b=null){if(h(a)){let c=j(a,b);return{...d.xq.openai,format:"responses"===c?"openai-responses":"openai",baseUrl:f.baseUrl}}return i(a)?{...d.xq.anthropic,format:"claude",baseUrl:g.baseUrl}:d.xq[a]||d.xq.openai}(a,b).format||"openai"}function m(a,b){let c=d.xq[a],e=c?.transports;return Array.isArray(e)&&e.length&&e.find(a=>a.format===b)||null}function n(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.thinking,a}},68421:(a,b,c)=>{c.d(b,{EC:()=>f,ID:()=>e,KP:()=>d,Ll:()=>i,TV:()=>l,W9:()=>g,Yi:()=>h,bJ:()=>m,y:()=>k,yx:()=>j});let d={algorithm:"AWS4-HMAC-SHA256",terminator:"aws4_request",keyPrefix:"AWS4",dateHeader:"x-amz-date",securityTokenHeader:"x-amz-security-token"},e={STATIC:"static",PROFILE:"profile"},f=3e5,g=6e4,h=/^[a-z0-9][a-z0-9-]{0,30}$/,i=/^[\w@+.%: -]{1,64}$/,j=1e4,k="@aws-sdk/credential-providers",l={service:"bedrock",defaultRegion:"us-east-1",anthropicVersion:"bedrock-2023-05-31",streamPath:"invoke-with-response-stream",invokePath:"invoke",chunkEventName:"chunk",modelFamilyPatterns:{claude:/(^|[./])anthropic\./,openai:/(^|[./])xai\./},modelFamilyHints:{claude:'an Anthropic model, e.g. "us.anthropic.claude-sonnet-4-5-20250929-v1:0"',openai:'an xAI model, e.g. "us.xai.grok-4.6"'},terminalEventType:"message_stop",probePath:"foundation-models",probeTimeoutMs:8e3,errorTypeHeader:"x-amzn-errortype",accessDeniedErrorType:"AccessDeniedException"},m={maxMessageBytes:0x1800000,maxHeadersBytes:131072}},74957:(a,b,c)=>{c.d(b,{H:()=>j});var d=c(41004),e=c(93943),f=c(39609),g=c(92306),h=c(74129),i=c(57647);class j{constructor(a,b){this.provider=a,this.config=b,this.noAuth=b?.noAuth||!1}getProvider(){return this.provider}getBaseUrls(){return this.config.baseUrls||(this.config.baseUrl?[this.config.baseUrl]:[])}getFallbackCount(){return this.getBaseUrls().length||1}buildUrl(a,b,c=0,d=null){if(this.provider?.startsWith?.("openai-compatible-")){let a=(d?.providerSpecificData?.baseUrl||h.Es).replace(/\/$/,""),b="responses"===(0,i.jD)(this.provider,d)?"/responses":"/chat/completions";return`${a}${b}`}if(this.provider?.startsWith?.("anthropic-compatible-")){let a=(d?.providerSpecificData?.baseUrl||h.ky).replace(/\/$/,"");return`${a}/messages`}let e=this.getBaseUrls();return e[c]||e[0]||this.config.baseUrl}buildHeaders(a,b=!0){let c={"Content-Type":"application/json",...this.config.headers};return this.provider?.startsWith?.("anthropic-compatible-")?(a.apiKey?c["x-api-key"]=a.apiKey:a.accessToken&&(c.Authorization=`Bearer ${a.accessToken}`),c["anthropic-version"]||(c["anthropic-version"]=h.b8)):a.accessToken?c.Authorization=`Bearer ${a.accessToken}`:a.apiKey&&(c.Authorization=`Bearer ${a.apiKey}`),b&&(c.Accept="text/event-stream"),c}transformRequest(a,b,c,d){return b}shouldRetry(a,b){return a===d.gx.RATE_LIMITED&&b+1<this.getFallbackCount()}async refreshCredentials(a,b,c=null){return null}needsRefresh(a){return(0,e.fp)(this.provider,a)}parseError(a,b){return{status:a.status,message:b||`HTTP ${a.status}`}}async execute({model:a,body:b,stream:c,credentials:e,signal:h,log:i,proxyOptions:j=null,providerOverrides:k=null}){let l=this.getFallbackCount(),m=null,n=0,o={},p={...d.cI,...this.config.retry},q=async(a,b,c,e=null)=>{let{attempts:f,delayMs:g}=(0,d.DR)(p[b]);if(f<=0||o[a]>=f)return!1;let h=g;if(e&&this.computeRetryDelay){let b=await this.computeRetryDelay(e,o[a]+1,g);if(!1===b)return!1;null!=b&&(h=b)}return o[a]++,i?.debug?.("RETRY",`${c} retry ${o[a]}/${f} after ${h/1e3}s`),await new Promise(a=>setTimeout(a,h)),!0};for(let p=0;p<l;p++){let r=this.buildUrl(a,c,p,e),s=this.transformRequest(a,b,c,e),t=this.buildHeaders(e,c,r,a,s);k?.headers&&Object.assign(t,k.headers),o[p]||(o[p]=0);let u=new AbortController,v=this.config?.timeoutMs||d.pH,w=setTimeout(()=>u.abort(Error("fetch connect timeout")),v),x=h?AbortSignal.any([h,u.signal]):u.signal;try{let a=JSON.stringify(s),b=Date.now();(0,g.s)("FETCH",`${this.provider.toUpperCase()} → ${r} | body=${a.length}B | connectTimeout=${v}ms`);let c=await (0,f.proxyAwareFetch)(r,{method:"POST",headers:t,body:a,signal:x},j);clearTimeout(w);let d=c.headers?.get?.("content-type")||"",e=c.headers?.get?.("content-length")||"?";if((0,g.s)("FETCH",`${this.provider.toUpperCase()} ← ${c.status} | ttft=${Date.now()-b}ms | ct=${d} | cl=${e}`),await q(p,c.status,`status ${c.status}`,c)){p--;continue}if(this.shouldRetry(c.status,p)){i?.debug?.("RETRY",`${c.status} on ${r}, trying fallback ${p+1}`),n=c.status;continue}return{response:c,url:r,headers:t,transformedBody:s}}catch(b){clearTimeout(w),m=b;let a=u.signal.aborted&&"AbortError"===b.name;if((0,g.s)("FETCH",`${this.provider.toUpperCase()} ✖ ${b.name}: ${b.message}${a?" (connect timeout)":""}`),"AbortError"===b.name&&!a)throw b;if(await q(p,d.gx.BAD_GATEWAY,`network "${b.message}"`)){p--;continue}if(p+1<l){i?.debug?.("RETRY",`Error on ${r}, trying fallback ${p+1}`);continue}throw b}}throw m||Error(`All ${l} URLs failed with status ${n}`)}}},78959:(a,b,c)=>{c.d(b,{$U:()=>d,RK:()=>g,pb:()=>e,uB:()=>f});let d="data: [DONE]\n\n",e={"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"},f={"Content-Type":"text/event-stream","Cache-Control":"no-cache","X-Accel-Buffering":"no"},g={"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive","Access-Control-Allow-Origin":"*"}},92306:(a,b,c)=>{function d(a,b){}c.d(b,{T:()=>e,s:()=>d});let e=!1}};
7
+ `;a.enqueue(d.encode(e))},l=(a,c)=>!j&&(j=!0,b?.error?.("BEDROCK",`${a}: ${c}`),k("error",this.isClaudeWire?{type:"error",error:{type:a,message:c}}:{error:{type:a,message:c,code:a}}),!1),n=()=>{for(;g.byteLength>=12;){let a,c,d=new DataView(g.buffer,g.byteOffset,g.byteLength);if(d.getUint32(8,!1)!==(0,m.QR)(g.subarray(0,8)))return l("api_error","Bedrock EventStream prelude CRC mismatch");let i=d.getUint32(0,!1),j=d.getUint32(4,!1);if(i<16||i>f.bJ.maxMessageBytes||j>f.bJ.maxHeadersBytes||j>i-16)return l("api_error","Bedrock EventStream frame bounds are invalid");if(g.byteLength<i)break;let n=g.slice(0,i);g=g.slice(i);try{a=(0,m.xc)(n)}catch(a){return l("api_error",a.message)}let o=a.headers[":message-type"];if("exception"===o||"error"===o)return l(a.headers[":exception-type"]||a.headers[":error-code"]||"api_error",a.payload?.message||a.payload?.Message||a.headers[":error-message"]||`Bedrock returned an EventStream ${o}`);if(a.headers[":event-type"]!==f.TV.chunkEventName){b?.warn?.("BEDROCK",`skipped unrecognised EventStream event type ${JSON.stringify(a.headers[":event-type"])}`);continue}let p=a.payload?.bytes;if(!p)return l("api_error","Bedrock chunk frame carried no payload bytes");try{c=JSON.parse(e.decode(Buffer.from(p,"base64")))}catch(a){return l("api_error",`Bedrock chunk was not valid JSON (${a.message})`)}if(this.isClaudeWire){if(!c?.type)return l("api_error","Bedrock chunk decoded to an event with no type");k(c.type,c),c.type===f.TV.terminalEventType&&(h=!0)}else{if(!Array.isArray(c?.choices))return l("api_error","Bedrock chunk decoded without a `choices` array");k(null,c),c.choices.some(a=>a?.finish_reason)&&(h=!0)}}return!0};for(;;){let a;try{a=await c.read()}catch(a){l("api_error",`Bedrock stream read failed: ${a.message}`);break}if(a.done)break;let b=a.value;if(b?.byteLength){if(0===g.byteLength)g=b;else{let a=new Uint8Array(g.byteLength+b.byteLength);a.set(g),a.set(b,g.byteLength),g=a}if(!n())break}}i||(!j&&g.byteLength?l("api_error","Bedrock stream ended mid-frame"):j||h||l("api_error",this.isClaudeWire?`Bedrock stream ended before ${f.TV.terminalEventType}`:"Bedrock stream ended before any choice reported a finish_reason"),this.isClaudeWire||j||a.enqueue(d.encode(t.$U)),a.close()),await c.cancel().catch(a=>b?.debug?.("BEDROCK",`upstream cancel failed: ${a.message}`)),c.releaseLock?.()},cancel:a=>(i=!0,c.cancel(a))})}}async function x(a,b){let c,d;try{c=await l(a)}catch(a){return{valid:!1,error:a.message}}let e=`https://bedrock.${c.region}.amazonaws.com/${f.TV.probePath}`,g=r({method:"GET",url:e,headers:{Accept:"application/json"},region:c.region,service:f.TV.service,credentials:c}),h=new AbortController,i=setTimeout(()=>h.abort(Error("AWS credential probe timed out")),f.TV.probeTimeoutMs);try{d=await b(e,{method:"GET",headers:g,redirect:"error",signal:h.signal})}catch(a){if(h.signal.aborted)return{valid:!1,error:"AWS credential probe timed out"};throw a}finally{clearTimeout(i)}if(d.ok)return{valid:!0,error:null};let j=(d.headers.get(f.TV.errorTypeHeader)||"").split(":")[0];if(j===f.TV.accessDeniedErrorType)return{valid:!0,error:null};let k=(await d.json().catch(()=>null))?.message;return{valid:!1,error:`AWS rejected the credentials (${j||`HTTP ${d.status}`})${k?`: ${k}`:""}`}}},68421:(a,b,c)=>{c.d(b,{EC:()=>f,ID:()=>e,KP:()=>d,Ll:()=>i,TV:()=>l,W9:()=>g,Yi:()=>h,bJ:()=>m,y:()=>k,yx:()=>j});let d={algorithm:"AWS4-HMAC-SHA256",terminator:"aws4_request",keyPrefix:"AWS4",dateHeader:"x-amz-date",securityTokenHeader:"x-amz-security-token"},e={STATIC:"static",PROFILE:"profile"},f=3e5,g=6e4,h=/^[a-z0-9][a-z0-9-]{0,30}$/,i=/^[\w@+.%: -]{1,64}$/,j=1e4,k="@aws-sdk/credential-providers",l={service:"bedrock",defaultRegion:"us-east-1",anthropicVersion:"bedrock-2023-05-31",streamPath:"invoke-with-response-stream",invokePath:"invoke",chunkEventName:"chunk",modelFamilyPatterns:{claude:/(^|[./])anthropic\./,openai:/(^|[./])xai\./},modelFamilyHints:{claude:'an Anthropic model, e.g. "us.anthropic.claude-sonnet-4-5-20250929-v1:0"',openai:'an xAI model, e.g. "us.xai.grok-4.6"'},terminalEventType:"message_stop",probePath:"foundation-models",probeTimeoutMs:8e3,errorTypeHeader:"x-amzn-errortype",accessDeniedErrorType:"AccessDeniedException"},m={maxMessageBytes:0x1800000,maxHeadersBytes:131072}},78959:(a,b,c)=>{c.d(b,{$U:()=>d,RK:()=>g,pb:()=>e,uB:()=>f});let d="data: [DONE]\n\n",e={"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"},f={"Content-Type":"text/event-stream","Cache-Control":"no-cache","X-Accel-Buffering":"no"},g={"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive","Access-Control-Allow-Origin":"*"}}};