@rabbi696/ezrouter 0.5.99 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1239) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +21 -19
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/routes-manifest.json +16 -4
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +2 -2
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +2 -2
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +5 -5
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +18 -5
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +2 -2
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  82. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  83. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  84. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  86. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  88. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  89. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  90. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  91. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  92. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  93. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  94. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  95. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  97. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  98. package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
  99. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
  100. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  101. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  102. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  103. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  104. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  105. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +2 -2
  124. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +6 -6
  132. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  140. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +2 -2
  144. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +3 -3
  146. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  150. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  156. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +4 -4
  162. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  166. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  170. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/convoy/rules/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  216. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -0
  232. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -0
  233. package/app/.next-cli-build/server/app/api/models/catalog-sync/route_client-reference-manifest.js +1 -0
  234. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/callback/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/callback/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  251. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -0
  257. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -0
  258. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route_client-reference-manifest.js +1 -0
  259. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  304. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  308. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  310. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  314. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  316. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  318. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  320. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  322. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  324. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  326. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  328. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  330. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +2 -2
  348. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  354. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  376. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  382. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js +2 -2
  384. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  386. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  398. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  402. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
  414. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
  415. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
  418. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
  419. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
  420. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
  421. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
  422. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
  424. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
  425. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  426. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  427. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
  428. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  429. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  430. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  431. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  432. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  433. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -0
  434. package/app/.next-cli-build/server/app/api/v1/models/{[kind] → [...model]}/route.js.nft.json +1 -1
  435. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route_client-reference-manifest.js +1 -0
  436. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  437. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  439. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  440. package/app/.next-cli-build/server/app/api/v1/models/route_client-reference-manifest.js +1 -1
  441. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  442. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  443. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  444. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  445. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  446. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  447. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  448. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  449. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  450. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  451. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  452. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  453. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  454. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  455. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  456. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  457. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  458. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  459. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  460. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  461. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  462. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  463. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  464. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  465. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  466. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  467. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  468. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  469. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  470. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  471. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  472. package/app/.next-cli-build/server/app/callback.html +1 -1
  473. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  474. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  475. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  476. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  477. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  478. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  479. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  480. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  481. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
  482. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  483. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  484. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  485. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  486. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
  487. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  488. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  489. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  490. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  491. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
  492. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  493. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  494. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  495. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  496. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
  497. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  498. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  499. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  500. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  501. package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
  502. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  503. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  504. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  505. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  506. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
  507. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  508. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  509. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  510. package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
  511. package/app/.next-cli-build/server/app/dashboard/convoy.rsc +7 -7
  512. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
  513. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
  514. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  515. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  516. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +7 -7
  517. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
  518. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +4 -4
  519. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +2 -2
  520. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  521. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
  522. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  523. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  524. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  525. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  526. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
  527. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  528. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  529. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  530. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  531. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -7
  532. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  533. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  534. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  535. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  536. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  537. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
  538. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  539. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  540. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  541. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  542. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
  543. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  544. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  545. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  546. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  547. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
  548. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  549. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  550. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  551. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  552. package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
  553. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  554. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  555. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  556. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  557. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
  558. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  560. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  561. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  562. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
  563. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  564. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  565. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  566. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  567. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  568. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
  569. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  570. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  571. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  572. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  573. package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
  574. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  575. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  576. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  577. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  578. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
  579. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  580. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  581. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  582. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  583. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
  584. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  585. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  586. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  587. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  588. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
  589. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  590. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  591. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  592. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  593. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +7 -7
  594. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  595. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  596. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  597. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  598. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
  599. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  600. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
  601. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  602. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  603. package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -8
  604. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  605. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  606. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  607. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  608. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
  609. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  610. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  611. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  612. package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
  613. package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +7 -7
  614. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
  615. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
  616. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  617. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  618. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +7 -7
  619. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
  620. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +4 -4
  621. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +2 -2
  622. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  623. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  624. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  625. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  626. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
  627. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  628. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  629. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  630. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  631. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  632. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  633. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  634. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  635. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  636. package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
  637. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  638. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  639. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  640. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  641. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
  642. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  643. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  644. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  645. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  646. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
  647. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  648. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  649. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  650. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  651. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
  652. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  653. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  654. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  655. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  656. package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
  657. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  658. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  659. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  660. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  661. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
  662. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  663. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  664. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  665. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  666. package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
  667. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  668. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  669. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  670. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  671. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
  672. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  673. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  674. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  675. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  676. package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
  677. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  678. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  679. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  680. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
  681. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  682. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  683. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  684. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  685. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  686. package/app/.next-cli-build/server/app/index.html +1 -1
  687. package/app/.next-cli-build/server/app/index.rsc +5 -5
  688. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  689. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
  690. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  691. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
  692. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  693. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  694. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  695. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  696. package/app/.next-cli-build/server/app/landing.html +1 -1
  697. package/app/.next-cli-build/server/app/landing.rsc +6 -6
  698. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
  699. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  700. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  701. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  702. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  703. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  704. package/app/.next-cli-build/server/app/login/page.js +2 -2
  705. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  706. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  707. package/app/.next-cli-build/server/app/login.html +1 -1
  708. package/app/.next-cli-build/server/app/login.rsc +6 -6
  709. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
  710. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  711. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  712. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  713. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  714. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  715. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  716. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  717. package/app/.next-cli-build/server/app/page.js +2 -2
  718. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  719. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  720. package/app/.next-cli-build/server/app-paths-manifest.json +21 -19
  721. package/app/.next-cli-build/server/chunks/1133.js +1 -1
  722. package/app/.next-cli-build/server/chunks/1253.js +1 -1
  723. package/app/.next-cli-build/server/chunks/1329.js +1 -1
  724. package/app/.next-cli-build/server/chunks/1522.js +1 -1
  725. package/app/.next-cli-build/server/chunks/1531.js +1 -1
  726. package/app/.next-cli-build/server/chunks/1714.js +1 -1
  727. package/app/.next-cli-build/server/chunks/1847.js +1 -0
  728. package/app/.next-cli-build/server/chunks/2177.js +1 -1
  729. package/app/.next-cli-build/server/chunks/2269.js +1 -1
  730. package/app/.next-cli-build/server/chunks/2382.js +1 -0
  731. package/app/.next-cli-build/server/chunks/2547.js +3 -3
  732. package/app/.next-cli-build/server/chunks/2892.js +1 -0
  733. package/app/.next-cli-build/server/chunks/2898.js +1 -1
  734. package/app/.next-cli-build/server/chunks/290.js +1 -0
  735. package/app/.next-cli-build/server/chunks/3148.js +2 -2
  736. package/app/.next-cli-build/server/chunks/3433.js +6 -6
  737. package/app/.next-cli-build/server/chunks/3547.js +1 -1
  738. package/app/.next-cli-build/server/chunks/3647.js +1 -0
  739. package/app/.next-cli-build/server/chunks/369.js +25 -25
  740. package/app/.next-cli-build/server/chunks/3814.js +1 -1
  741. package/app/.next-cli-build/server/chunks/3886.js +1 -0
  742. package/app/.next-cli-build/server/chunks/412.js +2 -2
  743. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  744. package/app/.next-cli-build/server/chunks/4562.js +1 -1
  745. package/app/.next-cli-build/server/chunks/4646.js +1 -1
  746. package/app/.next-cli-build/server/chunks/{9233.js → 4704.js} +2 -2
  747. package/app/.next-cli-build/server/chunks/476.js +1 -1
  748. package/app/.next-cli-build/server/chunks/4928.js +1 -9
  749. package/app/.next-cli-build/server/chunks/4999.js +1 -1
  750. package/app/.next-cli-build/server/chunks/5129.js +1 -1
  751. package/app/.next-cli-build/server/chunks/5849.js +1 -0
  752. package/app/.next-cli-build/server/chunks/6112.js +1 -0
  753. package/app/.next-cli-build/server/chunks/615.js +1 -1
  754. package/app/.next-cli-build/server/chunks/6405.js +1 -1
  755. package/app/.next-cli-build/server/chunks/{5681.js → 6436.js} +1 -1
  756. package/app/.next-cli-build/server/chunks/6535.js +23 -20
  757. package/app/.next-cli-build/server/chunks/6958.js +1 -0
  758. package/app/.next-cli-build/server/chunks/6975.js +300 -0
  759. package/app/.next-cli-build/server/chunks/7054.js +1 -0
  760. package/app/.next-cli-build/server/chunks/7239.js +1 -1
  761. package/app/.next-cli-build/server/chunks/7353.js +1 -1
  762. package/app/.next-cli-build/server/chunks/7362.js +2 -2
  763. package/app/.next-cli-build/server/chunks/7413.js +2 -0
  764. package/app/.next-cli-build/server/chunks/{7456.js → 7438.js} +16 -16
  765. package/app/.next-cli-build/server/chunks/7467.js +1 -0
  766. package/app/.next-cli-build/server/chunks/7603.js +1 -0
  767. package/app/.next-cli-build/server/chunks/7716.js +1 -0
  768. package/app/.next-cli-build/server/chunks/7734.js +1 -1
  769. package/app/.next-cli-build/server/chunks/7775.js +1 -1
  770. package/app/.next-cli-build/server/chunks/7785.js +9 -0
  771. package/app/.next-cli-build/server/chunks/8129.js +1 -1
  772. package/app/.next-cli-build/server/chunks/8243.js +3 -3
  773. package/app/.next-cli-build/server/chunks/8251.js +2 -2
  774. package/app/.next-cli-build/server/chunks/8326.js +1 -1
  775. package/app/.next-cli-build/server/chunks/8421.js +1 -1
  776. package/app/.next-cli-build/server/chunks/8851.js +1 -1
  777. package/app/.next-cli-build/server/chunks/8946.js +1 -1
  778. package/app/.next-cli-build/server/chunks/8976.js +1 -1
  779. package/app/.next-cli-build/server/chunks/9043.js +1 -1
  780. package/app/.next-cli-build/server/chunks/9217.js +1 -1
  781. package/app/.next-cli-build/server/chunks/9296.js +1 -1
  782. package/app/.next-cli-build/server/chunks/9303.js +1 -0
  783. package/app/.next-cli-build/server/chunks/9485.js +1 -0
  784. package/app/.next-cli-build/server/instrumentation.js +1 -1
  785. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  786. package/app/.next-cli-build/server/middleware.js +2 -2
  787. package/app/.next-cli-build/server/pages/404.html +1 -1
  788. package/app/.next-cli-build/server/pages/500.html +1 -1
  789. package/app/.next-cli-build/static/chunks/{1321-41a94f7ab0a65d8c.js → 1321-0bac17bbe74aaa54.js} +1 -1
  790. package/app/.next-cli-build/static/chunks/2595-2d703efb995163a7.js +95 -0
  791. package/app/.next-cli-build/static/chunks/{5497-22fe81a552f1646d.js → 5497-675887789aaf2c43.js} +3 -3
  792. package/app/.next-cli-build/static/chunks/801-a83c4648747b8c6a.js +1 -0
  793. package/app/.next-cli-build/static/chunks/8105-e46089480e63b1a9.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-c7840dae0ef76527.js → page-178f383964973bfb.js} +1 -1
  795. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-0e4d3fb00fc6a9bf.js → page-ce0b5b8882899119.js} +1 -1
  796. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-4c63bfc57149c7eb.js → page-257aaa1374d529b4.js} +1 -1
  797. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-64177496760b1187.js → page-78c78a3108fbe60e.js} +1 -1
  798. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-dc6c3c72e5d6acc3.js → page-2c65df20769d31df.js} +1 -1
  799. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/convoy/{page-5ada6cd825b67236.js → page-8c2bc69a688a000b.js} +1 -1
  800. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-a840225ab3f601c2.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-0ab40e69321978fb.js → page-90a4f789d907db25.js} +4 -4
  802. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-cb36efdbd929e8e1.js → page-c671ae36a313887b.js} +1 -1
  803. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-46eaa5603462d610.js → page-3df89694c0bbdeb8.js} +1 -1
  804. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-ed1ea0fa33a0b190.js → page-b2540d642bc46f4c.js} +1 -1
  805. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-e316dc83a5a557a6.js → page-e44166090e05cfb3.js} +1 -1
  806. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-18192f830d2ddb76.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-db01adc017c79525.js → page-e996175d559e9e5a.js} +1 -1
  808. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-f3d9a84f9e04119e.js +27 -0
  809. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-b6b4de987365ec8f.js → page-3f52ff9517c679ba.js} +1 -1
  810. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-10cfe308dcee550e.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-491fe95c5b5277a9.js → page-a43ff8ae35edb414.js} +1 -1
  812. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-ec79e9bb5a842351.js → page-1ac6f4d529f9b6a5.js} +1 -1
  813. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-c55b823e44230396.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/routing-health/{page-703d4a28b1852949.js → page-a14b37a404e5e6e0.js} +1 -1
  815. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-b6026576dd4be770.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-93bca4f363f4b6f1.js → page-73fe7ee1ecd1bd52.js} +1 -1
  817. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-34f5228777b0430d.js → page-74477be9930501e3.js} +1 -1
  818. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-3ecea7f87104d318.js → page-d74d7a054b638e0d.js} +1 -1
  819. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-d77f0a1a4ce2f537.js → layout-100d6d3c6c7256f1.js} +1 -1
  820. package/app/.next-cli-build/static/chunks/app/_global-error/page-b71f397798104162.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-b71f397798104162.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-b71f397798104162.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-b71f397798104162.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-b71f397798104162.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-b71f397798104162.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-b71f397798104162.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-b71f397798104162.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-b71f397798104162.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-b71f397798104162.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-b71f397798104162.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-b71f397798104162.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/changelog/route-b71f397798104162.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-b71f397798104162.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-b71f397798104162.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-b71f397798104162.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-b71f397798104162.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-b71f397798104162.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-b71f397798104162.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-b71f397798104162.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-b71f397798104162.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-b71f397798104162.js +1 -0
  842. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-b71f397798104162.js +1 -0
  843. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-b71f397798104162.js +1 -0
  844. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-b71f397798104162.js +1 -0
  845. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-b71f397798104162.js +1 -0
  846. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-b71f397798104162.js +1 -0
  847. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-b71f397798104162.js +1 -0
  848. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-b71f397798104162.js +1 -0
  849. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-b71f397798104162.js +1 -0
  850. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-b71f397798104162.js +1 -0
  851. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-b71f397798104162.js +1 -0
  852. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-b71f397798104162.js +1 -0
  853. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-b71f397798104162.js +1 -0
  854. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-b71f397798104162.js +1 -0
  855. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-b71f397798104162.js +1 -0
  856. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-b71f397798104162.js +1 -0
  857. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-b71f397798104162.js +1 -0
  858. package/app/.next-cli-build/static/chunks/app/api/combos/export/route-b71f397798104162.js +1 -0
  859. package/app/.next-cli-build/static/chunks/app/api/combos/import/route-b71f397798104162.js +1 -0
  860. package/app/.next-cli-build/static/chunks/app/api/combos/route-b71f397798104162.js +1 -0
  861. package/app/.next-cli-build/static/chunks/app/api/combos/test/route-b71f397798104162.js +1 -0
  862. package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-b71f397798104162.js +1 -0
  863. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-b71f397798104162.js +1 -0
  864. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-b71f397798104162.js +1 -0
  865. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-b71f397798104162.js +1 -0
  866. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-b71f397798104162.js +1 -0
  867. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-b71f397798104162.js +1 -0
  868. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-b71f397798104162.js +1 -0
  869. package/app/.next-cli-build/static/chunks/app/api/health/route-b71f397798104162.js +1 -0
  870. package/app/.next-cli-build/static/chunks/app/api/init/route-b71f397798104162.js +1 -0
  871. package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-b71f397798104162.js +1 -0
  872. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-b71f397798104162.js +1 -0
  873. package/app/.next-cli-build/static/chunks/app/api/keys/route-b71f397798104162.js +1 -0
  874. package/app/.next-cli-build/static/chunks/app/api/locale/route-b71f397798104162.js +1 -0
  875. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-b71f397798104162.js +1 -0
  876. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-b71f397798104162.js +1 -0
  877. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-b71f397798104162.js +1 -0
  878. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-b71f397798104162.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-b71f397798104162.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-b71f397798104162.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-b71f397798104162.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-b71f397798104162.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-b71f397798104162.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-b71f397798104162.js +1 -0
  885. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-b71f397798104162.js +1 -0
  886. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-b71f397798104162.js +1 -0
  887. package/app/.next-cli-build/static/chunks/app/api/models/route-b71f397798104162.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/api/models/test/route-b71f397798104162.js +1 -0
  889. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-b71f397798104162.js +1 -0
  890. package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-b71f397798104162.js +1 -0
  891. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-b71f397798104162.js +1 -0
  892. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-b71f397798104162.js +1 -0
  893. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-b71f397798104162.js +1 -0
  894. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-b71f397798104162.js +1 -0
  895. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-b71f397798104162.js +1 -0
  896. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-b71f397798104162.js +1 -0
  897. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-b71f397798104162.js +1 -0
  898. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-b71f397798104162.js +1 -0
  899. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-b71f397798104162.js +1 -0
  900. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-b71f397798104162.js +1 -0
  901. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-b71f397798104162.js +1 -0
  902. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-b71f397798104162.js +1 -0
  903. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-b71f397798104162.js +1 -0
  904. package/app/.next-cli-build/static/chunks/app/api/pricing/route-b71f397798104162.js +1 -0
  905. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-b71f397798104162.js +1 -0
  906. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-b71f397798104162.js +1 -0
  907. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-b71f397798104162.js +1 -0
  908. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-b71f397798104162.js +1 -0
  909. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-b71f397798104162.js +1 -0
  910. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-b71f397798104162.js +1 -0
  911. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-b71f397798104162.js +1 -0
  912. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-b71f397798104162.js +1 -0
  913. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-b71f397798104162.js +1 -0
  914. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-b71f397798104162.js +1 -0
  915. package/app/.next-cli-build/static/chunks/app/api/providers/route-b71f397798104162.js +1 -0
  916. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-b71f397798104162.js +1 -0
  917. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-b71f397798104162.js +1 -0
  918. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-b71f397798104162.js +1 -0
  919. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-b71f397798104162.js +1 -0
  920. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-b71f397798104162.js +1 -0
  921. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-b71f397798104162.js +1 -0
  922. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-b71f397798104162.js +1 -0
  923. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-b71f397798104162.js +1 -0
  924. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-b71f397798104162.js +1 -0
  925. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-b71f397798104162.js +1 -0
  926. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-b71f397798104162.js +1 -0
  927. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-b71f397798104162.js +1 -0
  928. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-b71f397798104162.js +1 -0
  929. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-b71f397798104162.js +1 -0
  930. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-b71f397798104162.js +1 -0
  931. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-b71f397798104162.js +1 -0
  932. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-b71f397798104162.js +1 -0
  933. package/app/.next-cli-build/static/chunks/app/api/routing-health/route-b71f397798104162.js +1 -0
  934. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-b71f397798104162.js +1 -0
  935. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-b71f397798104162.js +1 -0
  936. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-b71f397798104162.js +1 -0
  937. package/app/.next-cli-build/static/chunks/app/api/settings/route-b71f397798104162.js +1 -0
  938. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-b71f397798104162.js +1 -0
  939. package/app/.next-cli-build/static/chunks/app/api/tags/route-b71f397798104162.js +1 -0
  940. package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-b71f397798104162.js +1 -0
  941. package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-b71f397798104162.js +1 -0
  942. package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-b71f397798104162.js +1 -0
  943. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-b71f397798104162.js +1 -0
  944. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-b71f397798104162.js +1 -0
  945. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-b71f397798104162.js +1 -0
  946. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-b71f397798104162.js +1 -0
  947. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-b71f397798104162.js +1 -0
  948. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-b71f397798104162.js +1 -0
  949. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-b71f397798104162.js +1 -0
  950. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-b71f397798104162.js +1 -0
  951. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-b71f397798104162.js +1 -0
  952. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-b71f397798104162.js +1 -0
  953. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-b71f397798104162.js +1 -0
  954. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-b71f397798104162.js +1 -0
  955. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-b71f397798104162.js +1 -0
  956. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-b71f397798104162.js +1 -0
  957. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-b71f397798104162.js +1 -0
  958. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-b71f397798104162.js +1 -0
  959. package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-b71f397798104162.js +1 -0
  960. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-b71f397798104162.js +1 -0
  961. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-b71f397798104162.js +1 -0
  962. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-b71f397798104162.js +1 -0
  963. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-b71f397798104162.js +1 -0
  964. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-b71f397798104162.js +1 -0
  965. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-b71f397798104162.js +1 -0
  966. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-b71f397798104162.js +1 -0
  967. package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-b71f397798104162.js +1 -0
  968. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-b71f397798104162.js +1 -0
  969. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-b71f397798104162.js +1 -0
  970. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-b71f397798104162.js +1 -0
  971. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-b71f397798104162.js +1 -0
  972. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-b71f397798104162.js +1 -0
  973. package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-b71f397798104162.js +1 -0
  974. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-b71f397798104162.js +1 -0
  975. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-b71f397798104162.js +1 -0
  976. package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-b71f397798104162.js +1 -0
  977. package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-b71f397798104162.js +1 -0
  978. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-b71f397798104162.js +1 -0
  979. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-b71f397798104162.js +1 -0
  980. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-b71f397798104162.js +1 -0
  981. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-b71f397798104162.js +1 -0
  982. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-b71f397798104162.js +1 -0
  983. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-b71f397798104162.js +1 -0
  984. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-b71f397798104162.js +1 -0
  985. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-b71f397798104162.js +1 -0
  986. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-b71f397798104162.js +1 -0
  987. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-b71f397798104162.js +1 -0
  988. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-b71f397798104162.js +1 -0
  989. package/app/.next-cli-build/static/chunks/app/api/v1/route-b71f397798104162.js +1 -0
  990. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-b71f397798104162.js +1 -0
  991. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-b71f397798104162.js +1 -0
  992. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-b71f397798104162.js +1 -0
  993. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-b71f397798104162.js +1 -0
  994. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-b71f397798104162.js +1 -0
  995. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-b71f397798104162.js +1 -0
  996. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-b71f397798104162.js +1 -0
  997. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-b71f397798104162.js +1 -0
  998. package/app/.next-cli-build/static/chunks/app/api/version/route-b71f397798104162.js +1 -0
  999. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-b71f397798104162.js +1 -0
  1000. package/app/.next-cli-build/static/chunks/app/api/version/update/route-b71f397798104162.js +1 -0
  1001. package/app/.next-cli-build/static/chunks/app/landing/page-7d5b31b8481d8fdd.js +1 -0
  1002. package/app/.next-cli-build/static/chunks/app/login/{page-27e9a95a150a0ac4.js → page-57af8e67ea3a745f.js} +1 -1
  1003. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-b71f397798104162.js +1 -0
  1004. package/app/.next-cli-build/static/chunks/app/page-b71f397798104162.js +1 -0
  1005. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-b71f397798104162.js +1 -0
  1006. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-b71f397798104162.js +1 -0
  1007. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-b71f397798104162.js +1 -0
  1008. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-b71f397798104162.js +1 -0
  1009. package/app/.next-cli-build/static/css/abc246bcd6eb079c.css +1 -0
  1010. package/app/.next-cli-build/static/p4AwDShOmXa3ZUcXCsntQ/_buildManifest.js +1 -0
  1011. package/app/CHANGELOG.md +327 -2
  1012. package/app/package.json +3 -3
  1013. package/app/public/CHANGELOG.md +327 -2
  1014. package/app/public/i18n/literals/id.json +1368 -159
  1015. package/app/public/i18n/literals/pt-BR.json +7 -8
  1016. package/app/public/i18n/literals/zh-CN.json +1 -0
  1017. package/app/public/providers/alims-intl.png +0 -0
  1018. package/app/public/providers/alitp-intl.png +0 -0
  1019. package/app/public/providers/fish-audio.png +0 -0
  1020. package/app/public/providers/selfhosted-embedding.png +0 -0
  1021. package/app/public/providers/selfhosted-stt.png +0 -0
  1022. package/app/public/providers/selfhosted-tts.png +0 -0
  1023. package/app/public/providers/xquik.png +0 -0
  1024. package/app/src/mitm/server.js +26 -26
  1025. package/hooks/sqliteRuntime.js +28 -5
  1026. package/package.json +1 -1
  1027. package/src/cli/menus/providers.js +5 -0
  1028. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +0 -1
  1029. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route_client-reference-manifest.js +0 -1
  1030. package/app/.next-cli-build/server/chunks/1446.js +0 -1
  1031. package/app/.next-cli-build/server/chunks/2031.js +0 -1
  1032. package/app/.next-cli-build/server/chunks/3904.js +0 -1
  1033. package/app/.next-cli-build/server/chunks/5502.js +0 -1
  1034. package/app/.next-cli-build/server/chunks/5841.js +0 -1
  1035. package/app/.next-cli-build/server/chunks/7281.js +0 -1
  1036. package/app/.next-cli-build/server/chunks/7335.js +0 -1
  1037. package/app/.next-cli-build/server/chunks/7591.js +0 -1
  1038. package/app/.next-cli-build/server/chunks/8901.js +0 -300
  1039. package/app/.next-cli-build/server/chunks/8906.js +0 -2
  1040. package/app/.next-cli-build/server/chunks/9212.js +0 -1
  1041. package/app/.next-cli-build/server/chunks/9884.js +0 -1
  1042. package/app/.next-cli-build/static/9d6V9rrAx8cIjAoaKJjvb/_buildManifest.js +0 -1
  1043. package/app/.next-cli-build/static/chunks/2595-1b1c30e3a4314456.js +0 -92
  1044. package/app/.next-cli-build/static/chunks/801-9683dc19ffb81217.js +0 -1
  1045. package/app/.next-cli-build/static/chunks/8105-39d6edfaddcbf181.js +0 -1
  1046. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-272444fcf2114bb5.js +0 -1
  1047. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-2247901c7422157d.js +0 -1
  1048. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-04f568d5510f26f7.js +0 -14
  1049. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-38f69db60cdfe7cd.js +0 -1
  1050. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-973240b44eb04877.js +0 -1
  1051. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-4b65eb84c14bf9f0.js +0 -1
  1052. package/app/.next-cli-build/static/chunks/app/_global-error/page-27e63c5064200d37.js +0 -1
  1053. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-27e63c5064200d37.js +0 -1
  1054. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-27e63c5064200d37.js +0 -1
  1055. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-27e63c5064200d37.js +0 -1
  1056. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-27e63c5064200d37.js +0 -1
  1057. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-27e63c5064200d37.js +0 -1
  1058. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-27e63c5064200d37.js +0 -1
  1059. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-27e63c5064200d37.js +0 -1
  1060. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-27e63c5064200d37.js +0 -1
  1061. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-27e63c5064200d37.js +0 -1
  1062. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-27e63c5064200d37.js +0 -1
  1063. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-27e63c5064200d37.js +0 -1
  1064. package/app/.next-cli-build/static/chunks/app/api/changelog/route-27e63c5064200d37.js +0 -1
  1065. package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-27e63c5064200d37.js +0 -1
  1066. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-27e63c5064200d37.js +0 -1
  1067. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-27e63c5064200d37.js +0 -1
  1068. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-27e63c5064200d37.js +0 -1
  1069. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-27e63c5064200d37.js +0 -1
  1070. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-27e63c5064200d37.js +0 -1
  1071. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-27e63c5064200d37.js +0 -1
  1072. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-27e63c5064200d37.js +0 -1
  1073. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-27e63c5064200d37.js +0 -1
  1074. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-27e63c5064200d37.js +0 -1
  1075. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-27e63c5064200d37.js +0 -1
  1076. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-27e63c5064200d37.js +0 -1
  1077. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-27e63c5064200d37.js +0 -1
  1078. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-27e63c5064200d37.js +0 -1
  1079. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-27e63c5064200d37.js +0 -1
  1080. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-27e63c5064200d37.js +0 -1
  1081. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-27e63c5064200d37.js +0 -1
  1082. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-27e63c5064200d37.js +0 -1
  1083. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-27e63c5064200d37.js +0 -1
  1084. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-27e63c5064200d37.js +0 -1
  1085. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-27e63c5064200d37.js +0 -1
  1086. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-27e63c5064200d37.js +0 -1
  1087. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-27e63c5064200d37.js +0 -1
  1088. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-27e63c5064200d37.js +0 -1
  1089. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-27e63c5064200d37.js +0 -1
  1090. package/app/.next-cli-build/static/chunks/app/api/combos/export/route-27e63c5064200d37.js +0 -1
  1091. package/app/.next-cli-build/static/chunks/app/api/combos/import/route-27e63c5064200d37.js +0 -1
  1092. package/app/.next-cli-build/static/chunks/app/api/combos/route-27e63c5064200d37.js +0 -1
  1093. package/app/.next-cli-build/static/chunks/app/api/combos/test/route-27e63c5064200d37.js +0 -1
  1094. package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-27e63c5064200d37.js +0 -1
  1095. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-27e63c5064200d37.js +0 -1
  1096. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-27e63c5064200d37.js +0 -1
  1097. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-27e63c5064200d37.js +0 -1
  1098. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-27e63c5064200d37.js +0 -1
  1099. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-27e63c5064200d37.js +0 -1
  1100. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-27e63c5064200d37.js +0 -1
  1101. package/app/.next-cli-build/static/chunks/app/api/health/route-27e63c5064200d37.js +0 -1
  1102. package/app/.next-cli-build/static/chunks/app/api/init/route-27e63c5064200d37.js +0 -1
  1103. package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-27e63c5064200d37.js +0 -1
  1104. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-27e63c5064200d37.js +0 -1
  1105. package/app/.next-cli-build/static/chunks/app/api/keys/route-27e63c5064200d37.js +0 -1
  1106. package/app/.next-cli-build/static/chunks/app/api/locale/route-27e63c5064200d37.js +0 -1
  1107. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-27e63c5064200d37.js +0 -1
  1108. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-27e63c5064200d37.js +0 -1
  1109. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-27e63c5064200d37.js +0 -1
  1110. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-27e63c5064200d37.js +0 -1
  1111. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-27e63c5064200d37.js +0 -1
  1112. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-27e63c5064200d37.js +0 -1
  1113. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-27e63c5064200d37.js +0 -1
  1114. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-27e63c5064200d37.js +0 -1
  1115. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-27e63c5064200d37.js +0 -1
  1116. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-27e63c5064200d37.js +0 -1
  1117. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-27e63c5064200d37.js +0 -1
  1118. package/app/.next-cli-build/static/chunks/app/api/models/route-27e63c5064200d37.js +0 -1
  1119. package/app/.next-cli-build/static/chunks/app/api/models/test/route-27e63c5064200d37.js +0 -1
  1120. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-27e63c5064200d37.js +0 -1
  1121. package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-27e63c5064200d37.js +0 -1
  1122. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-27e63c5064200d37.js +0 -1
  1123. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-27e63c5064200d37.js +0 -1
  1124. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-27e63c5064200d37.js +0 -1
  1125. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-27e63c5064200d37.js +0 -1
  1126. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-27e63c5064200d37.js +0 -1
  1127. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-27e63c5064200d37.js +0 -1
  1128. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-27e63c5064200d37.js +0 -1
  1129. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-27e63c5064200d37.js +0 -1
  1130. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-27e63c5064200d37.js +0 -1
  1131. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-27e63c5064200d37.js +0 -1
  1132. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-27e63c5064200d37.js +0 -1
  1133. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-27e63c5064200d37.js +0 -1
  1134. package/app/.next-cli-build/static/chunks/app/api/pricing/route-27e63c5064200d37.js +0 -1
  1135. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-27e63c5064200d37.js +0 -1
  1136. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-27e63c5064200d37.js +0 -1
  1137. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-27e63c5064200d37.js +0 -1
  1138. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-27e63c5064200d37.js +0 -1
  1139. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-27e63c5064200d37.js +0 -1
  1140. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-27e63c5064200d37.js +0 -1
  1141. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-27e63c5064200d37.js +0 -1
  1142. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-27e63c5064200d37.js +0 -1
  1143. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-27e63c5064200d37.js +0 -1
  1144. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-27e63c5064200d37.js +0 -1
  1145. package/app/.next-cli-build/static/chunks/app/api/providers/route-27e63c5064200d37.js +0 -1
  1146. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-27e63c5064200d37.js +0 -1
  1147. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-27e63c5064200d37.js +0 -1
  1148. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-27e63c5064200d37.js +0 -1
  1149. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-27e63c5064200d37.js +0 -1
  1150. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-27e63c5064200d37.js +0 -1
  1151. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-27e63c5064200d37.js +0 -1
  1152. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-27e63c5064200d37.js +0 -1
  1153. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-27e63c5064200d37.js +0 -1
  1154. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-27e63c5064200d37.js +0 -1
  1155. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-27e63c5064200d37.js +0 -1
  1156. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-27e63c5064200d37.js +0 -1
  1157. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-27e63c5064200d37.js +0 -1
  1158. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-27e63c5064200d37.js +0 -1
  1159. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-27e63c5064200d37.js +0 -1
  1160. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-27e63c5064200d37.js +0 -1
  1161. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-27e63c5064200d37.js +0 -1
  1162. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-27e63c5064200d37.js +0 -1
  1163. package/app/.next-cli-build/static/chunks/app/api/routing-health/route-27e63c5064200d37.js +0 -1
  1164. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-27e63c5064200d37.js +0 -1
  1165. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-27e63c5064200d37.js +0 -1
  1166. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-27e63c5064200d37.js +0 -1
  1167. package/app/.next-cli-build/static/chunks/app/api/settings/route-27e63c5064200d37.js +0 -1
  1168. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-27e63c5064200d37.js +0 -1
  1169. package/app/.next-cli-build/static/chunks/app/api/tags/route-27e63c5064200d37.js +0 -1
  1170. package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-27e63c5064200d37.js +0 -1
  1171. package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-27e63c5064200d37.js +0 -1
  1172. package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-27e63c5064200d37.js +0 -1
  1173. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-27e63c5064200d37.js +0 -1
  1174. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-27e63c5064200d37.js +0 -1
  1175. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-27e63c5064200d37.js +0 -1
  1176. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-27e63c5064200d37.js +0 -1
  1177. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-27e63c5064200d37.js +0 -1
  1178. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-27e63c5064200d37.js +0 -1
  1179. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-27e63c5064200d37.js +0 -1
  1180. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-27e63c5064200d37.js +0 -1
  1181. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-27e63c5064200d37.js +0 -1
  1182. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-27e63c5064200d37.js +0 -1
  1183. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-27e63c5064200d37.js +0 -1
  1184. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-27e63c5064200d37.js +0 -1
  1185. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-27e63c5064200d37.js +0 -1
  1186. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-27e63c5064200d37.js +0 -1
  1187. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-27e63c5064200d37.js +0 -1
  1188. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-27e63c5064200d37.js +0 -1
  1189. package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-27e63c5064200d37.js +0 -1
  1190. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-27e63c5064200d37.js +0 -1
  1191. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-27e63c5064200d37.js +0 -1
  1192. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-27e63c5064200d37.js +0 -1
  1193. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-27e63c5064200d37.js +0 -1
  1194. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-27e63c5064200d37.js +0 -1
  1195. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-27e63c5064200d37.js +0 -1
  1196. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-27e63c5064200d37.js +0 -1
  1197. package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-27e63c5064200d37.js +0 -1
  1198. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-27e63c5064200d37.js +0 -1
  1199. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-27e63c5064200d37.js +0 -1
  1200. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-27e63c5064200d37.js +0 -1
  1201. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-27e63c5064200d37.js +0 -1
  1202. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-27e63c5064200d37.js +0 -1
  1203. package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-27e63c5064200d37.js +0 -1
  1204. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-27e63c5064200d37.js +0 -1
  1205. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-27e63c5064200d37.js +0 -1
  1206. package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-27e63c5064200d37.js +0 -1
  1207. package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-27e63c5064200d37.js +0 -1
  1208. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-27e63c5064200d37.js +0 -1
  1209. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-27e63c5064200d37.js +0 -1
  1210. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-27e63c5064200d37.js +0 -1
  1211. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-27e63c5064200d37.js +0 -1
  1212. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-27e63c5064200d37.js +0 -1
  1213. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-27e63c5064200d37.js +0 -1
  1214. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-27e63c5064200d37.js +0 -1
  1215. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-27e63c5064200d37.js +0 -1
  1216. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-27e63c5064200d37.js +0 -1
  1217. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-27e63c5064200d37.js +0 -1
  1218. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-27e63c5064200d37.js +0 -1
  1219. package/app/.next-cli-build/static/chunks/app/api/v1/route-27e63c5064200d37.js +0 -1
  1220. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-27e63c5064200d37.js +0 -1
  1221. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-27e63c5064200d37.js +0 -1
  1222. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-27e63c5064200d37.js +0 -1
  1223. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-27e63c5064200d37.js +0 -1
  1224. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-27e63c5064200d37.js +0 -1
  1225. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-27e63c5064200d37.js +0 -1
  1226. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-27e63c5064200d37.js +0 -1
  1227. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-27e63c5064200d37.js +0 -1
  1228. package/app/.next-cli-build/static/chunks/app/api/version/route-27e63c5064200d37.js +0 -1
  1229. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-27e63c5064200d37.js +0 -1
  1230. package/app/.next-cli-build/static/chunks/app/api/version/update/route-27e63c5064200d37.js +0 -1
  1231. package/app/.next-cli-build/static/chunks/app/landing/page-e7e81318e9e5c4e4.js +0 -1
  1232. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-27e63c5064200d37.js +0 -1
  1233. package/app/.next-cli-build/static/chunks/app/page-27e63c5064200d37.js +0 -1
  1234. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-27e63c5064200d37.js +0 -1
  1235. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-27e63c5064200d37.js +0 -1
  1236. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-27e63c5064200d37.js +0 -1
  1237. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-27e63c5064200d37.js +0 -1
  1238. package/app/.next-cli-build/static/css/c784a89390f4e764.css +0 -1
  1239. /package/app/.next-cli-build/static/{9d6V9rrAx8cIjAoaKJjvb → p4AwDShOmXa3ZUcXCsntQ}/_ssgManifest.js +0 -0
@@ -17,10 +17,10 @@ ${a}
17
17
 
18
18
  ${y}`)}let A=new Date().toISOString(),B=[];null===p||r||B.push((0,x.aZ)(p)),B.push(`[Context: Current time is ${A}]`),n&&B.push(x.rG);let C={content:y=`${B.join("\n\n")}
19
19
 
20
- ${y}`,modelId:o,origin:"AI_EDITOR",...t?.userInputMessage?.userInputMessageContext&&{userInputMessageContext:t.userInputMessage.userInputMessageContext},...t?.userInputMessage?.images&&{images:t.userInputMessage.images}};e&&(C.systemInstruction=e);let D={conversationState:{chatTriggerType:"MANUAL",conversationId:(0,w.A)(),currentMessage:{userInputMessage:C},history:s}};return v&&(D.profileArn=v),q&&(D.additionalModelRequestFields=q),(i||void 0!==k||void 0!==l)&&(D.inferenceConfig={},i&&(D.inferenceConfig.maxTokens=i),void 0!==k&&(D.inferenceConfig.temperature=k),void 0!==l&&(D.inferenceConfig.topP=l)),Object.defineProperty(D,"_kiroUpstreamModel",{value:o,enumerable:!1}),D},null),c(83589);var H=c(98173),I=c(22208);let J="proxy_";function K(a,b){a.thinkingBlockStarted&&(b.push({type:"content_block_stop",index:a.thinkingBlockIndex}),a.thinkingBlockStarted=!1)}function L(a,b){a.textBlockStarted&&!a.textBlockClosed&&(a.textBlockClosed=!0,b.push({type:"content_block_stop",index:a.textBlockIndex}),a.textBlockStarted=!1)}function M(a,b){for(let[c,d]of a.toolCalls){let e=a.toolArgBuffers?.get(c);if(e){let a=function(a,b){try{let c=JSON.parse(b),d=a.startsWith(J)?a.slice(J.length):a;return"Read"===d&&function(a){var b,c;"string"==typeof a.limit&&/^\d+$/.test(a.limit)&&(a.limit=Number(a.limit)),"string"==typeof a.offset&&/^-?\d+$/.test(a.offset)&&(a.offset=Number(a.offset)),"number"==typeof a.limit&&(a.limit>2e3&&(a.limit=2e3),a.limit<1&&delete a.limit),"number"==typeof a.offset&&a.offset<0&&(a.offset=0),"pages"in a&&(b=a.file_path,c=a.pages,!("string"==typeof b&&b.toLowerCase().endsWith(".pdf")&&"string"==typeof c&&/^\d+(?:-\d+)?$/.test(c)))&&delete a.pages}(c),JSON.stringify(c)}catch{return b}}(d.name,e);b.push({type:"content_block_delta",index:d.blockIndex,delta:{type:"input_json_delta",partial_json:a}})}b.push({type:"content_block_stop",index:d.blockIndex})}}function N(a){let b="number"==typeof a.prompt_tokens?a.prompt_tokens:0,c="number"==typeof a.completion_tokens?a.completion_tokens:0,d=a.prompt_tokens_details?.cached_tokens,e=a.prompt_tokens_details?.cache_creation_tokens,f="number"==typeof d?d:0,g="number"==typeof e?e:0,h={input_tokens:b-f-g,output_tokens:c};return f>0&&(h.cache_read_input_tokens=f),g>0&&(h.cache_creation_input_tokens=g),h}T(f.h.OPENAI,f.h.CLAUDE,null,function(a,b){if(!a){if(!b.messageStartSent||b.claudeFinishHandled)return null;b.claudeFinishHandled=!0;let a=[];K(b,a),L(b,a),M(b,a);let c=b.usage?.input_tokens!=null?b.usage:b.usage?.prompt_tokens!=null?N(b.usage):{input_tokens:0,output_tokens:0},d=b.toolCalls.size>0?"tool_use":"end_turn";return a.push({type:"message_delta",delta:{stop_reason:d},usage:c}),a.push({type:"message_stop"}),a}if(!a.choices?.[0])return null;let c=[],d=a.choices[0],e=d.delta;a.usage&&"object"==typeof a.usage&&(b.usage=N(a.usage)),b.messageStartSent||(b.messageStartSent=!0,b.messageId=a.id?.replace("chatcmpl-","")||`msg_${Date.now()}`,(!b.messageId||"chat"===b.messageId||b.messageId.length<8)&&(b.messageId=a.extend_fields?.requestId||a.extend_fields?.traceId||`msg_${Date.now()}`),b.model=a.model||j.rP,b.nextBlockIndex=0,c.push({type:"message_start",message:{id:b.messageId,type:"message",role:j.z7.ASSISTANT,model:b.model,content:[],stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0}}}));let f=(0,I.V)(e);if(f&&(L(b,c),b.thinkingBlockStarted||(b.thinkingBlockIndex=b.nextBlockIndex++,b.thinkingBlockStarted=!0,c.push({type:"content_block_start",index:b.thinkingBlockIndex,content_block:{type:j.R4.THINKING,thinking:""}})),c.push({type:"content_block_delta",index:b.thinkingBlockIndex,delta:{type:"thinking_delta",thinking:f}})),e?.content&&(K(b,c),b.textBlockStarted||(b.textBlockIndex=b.nextBlockIndex++,b.textBlockStarted=!0,b.textBlockClosed=!1,c.push({type:"content_block_start",index:b.textBlockIndex,content_block:{type:j.R4.TEXT,text:""}})),c.push({type:"content_block_delta",index:b.textBlockIndex,delta:{type:"text_delta",text:e.content}})),e?.tool_calls)for(let a of e.tool_calls){let d=a.index??0;if(a.id&&!b.toolCalls.has(d)){K(b,c),L(b,c);let e=b.nextBlockIndex++;b.toolCalls.set(d,{id:a.id,name:a.function?.name||"",blockIndex:e});let f=a.function?.name||"";f.startsWith(J)&&(f=f.slice(J.length)),c.push({type:"content_block_start",index:e,content_block:{type:j.R4.TOOL_USE,id:a.id,name:f,input:{}}})}a.function?.arguments&&b.toolCalls.get(d)&&(b.toolArgBuffers||(b.toolArgBuffers=new Map),b.toolArgBuffers.set(d,(b.toolArgBuffers.get(d)||"")+a.function.arguments))}if(d.finish_reason&&!b.claudeFinishHandled){if(b.claudeFinishHandled=!0,b.claudeTerminalEmitted)return c.length>0?c:null;if(b.claudeTerminalEmitted=!0,K(b,c),L(b,c),M(b,c),b.finishReason=d.finish_reason,d.finish_reason===j.bC.ERROR){let a=b.upstreamError?.message||"Upstream aborted the response (malformed function call or empty candidate)";c.push({type:"error",error:{type:"api_error",message:a}})}else{let a,e=b.usage||{input_tokens:0,output_tokens:0};c.push({type:"message_delta",delta:{stop_reason:(a=d.finish_reason,(0,H.Q)(a,"claude"))},usage:e}),c.push({type:"message_stop"})}}return c.length>0?c:null}),c(45136),T(f.h.OPENAI,f.h.ANTIGRAVITY,null,function(a,b){if(!a)return null;let c=a.choices?.[0];if(!c)return a.usage&&(b._usage=a.usage),null;let d=c.delta||{},e=c.finish_reason;b._toolCallAccum||(b._toolCallAccum={}),b._responseId||(b._responseId=a.id||`resp_${Date.now()}`),b._modelVersion||(b._modelVersion=a.model||"");let f=[];if(d.reasoning_content&&f.push({thought:!0,text:d.reasoning_content}),d.content&&f.push({text:d.content}),d.tool_calls){for(let a of d.tool_calls){let c=a.index??0;b._toolCallAccum[c]||(b._toolCallAccum[c]={id:"",name:"",arguments:""});let d=b._toolCallAccum[c];a.id&&(d.id=a.id),a.function?.name&&(d.name+=a.function.name),a.function?.arguments&&(d.arguments+=a.function.arguments)}if(0===f.length&&!e)return null}if(e)for(let a of Object.keys(b._toolCallAccum)){let c=b._toolCallAccum[a],d={};try{d=JSON.parse(c.arguments)}catch{}let e=b.toolNameMap?.get(c.name)||c.name;f.push({functionCall:{name:e,args:d}})}if(0===f.length&&!e)return null;0===f.length&&e&&f.push({text:""});let g={content:{role:j.RV.MODEL,parts:f}};e&&(g.finishReason=({[j.bC.STOP]:j.a_.STOP,[j.bC.LENGTH]:j.a_.MAX_TOKENS,[j.bC.TOOL_CALLS]:j.a_.STOP,[j.bC.CONTENT_FILTER]:j.a_.SAFETY})[e]||j.a_.STOP);let h={candidates:[g],modelVersion:b._modelVersion,responseId:b._responseId},i=a.usage||b._usage;return i&&(h.usageMetadata={promptTokenCount:i.prompt_tokens||0,candidatesTokenCount:i.completion_tokens||0,totalTokenCount:i.total_tokens||0},i.completion_tokens_details?.reasoning_tokens&&(h.usageMetadata.thoughtsTokenCount=i.completion_tokens_details.reasoning_tokens),i.prompt_tokens_details?.cached_tokens&&(h.usageMetadata.cachedContentTokenCount=i.prompt_tokens_details.cached_tokens)),{response:h}}),c(86711);var O=c(47945),P=c(39423);function Q(a){return{id:a.responseId,created:a.created,model:a.model||"kiro"}}function R(a,b){a.thinkingBlockStarted&&(b.push({type:"content_block_stop",index:a.thinkingBlockIndex}),a.thinkingBlockStarted=!1)}function S(a,b){a.textBlockStarted&&!a.textBlockClosed&&(a.textBlockClosed=!0,b.push({type:"content_block_stop",index:a.textBlockIndex}),a.textBlockStarted=!1)}function T(a,b,c,f){d??=new Map,e??=new Map;let g=`${a}:${b}`;c&&d.set(g,c),f&&e.set(g,f)}T(f.h.KIRO,f.h.OPENAI,null,function(a,b){if(!a)return null;if("chat.completion.chunk"===a.object&&a.choices)return a;let c=a;if("string"==typeof a){let b=a.split("\n"),d="",e="";for(let a of b)a.startsWith("event:")?d=a.slice(6).trim():a.startsWith(":event-type:")?d=a.slice(12).trim():a.startsWith("data:")?e=a.slice(5).trim():a.startsWith(":content-type:")||a.trim()&&!a.startsWith(":")&&(e=a.trim());if(!e)return null;try{(c=JSON.parse(e))._eventType=d}catch{c={text:e,_eventType:d}}}b.responseId||(b.responseId=`chatcmpl-${Date.now()}`,b.created=Math.floor(Date.now()/1e3),b.chunkIndex=0);let d=c._eventType||c.event||"";if("assistantResponseEvent"===d||c.assistantResponseEvent){let a=c.assistantResponseEvent?.content||c.content||"";if(!a)return null;let d=(0,O.k)(Q(b),{...0===b.chunkIndex?{role:j.z7.ASSISTANT}:{},content:a},null);return b.chunkIndex++,d}if("reasoningContentEvent"===d||c.reasoningContentEvent){let a=c.reasoningContentEvent||c,d="string"==typeof a?a:a.text||a.content||c.content||"";if(!d)return null;let e=(0,O.k)(Q(b),(0,I.B)(d,0===b.chunkIndex),null);return b.chunkIndex++,e}if("toolUseEvent"===d||c.toolUseEvent){b.hadToolUse=!0;let a=c.toolUseEvent||c,d=a.toolUseId||(0,g.eG)(),e=a.name||"",f=a.input||{},h=(0,O.k)(Q(b),{...0===b.chunkIndex?{role:j.z7.ASSISTANT}:{},tool_calls:[{index:0,id:d,type:j.x4.FUNCTION,function:{name:e,arguments:JSON.stringify(f)}}]},null);return b.chunkIndex++,h}if("messageStopEvent"===d||"done"===d||c.messageStopEvent){let a=(0,H.F)(b.hadToolUse?"tool_use":"stop","kiro");b.finishReason=a;let c=(0,O.k)(Q(b),{},a);return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}if("usageEvent"===d||c.usageEvent){let a=(0,P.B6)(c.usageEvent||c,"kiro");a&&(b.usage=a)}return null}),T(f.h.CURSOR,f.h.OPENAI,null,function(a,b){return a?("chat.completion.chunk"===a.object&&a.choices||"chat.completion"===a.object&&a.choices,a):null}),c(68057),c(9537);function U(a,b,c,e,o=!0,p=null,q=null,r=null,s=[],t=null,u=null){let v=e;!function(a,b=[]){if(!b.length||!a.messages||!Array.isArray(a.messages))return;let c=new Set(["image_url","image"]),d=new Set(["audio_url","input_audio"]),e=a=>c.has(a)?b.includes("image"):!!d.has(a)&&b.includes("audio");for(let b of a.messages)Array.isArray(b.content)&&(b.content=b.content.filter(a=>!e(a.type)),0===b.content.length&&(b.content=""))}(v,s),(0,k.SZ)(v),(0,g.fH)(v),b!==f.h.KIRO&&(0,g.SF)(v);let w=(0,l.NU)(v),x=(0,m.YC)(v,p,t,b);if(p&&(p._clientSessionId=x),a!==b){let e=d.get(`${a}:${b}`);if(e)v=e(c,v,o,p);else{if(a!==f.h.OPENAI){let b=d.get(`${a}:${f.h.OPENAI}`);b&&(v=b(c,v,o,p),r?.logOpenAIRequest?.(v))}if(b!==f.h.OPENAI){let a=d.get(`${f.h.OPENAI}:${b}`);a&&(v=a(c,v,o,p))}}}if((b!==f.h.KIRO||a!==f.h.OPENAI&&a!==f.h.CLAUDE)&&(0,l.z)(b,c,v,q,w),b===f.h.OPENAI&&(v=function(a,b={}){if(!a.messages||!Array.isArray(a.messages))return a;let c=!!b.preserveCacheControl;function d(a){let{signature:b,cache_control:d,...e}=a;return c&&d?{...e,cache_control:d}:e}if(a.messages=a.messages.map(a=>{if(a.role===j.z7.DEVELOPER&&(a={...a,role:j.z7.SYSTEM}),a.role===j.z7.TOOL||a.role===j.z7.ASSISTANT&&a.tool_calls?.length||"string"==typeof a.content)return a;if(Array.isArray(a.content)){let b=[];for(let c of a.content)if(c.type!==j.R4.THINKING&&c.type!==j.R4.REDACTED_THINKING)if(j.m8.includes(c.type))b.push(d(c));else{if(c.type===j.R4.TOOL_USE)continue;c.type===j.R4.TOOL_RESULT&&b.push(d(c))}0===b.length&&b.push({type:j.x4.TEXT,text:""});let c=b.every(a=>a.type===j.x4.TEXT),e=b.some(a=>a.cache_control),f=c&&!e?b.map(a=>a.text).join("\n"):b;return{...a,content:f}}return a}),a.messages=a.messages.filter(a=>!!(a.role===j.z7.TOOL||a.role===j.z7.ASSISTANT&&a.tool_calls?.length)||("string"==typeof a.content?""!==a.content.trim():!Array.isArray(a.content)||a.content.some(a=>a.type===j.x4.TEXT&&a.text?.trim()||a.type!==j.x4.TEXT))),a.tools&&Array.isArray(a.tools)&&0===a.tools.length&&delete a.tools,a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&(a.tools=a.tools.map(a=>a.type===j.x4.FUNCTION&&a.function?a:a.name&&(a.input_schema||a.description)?{type:j.x4.FUNCTION,function:{name:a.name,description:String(a.description||""),parameters:a.input_schema||{type:"object",properties:{}}}}:a.functionDeclarations&&Array.isArray(a.functionDeclarations)?a.functionDeclarations.map(a=>({type:j.x4.FUNCTION,function:{name:a.name,description:String(a.description||""),parameters:a.parameters||{type:"object",properties:{}}}})):a).flat()),a.tool_choice&&"object"==typeof a.tool_choice){let b=a.tool_choice;"auto"===b.type?a.tool_choice="auto":"any"===b.type?a.tool_choice="required":"tool"===b.type&&b.name&&(a.tool_choice={type:j.x4.FUNCTION,function:{name:b.name}})}return a}(v,{preserveCacheControl:!!n.xq[q]?.quirks?.preserveCacheControl})),b===f.h.CLAUDE){let a=p?.accessToken||p?.apiKey||null;v=(0,h.Bz)(v,q,a,t,p?.rawHeaders,x)}if(n.xq[q]?.quirks?.cloakToolsOnOAuth){let a=p?.accessToken||p?.apiKey||null;if(a?.includes("sk-ant-oat")){let{body:a,toolNameMap:b}=(0,i.Az)(v);v=a,b?.size>0&&(v._toolNameMap=b)}}return v}function V(a,b,c,d){if(b===a){let a=(0,i.F5)(c,d?.toolNameMap);return null!=a?[a]:[]}let g=[c],h=null,j=e.get(`${a}:${b}`);if(j){let a=j(c,d);return a?Array.isArray(a)?a:[a]:[]}if(a!==f.h.OPENAI){let b=e.get(`${a}:${f.h.OPENAI}`);if(b){g=[];let a=b(c,d);a&&(h=g=Array.isArray(a)?a:[a])}}if(b!==f.h.OPENAI){let a=e.get(`${f.h.OPENAI}:${b}`);if(a){let b=[];for(let c of g){let e=a(c,d);e&&b.push(...Array.isArray(e)?e:[e])}g=b}}return h&&b!==f.h.OPENAI&&a!==f.h.OPENAI&&(g._openaiIntermediate=h),g}function W(a,b){return a!==b}function X(a){let b={messageId:null,model:null,textBlockStarted:!1,thinkingBlockStarted:!1,inThinkingBlock:!1,currentBlockIndex:null,toolCalls:new Map,finishReason:null,finishReasonSent:!1,usage:null,contentBlockIndex:-1};return a===f.h.OPENAI_RESPONSES?{...b,seq:0,nextOutputIndex:0,responseId:`resp_${Date.now()}`,created:Math.floor(Date.now()/1e3),started:!1,msgTextBuf:{},msgItemAdded:{},msgContentAdded:{},msgItemDone:{},msgOutputIndexes:{},reasoningId:"",reasoningIndex:-1,reasoningBuf:"",reasoningPartAdded:!1,reasoningDone:!1,inThinking:!1,funcArgsBuf:{},funcNames:{},funcCallIds:{},funcArgsDone:{},funcItemDone:{},funcOutputIndexes:{},completedSent:!1}:b}function Y(){}T(f.h.KIRO,f.h.CLAUDE,null,function(a,b){let c=a;if("string"==typeof a){let b=a.trim();if(!b||"[DONE]"===b)return null;try{c=JSON.parse(b.startsWith("data:")?b.slice(5).trim():b)}catch{return null}}if(!c||!c.choices?.[0])return null;let d=[],e=c.choices[0],f=e.delta||{};if(c.usage&&"object"==typeof c.usage){b.usage={input_tokens:"number"==typeof c.usage.prompt_tokens?c.usage.prompt_tokens:0,output_tokens:"number"==typeof c.usage.completion_tokens?c.usage.completion_tokens:0};let a=c.usage.cache_read_input_tokens??c.usage.prompt_tokens_details?.cached_tokens,d=c.usage.cache_creation_input_tokens??c.usage.prompt_tokens_details?.cache_creation_tokens;"number"==typeof a&&(b.usage.cache_read_input_tokens=a),"number"==typeof d&&(b.usage.cache_creation_input_tokens=d)}b.messageStartSent||(b.messageStartSent=!0,b.messageId="string"==typeof c.id&&c.id.replace("chatcmpl-","")||`msg_${Date.now()}`,b.model=c.model||"kiro",b.nextBlockIndex=0,d.push({type:"message_start",message:{id:b.messageId,type:"message",role:"assistant",model:b.model,content:[],stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0}}}));let g=f.reasoning_content||f.reasoning;if(g&&(S(b,d),b.thinkingBlockStarted||(b.thinkingBlockIndex=b.nextBlockIndex++,b.thinkingBlockStarted=!0,d.push({type:"content_block_start",index:b.thinkingBlockIndex,content_block:{type:"thinking",thinking:""}})),d.push({type:"content_block_delta",index:b.thinkingBlockIndex,delta:{type:"thinking_delta",thinking:g}})),f.content&&(R(b,d),b.textBlockStarted||(b.textBlockIndex=b.nextBlockIndex++,b.textBlockStarted=!0,b.textBlockClosed=!1,d.push({type:"content_block_start",index:b.textBlockIndex,content_block:{type:"text",text:""}})),d.push({type:"content_block_delta",index:b.textBlockIndex,delta:{type:"text_delta",text:f.content}})),f.tool_calls)for(let a of(b.toolCalls||(b.toolCalls=new Map),b.toolArgBuffers||(b.toolArgBuffers=new Map),f.tool_calls)){let c=a.index??0;if(a.id){R(b,d),S(b,d);let e=b.nextBlockIndex++;b.toolCalls.set(c,{id:a.id,name:a.function?.name||"",blockIndex:e}),d.push({type:"content_block_start",index:e,content_block:{type:"tool_use",id:a.id,name:a.function?.name||"",input:{}}})}a.function?.arguments&&b.toolCalls.get(c)&&b.toolArgBuffers.set(c,(b.toolArgBuffers.get(c)||"")+a.function.arguments)}if(e.finish_reason){if(R(b,d),S(b,d),b.toolCalls)for(let[a,c]of b.toolCalls){let e=b.toolArgBuffers?.get(a);e&&d.push({type:"content_block_delta",index:c.blockIndex,delta:{type:"input_json_delta",partial_json:e}}),d.push({type:"content_block_stop",index:c.blockIndex})}b.finishReason=e.finish_reason;let a=b.usage||{input_tokens:0,output_tokens:0};d.push({type:"message_delta",delta:{stop_reason:function(a){switch(a){case"stop":default:return"end_turn";case"length":return"max_tokens";case"tool_calls":return"tool_use"}}(e.finish_reason)},usage:a}),d.push({type:"message_stop"})}return d.length>0?d:null})},3771:(a,b,c)=>{c.d(b,{l:()=>k});var d=c(2547),e=c(19956),f=c(55511),g=c(18226),h=c(94454),i=c(60290);function j(a){if(null==a)return"";if("string"==typeof a)return a;if(Array.isArray(a)){let b=[];for(let c of a)"string"==typeof c?b.push(c):c&&"object"==typeof c&&"string"==typeof c.text&&b.push(c.text);return b.join("\n")}return String(a)}function k(a,b,c){let{messages:d,system:e}=function(a=[]){let b=[],c=[];for(let d of a){if(!d)continue;let a=d.role;if(a===g.z7.SYSTEM){let a=j(d.content);a&&c.push(a);continue}if(a===g.z7.TOOL){let a="string"==typeof d.content?d.content:j(d.content);b.push({role:g.z7.TOOL,content:[{type:"tool-result",toolCallId:d.tool_call_id||"",toolName:d.name||"",output:{type:"text",value:a}}]});continue}if(a===g.z7.ASSISTANT){let a=[],c=j(d.content);if(d.reasoning_content&&a.push({type:"reasoning",text:d.reasoning_content}),c&&a.push({type:g.x4.TEXT,text:c}),Array.isArray(d.tool_calls))for(let b of d.tool_calls){let c=b.function||{};a.push({type:"tool-call",toolCallId:b.id||"",toolName:c.name||"",input:function(a){if(null==a)return{};if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return{}}}(c.arguments)})}b.push({role:g.z7.ASSISTANT,content:a.length?a:[{type:g.x4.TEXT,text:""}]});continue}b.push({role:g.z7.USER,content:function(a){if(null==a)return[{type:g.x4.TEXT,text:""}];if("string"==typeof a)return[{type:g.x4.TEXT,text:a}];if(Array.isArray(a)){let b=[];for(let c of a)if("string"==typeof c)b.push({type:g.x4.TEXT,text:c});else if(c&&"object"==typeof c)if(c.type===g.x4.TEXT&&"string"==typeof c.text)b.push({type:g.x4.TEXT,text:c.text});else if(c.type===g.x4.IMAGE_URL||c.type===g.x4.IMAGE){let a="string"==typeof c.image_url?c.image_url:c.image_url?.url||c.image||c.url;a&&b.push({type:"image",image:a})}else"string"==typeof c.text&&b.push({type:g.x4.TEXT,text:c.text});return b.length?b:[{type:g.x4.TEXT,text:""}]}return[{type:g.x4.TEXT,text:String(a)}]}(d.content)})}return{messages:b,system:c.join("\n\n")}}(b.messages),k={model:(0,h.kD)(a),messages:d,stream:!1!==c,max_tokens:b.max_tokens??b.max_output_tokens??i.Uc,temperature:b.temperature??.3};e&&(k.system=e);let l=function(a){if(!Array.isArray(a)||0===a.length)return;let b=[];for(let c of a)c&&(c.type===g.x4.FUNCTION&&c.function?b.push({name:c.function.name,description:c.function.description,input_schema:c.function.parameters||{type:"object"}}):c.name&&(c.input_schema||c.parameters)&&b.push({name:c.name,description:c.description,input_schema:c.input_schema||c.parameters}));return b.length?b:void 0}(b.tools);l&&(k.tools=l),null!=b.top_p&&(k.top_p=b.top_p);let m=new Date().toISOString().slice(0,10);return{threadId:(0,f.randomUUID)(),memory:"",config:{workingDir:process.cwd(),date:m,environment:process.platform,structure:[],isGitRepo:!1,currentBranch:"",mainBranch:"",gitStatus:"",recentCommits:[]},params:k}}(0,d.kz)(e.h.OPENAI,e.h.COMMANDCODE,k,null)},6499:(a,b,c)=>{c.d(b,{$G:()=>g,bf:()=>e,n6:()=>f,xr:()=>d});let d="EpwGCkYIChgCKkCzVUuRrg7CcglSUWEef4rH6o35g9UYS8ZPe0/VomQTBsFx6sttYNj5l8GqgW6ejuHyYqpFToxIbZl0bw17l5dJEgzCnqDO0Z8fRlMrNgsaDLS1cnCjC53KBqE0CCIwAADQdo1eO+7qPAmo8J4WR3JPmr92S97kmvr5K1iPMiOpkZNj8mEXW8uzBoOJs/9ZKoMFiqHJ3UObwaJDqFOW70E9oCwDoc6jesaWVAEdN5vWfKMpIkjFJjECdjIdkxyJNJ8Ib8yXVal3qwE7uThoPRqSZDdHB5mmwPEjWE/90cSYCbtX2YsJki1265CabBb8/QEkODXg4kgRrL+c8e8rRXz/dr1RswvaPuzEdGKHRNi9UooNUeOK4/ebx1KkP9YZttyohN9GWqlts36kOoW0Cfie/ABDgF9g534BPth/sstxDM6d79QlRmh6NxizyTF74DXJI34u0M4tTRchqE5pAq85SgdJaa+dix1yJPMji8m6nZkwJbscJb9rdc2MKyKWjz8QL2+rTSSuZ2F1k1qSsW0xNcI7qLcI12Vncfn/VqY6YOIZy/saZBR0ezXvN6g+UYbuIdyVg7AyIFZt3nbrO7/kmOEb2VKzygwklHGEIJHfFgMpH3JSrAzbZIowVHOF7VaJ+KXRFDCFin7hHTOiOsdg+1ij1mML9Z/x/9CP4b7OUcaQm1llDZPSHc6rZMNL3DdB+fW5YfmNgKU35S+7AMtA10nVILzDAk1UV4T2K9Do09JlI6rjOs9UuULlIN2Z0eE8YTlANR6uQcw7lMcdfqYE8tke4rDKc2dDiaS5vVe45VewICNpdXGN11yw8QqH7p27CR1HtN30e0tHXOR3bIwWk/Yb6O5fTaKG6Ri8e5ZCPvdD9HqepVi188nM0iTjJqL58F3ni04ECIhcbyaQWnuTes1Kw4CMwiZDLQkk8Hgz7HkUOf1btQTF/0nhD7ry0n0hAEg2PaDM3V6TjOjf4hEldRmeqERcQF1PfgKb6ZM12rlIIfUqKACczWJSzTV158+47HX36o0cgux6nFlv/DE+sEiRVxgB",e="EuwGCukGAXLI2nxwZIq54WWSoL/YN0P3TsDZ7zRnLi8g0S4aVr2HUGxvaHKySuY6HAVzcE0GPGjXrytLIldxthSvfxgUlJh6Qa9Z+Oj5QZBlYdg6HaJ6yuY5R7waE6rdwBsRf7Ft2j3DJ9rMi9qhWFqApewYtPhls3VHtuvND3l8Rm09+lbAXQs6KKWEWrxNLKTBkfpMgXhRERc/TQRMZu1twAablm6/Zk1tsYRvfWKLsNbeKF+CCojJdXJKvnR/8Ouuoa+Y2Ti20hcW7aZIIjZDFYPU//k6Ybmhg69J/imbFai2ckhfLaisqdDkdoIiBJScTOUvYqP6AE9d4MsydSC+UlhIMk4hoP76R8vUSCZRMkjOaDXstf/QoVZKbt94wyRZgAJ1G0BqI8L5ow86kLpA4wJEtxsRGymOE4bKUvApveBakYDNM9APkf+LbtbzWSseGjoZcSlycF9iN8Q2XNYKRrHbv3Lr5Y8JjdH/5y/6SHkNehTEZugaeGnSPSyCTWto1kQgHpxdWmhkLfJGNUGLmue7Mesj4TSms4J33mRpYVhNB/J333FCqIP0hr/E7BkkjEn7yZ4X7SQlh+xKPurapsnHRwiKmtsilmEFrnTE9iQr+pMr6M29qqFNv1tr5yumbaJw8JW9sB15tNsRv+dW6BjNanbsKz7HCgKUBc8tGy+7YuhXzAfViyRefcjK7eZW0Fbyt7AbybJTKz78W8NH7ye6LAwzOebXpeZ4D43fNIt8bKh26qgduSQv/7o+pAflkuqHZ99YWgHQ8h8OkZFi3eOiSYjsjhdZ/czWOdoPI/OnqIldzMPF5YlrKBLFX8VhRKVmqgsmWf5PHGulHhMkVlS+XG2UIseGy69ARa93D78Gsa+1n1kJr7EEB7Rh+27vUMxVYLdz1yMSvE5nalTAlg/ZeG8+XQ0cHuAI3KbQpHW2Q++RdXfm5JzD5WdJZUU+Zn8t8UUn85BH4RxZLeE0qJikgSsKoYVBc6YhiMjhPgkR95ReimY4Z0xCJdRo1gjexOFeODZMpQF6Yxnoic7IrdgsFA3iePTbFnPp3IAM1fAThWhXJUn3QInUOTd5o1qmTmn6REbL15g/JQNl+dqUoPkhleeb2V3kjqp1okmO3wMZbPknR3S1LZNmlS72/iBQUm+n2b/RCn4PjmM2",f="CloBjz1rX5+yg1ILh/Ag+suum5k1f/9m/hI0XDQ33lsQIYnOHLn9KZwN0C7E4jgep5MzZvz5Se1Z1xxYrA1+Iz0Il4tabBhaDfMKNa5dGdEA3KnikfjfIpMlPaAKaQGPPWtf2hodPdBgguiZqDn+Qz2LwGEqHVJ16LVBUpeSx7UnYBLSwio8cyNy0jPijOh5QXKLTeHVdO2tKKcCCrtG2JCW3dOSrW2qA8eyAg40iQUnMNECjbcjkqB1+zrab7jX9ILwg7L9OgqYAQGPPWtfT4nzaPzSkXePAa920abYxPs3fg/RHDlg8PUVFLa+ko6qOjt7nXJTMxN0cpCwUCFX7eHHcMnA6vApyA/rXvJiAABkHZ3HilAktXRtxr/thHU0H8/4H5gT3kzoQcq9aMznrKomd3ct0mFi0ioSKnOEfoY1Mrfj00p/ZWm0tT7Wrjcm3BQXZ+T9Vrb94k+6CjtcEBrGCq8BAY89a1/vTMczqwB1NP3HCCuBdnds2vDXkj6XAYaXjsjmik8tGqwMKHz8R9RAWsx6SO6pkGEpXXpRzAaUx6c+aofsL/z1xOcN7ArCAa6uEeQKEgNngZuCP05p4+9P95epVmgOjFa4KfsPnyg+NKUkEFmpPSDrIRyMT+xERlclVcCI98/u7i8a9+vTbgzl8TRFYryClNH37K1ye5i6kqSGDUcMyiEasjke5BxbUh3i6wqMAgGPPWtfk+A+iY38QAldu117FEkTIkzbYOIt67lk9c6Ou3Y3Ct8TFHFw5QwGfSFc0YWjeTFHdm9UdV5jPK35p6VfhiRSva3w2+JLIHb4jvv5HutZPOJ3yQTt/+hUDj80oMNMbwnxNZvCEdzKS+D9vwmTACAm5H0ZetBSH2gPJXnhhuQo9AegS3wIWVR2a5k643Vx9r4u4pOvij4476lxKswIHvqsjL4jnTzRCvd44G6dn7vD0ENGb1K/i+dMRQMcOBaOxPN0ynk9bKxXWRDbZ+Rhakfr+y74z+6eYCdRPVqO9I7s+riilFuRIfaQ+U6/vuVKGIWEVKCfZZi0z6H5Xgz1xmse0u0AsittDlIKxwEBjz1rX783A0vehvUeabRia+/pX46IsN5efTAxFEBUeUce3jLuXIghkMV2b8KNhUs2G0aZldDDewRQbkluQabBMDT82N5I7reJP0VZgLIKccCL5DoGv1J7YWM2npLMIgZ6aP8aSlT3PFFJ0IXbUZUrzduczmIm6nzAJf9zxmq1aIFYw8YrgW8RjUdy0UvUmRoBEShSGUrvsyaRTl7J//KJW5utIPunFMu53GPWLidCFHzM1QA3Cj1+4zv5UXajP/V92RQayWbzCvYBAY89a1+yzoVSWukUGH7kX71Tg9dx7HA7OyKYwnYaqekG98zJfcUM/3KoiiiotW5t4xYu//ksEl36bSWvUHsRnxGByg+3WYdnZqKg0AtdRB/EXbI5PsjvS5ko96bkjSuFkY3TjHGwAM2B94K6/t6OTE/NBbxCsY9sT4d+1sbFv/iyfmfCnfvJaSzGmC9CDWKy4iqQ/vBNWps9j1JXk0p5uPAYC2BaMkxl5xoTVZqI3zAuRtQF5JLmPPy+PdqOgFxMKcLGNhwp7dbhIFLF68vCYQ9CL0NnK2d3CFk1UFVYxsi1TsolR1xahe/Rxt5HZDz/z65nevrQ",g="CiQBjz1rX/AlslZWMe5RgBt4Tv9j4+YNZTTez+JH2/+5oAlICygKXgGPPWtf7/Sux9eLYap/bmYAdPqFThLXj+l7o0DLu/hdgU98MA9ZrlRDNHXx+T0tuY8AcnjPZbiDyOq2bE11Fjhsk6p5axqayaapC/Pt9GczcgIQf1z15WTxCeKWAPYKYQGPPWtfDYj0nlNFNoTlU39RC91Z16xFKJ2MLEmkm+NvimsoOJ6be3g2BssNPtJ/9BKDXRA5cVs17tBeeW72lH8TMB5999udtxHM2SiUsnWsrHlfVuGSCpNQQ+5REw8HNvEKkgEBjz1rXzBNWrqZGbjun55K+vgYPBhJO2qZ67uRWXUA5/qcU12U/mbi5XoA3swoxYE8LEXfZvFFC9WG/W28QNCA0Qd4Trk/WkWiAwZmB8a84Fs14rkv3wqyxwFavPkJorqurAfd2XzGiFy0sB0ITCOPYi1HzDGV5WfXk6b9k+jT66/RuzGa8EcSOWo/QtC3Bkhgowo4AY89a1/f/tw8A02zjIoK7JVDAbf8W4UfmbApJJhwXIiGtu1M0JItObx7g2reYqT+HHL2Q/R4VDc="},7259:(a,b,c)=>{c.d(b,{M:()=>e});var d=c(60290);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}},7274:(a,b,c)=>{c.d(b,{c:()=>w});var d=c(55511),e=c(85187),f=c(4630),g=c(28730),h=c(60290),i=c(91576),j=c(89843),k=c(9562),l=c(48644),m=c(6499);let n=/^agent\/[^/]+\/\d+\/[^/]+\/\d+$/,o=[/high\s+traffic/i,/agent\s+(execution\s+)?terminated\s+due\s+to\s+error/i,/capacity/i,/temporarily\s+unavailable/i,/timeout/i,/stream\s+(ended|closed|terminated|interrupted)/i,/empty\s+response/i],p=new Set([h.gx.SERVER_ERROR,h.gx.BAD_GATEWAY,h.gx.SERVICE_UNAVAILABLE,h.gx.GATEWAY_TIMEOUT]),q=["output_config","thinking","reasoning_effort","reasoning","enable_thinking","thinking_budget","thinkingConfig"],r=a=>{for(let b of q)delete a[b]},s=[/image/i,/imagen/i,/image-generation/i];function t(a){return!!a&&s.some(b=>b.test(a))}function u(a){let b=d.createHash("sha256").update(String(a||"antigravity")).digest().subarray(0,16);b[6]=15&b[6]|80,b[8]=63&b[8]|128;let c=b.toString("hex");return`${c.slice(0,8)}-${c.slice(8,12)}-${c.slice(12,16)}-${c.slice(16,20)}-${c.slice(20)}`}function v({body:a,request:b,credentials:c,model:d,requestType:e}){if(n.test(a?.requestId||""))return a.requestId;let f=b?.sessionId||a?.request?.sessionId||c?._clientSessionId||c?.connectionId||c?.email||"anonymous",g=u(`antigravity:conversation:${f}`),h=u(`antigravity:trajectory:${f}:${d}:${e}`),i=Math.max(1,2*(Array.isArray(b?.contents)?b.contents.length:1)-1);return`agent/${g}/${Date.now()}/${h}/${i}`}class w extends e.H{constructor(){super("antigravity",f.xq.antigravity)}buildUrl(a,b,c=0){let d=this.getBaseUrls(),e=d[c]||d[0],f=t(a);return`${e}/v1internal:${b&&!f?"streamGenerateContent?alt=sse":"generateContent"}`}parseError(a,b){if(429===a.status&&b){let{resetsAtMs:a}=(0,k.k)(b),c=b;try{c=JSON.parse(b)?.error?.message||b}catch{}let d=a;if(!d){let a=this.parseRetryFromErrorMessage(c);a&&(d=Date.now()+a)}if(d)return{status:429,message:c,resetsAtMs:d}}return super.parseError(a,b)}buildHeaders(a,b=!0,c=null){return{"Content-Type":"application/json",Authorization:`Bearer ${a.accessToken}`,"User-Agent":this.config.headers?.["User-Agent"]||g.K["User-Agent"]}}transformRequest(a,b,c,d){let e=d?.projectId||this.generateProjectId();if(!0!==c&&delete b.stream_options,t(a)){let c=function(a){let b={aspectRatio:"1:1"},c=a.match(/(\d+)x(\d+)$/);if(c){let a=parseInt(c[1]),d=parseInt(c[2]);if(a<=16&&d<=16)b.aspectRatio=`${a}:${d}`;else{let c=(a,b)=>b?c(b,a%b):a,e=c(a,d);b.aspectRatio=`${a/e}:${d/e}`}}return b}(a),f=a.replace(/-(\d+)x(\d+)$/,""),g=[];for(let a of b.request?.contents||b.contents||[]){let b=(a.parts||[]).filter(a=>a?.text!==void 0||a?.inlineData?.data&&a?.inlineData?.mimeType||a?.fileData?.fileUri&&a?.fileData?.mimeType);b.length>0&&g.push({role:a.role||"user",parts:b})}let h=(0,i.oV)({headers:d?.rawHeaders,body:b,connectionId:d?.email||d?.connectionId,scope:"antigravity"});this._lastSessionId=h;let j={contents:g,generationConfig:{temperature:1,topP:.95,topK:40,maxOutputTokens:8192,responseModalities:["TEXT","IMAGE"],imageConfig:c},sessionId:h};return{project:e,model:f,userAgent:"antigravity",requestType:"image_gen",requestId:v({body:b,request:j,credentials:d,model:f,requestType:"image_gen"}),request:j}}let f=function(a){let b=[];for(let c of a||[]){if(!c?.role||!Array.isArray(c.parts)||0===c.parts.length)continue;let a=b.at(-1);a?.role===c.role?a.parts.push(...c.parts):b.push({...c,parts:[...c.parts]})}return b}(b.request?.contents?.map(a=>{let b=a.role;a.parts?.some(a=>a.functionResponse)&&(b="user");let c=a.parts?.filter(a=>(!a.thought||!!a.functionCall)&&(!a.thoughtSignature||!!a.functionCall||!!a.text)),d=c?.some(a=>a.functionCall&&!a.thoughtSignature)??!1;return b!==a.role||c?.length!==a.parts?.length||d?{...a,role:b,parts:d?c.map(a=>a.functionCall&&!a.thoughtSignature?{...a,thoughtSignature:m.bf}:a):c}:a}).filter(a=>a.parts&&a.parts.length>0)),g=b.request?.tools;if(g&&g.length>0){let a=new Set,b=[];for(let c of g)for(let d of c.functionDeclarations||[]){let c=function(a){if(!a)return"_unknown";let b=a.replace(/[^a-zA-Z0-9_.:\-]/g,"_");return/^[a-zA-Z_]/.test(b)||(b="_"+b),b.substring(0,64)}(d.name);a.has(c)||(a.add(c),b.push({...d,name:c,parameters:d.parameters?(0,l.Yr)(structuredClone(d.parameters)):{type:"object",properties:{reason:{type:"string",description:"Brief explanation"}},required:["reason"]}}))}g=b.length>0?[{functionDeclarations:b}]:[]}let{tools:h,toolConfig:j,...k}=b.request||{};if(r(k),k.systemInstruction?.parts){let a="You are a Claude agent, built on Anthropic's Claude Agent SDK.";for(let b of k.systemInstruction.parts)"string"==typeof b.text&&b.text.includes(a)&&(b.text=b.text.split(a).join(""))}let n={...k.generationConfig||{}};n.maxOutputTokens>64e3&&(n.maxOutputTokens=64e3);let o={...k,generationConfig:n,...f&&{contents:f},...g&&{tools:g},sessionId:b.request?.sessionId||(0,i.oV)({headers:d?.rawHeaders,body:b,connectionId:d?.email||d?.connectionId,scope:"antigravity"}),safetySettings:void 0,...g?.length>0&&{toolConfig:{functionCallingConfig:{mode:"VALIDATED"}}}};return r(b),this._lastSessionId=o.sessionId,{project:e,model:b.model||a,userAgent:"antigravity",requestType:"agent",requestId:v({body:b,request:o,credentials:d,model:a,requestType:"agent"}),request:o}}async refreshCredentials(a,b,c=null){if(!a.refreshToken)return null;try{let d=await (0,j.proxyAwareFetch)(g.NA.google.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a.refreshToken,client_id:this.config.clientId,client_secret:this.config.clientSecret})},c);if(!d.ok)return null;let e=await d.json();return b?.info?.("TOKEN","Antigravity refreshed"),{accessToken:e.access_token,refreshToken:e.refresh_token||a.refreshToken,expiresIn:e.expires_in,projectId:a.projectId}}catch(a){return b?.error?.("TOKEN",`Antigravity refresh error: ${a.message}`),null}}generateProjectId(){let a=["useful","bright","swift","calm","bold"][Math.floor(5*Math.random())],b=["fuze","wave","spark","flow","core"][Math.floor(5*Math.random())];return`${a}-${b}-${d.randomUUID().slice(0,5)}`}generateSessionId(){return d.randomUUID()+Date.now().toString()}parseRetryHeaders(a){if(!a?.get)return null;let b=a.get("retry-after");if(b){let a=parseInt(b,10);if(!isNaN(a)&&a>0)return 1e3*a;let c=new Date(b);if(!isNaN(c.getTime())){let a=c.getTime()-Date.now();return a>0?a:null}}let c=a.get("x-ratelimit-reset-after");if(c){let a=parseInt(c,10);if(!isNaN(a)&&a>0)return 1e3*a}let d=a.get("x-ratelimit-reset");if(d){let a=1e3*parseInt(d,10)-Date.now();return a>0?a:null}return null}parseRetryFromErrorMessage(a){if(!a||"string"!=typeof a)return null;let b=a.match(/reset after (\d+h)?(\d+m)?(\d+s)?/i);if(!b)return null;let c=0;return b[1]&&(c+=3600*parseInt(b[1])*1e3),b[2]&&(c+=60*parseInt(b[2])*1e3),b[3]&&(c+=1e3*parseInt(b[3])),c>0?c:null}extractErrorMessage(a,b=""){return[a?.error?.message,a?.message,a?.error,b].filter(Boolean).map(a=>"string"==typeof a?a:JSON.stringify(a)).join("\n")}isTransientAntigravityError(a,b){return!!(a===h.gx.RATE_LIMITED||p.has(a))||o.some(a=>a.test(b||""))}async computeRetryDelay(a,b){let c="",d=null,e=this.parseRetryHeaders(a.headers);try{d=(c=await a.clone().text())?JSON.parse(c):null}catch{}let f=this.extractErrorMessage(d,c);return(e||(e=this.parseRetryFromErrorMessage(f)),e)?e<=1e4&&e:!!this.isTransientAntigravityError(a.status,f)&&Math.min(1e3*2**b,a.status===h.gx.RATE_LIMITED?1e4:15e3)}static cloakTools(a,b=null){let c=a.request?.tools;if(!c||0===c.length)return{cloakedBody:a,toolNameMap:null};let d="github-copilot"===b,e=new Map,f=[],h=new Set(x.map(a=>a.name));for(let a of c)if(a.functionDeclarations)for(let b of a.functionDeclarations){if(d&&g.J5.has(b.name)||d&&h.has(b.name))continue;if(g.J5.has(b.name)){f.push(b);continue}let a=`${b.name}${g.QH}`;e.set(a,b.name),f.push({...b,name:a})}let i=[],j=new Set;for(let a of[...f,...x])!a?.name||j.has(a.name)||(j.add(a.name),i.push(a));let k=a.request?.contents?.map(a=>{if(!a.parts)return a;let b=a.parts.map(a=>a.functionCall&&!g.J5.has(a.functionCall.name)?{...a,functionCall:{...a.functionCall,name:`${a.functionCall.name}${g.QH}`}}:a.functionResponse&&!g.J5.has(a.functionResponse.name)?{...a,functionResponse:{...a.functionResponse,name:`${a.functionResponse.name}${g.QH}`}}:a);return{...a,parts:b}}),{stream:l,stream_options:m,...n}=a;return{cloakedBody:{...n,request:{...a.request,tools:[{functionDeclarations:i}],contents:k||a.request.contents}},toolNameMap:e}}}let x=[{name:"browser_subagent",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"command_status",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"find_by_name",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"generate_image",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"grep_search",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"list_dir",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"list_resources",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"mcp_sequential-thinking_sequentialthinking",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"multi_replace_file_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"notify_user",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_resource",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_terminal",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_url_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"replace_file_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"run_command",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"search_web",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"send_command_input",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"task_boundary",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"view_content_chunk",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"view_file",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"write_to_file",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}}]},9537:(a,b,c)=>{c.d(b,{H:()=>n});var d=c(2547),e=c(19956),f=c(18226),g=c(47945),h=c(39423),i=c(22208),j=c(10640),k=c(98173);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??=`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.B6)(f,"commandcode");g&&(c.usage=g),e.push(c);break}case"error":{b.finishReason=f.bC.STOP;let a=d.error??d.message??"unknown",c="string"==typeof a?a:JSON.stringify(a),g=`
20
+ ${y}`,modelId:o,origin:"AI_EDITOR",...t?.userInputMessage?.userInputMessageContext&&{userInputMessageContext:t.userInputMessage.userInputMessageContext},...t?.userInputMessage?.images&&{images:t.userInputMessage.images}};e&&(C.systemInstruction=e);let D={conversationState:{chatTriggerType:"MANUAL",conversationId:(0,w.A)(),currentMessage:{userInputMessage:C},history:s}};return v&&(D.profileArn=v),q&&(D.additionalModelRequestFields=q),(i||void 0!==k||void 0!==l)&&(D.inferenceConfig={},i&&(D.inferenceConfig.maxTokens=i),void 0!==k&&(D.inferenceConfig.temperature=k),void 0!==l&&(D.inferenceConfig.topP=l)),Object.defineProperty(D,"_kiroUpstreamModel",{value:o,enumerable:!1}),D},null),c(83589);var H=c(98173),I=c(22208);let J="proxy_";function K(a,b){a.thinkingBlockStarted&&(b.push({type:"content_block_stop",index:a.thinkingBlockIndex}),a.thinkingBlockStarted=!1)}function L(a,b){a.textBlockStarted&&!a.textBlockClosed&&(a.textBlockClosed=!0,b.push({type:"content_block_stop",index:a.textBlockIndex}),a.textBlockStarted=!1)}function M(a,b){for(let[c,d]of a.toolCalls){let e=a.toolArgBuffers?.get(c);if(e){let a=function(a,b){try{let c=JSON.parse(b),d=a.startsWith(J)?a.slice(J.length):a;return"Read"===d&&function(a){var b,c;"string"==typeof a.limit&&/^\d+$/.test(a.limit)&&(a.limit=Number(a.limit)),"string"==typeof a.offset&&/^-?\d+$/.test(a.offset)&&(a.offset=Number(a.offset)),"number"==typeof a.limit&&(a.limit>2e3&&(a.limit=2e3),a.limit<1&&delete a.limit),"number"==typeof a.offset&&a.offset<0&&(a.offset=0),"pages"in a&&(b=a.file_path,c=a.pages,!("string"==typeof b&&b.toLowerCase().endsWith(".pdf")&&"string"==typeof c&&/^\d+(?:-\d+)?$/.test(c)))&&delete a.pages}(c),JSON.stringify(c)}catch{return b}}(d.name,e);b.push({type:"content_block_delta",index:d.blockIndex,delta:{type:"input_json_delta",partial_json:a}})}b.push({type:"content_block_stop",index:d.blockIndex})}}function N(a){let b="number"==typeof a.prompt_tokens?a.prompt_tokens:0,c="number"==typeof a.completion_tokens?a.completion_tokens:0,d=a.prompt_tokens_details?.cached_tokens,e=a.prompt_tokens_details?.cache_creation_tokens,f="number"==typeof d?d:0,g="number"==typeof e?e:0,h={input_tokens:b-f-g,output_tokens:c};return f>0&&(h.cache_read_input_tokens=f),g>0&&(h.cache_creation_input_tokens=g),h}T(f.h.OPENAI,f.h.CLAUDE,null,function(a,b){if(!a){if(!b.messageStartSent||b.claudeFinishHandled)return null;b.claudeFinishHandled=!0;let a=[];K(b,a),L(b,a),M(b,a);let c=b.usage?.input_tokens!=null?b.usage:b.usage?.prompt_tokens!=null?N(b.usage):{input_tokens:0,output_tokens:0},d=b.toolCalls.size>0?"tool_use":"end_turn";return a.push({type:"message_delta",delta:{stop_reason:d},usage:c}),a.push({type:"message_stop"}),a}if(!a.choices?.[0])return null;let c=[],d=a.choices[0],e=d.delta;a.usage&&"object"==typeof a.usage&&(b.usage=N(a.usage)),b.messageStartSent||(b.messageStartSent=!0,b.messageId=a.id?.replace("chatcmpl-","")||`msg_${Date.now()}`,(!b.messageId||"chat"===b.messageId||b.messageId.length<8)&&(b.messageId=a.extend_fields?.requestId||a.extend_fields?.traceId||`msg_${Date.now()}`),b.model=b.model||a.model||j.rP,b.nextBlockIndex=0,c.push({type:"message_start",message:{id:b.messageId,type:"message",role:j.z7.ASSISTANT,model:b.model,content:[],stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0}}}));let f=(0,I.V)(e);if(f&&(L(b,c),b.thinkingBlockStarted||(b.thinkingBlockIndex=b.nextBlockIndex++,b.thinkingBlockStarted=!0,c.push({type:"content_block_start",index:b.thinkingBlockIndex,content_block:{type:j.R4.THINKING,thinking:""}})),c.push({type:"content_block_delta",index:b.thinkingBlockIndex,delta:{type:"thinking_delta",thinking:f}})),e?.content&&(K(b,c),b.textBlockStarted||(b.textBlockIndex=b.nextBlockIndex++,b.textBlockStarted=!0,b.textBlockClosed=!1,c.push({type:"content_block_start",index:b.textBlockIndex,content_block:{type:j.R4.TEXT,text:""}})),c.push({type:"content_block_delta",index:b.textBlockIndex,delta:{type:"text_delta",text:e.content}})),e?.tool_calls)for(let a of e.tool_calls){let d=a.index??0;if(a.id&&!b.toolCalls.has(d)){K(b,c),L(b,c);let e=b.nextBlockIndex++;b.toolCalls.set(d,{id:a.id,name:a.function?.name||"",blockIndex:e});let f=a.function?.name||"";f.startsWith(J)&&(f=f.slice(J.length)),c.push({type:"content_block_start",index:e,content_block:{type:j.R4.TOOL_USE,id:a.id,name:f,input:{}}})}a.function?.arguments&&b.toolCalls.get(d)&&(b.toolArgBuffers||(b.toolArgBuffers=new Map),b.toolArgBuffers.set(d,(b.toolArgBuffers.get(d)||"")+a.function.arguments))}if(d.finish_reason&&!b.claudeFinishHandled){if(b.claudeFinishHandled=!0,b.claudeTerminalEmitted)return c.length>0?c:null;if(b.claudeTerminalEmitted=!0,K(b,c),L(b,c),M(b,c),b.finishReason=d.finish_reason,d.finish_reason===j.bC.ERROR){let a=b.upstreamError?.message||"Upstream aborted the response (malformed function call or empty candidate)";c.push({type:"error",error:{type:"api_error",message:a}})}else{let a,e=b.usage||{input_tokens:0,output_tokens:0};c.push({type:"message_delta",delta:{stop_reason:(a=d.finish_reason,(0,H.Q)(a,"claude"))},usage:e}),c.push({type:"message_stop"})}}return c.length>0?c:null}),c(45136),T(f.h.OPENAI,f.h.ANTIGRAVITY,null,function(a,b){if(!a)return null;let c=a.choices?.[0];if(!c)return a.usage&&(b._usage=a.usage),null;let d=c.delta||{},e=c.finish_reason;b._toolCallAccum||(b._toolCallAccum={}),b._responseId||(b._responseId=a.id||`resp_${Date.now()}`),b._modelVersion||(b._modelVersion=a.model||"");let f=[];if(d.reasoning_content&&f.push({thought:!0,text:d.reasoning_content}),d.content&&f.push({text:d.content}),d.tool_calls){for(let a of d.tool_calls){let c=a.index??0;b._toolCallAccum[c]||(b._toolCallAccum[c]={id:"",name:"",arguments:""});let d=b._toolCallAccum[c];a.id&&(d.id=a.id),a.function?.name&&(d.name+=a.function.name),a.function?.arguments&&(d.arguments+=a.function.arguments)}if(0===f.length&&!e)return null}if(e)for(let a of Object.keys(b._toolCallAccum)){let c=b._toolCallAccum[a],d={};try{d=JSON.parse(c.arguments)}catch{}let e=b.toolNameMap?.get(c.name)||c.name;f.push({functionCall:{name:e,args:d}})}if(0===f.length&&!e)return null;0===f.length&&e&&f.push({text:""});let g={content:{role:j.RV.MODEL,parts:f}};e&&(g.finishReason=({[j.bC.STOP]:j.a_.STOP,[j.bC.LENGTH]:j.a_.MAX_TOKENS,[j.bC.TOOL_CALLS]:j.a_.STOP,[j.bC.CONTENT_FILTER]:j.a_.SAFETY})[e]||j.a_.STOP);let h={candidates:[g],modelVersion:b._modelVersion,responseId:b._responseId},i=a.usage||b._usage;return i&&(h.usageMetadata={promptTokenCount:i.prompt_tokens||0,candidatesTokenCount:i.completion_tokens||0,totalTokenCount:i.total_tokens||0},i.completion_tokens_details?.reasoning_tokens&&(h.usageMetadata.thoughtsTokenCount=i.completion_tokens_details.reasoning_tokens),i.prompt_tokens_details?.cached_tokens&&(h.usageMetadata.cachedContentTokenCount=i.prompt_tokens_details.cached_tokens)),{response:h}}),c(86711);var O=c(47945),P=c(39423);function Q(a){return{id:a.responseId,created:a.created,model:a.model||"kiro"}}function R(a,b){a.thinkingBlockStarted&&(b.push({type:"content_block_stop",index:a.thinkingBlockIndex}),a.thinkingBlockStarted=!1)}function S(a,b){a.textBlockStarted&&!a.textBlockClosed&&(a.textBlockClosed=!0,b.push({type:"content_block_stop",index:a.textBlockIndex}),a.textBlockStarted=!1)}function T(a,b,c,f){d??=new Map,e??=new Map;let g=`${a}:${b}`;c&&d.set(g,c),f&&e.set(g,f)}T(f.h.KIRO,f.h.OPENAI,null,function(a,b){if(!a)return null;if("chat.completion.chunk"===a.object&&a.choices)return a;let c=a;if("string"==typeof a){let b=a.split("\n"),d="",e="";for(let a of b)a.startsWith("event:")?d=a.slice(6).trim():a.startsWith(":event-type:")?d=a.slice(12).trim():a.startsWith("data:")?e=a.slice(5).trim():a.startsWith(":content-type:")||a.trim()&&!a.startsWith(":")&&(e=a.trim());if(!e)return null;try{(c=JSON.parse(e))._eventType=d}catch{c={text:e,_eventType:d}}}b.responseId||(b.responseId=`chatcmpl-${Date.now()}`,b.created=Math.floor(Date.now()/1e3),b.chunkIndex=0);let d=c._eventType||c.event||"";if("assistantResponseEvent"===d||c.assistantResponseEvent){let a=c.assistantResponseEvent?.content||c.content||"";if(!a)return null;let d=(0,O.k)(Q(b),{...0===b.chunkIndex?{role:j.z7.ASSISTANT}:{},content:a},null);return b.chunkIndex++,d}if("reasoningContentEvent"===d||c.reasoningContentEvent){let a=c.reasoningContentEvent||c,d="string"==typeof a?a:a.text||a.content||c.content||"";if(!d)return null;let e=(0,O.k)(Q(b),(0,I.B)(d,0===b.chunkIndex),null);return b.chunkIndex++,e}if("toolUseEvent"===d||c.toolUseEvent){b.hadToolUse=!0;let a=c.toolUseEvent||c,d=a.toolUseId||(0,g.eG)(),e=a.name||"",f=a.input||{},h=(0,O.k)(Q(b),{...0===b.chunkIndex?{role:j.z7.ASSISTANT}:{},tool_calls:[{index:0,id:d,type:j.x4.FUNCTION,function:{name:e,arguments:JSON.stringify(f)}}]},null);return b.chunkIndex++,h}if("messageStopEvent"===d||"done"===d||c.messageStopEvent){let a=(0,H.F)(b.hadToolUse?"tool_use":"stop","kiro");b.finishReason=a;let c=(0,O.k)(Q(b),{},a);return b.usage&&"object"==typeof b.usage&&(c.usage=b.usage),c}if("usageEvent"===d||c.usageEvent){let a=(0,P.B6)(c.usageEvent||c,"kiro");a&&(b.usage=a)}return null}),T(f.h.CURSOR,f.h.OPENAI,null,function(a,b){return a?("chat.completion.chunk"===a.object&&a.choices||"chat.completion"===a.object&&a.choices,a):null}),c(68057),c(9537);function U(a,b,c,e,o=!0,p=null,q=null,r=null,s=[],t=null,u=null){let v=e;!function(a,b=[]){if(!b.length||!a.messages||!Array.isArray(a.messages))return;let c=new Set(["image_url","image"]),d=new Set(["audio_url","input_audio"]),e=a=>c.has(a)?b.includes("image"):!!d.has(a)&&b.includes("audio");for(let b of a.messages)Array.isArray(b.content)&&(b.content=b.content.filter(a=>!e(a.type)),0===b.content.length&&(b.content=""))}(v,s),(0,k.SZ)(v),(0,g.fH)(v),b!==f.h.KIRO&&(0,g.SF)(v);let w=(0,l.NU)(v),x=(0,m.YC)(v,p,t,b);if(p&&(p._clientSessionId=x),a!==b){let e=d.get(`${a}:${b}`);if(e)v=e(c,v,o,p);else{if(a!==f.h.OPENAI){let b=d.get(`${a}:${f.h.OPENAI}`);b&&(v=b(c,v,o,p),r?.logOpenAIRequest?.(v))}if(b!==f.h.OPENAI){let a=d.get(`${f.h.OPENAI}:${b}`);a&&(v=a(c,v,o,p))}}}if((b!==f.h.KIRO||a!==f.h.OPENAI&&a!==f.h.CLAUDE)&&(0,l.z)(b,c,v,q,w),b===f.h.OPENAI&&(v=function(a,b={}){if(!a.messages||!Array.isArray(a.messages))return a;let c=!!b.preserveCacheControl;function d(a){let{signature:b,cache_control:d,...e}=a;return c&&d?{...e,cache_control:d}:e}if(a.messages=a.messages.map(a=>{if(a.role===j.z7.DEVELOPER&&(a={...a,role:j.z7.SYSTEM}),a.role===j.z7.TOOL||a.role===j.z7.ASSISTANT&&a.tool_calls?.length||"string"==typeof a.content)return a;if(Array.isArray(a.content)){let b=[];for(let c of a.content)if(c.type!==j.R4.THINKING&&c.type!==j.R4.REDACTED_THINKING)if(j.m8.includes(c.type))b.push(d(c));else{if(c.type===j.R4.TOOL_USE)continue;c.type===j.R4.TOOL_RESULT&&b.push(d(c))}0===b.length&&b.push({type:j.x4.TEXT,text:""});let c=b.every(a=>a.type===j.x4.TEXT),e=b.some(a=>a.cache_control),f=c&&!e?b.map(a=>a.text).join("\n"):b;return{...a,content:f}}return a}),a.messages=a.messages.filter(a=>!!(a.role===j.z7.TOOL||a.role===j.z7.ASSISTANT&&a.tool_calls?.length)||("string"==typeof a.content?""!==a.content.trim():!Array.isArray(a.content)||a.content.some(a=>a.type===j.x4.TEXT&&a.text?.trim()||a.type!==j.x4.TEXT))),a.tools&&Array.isArray(a.tools)&&0===a.tools.length&&delete a.tools,a.tools&&Array.isArray(a.tools)&&a.tools.length>0&&(a.tools=a.tools.map(a=>a.type===j.x4.FUNCTION&&a.function?a:a.name&&(a.input_schema||a.description)?{type:j.x4.FUNCTION,function:{name:a.name,description:String(a.description||""),parameters:a.input_schema||{type:"object",properties:{}}}}:a.functionDeclarations&&Array.isArray(a.functionDeclarations)?a.functionDeclarations.map(a=>({type:j.x4.FUNCTION,function:{name:a.name,description:String(a.description||""),parameters:a.parameters||{type:"object",properties:{}}}})):a).flat()),a.tool_choice&&"object"==typeof a.tool_choice){let b=a.tool_choice;"auto"===b.type?a.tool_choice="auto":"any"===b.type?a.tool_choice="required":"tool"===b.type&&b.name&&(a.tool_choice={type:j.x4.FUNCTION,function:{name:b.name}})}return a}(v,{preserveCacheControl:!!n.xq[q]?.quirks?.preserveCacheControl})),b===f.h.CLAUDE){let a=p?.accessToken||p?.apiKey||null;v=(0,h.Bz)(v,q,a,t,p?.rawHeaders,x)}if(n.xq[q]?.quirks?.cloakToolsOnOAuth){let a=p?.accessToken||p?.apiKey||null;if(a?.includes("sk-ant-oat")){let{body:a,toolNameMap:b}=(0,i.Az)(v);v=a,b?.size>0&&(v._toolNameMap=b)}}return v}function V(a,b,c,d){if(b===a){let a=(0,i.F5)(c,d?.toolNameMap);return null!=a?[a]:[]}let g=[c],h=null,j=e.get(`${a}:${b}`);if(j){let a=j(c,d);return a?Array.isArray(a)?a:[a]:[]}if(a!==f.h.OPENAI){let b=e.get(`${a}:${f.h.OPENAI}`);if(b){g=[];let a=b(c,d);a&&(h=g=Array.isArray(a)?a:[a])}}if(b!==f.h.OPENAI){let a=e.get(`${f.h.OPENAI}:${b}`);if(a){let b=[];for(let c of g){let e=a(c,d);e&&b.push(...Array.isArray(e)?e:[e])}g=b}}return h&&b!==f.h.OPENAI&&a!==f.h.OPENAI&&(g._openaiIntermediate=h),g}function W(a,b){return a!==b}function X(a){let b={messageId:null,model:null,textBlockStarted:!1,thinkingBlockStarted:!1,inThinkingBlock:!1,currentBlockIndex:null,toolCalls:new Map,finishReason:null,finishReasonSent:!1,usage:null,contentBlockIndex:-1};return a===f.h.OPENAI_RESPONSES?{...b,seq:0,nextOutputIndex:0,responseId:`resp_${Date.now()}`,created:Math.floor(Date.now()/1e3),started:!1,msgTextBuf:{},msgItemAdded:{},msgContentAdded:{},msgItemDone:{},msgOutputIndexes:{},reasoningId:"",reasoningIndex:-1,reasoningBuf:"",reasoningPartAdded:!1,reasoningDone:!1,inThinking:!1,funcArgsBuf:{},funcNames:{},funcCallIds:{},funcArgsDone:{},funcItemDone:{},funcOutputIndexes:{},completedSent:!1}:b}function Y(){}T(f.h.KIRO,f.h.CLAUDE,null,function(a,b){let c=a;if("string"==typeof a){let b=a.trim();if(!b||"[DONE]"===b)return null;try{c=JSON.parse(b.startsWith("data:")?b.slice(5).trim():b)}catch{return null}}if(!c||!c.choices?.[0])return null;let d=[],e=c.choices[0],f=e.delta||{};if(c.usage&&"object"==typeof c.usage){b.usage={input_tokens:"number"==typeof c.usage.prompt_tokens?c.usage.prompt_tokens:0,output_tokens:"number"==typeof c.usage.completion_tokens?c.usage.completion_tokens:0};let a=c.usage.cache_read_input_tokens??c.usage.prompt_tokens_details?.cached_tokens,d=c.usage.cache_creation_input_tokens??c.usage.prompt_tokens_details?.cache_creation_tokens;"number"==typeof a&&(b.usage.cache_read_input_tokens=a),"number"==typeof d&&(b.usage.cache_creation_input_tokens=d)}b.messageStartSent||(b.messageStartSent=!0,b.messageId="string"==typeof c.id&&c.id.replace("chatcmpl-","")||`msg_${Date.now()}`,b.model=c.model||"kiro",b.nextBlockIndex=0,d.push({type:"message_start",message:{id:b.messageId,type:"message",role:"assistant",model:b.model,content:[],stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0}}}));let g=f.reasoning_content||f.reasoning;if(g&&(S(b,d),b.thinkingBlockStarted||(b.thinkingBlockIndex=b.nextBlockIndex++,b.thinkingBlockStarted=!0,d.push({type:"content_block_start",index:b.thinkingBlockIndex,content_block:{type:"thinking",thinking:""}})),d.push({type:"content_block_delta",index:b.thinkingBlockIndex,delta:{type:"thinking_delta",thinking:g}})),f.content&&(R(b,d),b.textBlockStarted||(b.textBlockIndex=b.nextBlockIndex++,b.textBlockStarted=!0,b.textBlockClosed=!1,d.push({type:"content_block_start",index:b.textBlockIndex,content_block:{type:"text",text:""}})),d.push({type:"content_block_delta",index:b.textBlockIndex,delta:{type:"text_delta",text:f.content}})),f.tool_calls)for(let a of(b.toolCalls||(b.toolCalls=new Map),b.toolArgBuffers||(b.toolArgBuffers=new Map),f.tool_calls)){let c=a.index??0;if(a.id){R(b,d),S(b,d);let e=b.nextBlockIndex++;b.toolCalls.set(c,{id:a.id,name:a.function?.name||"",blockIndex:e}),d.push({type:"content_block_start",index:e,content_block:{type:"tool_use",id:a.id,name:a.function?.name||"",input:{}}})}a.function?.arguments&&b.toolCalls.get(c)&&b.toolArgBuffers.set(c,(b.toolArgBuffers.get(c)||"")+a.function.arguments)}if(e.finish_reason){if(R(b,d),S(b,d),b.toolCalls)for(let[a,c]of b.toolCalls){let e=b.toolArgBuffers?.get(a);e&&d.push({type:"content_block_delta",index:c.blockIndex,delta:{type:"input_json_delta",partial_json:e}}),d.push({type:"content_block_stop",index:c.blockIndex})}b.finishReason=e.finish_reason;let a=b.usage||{input_tokens:0,output_tokens:0};d.push({type:"message_delta",delta:{stop_reason:function(a){switch(a){case"stop":default:return"end_turn";case"length":return"max_tokens";case"tool_calls":return"tool_use"}}(e.finish_reason)},usage:a}),d.push({type:"message_stop"})}return d.length>0?d:null})},3771:(a,b,c)=>{c.d(b,{l:()=>k});var d=c(2547),e=c(19956),f=c(55511),g=c(18226),h=c(94454),i=c(60290);function j(a){if(null==a)return"";if("string"==typeof a)return a;if(Array.isArray(a)){let b=[];for(let c of a)"string"==typeof c?b.push(c):c&&"object"==typeof c&&"string"==typeof c.text&&b.push(c.text);return b.join("\n")}return String(a)}function k(a,b,c){let{messages:d,system:e}=function(a=[]){let b=[],c=[];for(let d of a){if(!d)continue;let a=d.role;if(a===g.z7.SYSTEM){let a=j(d.content);a&&c.push(a);continue}if(a===g.z7.TOOL){let a="string"==typeof d.content?d.content:j(d.content);b.push({role:g.z7.TOOL,content:[{type:"tool-result",toolCallId:d.tool_call_id||"",toolName:d.name||"",output:{type:"text",value:a}}]});continue}if(a===g.z7.ASSISTANT){let a=[],c=j(d.content);if(d.reasoning_content&&a.push({type:"reasoning",text:d.reasoning_content}),c&&a.push({type:g.x4.TEXT,text:c}),Array.isArray(d.tool_calls))for(let b of d.tool_calls){let c=b.function||{};a.push({type:"tool-call",toolCallId:b.id||"",toolName:c.name||"",input:function(a){if(null==a)return{};if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return{}}}(c.arguments)})}b.push({role:g.z7.ASSISTANT,content:a.length?a:[{type:g.x4.TEXT,text:""}]});continue}b.push({role:g.z7.USER,content:function(a){if(null==a)return[{type:g.x4.TEXT,text:""}];if("string"==typeof a)return[{type:g.x4.TEXT,text:a}];if(Array.isArray(a)){let b=[];for(let c of a)if("string"==typeof c)b.push({type:g.x4.TEXT,text:c});else if(c&&"object"==typeof c)if(c.type===g.x4.TEXT&&"string"==typeof c.text)b.push({type:g.x4.TEXT,text:c.text});else if(c.type===g.x4.IMAGE_URL||c.type===g.x4.IMAGE){let a="string"==typeof c.image_url?c.image_url:c.image_url?.url||c.image||c.url;a&&b.push({type:"image",image:a})}else"string"==typeof c.text&&b.push({type:g.x4.TEXT,text:c.text});return b.length?b:[{type:g.x4.TEXT,text:""}]}return[{type:g.x4.TEXT,text:String(a)}]}(d.content)})}return{messages:b,system:c.join("\n\n")}}(b.messages),k={model:(0,h.kD)(a),messages:d,stream:!1!==c,max_tokens:b.max_tokens??b.max_output_tokens??i.Uc,temperature:b.temperature??.3};e&&(k.system=e);let l=function(a){if(!Array.isArray(a)||0===a.length)return;let b=[];for(let c of a)c&&(c.type===g.x4.FUNCTION&&c.function?b.push({name:c.function.name,description:c.function.description,input_schema:c.function.parameters||{type:"object"}}):c.name&&(c.input_schema||c.parameters)&&b.push({name:c.name,description:c.description,input_schema:c.input_schema||c.parameters}));return b.length?b:void 0}(b.tools);l&&(k.tools=l),null!=b.top_p&&(k.top_p=b.top_p);let m=new Date().toISOString().slice(0,10);return{threadId:(0,f.randomUUID)(),memory:"",config:{workingDir:process.cwd(),date:m,environment:process.platform,structure:[],isGitRepo:!1,currentBranch:"",mainBranch:"",gitStatus:"",recentCommits:[]},params:k}}(0,d.kz)(e.h.OPENAI,e.h.COMMANDCODE,k,null)},6499:(a,b,c)=>{c.d(b,{$G:()=>g,bf:()=>e,n6:()=>f,xr:()=>d});let d="EpwGCkYIChgCKkCzVUuRrg7CcglSUWEef4rH6o35g9UYS8ZPe0/VomQTBsFx6sttYNj5l8GqgW6ejuHyYqpFToxIbZl0bw17l5dJEgzCnqDO0Z8fRlMrNgsaDLS1cnCjC53KBqE0CCIwAADQdo1eO+7qPAmo8J4WR3JPmr92S97kmvr5K1iPMiOpkZNj8mEXW8uzBoOJs/9ZKoMFiqHJ3UObwaJDqFOW70E9oCwDoc6jesaWVAEdN5vWfKMpIkjFJjECdjIdkxyJNJ8Ib8yXVal3qwE7uThoPRqSZDdHB5mmwPEjWE/90cSYCbtX2YsJki1265CabBb8/QEkODXg4kgRrL+c8e8rRXz/dr1RswvaPuzEdGKHRNi9UooNUeOK4/ebx1KkP9YZttyohN9GWqlts36kOoW0Cfie/ABDgF9g534BPth/sstxDM6d79QlRmh6NxizyTF74DXJI34u0M4tTRchqE5pAq85SgdJaa+dix1yJPMji8m6nZkwJbscJb9rdc2MKyKWjz8QL2+rTSSuZ2F1k1qSsW0xNcI7qLcI12Vncfn/VqY6YOIZy/saZBR0ezXvN6g+UYbuIdyVg7AyIFZt3nbrO7/kmOEb2VKzygwklHGEIJHfFgMpH3JSrAzbZIowVHOF7VaJ+KXRFDCFin7hHTOiOsdg+1ij1mML9Z/x/9CP4b7OUcaQm1llDZPSHc6rZMNL3DdB+fW5YfmNgKU35S+7AMtA10nVILzDAk1UV4T2K9Do09JlI6rjOs9UuULlIN2Z0eE8YTlANR6uQcw7lMcdfqYE8tke4rDKc2dDiaS5vVe45VewICNpdXGN11yw8QqH7p27CR1HtN30e0tHXOR3bIwWk/Yb6O5fTaKG6Ri8e5ZCPvdD9HqepVi188nM0iTjJqL58F3ni04ECIhcbyaQWnuTes1Kw4CMwiZDLQkk8Hgz7HkUOf1btQTF/0nhD7ry0n0hAEg2PaDM3V6TjOjf4hEldRmeqERcQF1PfgKb6ZM12rlIIfUqKACczWJSzTV158+47HX36o0cgux6nFlv/DE+sEiRVxgB",e="EuwGCukGAXLI2nxwZIq54WWSoL/YN0P3TsDZ7zRnLi8g0S4aVr2HUGxvaHKySuY6HAVzcE0GPGjXrytLIldxthSvfxgUlJh6Qa9Z+Oj5QZBlYdg6HaJ6yuY5R7waE6rdwBsRf7Ft2j3DJ9rMi9qhWFqApewYtPhls3VHtuvND3l8Rm09+lbAXQs6KKWEWrxNLKTBkfpMgXhRERc/TQRMZu1twAablm6/Zk1tsYRvfWKLsNbeKF+CCojJdXJKvnR/8Ouuoa+Y2Ti20hcW7aZIIjZDFYPU//k6Ybmhg69J/imbFai2ckhfLaisqdDkdoIiBJScTOUvYqP6AE9d4MsydSC+UlhIMk4hoP76R8vUSCZRMkjOaDXstf/QoVZKbt94wyRZgAJ1G0BqI8L5ow86kLpA4wJEtxsRGymOE4bKUvApveBakYDNM9APkf+LbtbzWSseGjoZcSlycF9iN8Q2XNYKRrHbv3Lr5Y8JjdH/5y/6SHkNehTEZugaeGnSPSyCTWto1kQgHpxdWmhkLfJGNUGLmue7Mesj4TSms4J33mRpYVhNB/J333FCqIP0hr/E7BkkjEn7yZ4X7SQlh+xKPurapsnHRwiKmtsilmEFrnTE9iQr+pMr6M29qqFNv1tr5yumbaJw8JW9sB15tNsRv+dW6BjNanbsKz7HCgKUBc8tGy+7YuhXzAfViyRefcjK7eZW0Fbyt7AbybJTKz78W8NH7ye6LAwzOebXpeZ4D43fNIt8bKh26qgduSQv/7o+pAflkuqHZ99YWgHQ8h8OkZFi3eOiSYjsjhdZ/czWOdoPI/OnqIldzMPF5YlrKBLFX8VhRKVmqgsmWf5PHGulHhMkVlS+XG2UIseGy69ARa93D78Gsa+1n1kJr7EEB7Rh+27vUMxVYLdz1yMSvE5nalTAlg/ZeG8+XQ0cHuAI3KbQpHW2Q++RdXfm5JzD5WdJZUU+Zn8t8UUn85BH4RxZLeE0qJikgSsKoYVBc6YhiMjhPgkR95ReimY4Z0xCJdRo1gjexOFeODZMpQF6Yxnoic7IrdgsFA3iePTbFnPp3IAM1fAThWhXJUn3QInUOTd5o1qmTmn6REbL15g/JQNl+dqUoPkhleeb2V3kjqp1okmO3wMZbPknR3S1LZNmlS72/iBQUm+n2b/RCn4PjmM2",f="CloBjz1rX5+yg1ILh/Ag+suum5k1f/9m/hI0XDQ33lsQIYnOHLn9KZwN0C7E4jgep5MzZvz5Se1Z1xxYrA1+Iz0Il4tabBhaDfMKNa5dGdEA3KnikfjfIpMlPaAKaQGPPWtf2hodPdBgguiZqDn+Qz2LwGEqHVJ16LVBUpeSx7UnYBLSwio8cyNy0jPijOh5QXKLTeHVdO2tKKcCCrtG2JCW3dOSrW2qA8eyAg40iQUnMNECjbcjkqB1+zrab7jX9ILwg7L9OgqYAQGPPWtfT4nzaPzSkXePAa920abYxPs3fg/RHDlg8PUVFLa+ko6qOjt7nXJTMxN0cpCwUCFX7eHHcMnA6vApyA/rXvJiAABkHZ3HilAktXRtxr/thHU0H8/4H5gT3kzoQcq9aMznrKomd3ct0mFi0ioSKnOEfoY1Mrfj00p/ZWm0tT7Wrjcm3BQXZ+T9Vrb94k+6CjtcEBrGCq8BAY89a1/vTMczqwB1NP3HCCuBdnds2vDXkj6XAYaXjsjmik8tGqwMKHz8R9RAWsx6SO6pkGEpXXpRzAaUx6c+aofsL/z1xOcN7ArCAa6uEeQKEgNngZuCP05p4+9P95epVmgOjFa4KfsPnyg+NKUkEFmpPSDrIRyMT+xERlclVcCI98/u7i8a9+vTbgzl8TRFYryClNH37K1ye5i6kqSGDUcMyiEasjke5BxbUh3i6wqMAgGPPWtfk+A+iY38QAldu117FEkTIkzbYOIt67lk9c6Ou3Y3Ct8TFHFw5QwGfSFc0YWjeTFHdm9UdV5jPK35p6VfhiRSva3w2+JLIHb4jvv5HutZPOJ3yQTt/+hUDj80oMNMbwnxNZvCEdzKS+D9vwmTACAm5H0ZetBSH2gPJXnhhuQo9AegS3wIWVR2a5k643Vx9r4u4pOvij4476lxKswIHvqsjL4jnTzRCvd44G6dn7vD0ENGb1K/i+dMRQMcOBaOxPN0ynk9bKxXWRDbZ+Rhakfr+y74z+6eYCdRPVqO9I7s+riilFuRIfaQ+U6/vuVKGIWEVKCfZZi0z6H5Xgz1xmse0u0AsittDlIKxwEBjz1rX783A0vehvUeabRia+/pX46IsN5efTAxFEBUeUce3jLuXIghkMV2b8KNhUs2G0aZldDDewRQbkluQabBMDT82N5I7reJP0VZgLIKccCL5DoGv1J7YWM2npLMIgZ6aP8aSlT3PFFJ0IXbUZUrzduczmIm6nzAJf9zxmq1aIFYw8YrgW8RjUdy0UvUmRoBEShSGUrvsyaRTl7J//KJW5utIPunFMu53GPWLidCFHzM1QA3Cj1+4zv5UXajP/V92RQayWbzCvYBAY89a1+yzoVSWukUGH7kX71Tg9dx7HA7OyKYwnYaqekG98zJfcUM/3KoiiiotW5t4xYu//ksEl36bSWvUHsRnxGByg+3WYdnZqKg0AtdRB/EXbI5PsjvS5ko96bkjSuFkY3TjHGwAM2B94K6/t6OTE/NBbxCsY9sT4d+1sbFv/iyfmfCnfvJaSzGmC9CDWKy4iqQ/vBNWps9j1JXk0p5uPAYC2BaMkxl5xoTVZqI3zAuRtQF5JLmPPy+PdqOgFxMKcLGNhwp7dbhIFLF68vCYQ9CL0NnK2d3CFk1UFVYxsi1TsolR1xahe/Rxt5HZDz/z65nevrQ",g="CiQBjz1rX/AlslZWMe5RgBt4Tv9j4+YNZTTez+JH2/+5oAlICygKXgGPPWtf7/Sux9eLYap/bmYAdPqFThLXj+l7o0DLu/hdgU98MA9ZrlRDNHXx+T0tuY8AcnjPZbiDyOq2bE11Fjhsk6p5axqayaapC/Pt9GczcgIQf1z15WTxCeKWAPYKYQGPPWtfDYj0nlNFNoTlU39RC91Z16xFKJ2MLEmkm+NvimsoOJ6be3g2BssNPtJ/9BKDXRA5cVs17tBeeW72lH8TMB5999udtxHM2SiUsnWsrHlfVuGSCpNQQ+5REw8HNvEKkgEBjz1rXzBNWrqZGbjun55K+vgYPBhJO2qZ67uRWXUA5/qcU12U/mbi5XoA3swoxYE8LEXfZvFFC9WG/W28QNCA0Qd4Trk/WkWiAwZmB8a84Fs14rkv3wqyxwFavPkJorqurAfd2XzGiFy0sB0ITCOPYi1HzDGV5WfXk6b9k+jT66/RuzGa8EcSOWo/QtC3Bkhgowo4AY89a1/f/tw8A02zjIoK7JVDAbf8W4UfmbApJJhwXIiGtu1M0JItObx7g2reYqT+HHL2Q/R4VDc="},7259:(a,b,c)=>{c.d(b,{M:()=>e});var d=c(60290);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}},7274:(a,b,c)=>{c.d(b,{c:()=>w});var d=c(55511),e=c(85187),f=c(4630),g=c(28730),h=c(60290),i=c(91576),j=c(89843),k=c(9562),l=c(48644),m=c(6499);let n=/^agent\/[^/]+\/\d+\/[^/]+\/\d+$/,o=[/high\s+traffic/i,/agent\s+(execution\s+)?terminated\s+due\s+to\s+error/i,/capacity/i,/temporarily\s+unavailable/i,/timeout/i,/stream\s+(ended|closed|terminated|interrupted)/i,/empty\s+response/i],p=new Set([h.gx.SERVER_ERROR,h.gx.BAD_GATEWAY,h.gx.SERVICE_UNAVAILABLE,h.gx.GATEWAY_TIMEOUT]),q=["output_config","thinking","reasoning_effort","reasoning","enable_thinking","thinking_budget","thinkingConfig"],r=a=>{for(let b of q)delete a[b]},s=[/image/i,/imagen/i,/image-generation/i];function t(a){return!!a&&s.some(b=>b.test(a))}function u(a){let b=d.createHash("sha256").update(String(a||"antigravity")).digest().subarray(0,16);b[6]=15&b[6]|80,b[8]=63&b[8]|128;let c=b.toString("hex");return`${c.slice(0,8)}-${c.slice(8,12)}-${c.slice(12,16)}-${c.slice(16,20)}-${c.slice(20)}`}function v({body:a,request:b,credentials:c,model:d,requestType:e}){if(n.test(a?.requestId||""))return a.requestId;let f=b?.sessionId||a?.request?.sessionId||c?._clientSessionId||c?.connectionId||c?.email||"anonymous",g=u(`antigravity:conversation:${f}`),h=u(`antigravity:trajectory:${f}:${d}:${e}`),i=Math.max(1,2*(Array.isArray(b?.contents)?b.contents.length:1)-1);return`agent/${g}/${Date.now()}/${h}/${i}`}class w extends e.H{constructor(){super("antigravity",f.xq.antigravity)}buildUrl(a,b,c=0){let d=this.getBaseUrls(),e=d[c]||d[0],f=t(a);return`${e}/v1internal:${b&&!f?"streamGenerateContent?alt=sse":"generateContent"}`}parseError(a,b){if(429===a.status&&b){let{resetsAtMs:a}=(0,k.k)(b),c=b;try{c=JSON.parse(b)?.error?.message||b}catch{}let d=a;if(!d){let a=this.parseRetryFromErrorMessage(c);a&&(d=Date.now()+a)}if(d)return{status:429,message:c,resetsAtMs:d}}return super.parseError(a,b)}buildHeaders(a,b=!0,c=null){return{"Content-Type":"application/json",Authorization:`Bearer ${a.accessToken}`,"User-Agent":this.config.headers?.["User-Agent"]||g.K["User-Agent"]}}transformRequest(a,b,c,d){let e=d?.projectId||this.generateProjectId();if(!0!==c&&delete b.stream_options,t(a)){let c=function(a){let b={aspectRatio:"1:1"},c=a.match(/(\d+)x(\d+)$/);if(c){let a=parseInt(c[1]),d=parseInt(c[2]);if(a<=16&&d<=16)b.aspectRatio=`${a}:${d}`;else{let c=(a,b)=>b?c(b,a%b):a,e=c(a,d);b.aspectRatio=`${a/e}:${d/e}`}}return b}(a),f=a.replace(/-(\d+)x(\d+)$/,""),g=[];for(let a of b.request?.contents||b.contents||[]){let b=(a.parts||[]).filter(a=>a?.text!==void 0||a?.inlineData?.data&&a?.inlineData?.mimeType||a?.fileData?.fileUri&&a?.fileData?.mimeType);b.length>0&&g.push({role:a.role||"user",parts:b})}let h=(0,i.oV)({headers:d?.rawHeaders,body:b,connectionId:d?.email||d?.connectionId,scope:"antigravity"});this._lastSessionId=h;let j={contents:g,generationConfig:{temperature:1,topP:.95,topK:40,maxOutputTokens:8192,responseModalities:["TEXT","IMAGE"],imageConfig:c},sessionId:h};return{project:e,model:f,userAgent:"antigravity",requestType:"image_gen",requestId:v({body:b,request:j,credentials:d,model:f,requestType:"image_gen"}),request:j}}let f=function(a){let b=[];for(let c of a||[]){if(!c?.role||!Array.isArray(c.parts)||0===c.parts.length)continue;let a=b.at(-1);a?.role===c.role?a.parts.push(...c.parts):b.push({...c,parts:[...c.parts]})}return b}(b.request?.contents?.map(a=>{let b=a.role;a.parts?.some(a=>a.functionResponse)&&(b="user");let c=a.parts?.filter(a=>(!a.thought||!!a.functionCall)&&(!a.thoughtSignature||!!a.functionCall||!!a.text)),d=c?.some(a=>a.functionCall&&!a.thoughtSignature)??!1;return b!==a.role||c?.length!==a.parts?.length||d?{...a,role:b,parts:d?c.map(a=>a.functionCall&&!a.thoughtSignature?{...a,thoughtSignature:m.bf}:a):c}:a}).filter(a=>a.parts&&a.parts.length>0)),h=b.request?.tools;if(h&&h.length>0){let a=new Set,b=[];for(let c of h)for(let d of c.functionDeclarations||[]){let c=function(a){if(!a)return"_unknown";let b=a.replace(/[^a-zA-Z0-9_.:\-]/g,"_");return/^[a-zA-Z_]/.test(b)||(b="_"+b),b.substring(0,64)}(d.name);a.has(c)||(a.add(c),b.push({...d,name:c,parameters:d.parameters?(0,l.Yr)(structuredClone(d.parameters)):{type:"object",properties:{reason:{type:"string",description:"Brief explanation"}},required:["reason"]}}))}h=b.length>0?[{functionDeclarations:b}]:[]}let{tools:j,toolConfig:k,...n}=b.request||{};if(r(n),n.systemInstruction?.parts){for(let a of n.systemInstruction.parts)if("string"==typeof a.text)for(let{from:b,to:c}of g.iO)a.text=a.text.replaceAll(b,c)}let o={...n.generationConfig||{}};o.maxOutputTokens>64e3&&(o.maxOutputTokens=64e3);let p={...n,generationConfig:o,...f&&{contents:f},...h&&{tools:h},sessionId:b.request?.sessionId||(0,i.oV)({headers:d?.rawHeaders,body:b,connectionId:d?.email||d?.connectionId,scope:"antigravity"}),safetySettings:void 0,...h?.length>0&&{toolConfig:{functionCallingConfig:{mode:"VALIDATED"}}}};return r(b),this._lastSessionId=p.sessionId,{project:e,model:b.model||a,userAgent:"antigravity",requestType:"agent",requestId:v({body:b,request:p,credentials:d,model:a,requestType:"agent"}),request:p}}async refreshCredentials(a,b,c=null){if(!a.refreshToken)return null;try{let d=await (0,j.proxyAwareFetch)(g.NA.google.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a.refreshToken,client_id:this.config.clientId,client_secret:this.config.clientSecret})},c);if(!d.ok)return null;let e=await d.json();return b?.info?.("TOKEN","Antigravity refreshed"),{accessToken:e.access_token,refreshToken:e.refresh_token||a.refreshToken,expiresIn:e.expires_in,projectId:a.projectId}}catch(a){return b?.error?.("TOKEN",`Antigravity refresh error: ${a.message}`),null}}generateProjectId(){let a=["useful","bright","swift","calm","bold"][Math.floor(5*Math.random())],b=["fuze","wave","spark","flow","core"][Math.floor(5*Math.random())];return`${a}-${b}-${d.randomUUID().slice(0,5)}`}generateSessionId(){return d.randomUUID()+Date.now().toString()}parseRetryHeaders(a){if(!a?.get)return null;let b=a.get("retry-after");if(b){let a=parseInt(b,10);if(!isNaN(a)&&a>0)return 1e3*a;let c=new Date(b);if(!isNaN(c.getTime())){let a=c.getTime()-Date.now();return a>0?a:null}}let c=a.get("x-ratelimit-reset-after");if(c){let a=parseInt(c,10);if(!isNaN(a)&&a>0)return 1e3*a}let d=a.get("x-ratelimit-reset");if(d){let a=1e3*parseInt(d,10)-Date.now();return a>0?a:null}return null}parseRetryFromErrorMessage(a){if(!a||"string"!=typeof a)return null;let b=a.match(/reset after (\d+h)?(\d+m)?(\d+s)?/i);if(!b)return null;let c=0;return b[1]&&(c+=3600*parseInt(b[1])*1e3),b[2]&&(c+=60*parseInt(b[2])*1e3),b[3]&&(c+=1e3*parseInt(b[3])),c>0?c:null}extractErrorMessage(a,b=""){return[a?.error?.message,a?.message,a?.error,b].filter(Boolean).map(a=>"string"==typeof a?a:JSON.stringify(a)).join("\n")}isTransientAntigravityError(a,b){return!!(a===h.gx.RATE_LIMITED||p.has(a))||o.some(a=>a.test(b||""))}async computeRetryDelay(a,b){let c="",d=null,e=this.parseRetryHeaders(a.headers);try{d=(c=await a.clone().text())?JSON.parse(c):null}catch{}let f=this.extractErrorMessage(d,c);return(e||(e=this.parseRetryFromErrorMessage(f)),e)?e<=1e4&&e:!!this.isTransientAntigravityError(a.status,f)&&Math.min(1e3*2**b,a.status===h.gx.RATE_LIMITED?1e4:15e3)}static cloakTools(a,b=null){let c=a.request?.tools;if(!c||0===c.length)return{cloakedBody:a,toolNameMap:null};let d="github-copilot"===b,e=new Map,f=[],h=new Set(x.map(a=>a.name));for(let a of c)if(a.functionDeclarations)for(let b of a.functionDeclarations){if(d&&g.J5.has(b.name)||d&&h.has(b.name))continue;if(g.J5.has(b.name)){f.push(b);continue}let a=`${b.name}${g.QH}`;e.set(a,b.name),f.push({...b,name:a})}let i=[],j=new Set;for(let a of[...f,...x])!a?.name||j.has(a.name)||(j.add(a.name),i.push(a));let k=a.request?.contents?.map(a=>{if(!a.parts)return a;let b=a.parts.map(a=>a.functionCall&&!g.J5.has(a.functionCall.name)?{...a,functionCall:{...a.functionCall,name:`${a.functionCall.name}${g.QH}`}}:a.functionResponse&&!g.J5.has(a.functionResponse.name)?{...a,functionResponse:{...a.functionResponse,name:`${a.functionResponse.name}${g.QH}`}}:a);return{...a,parts:b}}),{stream:l,stream_options:m,...n}=a;return{cloakedBody:{...n,request:{...a.request,tools:[{functionDeclarations:i}],contents:k||a.request.contents}},toolNameMap:e}}}let x=[{name:"browser_subagent",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"command_status",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"find_by_name",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"generate_image",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"grep_search",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"list_dir",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"list_resources",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"mcp_sequential-thinking_sequentialthinking",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"multi_replace_file_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"notify_user",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_resource",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_terminal",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"read_url_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"replace_file_content",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"run_command",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"search_web",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"send_command_input",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"task_boundary",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"view_content_chunk",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"view_file",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}},{name:"write_to_file",description:"This tool is currently unavailable.",parameters:{type:"OBJECT",properties:{},required:[]}}]},9537:(a,b,c)=>{c.d(b,{H:()=>n});var d=c(2547),e=c(19956),f=c(18226),g=c(47945),h=c(39423),i=c(22208),j=c(10640),k=c(98173);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??=`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.B6)(f,"commandcode");g&&(c.usage=g),e.push(c);break}case"error":{b.finishReason=f.bC.STOP;let a=d.error??d.message??"unknown",c="string"==typeof a?a:JSON.stringify(a),g=`
21
21
 
22
- [CommandCode error: ${c}]`,h=0===b.chunkIndex?{role:f.z7.ASSISTANT,content:g}:{content:g};b.chunkIndex++,e.push(l(b,h)),e.push(l(b,{},f.bC.STOP))}}return e.length?e:null}(0,d.kz)(e.h.COMMANDCODE,e.h.OPENAI,null,n)},9562:(a,b,c)=>{function d(a){if("string"!=typeof a)return null;let b=a.trim();if(!b)return null;if(/^\d+(\.\d+)?s$/.test(b))return Math.round(1e3*parseFloat(b));let c=b.match(/(\d+(?:\.\d+)?)(h|m|s|ms)/g);if(!c)return null;let d={h:36e5,m:6e4,s:1e3,ms:1},e=0;for(let a of c){let[,b,c]=a.match(/(\d+(?:\.\d+)?)(h|m|s|ms)/);e+=parseFloat(b)*d[c]}return Math.round(e)}function e(a,b=Date.now()){let c={resetsAtMs:null,reason:null,model:null,retryAfter:null};if(!a)return c;let f=a;if("string"==typeof a)try{f=JSON.parse(a)}catch{return c}let g=f?.error?.details;if(!Array.isArray(g))return c;let h=null,i=null,j=null,k=null;for(let a of g)if(a?.["@type"]==="type.googleapis.com/google.rpc.ErrorInfo"){i=a.reason||i,j=a.metadata?.model||j;let c=a.metadata?.quotaResetTimeStamp;if(!h&&c){let a=new Date(c).getTime();Number.isFinite(a)&&a>b&&(h=a)}if(!h){let c=d(a.metadata?.quotaResetDelay);c>0&&(h=b+c)}}else a?.["@type"]==="type.googleapis.com/google.rpc.RetryInfo"&&a?.retryDelay&&(k=a.retryDelay);if(!h&&k){let a=d(k);a>0&&(h=b+a)}return{resetsAtMs:h,reason:i,model:j,retryAfter:k}}c.d(b,{k:()=>e})},10089:(a,b,c)=>{c.d(b,{Az:()=>g,F5:()=>i,fO:()=>k,kR:()=>h});var d=c(55511),e=c(28730),f=c(92675);function g(a){let b=a.tools;if(!b||0===b.length)return{body:a,toolNameMap:null};let c=a=>`${a}${e.uR}`,d=new Map,f=new Set,g=[];for(let a of b){if(a.type){g.push(a);continue}let b=c(a.name);d.set(b,a.name),f.add(a.name),g.push({...a,name:b})}let h=[...g,...j],i=a.messages?.map(a=>{if(!Array.isArray(a.content))return a;let b=a.content.map(a=>"tool_use"===a.type?{...a,name:c(a.name)}:a);return{...a,content:b}}),k={...a,tools:h,messages:i||a.messages};return a.tool_choice?.type==="tool"&&f.has(a.tool_choice.name)&&(k.tool_choice={...a.tool_choice,name:c(a.tool_choice.name)}),{body:k,toolNameMap:d.size>0?d:null}}function h(a,b){if(!b?.size||!Array.isArray(a?.content))return a;let c=a.content.map(a=>a?.type==="tool_use"&&b.has(a.name)?{...a,name:b.get(a.name)}:a);return{...a,content:c}}function i(a,b){if(!b?.size||!a||"object"!=typeof a||"content_block_start"!==a.type)return a;let c=a.content_block;if(c?.type!=="tool_use"||"string"!=typeof c.name)return a;let d=b.get(c.name);return d?{...a,content_block:{...c,name:d}}:a}let j=[{name:"Task",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskOutput",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskStop",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskCreate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskGet",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskUpdate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskList",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Bash",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Glob",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Grep",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Read",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Edit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Write",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"NotebookEdit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebFetch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebSearch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"AskUserQuestion",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Skill",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"EnterPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"ExitPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}}];function k(a,b,c){var e;let g,h,i,j,k,l,m;if(!b||!b.includes("sk-ant-oat"))return a;let n={...a},o={type:"text",text:(g=JSON.stringify(a),h=(0,d.createHash)("sha256").update(g).digest("hex").slice(0,5),i=(0,d.randomBytes)(2).toString("hex").slice(0,3),`x-anthropic-billing-header: cc_version=${f.t4}.${i}; cc_entrypoint=sdk-cli; cch=${h};`)};return Array.isArray(n.system)?n.system[0]?.text?.startsWith("x-anthropic-billing-header:")||(n.system=[o,...n.system]):"string"==typeof n.system?n.system=[o,{type:"text",text:n.system}]:n.system=[o],n.metadata?.user_id||(n.metadata={...n.metadata,user_id:(j=b?(0,d.createHash)("sha256").update(`device:${b}`).digest("hex"):(0,d.randomBytes)(32).toString("hex"),l=b?(e=`account:${b}`,k=(0,d.createHash)("sha256").update(e).digest("hex"),`${k.slice(0,8)}-${k.slice(8,12)}-4${k.slice(13,16)}-${(3&parseInt(k[16],16)|8).toString(16)}${k.slice(17,20)}-${k.slice(20,32)}`):(0,d.randomUUID)(),m=c||(0,d.randomUUID)(),`{"device_id":"${j}","account_uuid":"${l}","session_id":"${m}"}`)}),n}},10640:(a,b,c)=>{c.d(b,{C5:()=>l,SF:()=>k,eG:()=>e,fH:()=>i});let d=/^[a-zA-Z0-9_-]+$/;function e(a){return void 0===a?`call_${Date.now()}`:`call_${a}_${Date.now()}`}function f(a=0,b=0,c=""){let d=c?`_${c.replace(/[^a-zA-Z0-9_-]/g,"")}`:"";return`call_msg${a}_tc${b}${d}`}function g(a){if(!a||"string"!=typeof a)return null;let b=a.replace(/[^a-zA-Z0-9_-]/g,"");return b.length>0?b:null}function h(a,b,c){if(a){let c=g(a);if(c){let a=b.indexOf(c);return -1!==a&&b.splice(a,1),c}}return b.length>0?b.shift():c()}function i(a){if(!a.messages||!Array.isArray(a.messages))return a;let b=[];for(let c=0;c<a.messages.length;c++){let e=a.messages[c];if("assistant"===e.role&&e.tool_calls&&Array.isArray(e.tool_calls))for(let a=0;a<e.tool_calls.length;a++){let b=e.tool_calls[a];if(!b.id||!d.test(b.id)){let d=g(b.id);b.id=d||f(c,a,b.function?.name)}b.type||(b.type="function"),b.function?.arguments&&"string"!=typeof b.function.arguments&&(b.function.arguments=JSON.stringify(b.function.arguments))}if(Array.isArray(e.content))for(let a=0;a<e.content.length;a++){let b=e.content[a];if("tool_use"===b.type&&b.id&&!d.test(b.id)){let d=g(b.id);b.id=d||f(c,a,b.name)}}if("assistant"===e.role){b=j(e);continue}if("tool"===e.role&&(e.tool_call_id=h(e.tool_call_id,b,()=>f(c,0))),Array.isArray(e.content))for(let a=0;a<e.content.length;a++){let d=e.content[a];"tool_result"===d.type&&(d.tool_use_id=h(d.tool_use_id,b,()=>f(c,a)))}}return a}function j(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}function k(a){if(!a.messages||!Array.isArray(a.messages))return a;let b=a.messages.some(a=>Array.isArray(a?.content)&&a.content.some(a=>a?.type==="tool_use"||a?.type==="tool_result"))||!!a.system,c=[],d=!1;for(let e=0;e<a.messages.length;e++){let f=a.messages[e],g=a.messages[e+1];c.push(f);let h=j(f);if(0!==h.length&&(!g||!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}(g,h)))for(let a of(d=!0,h))b?c.push({role:"user",content:[{type:"tool_result",tool_use_id:a,content:"[No response received]"}]}):c.push({role:"tool",tool_call_id:a,content:"[No response received]"})}return d&&(a.messages=c),a}function l(a){return Array.isArray(a)?a.map(a=>a?.type?a:{...a,type:"custom"}):a}},12828:(a,b,c)=>{function d(a,b){}c.d(b,{T:()=>e,s:()=>d});let e=!1},17717:(a,b,c)=>{c.d(b,{SZ:()=>n,Tz:()=>k,jJ:()=>l,oF:()=>m});var d=c(4630),e=c(92675);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){return h(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){return h(a)?"responses"===j(a)?"openai-responses":"openai":i(a)?"claude":function(a){if(h(a)){let b=j(a);return{...d.xq.openai,format:"responses"===b?"openai-responses":"openai",baseUrl:f.baseUrl}}return i(a)?{...d.xq.anthropic,format:"claude",baseUrl:g.baseUrl}:d.xq[a]||d.xq.openai}(a).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}},22095:(a,b,c)=>{c.d(b,{Ww:()=>h,fP:()=>f,yx:()=>g});let d="google",e="thought_signature";function f(a){if(!a||"object"!=typeof a)return null;let b=a[i];if(b&&"object"==typeof b){let a=b[d];if(a&&"object"==typeof a){let b=a[e];if("string"==typeof b&&b.length>0)return b}}let c=a[e];return"string"==typeof c&&c.length>0?c:null}function g(a,b){if(!a||"object"!=typeof a||!b)return a;let c=a[i]||{},f=c[d]||{};return f[e]=b,c[d]=f,a[i]=c,a}function h(a){if(!a||"object"!=typeof a)return null;let b=a.thoughtSignature||a.thought_signature;return"string"==typeof b&&b.length>0?b:null}let i="extra_content"},22208:(a,b,c)=>{c.d(b,{B:()=>e,V:()=>f});var d=c(18226);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(""):""}},25830:(a,b,c)=>{c.d(b,{_W:()=>r,ui:()=>p,Bz:()=>s});var d=c(6499),e=c(18226);c(7259);var f=c(10089),g=c(91576);function h(a){let b=function(a){let b=(a||"").trim();if(!b)return"";let c=b.indexOf("#");return c>=0?b.slice(c+1).trim():b}(a);if(!b||b.length>0x2000000)return!1;try{if("E"===b[0]){let a=Buffer.from(b,"base64");return a.length>0&&18===a[0]}if("R"===b[0]){let a=Buffer.from(b,"base64");if(!a.length||69!==a[0])return!1;let c=Buffer.from(a.toString(),"base64");return c.length>0&&18===c[0]}return!1}catch{return!1}}var i=c(39141),j=c(43904),k=c(60290);function l(a,b=null){var c;if(!Array.isArray(a?.messages)||"preserve"===String(function(a,b){if(!a)return null;if("function"==typeof a.get)return a.get(b);let c=Object.entries(a).find(([a])=>a.toLowerCase()===b),d=c?.[1];return Array.isArray(d)?d[0]:d}(b,"x-9router-assistant-prefill")||"").toLowerCase())return a;let d=a.messages.at(-1);if(d?.role!==e.z7.ASSISTANT)return a;let f=Array.isArray(d.content)?d.content.filter(a=>a?.type===e.R4.TOOL_USE&&a.id):[];return f.length>0?(a.messages.push({role:e.z7.USER,content:f.map(a=>({type:e.R4.TOOL_RESULT,tool_use_id:a.id,is_error:!0,content:"Tool execution was not completed before this request continued."}))}),a):(("string"==typeof(c=d.content)?!!c.trim():Array.isArray(c)&&c.some(a=>a?.type===e.R4.TEXT&&a.text?.trim()))?a.messages.push({role:e.z7.USER,content:[{type:e.R4.TEXT,text:"Continue from the assistant response above without repeating it."}]}):a.messages.pop(),a)}let m=/haiku/i,n=["cc/","claude/"];function o(a){let b={type:e.R4.THINKING,thinking:"."};return"deepseek"!==a&&(b.signature=d.xr),b}function p(a,b="",c=null){if(!a||"object"!=typeof a)return a;if(a.thinking?.type==="adaptive"&&m.test(b)&&(a.thinking={type:"enabled",budget_tokens:1e4}),m.test(b)&&a.output_config?.effort!=null&&(delete a.output_config.effort,0===Object.keys(a.output_config).length&&delete a.output_config),Array.isArray(a.messages)){let b=[],c=[];for(let d of a.messages){if(d.role===e.z7.SYSTEM){let a="string"==typeof d.content?d.content:Array.isArray(d.content)?d.content.map(a=>"string"==typeof a?a:a?.text||"").join("\n"):"";a.trim()&&b.push({type:e.R4.TEXT,text:a});continue}c.push(d)}if(b.length>0){let d=Array.isArray(a.system)?a.system:"string"==typeof a.system&&a.system.trim()?[{type:"text",text:a.system}]:[];a.system=[...d,...b],a.messages=c}}var d=a.tools;if(Array.isArray(d))for(let a of d){if(!a||"object"!=typeof a||"string"!=typeof a.model)continue;let b=n.find(b=>a.model.startsWith(b));b&&(a.model=a.model.slice(b.length))}let f=a.thinking?.type==="enabled";if(Array.isArray(a.messages))for(let b of a.messages){if(b.role!==e.z7.ASSISTANT||!Array.isArray(b.content))continue;let a=!1,c=!1,d=[];for(let f of b.content){if(f.type===e.R4.THINKING||f.type===e.R4.REDACTED_THINKING){h(f.signature)&&(c=!0,d.push(f));continue}f.type===e.R4.TOOL_USE&&(a=!0),d.push(f)}b.content=d,f&&!c&&a&&b.content.unshift(o("claude"))}return l(a,c),a}function q(a){if(!Array.isArray(a?.content))return!1;for(let b=a.content.length-1;b>=0;b--){let c=a.content[b];if("object"==typeof c&&null!==c&&c.type!==e.R4.THINKING&&c.type!==e.R4.REDACTED_THINKING)return c.cache_control={type:"ephemeral"},!0}return!1}function r(a){if(!a||"object"!=typeof a)return a;if(Array.isArray(a.system)){let b=a.system.length-1;a.system.forEach((a,c)=>{"object"==typeof a&&null!==a&&(c===b?a.cache_control={type:"ephemeral",ttl:"1h"}:delete a.cache_control)})}if(Array.isArray(a.tools)){let b=a.tools.length-1;a.tools.forEach((a,c)=>{c===b?a.cache_control={type:"ephemeral",ttl:"1h"}:delete a.cache_control})}if(Array.isArray(a.messages)){let b=null;for(let c=a.messages.length-1;c>=0;c--){let d=a.messages[c];if(Array.isArray(d.content)){for(let a of d.content)delete a.cache_control;b||d.role!==e.z7.ASSISTANT||(b=q(d))}}if(!b)for(let c=a.messages.length-1;c>=0&&!b;c--)b=q(a.messages[c])}return a}function s(a,b=null,c=null,m=null,n=null,p=null){if(i.xq[b]?.quirks?.dropOutputConfig&&delete a.output_config,a.max_tokens){let c=(0,j.nl)(b,a.model).maxOutput||k.Uc;a.max_tokens>c&&(a.max_tokens=c),a.thinking?.type==="enabled"&&a.thinking.budget_tokens&&a.thinking.budget_tokens>=a.max_tokens&&(a.max_tokens=Math.min(a.thinking.budget_tokens+1024,c),a.thinking.budget_tokens>=a.max_tokens&&(a.thinking.budget_tokens=Math.max(1024,a.max_tokens-1024)))}if(a.system&&Array.isArray(a.system)&&(a.system=a.system.map((b,c)=>{let{cache_control:d,...e}=b;return c===a.system.length-1?{...e,cache_control:{type:"ephemeral",ttl:"1h"}}:e})),a.messages&&Array.isArray(a.messages)){let c=a.messages.length,f=[];for(let b=0;b<c;b++){let d=a.messages[b];if(Array.isArray(d.content))for(let a of d.content)delete a.cache_control;(b===c-1&&d.role===e.z7.ASSISTANT||"string"==typeof d.content&&d.content.trim()||Array.isArray(d.content)&&d.content.some(a=>a.type===e.R4.TEXT&&a.text?.trim()||a.type===e.R4.TOOL_USE||a.type===e.R4.TOOL_RESULT||a.type===e.R4.IMAGE||a.type===e.R4.DOCUMENT))&&f.push(d)}f=function(a){if(0===a.length)return a;for(let b of a)if(b.role===e.z7.ASSISTANT&&Array.isArray(b.content)&&b.content.some(a=>a.type===e.R4.TOOL_USE)){let a=[],c=!1;for(let d of b.content)d.type===e.R4.TOOL_USE?(c=!0,a.push(d)):d.type===e.R4.THINKING||d.type===e.R4.REDACTED_THINKING?a.push(d):c||a.push(d);b.content=a}let b=[];for(let c of a){let a=b[b.length-1];if(a&&a.role===c.role){let b=Array.isArray(a.content)?a.content:[{type:e.R4.TEXT,text:a.content}],d=Array.isArray(c.content)?c.content:[{type:e.R4.TEXT,text:c.content}];a.content=[...b.filter(a=>a.type===e.R4.TOOL_RESULT),...d.filter(a=>a.type===e.R4.TOOL_RESULT),...b.filter(a=>a.type!==e.R4.TOOL_RESULT),...d.filter(a=>a.type!==e.R4.TOOL_RESULT)]}else{let a=Array.isArray(c.content)?c.content:[{type:e.R4.TEXT,text:c.content}];b.push({role:c.role,content:[...a]})}}for(let a=0;a<b.length;a++){let d=b[a];if(d.role!==e.z7.USER||!Array.isArray(d.content))continue;let f=b[a-1],g=new Set(f?.role===e.z7.ASSISTANT&&Array.isArray(f.content)?f.content.filter(a=>a.type===e.R4.TOOL_USE&&a.id).map(a=>a.id):[]),h=new Map,i=[];for(let a of d.content){var c;if(a.type!==e.R4.TOOL_RESULT){i.push(a);continue}if(g.has(a.tool_use_id)&&!h.has(a.tool_use_id)){h.set(a.tool_use_id,a);continue}let b="string"==typeof(c=a.content)?c:(Array.isArray(c)?c:[c]).flatMap(a=>"string"==typeof a?[a]:a?.type===e.R4.TEXT&&"string"==typeof a.text?[a.text]:[]).join("\n");i.push({type:e.R4.TEXT,text:`[Unpaired tool result ${a.tool_use_id||"unknown"}]${b?`
23
- ${b}`:""}`})}d.content=[...[...g].map(a=>h.get(a)||{type:e.R4.TOOL_RESULT,tool_use_id:a,content:""}),...i]}return b}(f),a.messages=f,l(a,n);let g=(f=a.messages)[f.length-1],i=g?.role===e.z7.USER,j=a.thinking?.type==="enabled"&&i,k=!1;for(let a=f.length-1;a>=0;a--){let c=f[a];if(c.role===e.z7.ASSISTANT&&Array.isArray(c.content)){if(!k&&c.content.length>0){for(let a=c.content.length-1;a>=0;a--){let b=c.content[a];if(b.type!==e.R4.THINKING&&b.type!==e.R4.REDACTED_THINKING){b.cache_control={type:"ephemeral"};break}}k=!0}if("claude"===b||b?.startsWith("anthropic-compatible")||"deepseek"===b){let a=!1,f=!1,g="claude"===b,i="deepseek"===b,k=[];for(let b of c.content){if(b.type===e.R4.THINKING||b.type===e.R4.REDACTED_THINKING){g?h(b.signature)&&(f=!0,k.push(b)):(i||(b.signature=d.xr),f=!0,k.push(b));continue}b.type===e.R4.TOOL_USE&&(a=!0),k.push(b)}c.content=k,j&&!f&&a&&c.content.unshift(o(b))}}}}if(a.tools&&Array.isArray(a.tools)&&("claude"!==b&&(a.tools=a.tools.filter(a=>!a.type||"function"===a.type).map(a=>{if(a.function)return{name:a.function.name,description:a.function.description,input_schema:a.function.parameters};let{type:b,...c}=a;return c})),a.tools=a.tools.map((b,c)=>{let{cache_control:d,...e}=b;return c===a.tools.length-1?{...e,cache_control:{type:"ephemeral",ttl:"1h"}}:e}),0===a.tools.length&&(delete a.tools,delete a.tool_choice)),("claude"===b||b?.startsWith("anthropic-compatible"))&&c){let b=p||(0,g.oV)({headers:n,body:a,connectionId:m,scope:"claude"});a=(0,f.fO)(a,c,b)}return a}},25896:(a,b,c)=>{c.d(b,{b1:()=>j,rP:()=>i});let d=["blocks","model"],e="9router:claude-thinking:v1:";function f(a,b){return a&&"object"==typeof a&&!Array.isArray(a)&&Object.keys(a).sort().join("\0")===b.slice().sort().join("\0")}function g(a){return a?.type==="thinking"&&f(a,["signature","thinking","type"])&&"string"==typeof a.thinking&&"string"==typeof a.signature&&a.signature?{type:"thinking",thinking:a.thinking,signature:a.signature}:a?.type==="redacted_thinking"&&f(a,["data","type"])&&"string"==typeof a.data&&a.data?{type:"redacted_thinking",data:a.data}:null}function h(a,b){if(!f(a,d)||a.model!==b||!Array.isArray(a.blocks)||0===a.blocks.length)return null;let c=a.blocks.map(g);return c.every(Boolean)?c:null}function i(a,b){if("string"!=typeof a||!a||!Array.isArray(b))return null;let c=h({model:a,blocks:b},a);if(!c)return null;try{let b=Buffer.from(JSON.stringify({model:a,blocks:c}),"utf8").toString("base64url");return b.length<=2097152?e+b:null}catch{return null}}function j(a,b){if("string"!=typeof a||"string"!=typeof b||!b||!a.startsWith(e))return null;let c=a.slice(e.length);if(!c||c.length>2097152||!/^[A-Za-z0-9_-]+$/.test(c))return null;try{let a=Buffer.from(c,"base64url");if(a.toString("base64url")!==c)return null;return h(JSON.parse(a.toString("utf8")),b)}catch{return null}}},29229:(a,b,c)=>{c.d(b,{C:()=>p,p:()=>n});var d=c(2547),e=c(19956),f=c(28730),g=c(7259),h=c(27980),i=c(50186),j=c(48644),k=c(18226),l=c(43904),m=c(25896);function n(a,b,c){let d=new Map,e=(0,l.nl)(null,a).maxOutput||void 0,n={model:a,max_tokens:(0,g.M)(b,e),stream:c};void 0!==b.temperature&&(n.temperature=b.temperature),n.messages=[];let p=[];if(b.messages&&Array.isArray(b.messages)){let c;for(let a of b.messages)a.role===k.z7.SYSTEM&&p.push("string"==typeof a.content?a.content:(0,j.kU)(a.content,"\n"));let e=b.messages.filter(a=>a.role!==k.z7.SYSTEM),f=[],g=()=>{c&&f.length>0&&(n.messages.push({role:c,content:f}),f=[])};for(let b of e){let e=b.role===k.z7.USER||b.role===k.z7.TOOL?k.z7.USER:k.z7.ASSISTANT,l=function(a,b=new Map,c=""){let d=[];if(a.role===k.z7.TOOL)d.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&&d.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)d.push({type:k.R4.TEXT,text:b.text});else if(b.type===k.R4.TOOL_RESULT)d.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,c=(0,i.W$)(a);c?d.push({type:k.R4.IMAGE,source:{type:"base64",media_type:c.mimeType,data:c.base64}}):(a.startsWith("http://")||a.startsWith("https://"))&&d.push({type:k.R4.IMAGE,source:{type:"url",url:a}})}else if(b.type===k.x4.IMAGE&&b.source)d.push({type:k.R4.IMAGE,source:b.source});else if(b.type===k.x4.FILE&&b.file){let a=b.file.file_data,c=(0,i.W$)(a);c&&"application/pdf"===c.mimeType&&d.push({type:k.R4.DOCUMENT,source:{type:"base64",media_type:c.mimeType,data:c.base64}})}}}else if(a.role===k.z7.ASSISTANT){let b=Array.isArray(a.tool_calls)&&a.tool_calls.length>0,e="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||"",f=b?(0,m.b1)(e,c):null;if(f&&d.push(...f),Array.isArray(a.content)){for(let b of a.content)if(b.type===k.x4.TEXT&&b.text)d.push({type:k.R4.TEXT,text:b.text});else if(b.type===k.R4.TOOL_USE)d.push({type:k.R4.TOOL_USE,id:b.id,name:b.name,input:b.input});else if((b.type===k.R4.THINKING||b.type===k.R4.REDACTED_THINKING)&&!f){let{cache_control:a,...c}=b;d.push(c)}}else if(a.content){let b="string"==typeof a.content?a.content:(0,j.kU)(a.content,"\n");b&&d.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;d.push({type:k.R4.TOOL_USE,id:b.id,name:a,input:(0,h.N)(b.function.arguments,b.function.arguments)})}}}return d}(b,d,a),o=l.some(a=>a.type===k.R4.TOOL_USE);if(l.some(a=>a.type===k.R4.TOOL_RESULT)){let a=l.filter(a=>a.type===k.R4.TOOL_RESULT),b=l.filter(a=>a.type!==k.R4.TOOL_RESULT);g(),a.length>0&&n.messages.push({role:k.z7.USER,content:a}),b.length>0&&(c=e,f.push(...b));continue}c!==e&&(g(),c=e),f.push(...l),o&&g()}g();for(let a=n.messages.length-1;a>=0;a--){let b=n.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);p.push(`You must respond with valid JSON that strictly follows this JSON schema:
22
+ [CommandCode error: ${c}]`,h=0===b.chunkIndex?{role:f.z7.ASSISTANT,content:g}:{content:g};b.chunkIndex++,e.push(l(b,h)),e.push(l(b,{},f.bC.STOP))}}return e.length?e:null}(0,d.kz)(e.h.COMMANDCODE,e.h.OPENAI,null,n)},9562:(a,b,c)=>{function d(a){if("string"!=typeof a)return null;let b=a.trim();if(!b)return null;if(/^\d+(\.\d+)?s$/.test(b))return Math.round(1e3*parseFloat(b));let c=b.match(/(\d+(?:\.\d+)?)(h|m|s|ms)/g);if(!c)return null;let d={h:36e5,m:6e4,s:1e3,ms:1},e=0;for(let a of c){let[,b,c]=a.match(/(\d+(?:\.\d+)?)(h|m|s|ms)/);e+=parseFloat(b)*d[c]}return Math.round(e)}function e(a,b=Date.now()){let c={resetsAtMs:null,reason:null,model:null,retryAfter:null};if(!a)return c;let f=a;if("string"==typeof a)try{f=JSON.parse(a)}catch{return c}let g=f?.error?.details;if(!Array.isArray(g))return c;let h=null,i=null,j=null,k=null;for(let a of g)if(a?.["@type"]==="type.googleapis.com/google.rpc.ErrorInfo"){i=a.reason||i,j=a.metadata?.model||j;let c=a.metadata?.quotaResetTimeStamp;if(!h&&c){let a=new Date(c).getTime();Number.isFinite(a)&&a>b&&(h=a)}if(!h){let c=d(a.metadata?.quotaResetDelay);c>0&&(h=b+c)}}else a?.["@type"]==="type.googleapis.com/google.rpc.RetryInfo"&&a?.retryDelay&&(k=a.retryDelay);if(!h&&k){let a=d(k);a>0&&(h=b+a)}return{resetsAtMs:h,reason:i,model:j,retryAfter:k}}c.d(b,{k:()=>e})},10089:(a,b,c)=>{c.d(b,{Az:()=>g,F5:()=>i,fO:()=>k,kR:()=>h});var d=c(55511),e=c(28730),f=c(92675);function g(a){let b=a.tools;if(!b||0===b.length)return{body:a,toolNameMap:null};let c=a=>`${a}${e.uR}`,d=new Map,f=new Set,g=[];for(let a of b){if(a.type){g.push(a);continue}let b=c(a.name);d.set(b,a.name),f.add(a.name),g.push({...a,name:b})}let h=[...g,...j],i=a.messages?.map(a=>{if(!Array.isArray(a.content))return a;let b=a.content.map(a=>"tool_use"===a.type?{...a,name:c(a.name)}:a);return{...a,content:b}}),k={...a,tools:h,messages:i||a.messages};return a.tool_choice?.type==="tool"&&f.has(a.tool_choice.name)&&(k.tool_choice={...a.tool_choice,name:c(a.tool_choice.name)}),{body:k,toolNameMap:d.size>0?d:null}}function h(a,b){if(!b?.size||!Array.isArray(a?.content))return a;let c=a.content.map(a=>a?.type==="tool_use"&&b.has(a.name)?{...a,name:b.get(a.name)}:a);return{...a,content:c}}function i(a,b){if(!b?.size||!a||"object"!=typeof a||"content_block_start"!==a.type)return a;let c=a.content_block;if(c?.type!=="tool_use"||"string"!=typeof c.name)return a;let d=b.get(c.name);return d?{...a,content_block:{...c,name:d}}:a}let j=[{name:"Task",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskOutput",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskStop",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskCreate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskGet",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskUpdate",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"TaskList",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Bash",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Glob",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Grep",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Read",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Edit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Write",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"NotebookEdit",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebFetch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"WebSearch",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"AskUserQuestion",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"Skill",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"EnterPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}},{name:"ExitPlanMode",description:"This tool is currently unavailable.",input_schema:{type:"object",properties:{}}}];function k(a,b,c){var e;let g,h,i,j,k,l,m;if(!b||!b.includes("sk-ant-oat"))return a;let n={...a},o={type:"text",text:(g=JSON.stringify(a),h=(0,d.createHash)("sha256").update(g).digest("hex").slice(0,5),i=(0,d.randomBytes)(2).toString("hex").slice(0,3),`x-anthropic-billing-header: cc_version=${f.t4}.${i}; cc_entrypoint=sdk-cli; cch=${h};`)};return Array.isArray(n.system)?n.system[0]?.text?.startsWith("x-anthropic-billing-header:")||(n.system=[o,...n.system]):"string"==typeof n.system?n.system=[o,{type:"text",text:n.system}]:n.system=[o],n.metadata?.user_id||(n.metadata={...n.metadata,user_id:(j=b?(0,d.createHash)("sha256").update(`device:${b}`).digest("hex"):(0,d.randomBytes)(32).toString("hex"),l=b?(e=`account:${b}`,k=(0,d.createHash)("sha256").update(e).digest("hex"),`${k.slice(0,8)}-${k.slice(8,12)}-4${k.slice(13,16)}-${(3&parseInt(k[16],16)|8).toString(16)}${k.slice(17,20)}-${k.slice(20,32)}`):(0,d.randomUUID)(),m=c||(0,d.randomUUID)(),`{"device_id":"${j}","account_uuid":"${l}","session_id":"${m}"}`)}),n}},10640:(a,b,c)=>{c.d(b,{C5:()=>l,SF:()=>k,eG:()=>e,fH:()=>i});let d=/^[a-zA-Z0-9_-]+$/;function e(a){return void 0===a?`call_${Date.now()}`:`call_${a}_${Date.now()}`}function f(a=0,b=0,c=""){let d="string"==typeof c&&c?`_${c.replace(/[^a-zA-Z0-9_-]/g,"")}`:"";return`call_msg${a}_tc${b}${d}`}function g(a){if(!a||"string"!=typeof a)return null;let b=a.replace(/[^a-zA-Z0-9_-]/g,"");return b.length>0?b:null}function h(a,b,c){if(a){let c=g(a);if(c){let a=b.indexOf(c);return -1!==a&&b.splice(a,1),c}}return b.length>0?b.shift():c()}function i(a){if(!a.messages||!Array.isArray(a.messages))return a;let b=[];for(let c=0;c<a.messages.length;c++){let e=a.messages[c];if(null!==e&&"object"==typeof e){if("assistant"===e.role&&e.tool_calls&&Array.isArray(e.tool_calls))for(let a=0;a<e.tool_calls.length;a++){let b=e.tool_calls[a];if(null!==b&&"object"==typeof b){if(!b.id||!d.test(b.id)){let d=g(b.id);b.id=d||f(c,a,b.function?.name)}b.type||(b.type="function"),b.function?.arguments&&"string"!=typeof b.function.arguments&&(b.function.arguments=JSON.stringify(b.function.arguments))}}if(Array.isArray(e.content))for(let a=0;a<e.content.length;a++){let b=e.content[a];if(null!==b&&"object"==typeof b&&"tool_use"===b.type&&b.id&&!d.test(b.id)){let d=g(b.id);b.id=d||f(c,a,b.name)}}if("assistant"===e.role){b=j(e);continue}if("tool"===e.role&&(e.tool_call_id=h(e.tool_call_id,b,()=>f(c,0))),Array.isArray(e.content))for(let a=0;a<e.content.length;a++){let d=e.content[a];"tool_result"===d.type&&(d.tool_use_id=h(d.tool_use_id,b,()=>f(c,a)))}}}return a}function j(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}function k(a){if(!a.messages||!Array.isArray(a.messages))return a;let b=a.messages.some(a=>Array.isArray(a?.content)&&a.content.some(a=>a?.type==="tool_use"||a?.type==="tool_result"))||!!a.system,c=[],d=!1;for(let e=0;e<a.messages.length;e++){let f=a.messages[e],g=a.messages[e+1];c.push(f);let h=j(f);if(0!==h.length&&(!g||!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}(g,h)))for(let a of(d=!0,h))b?c.push({role:"user",content:[{type:"tool_result",tool_use_id:a,content:"[No response received]"}]}):c.push({role:"tool",tool_call_id:a,content:"[No response received]"})}return d&&(a.messages=c),a}function l(a){return Array.isArray(a)?a.map(a=>a?.type?a:{...a,type:"custom"}):a}},12828:(a,b,c)=>{function d(a,b){}c.d(b,{T:()=>e,s:()=>d});let e=!1},17717:(a,b,c)=>{c.d(b,{SZ:()=>n,Tz:()=>k,jJ:()=>l,oF:()=>m});var d=c(4630),e=c(92675);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){return h(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){return h(a)?"responses"===j(a)?"openai-responses":"openai":i(a)?"claude":function(a){if(h(a)){let b=j(a);return{...d.xq.openai,format:"responses"===b?"openai-responses":"openai",baseUrl:f.baseUrl}}return i(a)?{...d.xq.anthropic,format:"claude",baseUrl:g.baseUrl}:d.xq[a]||d.xq.openai}(a).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}},22095:(a,b,c)=>{c.d(b,{Ww:()=>h,fP:()=>f,yx:()=>g});let d="google",e="thought_signature";function f(a){if(!a||"object"!=typeof a)return null;let b=a[i];if(b&&"object"==typeof b){let a=b[d];if(a&&"object"==typeof a){let b=a[e];if("string"==typeof b&&b.length>0)return b}}let c=a[e];return"string"==typeof c&&c.length>0?c:null}function g(a,b){if(!a||"object"!=typeof a||!b)return a;let c=a[i]||{},f=c[d]||{};return f[e]=b,c[d]=f,a[i]=c,a}function h(a){if(!a||"object"!=typeof a)return null;let b=a.thoughtSignature||a.thought_signature;return"string"==typeof b&&b.length>0?b:null}let i="extra_content"},22208:(a,b,c)=>{c.d(b,{B:()=>e,V:()=>f});var d=c(18226);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(""):""}},25830:(a,b,c)=>{c.d(b,{_W:()=>t,ui:()=>r,Bz:()=>u});var d=c(6499),e=c(18226);c(7259);var f=c(10089),g=c(91576);function h(a){let b=function(a){let b=(a||"").trim();if(!b)return"";let c=b.indexOf("#");return c>=0?b.slice(c+1).trim():b}(a);if(!b||b.length>0x2000000)return!1;try{if("E"===b[0]){let a=Buffer.from(b,"base64");return a.length>0&&18===a[0]}if("R"===b[0]){let a=Buffer.from(b,"base64");if(!a.length||69!==a[0])return!1;let c=Buffer.from(a.toString(),"base64");return c.length>0&&18===c[0]}return!1}catch{return!1}}var i=c(39141),j=c(11847),k=c(60290);function l(a,b=null){var c;if(!Array.isArray(a?.messages)||"preserve"===String(function(a,b){if(!a)return null;if("function"==typeof a.get)return a.get(b);let c=Object.entries(a).find(([a])=>a.toLowerCase()===b),d=c?.[1];return Array.isArray(d)?d[0]:d}(b,"x-9router-assistant-prefill")||"").toLowerCase())return a;let d=a.messages.at(-1);if(d?.role!==e.z7.ASSISTANT)return a;let f=Array.isArray(d.content)?d.content.filter(a=>(a?.type===e.R4.TOOL_USE||a?.type===e.R4.SERVER_TOOL_USE)&&a.id):[];return f.length>0?(a.messages.push({role:e.z7.USER,content:f.map(a=>({type:e.R4.TOOL_RESULT,tool_use_id:a.id,is_error:!0,content:"Tool execution was not completed before this request continued."}))}),a):(("string"==typeof(c=d.content)?!!c.trim():Array.isArray(c)&&c.some(a=>a?.type===e.R4.TEXT&&a.text?.trim()))?a.messages.push({role:e.z7.USER,content:[{type:e.R4.TEXT,text:"Continue from the assistant response above without repeating it."}]}):a.messages.pop(),a)}function m(a){if(!Array.isArray(a))return -1;for(let b=a.length-1;b>=0;b--)if(a[b]?.defer_loading!==!0)return b;return -1}let n=/haiku/i,o=["cc/","claude/"];function p(a){let b={type:e.R4.THINKING,thinking:"."};return"deepseek"!==a&&(b.signature=d.xr),b}let q=/^srvtoolu_[a-zA-Z0-9_]+$/;function r(a,b="",c=null){if(!a||"object"!=typeof a)return a;if(a.thinking?.type==="adaptive"&&n.test(b)&&(a.thinking={type:"enabled",budget_tokens:1e4}),n.test(b)&&a.output_config?.effort!=null&&(delete a.output_config.effort,0===Object.keys(a.output_config).length&&delete a.output_config),Array.isArray(a.messages)){let b=[],c=[];for(let d of a.messages){if(d.role===e.z7.SYSTEM){let a="string"==typeof d.content?d.content:Array.isArray(d.content)?d.content.map(a=>"string"==typeof a?a:a?.text||"").join("\n"):"";a.trim()&&b.push({type:e.R4.TEXT,text:a});continue}c.push(d)}if(b.length>0){let d=Array.isArray(a.system)?a.system:"string"==typeof a.system&&a.system.trim()?[{type:"text",text:a.system}]:[];a.system=[...d,...b],a.messages=c}}var d=a.tools;if(Array.isArray(d))for(let a of d){if(!a||"object"!=typeof a||"string"!=typeof a.model)continue;let b=o.find(b=>a.model.startsWith(b));b&&(a.model=a.model.slice(b.length))}let f=a.thinking?.type==="enabled",g=new Set;if(Array.isArray(a.messages))for(let b of a.messages){if(b.role!==e.z7.ASSISTANT||!Array.isArray(b.content))continue;let a=!1,c=!1,d=[];for(let f of b.content){if(f.type===e.R4.THINKING||f.type===e.R4.REDACTED_THINKING){h(f.signature)&&(c=!0,d.push(f));continue}if(f?.type===e.R4.SERVER_TOOL_USE&&!q.test(String(f.id??""))){null!=f.id&&g.add(String(f.id));continue}f.type===e.R4.TOOL_USE&&(a=!0),d.push(f)}b.content=d,f&&!c&&a&&b.content.unshift(p("claude"))}if(g.size>0&&Array.isArray(a.messages))for(let b of a.messages){if(!Array.isArray(b.content))continue;let a=b.content.filter(a=>!((a?.type===e.R4.TOOL_RESULT||a?.type===e.R4.WEB_SEARCH_TOOL_RESULT)&&g.has(String(a.tool_use_id??""))));a.length!==b.content.length&&(b.content=a)}return Array.isArray(a.messages)&&(a.messages=a.messages.filter(a=>"string"==typeof a.content?a.content.trim().length>0:!Array.isArray(a.content)||(a.content=a.content.filter(a=>!(a?.type===e.R4.TEXT&&!String(a.text??"").trim())),a.content.length>0))),l(a,c),a}function s(a){if(!Array.isArray(a?.content))return!1;for(let b=a.content.length-1;b>=0;b--){let c=a.content[b];if("object"==typeof c&&null!==c&&c.type!==e.R4.THINKING&&c.type!==e.R4.REDACTED_THINKING)return c.cache_control={type:"ephemeral"},!0}return!1}function t(a){if(!a||"object"!=typeof a)return a;if(Array.isArray(a.system)){let b=a.system.length-1;a.system.forEach((a,c)=>{"object"==typeof a&&null!==a&&(c===b?a.cache_control={type:"ephemeral",ttl:"1h"}:delete a.cache_control)})}if(Array.isArray(a.tools)){let b=m(a.tools);a.tools.forEach((a,c)=>{c===b?a.cache_control={type:"ephemeral",ttl:"1h"}:delete a.cache_control})}if(Array.isArray(a.messages)){let b=null;for(let c=a.messages.length-1;c>=0;c--){let d=a.messages[c];if(Array.isArray(d.content)){for(let a of d.content)delete a.cache_control;b||d.role!==e.z7.ASSISTANT||(b=s(d))}}if(!b)for(let c=a.messages.length-1;c>=0&&!b;c--)b=s(a.messages[c])}return a}function u(a,b=null,c=null,n=null,o=null,q=null){if(i.xq[b]?.quirks?.dropOutputConfig&&delete a.output_config,a.max_tokens){let c=(0,j.getCapabilitiesForModel)(b,a.model).maxOutput||k.Uc;a.max_tokens>c&&(a.max_tokens=c),a.thinking?.type==="enabled"&&a.thinking.budget_tokens&&a.thinking.budget_tokens>=a.max_tokens&&(a.max_tokens=Math.min(a.thinking.budget_tokens+1024,c),a.thinking.budget_tokens>=a.max_tokens&&(a.thinking.budget_tokens=Math.max(1024,a.max_tokens-1024)))}if(a.system&&Array.isArray(a.system)&&(a.system=a.system.map((b,c)=>{let{cache_control:d,...e}=b;return c===a.system.length-1?{...e,cache_control:{type:"ephemeral",ttl:"1h"}}:e})),a.messages&&Array.isArray(a.messages)){let c=a.messages.length,f=[];for(let b=0;b<c;b++){let d=a.messages[b];if(Array.isArray(d.content))for(let a of d.content)delete a.cache_control;(b===c-1&&d.role===e.z7.ASSISTANT||"string"==typeof d.content&&d.content.trim()||Array.isArray(d.content)&&d.content.some(a=>a.type===e.R4.TEXT&&a.text?.trim()||a.type===e.R4.TOOL_USE||a.type===e.R4.TOOL_RESULT||a.type===e.R4.IMAGE||a.type===e.R4.DOCUMENT))&&f.push(d)}f=function(a){if(0===a.length)return a;for(let b of a)if(b.role===e.z7.ASSISTANT&&Array.isArray(b.content)&&b.content.some(a=>a.type===e.R4.TOOL_USE)){let a=[],c=!1;for(let d of b.content)d.type===e.R4.TOOL_USE?(c=!0,a.push(d)):d.type===e.R4.THINKING||d.type===e.R4.REDACTED_THINKING?a.push(d):c||a.push(d);b.content=a}let b=[];for(let c of a){let a=b[b.length-1];if(a&&a.role===c.role){let b=Array.isArray(a.content)?a.content:[{type:e.R4.TEXT,text:a.content}],d=Array.isArray(c.content)?c.content:[{type:e.R4.TEXT,text:c.content}];a.content=[...b.filter(a=>a.type===e.R4.TOOL_RESULT),...d.filter(a=>a.type===e.R4.TOOL_RESULT),...b.filter(a=>a.type!==e.R4.TOOL_RESULT),...d.filter(a=>a.type!==e.R4.TOOL_RESULT)]}else{let a=Array.isArray(c.content)?c.content:[{type:e.R4.TEXT,text:c.content}];b.push({role:c.role,content:[...a]})}}for(let a=0;a<b.length;a++){let d=b[a];if(d.role!==e.z7.USER||!Array.isArray(d.content))continue;let f=b[a-1],g=new Set(f?.role===e.z7.ASSISTANT&&Array.isArray(f.content)?f.content.filter(a=>a.type===e.R4.TOOL_USE&&a.id).map(a=>a.id):[]),h=new Map,i=[];for(let a of d.content){var c;if(a.type!==e.R4.TOOL_RESULT){i.push(a);continue}if(g.has(a.tool_use_id)&&!h.has(a.tool_use_id)){h.set(a.tool_use_id,a);continue}let b="string"==typeof(c=a.content)?c:(Array.isArray(c)?c:[c]).flatMap(a=>"string"==typeof a?[a]:a?.type===e.R4.TEXT&&"string"==typeof a.text?[a.text]:[]).join("\n");i.push({type:e.R4.TEXT,text:`[Unpaired tool result ${a.tool_use_id||"unknown"}]${b?`
23
+ ${b}`:""}`})}d.content=[...[...g].map(a=>h.get(a)||{type:e.R4.TOOL_RESULT,tool_use_id:a,content:""}),...i]}return b}(f),a.messages=f,l(a,o);let g=(f=a.messages)[f.length-1],i=g?.role===e.z7.USER,j=a.thinking?.type==="enabled"&&i,k=!1;for(let a=f.length-1;a>=0;a--){let c=f[a];if(c.role===e.z7.ASSISTANT&&Array.isArray(c.content)){if(!k&&c.content.length>0){for(let a=c.content.length-1;a>=0;a--){let b=c.content[a];if(b.type!==e.R4.THINKING&&b.type!==e.R4.REDACTED_THINKING){b.cache_control={type:"ephemeral"};break}}k=!0}if("claude"===b||b?.startsWith("anthropic-compatible")||"deepseek"===b){let a=!1,f=!1,g="claude"===b,i="deepseek"===b,k=[];for(let b of c.content){if(b.type===e.R4.THINKING||b.type===e.R4.REDACTED_THINKING){g?h(b.signature)&&(f=!0,k.push(b)):(i||(b.signature=d.xr),f=!0,k.push(b));continue}b.type===e.R4.TOOL_USE&&(a=!0),k.push(b)}c.content=k,j&&!f&&a&&c.content.unshift(p(b))}}}}if(a.tools&&Array.isArray(a.tools)){"claude"!==b&&(a.tools=a.tools.filter(a=>!a.type||"function"===a.type).map(a=>{if(a.function)return{name:a.function.name,description:a.function.description,input_schema:a.function.parameters};let{type:b,...c}=a;return c}));let c=m(a.tools);a.tools=a.tools.map((a,b)=>{let{cache_control:d,...e}=a;return b===c?{...e,cache_control:{type:"ephemeral",ttl:"1h"}}:e}),0===a.tools.length&&(delete a.tools,delete a.tool_choice)}if(("claude"===b||b?.startsWith("anthropic-compatible"))&&c){let b=q||(0,g.oV)({headers:o,body:a,connectionId:n,scope:"claude"});a=(0,f.fO)(a,c,b)}return a}},25896:(a,b,c)=>{c.d(b,{b1:()=>j,rP:()=>i});let d=["blocks","model"],e="9router:claude-thinking:v1:";function f(a,b){return a&&"object"==typeof a&&!Array.isArray(a)&&Object.keys(a).sort().join("\0")===b.slice().sort().join("\0")}function g(a){return a?.type==="thinking"&&f(a,["signature","thinking","type"])&&"string"==typeof a.thinking&&"string"==typeof a.signature&&a.signature?{type:"thinking",thinking:a.thinking,signature:a.signature}:a?.type==="redacted_thinking"&&f(a,["data","type"])&&"string"==typeof a.data&&a.data?{type:"redacted_thinking",data:a.data}:null}function h(a,b){if(!f(a,d)||a.model!==b||!Array.isArray(a.blocks)||0===a.blocks.length)return null;let c=a.blocks.map(g);return c.every(Boolean)?c:null}function i(a,b){if("string"!=typeof a||!a||!Array.isArray(b))return null;let c=h({model:a,blocks:b},a);if(!c)return null;try{let b=Buffer.from(JSON.stringify({model:a,blocks:c}),"utf8").toString("base64url");return b.length<=2097152?e+b:null}catch{return null}}function j(a,b){if("string"!=typeof a||"string"!=typeof b||!b||!a.startsWith(e))return null;let c=a.slice(e.length);if(!c||c.length>2097152||!/^[A-Za-z0-9_-]+$/.test(c))return null;try{let a=Buffer.from(c,"base64url");if(a.toString("base64url")!==c)return null;return h(JSON.parse(a.toString("utf8")),b)}catch{return null}}},29229:(a,b,c)=>{c.d(b,{C:()=>p,p:()=>n});var d=c(2547),e=c(19956),f=c(28730),g=c(7259),h=c(27980),i=c(50186),j=c(48644),k=c(18226),l=c(11847),m=c(25896);function n(a,b,c){let d=new Map,e=(0,l.getCapabilitiesForModel)(null,a).maxOutput||void 0,n={model:a,max_tokens:(0,g.M)(b,e),stream:c};void 0!==b.temperature&&(n.temperature=b.temperature),n.messages=[];let p=[];if(b.messages&&Array.isArray(b.messages)){let c;for(let a of b.messages)a.role===k.z7.SYSTEM&&p.push("string"==typeof a.content?a.content:(0,j.kU)(a.content,"\n"));let e=b.messages.filter(a=>a.role!==k.z7.SYSTEM),f=[],g=()=>{c&&f.length>0&&(n.messages.push({role:c,content:f}),f=[])};for(let b of e){let e=b.role===k.z7.USER||b.role===k.z7.TOOL?k.z7.USER:k.z7.ASSISTANT,l=function(a,b=new Map,c=""){let d=[];if(a.role===k.z7.TOOL)d.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&&d.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)d.push({type:k.R4.TEXT,text:b.text});else if(b.type===k.R4.TOOL_RESULT)d.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,c=(0,i.W$)(a);c?d.push({type:k.R4.IMAGE,source:{type:"base64",media_type:c.mimeType,data:c.base64}}):(a.startsWith("http://")||a.startsWith("https://"))&&d.push({type:k.R4.IMAGE,source:{type:"url",url:a}})}else if(b.type===k.x4.IMAGE&&b.source)d.push({type:k.R4.IMAGE,source:b.source});else if(b.type===k.x4.FILE&&b.file){let a=b.file.file_data,c=(0,i.W$)(a);c&&"application/pdf"===c.mimeType&&d.push({type:k.R4.DOCUMENT,source:{type:"base64",media_type:c.mimeType,data:c.base64}})}}}else if(a.role===k.z7.ASSISTANT){let b=Array.isArray(a.tool_calls)&&a.tool_calls.length>0,e="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||"",f=b?(0,m.b1)(e,c):null;if(f&&d.push(...f),Array.isArray(a.content)){for(let b of a.content)if(b.type===k.x4.TEXT&&b.text)d.push({type:k.R4.TEXT,text:b.text});else if(b.type===k.R4.TOOL_USE)d.push({type:k.R4.TOOL_USE,id:b.id,name:b.name,input:b.input});else if((b.type===k.R4.THINKING||b.type===k.R4.REDACTED_THINKING)&&!f){let{cache_control:a,...c}=b;d.push(c)}}else if(a.content){let b="string"==typeof a.content?a.content:(0,j.kU)(a.content,"\n");b&&d.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;d.push({type:k.R4.TOOL_USE,id:b.id,name:a,input:(0,h.N)(b.function.arguments,b.function.arguments)})}}}return d}(b,d,a),o=l.some(a=>a.type===k.R4.TOOL_USE);if(l.some(a=>a.type===k.R4.TOOL_RESULT)){let a=l.filter(a=>a.type===k.R4.TOOL_RESULT),b=l.filter(a=>a.type!==k.R4.TOOL_RESULT);g(),a.length>0&&n.messages.push({role:k.z7.USER,content:a}),b.length>0&&(c=e,f.push(...b));continue}c!==e&&(g(),c=e),f.push(...l),o&&g()}g();for(let a=n.messages.length-1;a>=0;a--){let b=n.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);p.push(`You must respond with valid JSON that strictly follows this JSON schema:
24
24
  \`\`\`json
25
25
  ${b}
26
26
  \`\`\`