switchboard-router 0.5.21 → 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 (1233) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +17 -8
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +3 -435
  5. package/app/.next-cli-build/required-server-files.json +9 -2
  6. package/app/.next-cli-build/routes-manifest.json +86 -13
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/agent-library/page.js +2 -2
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/agent-library/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/agent-library/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +11 -24
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/routing/page.js +2 -2
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/routing/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/routing/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +3 -3
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +16 -16
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +4 -4
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/page.js +2 -2
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +4 -4
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/[id]/page.js +2 -2
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/[id]/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/[id]/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  82. package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  83. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  84. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  85. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  86. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  88. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  89. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  90. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  91. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  92. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  93. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  94. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  96. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  97. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  98. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  99. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  100. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  101. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  102. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  103. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  104. package/app/.next-cli-build/server/app/api/agent-library/catalog/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/agent-library/catalog/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/agent-library/doctor/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/agent-library/doctor/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/agent-library/export/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/agent-library/export/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/agent-library/mcp/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/agent-library/mcp/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/agent-library/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/agent-library/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/agent-library/skills/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/agent-library/skills/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/agent-library/sync/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/agent-library/sync/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/aider-settings/route.js +5 -11
  121. package/app/.next-cli-build/server/app/api/cli-tools/aider-settings/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +13 -38
  123. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  125. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  129. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +5 -2
  131. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  137. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +5 -9
  141. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +5 -2
  143. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/gemini-cli-settings/route.js +9 -10
  145. package/app/.next-cli-build/server/app/api/cli-tools/gemini-cli-settings/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/grok-settings/route.js +9 -6
  147. package/app/.next-cli-build/server/app/api/cli-tools/grok-settings/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +8 -10
  149. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +6 -2
  151. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +5 -2
  153. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -2
  155. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  157. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +5 -2
  159. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  165. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  167. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  169. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  181. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  183. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/route.js +1 -0
  195. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/route.js.nft.json +1 -0
  196. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/route_client-reference-manifest.js +1 -0
  197. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/strategy/route.js +1 -0
  198. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/strategy/route.js.nft.json +1 -0
  199. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/strategy/route_client-reference-manifest.js +1 -0
  200. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/route.js +1 -0
  201. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/route.js.nft.json +1 -0
  202. package/app/.next-cli-build/server/app/api/mgmt/v1/combos/route_client-reference-manifest.js +1 -0
  203. package/app/.next-cli-build/server/app/api/mgmt/v1/health/route.js +1 -0
  204. package/app/.next-cli-build/server/app/api/mgmt/v1/health/route.js.nft.json +1 -0
  205. package/app/.next-cli-build/server/app/api/mgmt/v1/health/route_client-reference-manifest.js +1 -0
  206. package/app/.next-cli-build/server/app/api/mgmt/v1/providers/route.js +1 -0
  207. package/app/.next-cli-build/server/app/api/mgmt/v1/providers/route.js.nft.json +1 -0
  208. package/app/.next-cli-build/server/app/api/mgmt/v1/providers/route_client-reference-manifest.js +1 -0
  209. package/app/.next-cli-build/server/app/api/mgmt/v1/routing/route.js +1 -0
  210. package/app/.next-cli-build/server/app/api/mgmt/v1/routing/route.js.nft.json +1 -0
  211. package/app/.next-cli-build/server/app/api/mgmt/v1/routing/route_client-reference-manifest.js +1 -0
  212. package/app/.next-cli-build/server/app/api/mgmt/v1/usage/route.js +1 -0
  213. package/app/.next-cli-build/server/app/api/mgmt/v1/usage/route.js.nft.json +1 -0
  214. package/app/.next-cli-build/server/app/api/mgmt/v1/usage/route_client-reference-manifest.js +1 -0
  215. package/app/.next-cli-build/server/app/api/mgmt/v1/version/route.js +1 -0
  216. package/app/.next-cli-build/server/app/api/mgmt/v1/version/route.js.nft.json +1 -0
  217. package/app/.next-cli-build/server/app/api/mgmt/v1/version/route_client-reference-manifest.js +1 -0
  218. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  237. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/batch/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/batch/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/cache/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/cache/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/prepare/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/prepare/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/remove-unavailable/route.js +1 -1
  271. package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/remove-unavailable/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  273. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  277. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  283. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  285. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/routing/feedback/route.js +1 -0
  293. package/app/.next-cli-build/server/app/api/routing/feedback/route.js.nft.json +1 -0
  294. package/app/.next-cli-build/server/app/api/routing/feedback/route_client-reference-manifest.js +1 -0
  295. package/app/.next-cli-build/server/app/api/routing/insights/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/routing/insights/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/routing/learn/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/routing/learn/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/routing/stats/route.js +1 -0
  300. package/app/.next-cli-build/server/app/api/routing/stats/route.js.nft.json +1 -0
  301. package/app/.next-cli-build/server/app/api/routing/stats/route_client-reference-manifest.js +1 -0
  302. package/app/.next-cli-build/server/app/api/routing/versions/promote/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/routing/versions/promote/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/routing/versions/rollback/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/routing/versions/rollback/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/skills/[id]/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/skills/[id]/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/token-saver/vault-stats/route.js +1 -0
  319. package/app/.next-cli-build/server/app/api/token-saver/vault-stats/route.js.nft.json +1 -0
  320. package/app/.next-cli-build/server/app/api/token-saver/vault-stats/route_client-reference-manifest.js +1 -0
  321. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  322. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  324. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  328. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  352. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  366. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  382. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  386. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  398. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  400. package/app/.next-cli-build/server/app/callback.html +1 -1
  401. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  402. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  403. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  404. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  405. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  406. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
  407. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  408. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  409. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  411. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  412. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  413. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  414. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  415. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  416. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  417. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  418. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  419. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  420. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  421. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  422. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/index.html +1 -1
  424. package/app/.next-cli-build/server/app/index.rsc +4 -4
  425. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  426. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  427. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  428. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
  429. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  430. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  431. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  432. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  433. package/app/.next-cli-build/server/app/landing.html +1 -1
  434. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  435. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  436. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  437. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  438. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  439. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  440. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  441. package/app/.next-cli-build/server/app/login/page.js +2 -2
  442. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  443. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  444. package/app/.next-cli-build/server/app/login.html +1 -1
  445. package/app/.next-cli-build/server/app/login.rsc +4 -4
  446. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
  447. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  448. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  449. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  450. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
  451. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  452. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  453. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  454. package/app/.next-cli-build/server/app/page.js +2 -2
  455. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  456. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  457. package/app/.next-cli-build/server/app-paths-manifest.json +17 -8
  458. package/app/.next-cli-build/server/chunks/1062.js +64 -0
  459. package/app/.next-cli-build/server/chunks/1064.js +104 -0
  460. package/app/.next-cli-build/server/chunks/1294.js +49 -0
  461. package/app/.next-cli-build/server/chunks/159.js +1 -0
  462. package/app/.next-cli-build/server/chunks/1808.js +1 -0
  463. package/app/.next-cli-build/server/chunks/1814.js +2 -2
  464. package/app/.next-cli-build/server/chunks/194.js +1 -0
  465. package/app/.next-cli-build/server/chunks/1998.js +1 -1
  466. package/app/.next-cli-build/server/chunks/241.js +1 -1
  467. package/app/.next-cli-build/server/chunks/2712.js +3 -0
  468. package/app/.next-cli-build/server/chunks/{9528.js → 2750.js} +2 -3
  469. package/app/.next-cli-build/server/chunks/2925.js +1 -0
  470. package/app/.next-cli-build/server/chunks/3072.js +2 -0
  471. package/app/.next-cli-build/server/chunks/3075.js +1 -0
  472. package/app/.next-cli-build/server/chunks/319.js +3 -3
  473. package/app/.next-cli-build/server/chunks/3535.js +1 -1
  474. package/app/.next-cli-build/server/chunks/3546.js +1 -1
  475. package/app/.next-cli-build/server/chunks/3593.js +2 -2
  476. package/app/.next-cli-build/server/chunks/3675.js +1 -0
  477. package/app/.next-cli-build/server/chunks/369.js +70 -0
  478. package/app/.next-cli-build/server/chunks/3904.js +1 -0
  479. package/app/.next-cli-build/server/chunks/3986.js +49 -14
  480. package/app/.next-cli-build/server/chunks/4126.js +5 -0
  481. package/app/.next-cli-build/server/chunks/{2422.js → 4176.js} +1 -1
  482. package/app/.next-cli-build/server/chunks/4192.js +1 -0
  483. package/app/.next-cli-build/server/chunks/4194.js +1 -1
  484. package/app/.next-cli-build/server/chunks/440.js +26 -0
  485. package/app/.next-cli-build/server/chunks/4646.js +1 -0
  486. package/app/.next-cli-build/server/chunks/4739.js +2 -2
  487. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  488. package/app/.next-cli-build/server/chunks/4776.js +33 -0
  489. package/app/.next-cli-build/server/chunks/4780.js +2 -2
  490. package/app/.next-cli-build/server/chunks/4803.js +9 -0
  491. package/app/.next-cli-build/server/chunks/4904.js +10 -0
  492. package/app/.next-cli-build/server/chunks/507.js +1 -1
  493. package/app/.next-cli-build/server/chunks/5115.js +67 -0
  494. package/app/.next-cli-build/server/chunks/5139.js +1 -0
  495. package/app/.next-cli-build/server/chunks/5258.js +2 -2
  496. package/app/.next-cli-build/server/chunks/5350.js +1 -0
  497. package/app/.next-cli-build/server/chunks/5615.js +3 -3
  498. package/app/.next-cli-build/server/chunks/5821.js +1 -0
  499. package/app/.next-cli-build/server/chunks/6103.js +1 -0
  500. package/app/.next-cli-build/server/chunks/615.js +1 -1
  501. package/app/.next-cli-build/server/chunks/6182.js +3 -3
  502. package/app/.next-cli-build/server/chunks/6252.js +9 -0
  503. package/app/.next-cli-build/server/chunks/6448.js +109 -0
  504. package/app/.next-cli-build/server/chunks/{4206.js → 6470.js} +1 -1
  505. package/app/.next-cli-build/server/chunks/6492.js +1 -0
  506. package/app/.next-cli-build/server/chunks/6844.js +1 -1
  507. package/app/.next-cli-build/server/chunks/698.js +1 -1
  508. package/app/.next-cli-build/server/chunks/7141.js +1 -0
  509. package/app/.next-cli-build/server/chunks/7155.js +1 -0
  510. package/app/.next-cli-build/server/chunks/7250.js +1 -0
  511. package/app/.next-cli-build/server/chunks/7335.js +1 -0
  512. package/app/.next-cli-build/server/chunks/7662.js +1 -0
  513. package/app/.next-cli-build/server/chunks/7753.js +1 -0
  514. package/app/.next-cli-build/server/chunks/7828.js +1 -0
  515. package/app/.next-cli-build/server/chunks/7965.js +2 -2
  516. package/app/.next-cli-build/server/chunks/8062.js +9 -0
  517. package/app/.next-cli-build/server/chunks/8117.js +1 -0
  518. package/app/.next-cli-build/server/chunks/8129.js +1 -0
  519. package/app/.next-cli-build/server/chunks/8400.js +153 -0
  520. package/app/.next-cli-build/server/chunks/8469.js +9 -0
  521. package/app/.next-cli-build/server/chunks/8520.js +1 -1
  522. package/app/.next-cli-build/server/chunks/869.js +1 -0
  523. package/app/.next-cli-build/server/chunks/8775.js +1 -1
  524. package/app/.next-cli-build/server/chunks/8998.js +486 -0
  525. package/app/.next-cli-build/server/chunks/9046.js +1 -0
  526. package/app/.next-cli-build/server/chunks/9062.js +104 -0
  527. package/app/.next-cli-build/server/chunks/9261.js +88 -0
  528. package/app/.next-cli-build/server/chunks/9291.js +1 -0
  529. package/app/.next-cli-build/server/chunks/9397.js +1 -0
  530. package/app/.next-cli-build/server/chunks/9489.js +8 -0
  531. package/app/.next-cli-build/server/chunks/9508.js +45 -0
  532. package/app/.next-cli-build/server/chunks/9696.js +3 -3
  533. package/app/.next-cli-build/server/chunks/995.js +1 -0
  534. package/app/.next-cli-build/server/chunks/static/media/catalog.e7ada387.json +1710 -0
  535. package/app/.next-cli-build/server/instrumentation.js +1 -0
  536. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  537. package/app/.next-cli-build/server/middleware.js +11 -11
  538. package/app/.next-cli-build/server/pages/404.html +1 -1
  539. package/app/.next-cli-build/server/pages/500.html +1 -1
  540. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  541. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  542. package/app/.next-cli-build/server/webpack-runtime.js +1 -1
  543. package/app/.next-cli-build/static/chunks/1321-a44fdd7adfc172fb.js +1 -0
  544. package/app/.next-cli-build/static/chunks/136-b76ff55769d5ecb1.js +1 -0
  545. package/app/.next-cli-build/static/chunks/2280-61262f8359f37a85.js +64 -0
  546. package/app/.next-cli-build/static/chunks/2493-6241eb181f2ecb6e.js +67 -0
  547. package/app/.next-cli-build/static/chunks/5497-aa5f62602eba33e9.js +7 -0
  548. package/app/.next-cli-build/static/chunks/7592-bbf465c7acd2478e.js +1 -0
  549. package/app/.next-cli-build/static/chunks/782-3676be0287313117.js +3 -0
  550. package/app/.next-cli-build/static/chunks/8500-287dd3e5d372ba6f.js +1 -0
  551. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/agent-library/page-3eb83b61eb3cbc9f.js +1 -0
  552. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-04509a38b9fd3dcf.js +1 -0
  553. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-fa35870caaeabe20.js +1 -0
  554. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-88244cb193592f8f.js → page-aa9c65a5e73a3f5d.js} +1 -1
  555. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-a8d77d24b4c71915.js +1 -0
  556. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/routing/page-95f09ae849f539d6.js +1 -0
  557. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-6678759c536b4008.js +1 -0
  558. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-59e92d48daea1aed.js +3 -0
  559. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-183cf5498e6d3e42.js +59 -0
  560. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-b67e7e3b9acaf1cc.js +1 -0
  561. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-a4bad553cba810e7.js +4 -0
  562. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/{page-36448aa4e37c7802.js → page-0568602ac2385103.js} +1 -1
  563. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-f6e3507247a819e5.js +1 -0
  564. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-755ed32651028f99.js → page-08fe6612a31239da.js} +1 -1
  565. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-27ae229b00137a0b.js +1 -0
  566. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-a1ab95a02951c91d.js +1 -0
  567. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-0d7fcdbff356b2ab.js +10 -0
  568. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-608cdc11e7047159.js +1 -0
  569. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-ad84a479883e6cc3.js +1 -0
  570. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-f312c1076859630e.js +1 -0
  571. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/[id]/page-90277b8688f387c1.js +1 -0
  572. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-77bb7400c2be9752.js → page-33e127c15efc66a5.js} +1 -1
  573. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-0f74a450b98fa125.js +1 -0
  574. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-ad2eda4b48c9319b.js +1 -0
  575. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-025d20cc7b091120.js +1 -0
  576. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-b06b9aec5dcdf486.js +1 -0
  577. package/app/.next-cli-build/static/chunks/app/_global-error/page-1d242eb898fee31e.js +1 -0
  578. package/app/.next-cli-build/static/chunks/app/api/agent-library/catalog/route-1d242eb898fee31e.js +1 -0
  579. package/app/.next-cli-build/static/chunks/app/api/agent-library/doctor/route-1d242eb898fee31e.js +1 -0
  580. package/app/.next-cli-build/static/chunks/app/api/agent-library/export/route-1d242eb898fee31e.js +1 -0
  581. package/app/.next-cli-build/static/chunks/app/api/agent-library/mcp/route-1d242eb898fee31e.js +1 -0
  582. package/app/.next-cli-build/static/chunks/app/api/agent-library/route-1d242eb898fee31e.js +1 -0
  583. package/app/.next-cli-build/static/chunks/app/api/agent-library/skills/route-1d242eb898fee31e.js +1 -0
  584. package/app/.next-cli-build/static/chunks/app/api/agent-library/sync/route-1d242eb898fee31e.js +1 -0
  585. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-1d242eb898fee31e.js +1 -0
  586. package/app/.next-cli-build/static/chunks/app/api/cli-tools/aider-settings/route-1d242eb898fee31e.js +1 -0
  587. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-1d242eb898fee31e.js +1 -0
  588. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1d242eb898fee31e.js +1 -0
  589. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-1d242eb898fee31e.js +1 -0
  590. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-1d242eb898fee31e.js +1 -0
  591. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-1d242eb898fee31e.js +1 -0
  592. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-1d242eb898fee31e.js +1 -0
  593. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1d242eb898fee31e.js +1 -0
  594. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1d242eb898fee31e.js +1 -0
  595. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-1d242eb898fee31e.js +1 -0
  596. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-1d242eb898fee31e.js +1 -0
  597. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-1d242eb898fee31e.js +1 -0
  598. package/app/.next-cli-build/static/chunks/app/api/cli-tools/gemini-cli-settings/route-1d242eb898fee31e.js +1 -0
  599. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-settings/route-1d242eb898fee31e.js +1 -0
  600. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-1d242eb898fee31e.js +1 -0
  601. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-1d242eb898fee31e.js +1 -0
  602. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-1d242eb898fee31e.js +1 -0
  603. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-1d242eb898fee31e.js +1 -0
  604. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-1d242eb898fee31e.js +1 -0
  605. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-1d242eb898fee31e.js +1 -0
  606. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-1d242eb898fee31e.js +1 -0
  607. package/app/.next-cli-build/static/chunks/app/api/combos/route-1d242eb898fee31e.js +1 -0
  608. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-1d242eb898fee31e.js +1 -0
  609. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-1d242eb898fee31e.js +1 -0
  610. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-1d242eb898fee31e.js +1 -0
  611. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-1d242eb898fee31e.js +1 -0
  612. package/app/.next-cli-build/static/chunks/app/api/health/route-1d242eb898fee31e.js +1 -0
  613. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-1d242eb898fee31e.js +1 -0
  614. package/app/.next-cli-build/static/chunks/app/api/keys/route-1d242eb898fee31e.js +1 -0
  615. package/app/.next-cli-build/static/chunks/app/api/locale/route-1d242eb898fee31e.js +1 -0
  616. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-1d242eb898fee31e.js +1 -0
  617. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-1d242eb898fee31e.js +1 -0
  618. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1d242eb898fee31e.js +1 -0
  619. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1d242eb898fee31e.js +1 -0
  620. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-1d242eb898fee31e.js +1 -0
  621. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-1d242eb898fee31e.js +1 -0
  622. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-1d242eb898fee31e.js +1 -0
  623. package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/route-1d242eb898fee31e.js +1 -0
  624. package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-1d242eb898fee31e.js +1 -0
  625. package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/route-1d242eb898fee31e.js +1 -0
  626. package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/health/route-1d242eb898fee31e.js +1 -0
  627. package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/providers/route-1d242eb898fee31e.js +1 -0
  628. package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/routing/route-1d242eb898fee31e.js +1 -0
  629. package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/usage/route-1d242eb898fee31e.js +1 -0
  630. package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/version/route-1d242eb898fee31e.js +1 -0
  631. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-1d242eb898fee31e.js +1 -0
  632. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-1d242eb898fee31e.js +1 -0
  633. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-1d242eb898fee31e.js +1 -0
  634. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-1d242eb898fee31e.js +1 -0
  635. package/app/.next-cli-build/static/chunks/app/api/models/route-1d242eb898fee31e.js +1 -0
  636. package/app/.next-cli-build/static/chunks/app/api/models/test/route-1d242eb898fee31e.js +1 -0
  637. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-1d242eb898fee31e.js +1 -0
  638. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-1d242eb898fee31e.js +1 -0
  639. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-1d242eb898fee31e.js +1 -0
  640. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-1d242eb898fee31e.js +1 -0
  641. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-1d242eb898fee31e.js +1 -0
  642. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-1d242eb898fee31e.js +1 -0
  643. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-1d242eb898fee31e.js +1 -0
  644. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-1d242eb898fee31e.js +1 -0
  645. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-1d242eb898fee31e.js +1 -0
  646. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-1d242eb898fee31e.js +1 -0
  647. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-1d242eb898fee31e.js +1 -0
  648. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-1d242eb898fee31e.js +1 -0
  649. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-1d242eb898fee31e.js +1 -0
  650. package/app/.next-cli-build/static/chunks/app/api/pricing/route-1d242eb898fee31e.js +1 -0
  651. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-1d242eb898fee31e.js +1 -0
  652. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-1d242eb898fee31e.js +1 -0
  653. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-1d242eb898fee31e.js +1 -0
  654. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/batch/route-1d242eb898fee31e.js +1 -0
  655. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/cache/route-1d242eb898fee31e.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/prepare/route-1d242eb898fee31e.js +1 -0
  657. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-1d242eb898fee31e.js +1 -0
  658. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-1d242eb898fee31e.js +1 -0
  659. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-1d242eb898fee31e.js +1 -0
  660. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-1d242eb898fee31e.js +1 -0
  661. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-1d242eb898fee31e.js +1 -0
  662. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-1d242eb898fee31e.js +1 -0
  663. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-1d242eb898fee31e.js +1 -0
  664. package/app/.next-cli-build/static/chunks/app/api/providers/route-1d242eb898fee31e.js +1 -0
  665. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-1d242eb898fee31e.js +1 -0
  666. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-1d242eb898fee31e.js +1 -0
  667. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-1d242eb898fee31e.js +1 -0
  668. package/app/.next-cli-build/static/chunks/app/api/routing/feedback/route-1d242eb898fee31e.js +1 -0
  669. package/app/.next-cli-build/static/chunks/app/api/routing/insights/route-1d242eb898fee31e.js +1 -0
  670. package/app/.next-cli-build/static/chunks/app/api/routing/learn/route-1d242eb898fee31e.js +1 -0
  671. package/app/.next-cli-build/static/chunks/app/api/routing/stats/route-1d242eb898fee31e.js +1 -0
  672. package/app/.next-cli-build/static/chunks/app/api/routing/versions/promote/route-1d242eb898fee31e.js +1 -0
  673. package/app/.next-cli-build/static/chunks/app/api/routing/versions/rollback/route-1d242eb898fee31e.js +1 -0
  674. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-1d242eb898fee31e.js +1 -0
  675. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-1d242eb898fee31e.js +1 -0
  676. package/app/.next-cli-build/static/chunks/app/api/settings/route-1d242eb898fee31e.js +1 -0
  677. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-1d242eb898fee31e.js +1 -0
  678. package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-1d242eb898fee31e.js +1 -0
  679. package/app/.next-cli-build/static/chunks/app/api/tags/route-1d242eb898fee31e.js +1 -0
  680. package/app/.next-cli-build/static/chunks/app/api/token-saver/vault-stats/route-1d242eb898fee31e.js +1 -0
  681. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-1d242eb898fee31e.js +1 -0
  682. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-1d242eb898fee31e.js +1 -0
  683. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-1d242eb898fee31e.js +1 -0
  684. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-1d242eb898fee31e.js +1 -0
  685. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-1d242eb898fee31e.js +1 -0
  686. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-1d242eb898fee31e.js +1 -0
  687. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-1d242eb898fee31e.js +1 -0
  688. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-1d242eb898fee31e.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-1d242eb898fee31e.js +1 -0
  690. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-1d242eb898fee31e.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-1d242eb898fee31e.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-1d242eb898fee31e.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-1d242eb898fee31e.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-1d242eb898fee31e.js +1 -0
  695. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-1d242eb898fee31e.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-1d242eb898fee31e.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-1d242eb898fee31e.js +1 -0
  698. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-1d242eb898fee31e.js +1 -0
  699. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-1d242eb898fee31e.js +1 -0
  700. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-1d242eb898fee31e.js +1 -0
  701. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-1d242eb898fee31e.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-1d242eb898fee31e.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-1d242eb898fee31e.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-1d242eb898fee31e.js +1 -0
  705. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-1d242eb898fee31e.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-1d242eb898fee31e.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-1d242eb898fee31e.js +1 -0
  708. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-1d242eb898fee31e.js +1 -0
  709. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-1d242eb898fee31e.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-1d242eb898fee31e.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/v1/route-1d242eb898fee31e.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-1d242eb898fee31e.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-1d242eb898fee31e.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-1d242eb898fee31e.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-1d242eb898fee31e.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/version/route-1d242eb898fee31e.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-1d242eb898fee31e.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/version/update/route-1d242eb898fee31e.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/callback/page-5c1d863ff86ddc6e.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-4cfc7195d2a8bf0e.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/landing/page-9e06d57d9b215fd7.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/login/page-1d242eb898fee31e.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-1d242eb898fee31e.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/page-1d242eb898fee31e.js +1 -0
  725. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-1d242eb898fee31e.js +1 -0
  726. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-1d242eb898fee31e.js +1 -0
  727. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-1d242eb898fee31e.js +1 -0
  728. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-1d242eb898fee31e.js +1 -0
  729. package/app/.next-cli-build/static/chunks/webpack-57b54315eb9fa808.js +1 -0
  730. package/app/.next-cli-build/static/css/92a5708a6b29ef8c.css +1 -0
  731. package/app/.next-cli-build/static/media/catalog.e7ada387.json +1710 -0
  732. package/app/.next-cli-build/static/sBwyl4vbyME9SYpTbTHkn/_buildManifest.js +1 -0
  733. package/app/custom-server.js +5 -5
  734. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/container.js +26 -18
  735. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/css-syntax-error.js +47 -14
  736. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/fromJSON.js +23 -9
  737. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/input.js +61 -33
  738. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/lazy-result.js +50 -37
  739. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/map-generator.js +26 -9
  740. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/no-work-result.js +57 -55
  741. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/node.js +110 -35
  742. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/parser.js +46 -38
  743. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/previous-map.js +30 -11
  744. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/processor.js +7 -7
  745. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/result.js +5 -5
  746. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/stringifier.js +41 -20
  747. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/tokenize.js +6 -2
  748. package/app/node_modules/{next/node_modules/postcss → postcss}/package.json +48 -48
  749. package/app/open-sse/package.json +4 -0
  750. package/app/open-sse/providers/generated/catalog.json +1710 -0
  751. package/app/package.json +22 -10
  752. package/app/public/i18n/literals/zh-CN.json +8 -0
  753. package/app/server.js +1 -1
  754. package/app/src/lib/db/adapters/betterSqliteAdapter.js +2 -3
  755. package/app/src/lib/db/adapters/bunSqliteAdapter.js +0 -2
  756. package/app/src/lib/db/adapters/nodeSqliteAdapter.js +0 -2
  757. package/app/src/lib/db/adapters/sqljsAdapter.js +23 -4
  758. package/app/src/lib/db/migrate.js +15 -4
  759. package/app/src/lib/updater/updater.js +67 -9
  760. package/app/src/shared/utils/apiKey.js +3 -7
  761. package/cli.js +205 -180
  762. package/hooks/sqliteRuntime.js +1 -7
  763. package/package.json +2 -2
  764. package/src/cli/api/client.js +3 -20
  765. package/src/cli/menus/settings.js +3 -62
  766. package/src/cli/tray/tray.js +18 -26
  767. package/src/shared/dataDir.js +61 -0
  768. package/src/shared/disableMitm.js +102 -0
  769. package/src/shared/openBrowser.js +43 -0
  770. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +0 -2
  771. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +0 -1
  772. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route_client-reference-manifest.js +0 -1
  773. package/app/.next-cli-build/server/app/api/init/route.js +0 -1
  774. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +0 -1
  775. package/app/.next-cli-build/server/app/api/init/route_client-reference-manifest.js +0 -1
  776. package/app/.next-cli-build/server/app/dashboard/agent-library.html +0 -1
  777. package/app/.next-cli-build/server/app/dashboard/agent-library.meta +0 -17
  778. package/app/.next-cli-build/server/app/dashboard/agent-library.rsc +0 -30
  779. package/app/.next-cli-build/server/app/dashboard/agent-library.segments/!KGRhc2hib2FyZCk/dashboard/agent-library/__PAGE__.segment.rsc +0 -9
  780. package/app/.next-cli-build/server/app/dashboard/agent-library.segments/!KGRhc2hib2FyZCk/dashboard/agent-library.segment.rsc +0 -5
  781. package/app/.next-cli-build/server/app/dashboard/agent-library.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  782. package/app/.next-cli-build/server/app/dashboard/agent-library.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  783. package/app/.next-cli-build/server/app/dashboard/agent-library.segments/_full.segment.rsc +0 -30
  784. package/app/.next-cli-build/server/app/dashboard/agent-library.segments/_head.segment.rsc +0 -6
  785. package/app/.next-cli-build/server/app/dashboard/agent-library.segments/_index.segment.rsc +0 -8
  786. package/app/.next-cli-build/server/app/dashboard/agent-library.segments/_tree.segment.rsc +0 -8
  787. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +0 -1
  788. package/app/.next-cli-build/server/app/dashboard/basic-chat.meta +0 -17
  789. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +0 -27
  790. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +0 -6
  791. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +0 -5
  792. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  793. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  794. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +0 -27
  795. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +0 -6
  796. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +0 -8
  797. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +0 -8
  798. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +0 -1
  799. package/app/.next-cli-build/server/app/dashboard/cli-tools.meta +0 -17
  800. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +0 -28
  801. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +0 -6
  802. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +0 -5
  803. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  804. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  805. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +0 -28
  806. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +0 -6
  807. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +0 -8
  808. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +0 -8
  809. package/app/.next-cli-build/server/app/dashboard/combos/routing.html +0 -1
  810. package/app/.next-cli-build/server/app/dashboard/combos/routing.meta +0 -18
  811. package/app/.next-cli-build/server/app/dashboard/combos/routing.rsc +0 -30
  812. package/app/.next-cli-build/server/app/dashboard/combos/routing.segments/!KGRhc2hib2FyZCk/dashboard/combos/routing/__PAGE__.segment.rsc +0 -9
  813. package/app/.next-cli-build/server/app/dashboard/combos/routing.segments/!KGRhc2hib2FyZCk/dashboard/combos/routing.segment.rsc +0 -5
  814. package/app/.next-cli-build/server/app/dashboard/combos/routing.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +0 -5
  815. package/app/.next-cli-build/server/app/dashboard/combos/routing.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  816. package/app/.next-cli-build/server/app/dashboard/combos/routing.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  817. package/app/.next-cli-build/server/app/dashboard/combos/routing.segments/_full.segment.rsc +0 -30
  818. package/app/.next-cli-build/server/app/dashboard/combos/routing.segments/_head.segment.rsc +0 -6
  819. package/app/.next-cli-build/server/app/dashboard/combos/routing.segments/_index.segment.rsc +0 -8
  820. package/app/.next-cli-build/server/app/dashboard/combos/routing.segments/_tree.segment.rsc +0 -8
  821. package/app/.next-cli-build/server/app/dashboard/combos.html +0 -1
  822. package/app/.next-cli-build/server/app/dashboard/combos.meta +0 -17
  823. package/app/.next-cli-build/server/app/dashboard/combos.rsc +0 -28
  824. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +0 -6
  825. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +0 -5
  826. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  827. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  828. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +0 -28
  829. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +0 -6
  830. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +0 -8
  831. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +0 -8
  832. package/app/.next-cli-build/server/app/dashboard/endpoint.html +0 -1
  833. package/app/.next-cli-build/server/app/dashboard/endpoint.meta +0 -17
  834. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +0 -28
  835. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +0 -6
  836. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +0 -5
  837. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  838. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  839. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +0 -28
  840. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +0 -6
  841. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +0 -8
  842. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +0 -8
  843. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +0 -1
  844. package/app/.next-cli-build/server/app/dashboard/media-providers/web.meta +0 -18
  845. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +0 -30
  846. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +0 -9
  847. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +0 -5
  848. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +0 -5
  849. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  850. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  851. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +0 -30
  852. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +0 -6
  853. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +0 -8
  854. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +0 -8
  855. package/app/.next-cli-build/server/app/dashboard/media-providers.html +0 -1
  856. package/app/.next-cli-build/server/app/dashboard/media-providers.meta +0 -17
  857. package/app/.next-cli-build/server/app/dashboard/media-providers.rsc +0 -30
  858. package/app/.next-cli-build/server/app/dashboard/media-providers.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/__PAGE__.segment.rsc +0 -9
  859. package/app/.next-cli-build/server/app/dashboard/media-providers.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +0 -5
  860. package/app/.next-cli-build/server/app/dashboard/media-providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  861. package/app/.next-cli-build/server/app/dashboard/media-providers.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  862. package/app/.next-cli-build/server/app/dashboard/media-providers.segments/_full.segment.rsc +0 -30
  863. package/app/.next-cli-build/server/app/dashboard/media-providers.segments/_head.segment.rsc +0 -6
  864. package/app/.next-cli-build/server/app/dashboard/media-providers.segments/_index.segment.rsc +0 -8
  865. package/app/.next-cli-build/server/app/dashboard/media-providers.segments/_tree.segment.rsc +0 -8
  866. package/app/.next-cli-build/server/app/dashboard/mitm.html +0 -1
  867. package/app/.next-cli-build/server/app/dashboard/mitm.meta +0 -17
  868. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +0 -27
  869. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +0 -6
  870. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +0 -5
  871. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  872. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  873. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +0 -27
  874. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +0 -6
  875. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +0 -8
  876. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +0 -8
  877. package/app/.next-cli-build/server/app/dashboard/profile.html +0 -1
  878. package/app/.next-cli-build/server/app/dashboard/profile.meta +0 -17
  879. package/app/.next-cli-build/server/app/dashboard/profile.rsc +0 -28
  880. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +0 -6
  881. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +0 -5
  882. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  883. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  884. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +0 -28
  885. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +0 -6
  886. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +0 -8
  887. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +0 -8
  888. package/app/.next-cli-build/server/app/dashboard/providers/new.html +0 -1
  889. package/app/.next-cli-build/server/app/dashboard/providers/new.meta +0 -18
  890. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +0 -30
  891. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +0 -9
  892. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +0 -5
  893. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +0 -5
  894. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  895. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  896. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +0 -30
  897. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +0 -6
  898. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +0 -8
  899. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +0 -8
  900. package/app/.next-cli-build/server/app/dashboard/providers.html +0 -1
  901. package/app/.next-cli-build/server/app/dashboard/providers.meta +0 -17
  902. package/app/.next-cli-build/server/app/dashboard/providers.rsc +0 -28
  903. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +0 -6
  904. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +0 -5
  905. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  906. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  907. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +0 -28
  908. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +0 -6
  909. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +0 -8
  910. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +0 -8
  911. package/app/.next-cli-build/server/app/dashboard/quota.html +0 -2
  912. package/app/.next-cli-build/server/app/dashboard/quota.meta +0 -17
  913. package/app/.next-cli-build/server/app/dashboard/quota.rsc +0 -28
  914. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +0 -7
  915. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +0 -5
  916. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  917. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  918. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +0 -28
  919. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +0 -6
  920. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +0 -8
  921. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +0 -8
  922. package/app/.next-cli-build/server/app/dashboard/skills.html +0 -1
  923. package/app/.next-cli-build/server/app/dashboard/skills.meta +0 -17
  924. package/app/.next-cli-build/server/app/dashboard/skills.rsc +0 -30
  925. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +0 -9
  926. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +0 -5
  927. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  928. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  929. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +0 -30
  930. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +0 -6
  931. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +0 -8
  932. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +0 -8
  933. package/app/.next-cli-build/server/app/dashboard/token-saver.html +0 -1
  934. package/app/.next-cli-build/server/app/dashboard/token-saver.meta +0 -17
  935. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +0 -27
  936. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +0 -6
  937. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +0 -5
  938. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  939. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  940. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +0 -27
  941. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +0 -6
  942. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +0 -8
  943. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +0 -8
  944. package/app/.next-cli-build/server/app/dashboard/translator.html +0 -1
  945. package/app/.next-cli-build/server/app/dashboard/translator.meta +0 -17
  946. package/app/.next-cli-build/server/app/dashboard/translator.rsc +0 -30
  947. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +0 -9
  948. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +0 -5
  949. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  950. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  951. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +0 -30
  952. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +0 -6
  953. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +0 -8
  954. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +0 -8
  955. package/app/.next-cli-build/server/app/dashboard/usage.html +0 -1
  956. package/app/.next-cli-build/server/app/dashboard/usage.meta +0 -17
  957. package/app/.next-cli-build/server/app/dashboard/usage.rsc +0 -30
  958. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +0 -9
  959. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +0 -5
  960. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  961. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  962. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +0 -30
  963. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +0 -6
  964. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +0 -8
  965. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +0 -8
  966. package/app/.next-cli-build/server/app/dashboard.html +0 -1
  967. package/app/.next-cli-build/server/app/dashboard.meta +0 -16
  968. package/app/.next-cli-build/server/app/dashboard.rsc +0 -28
  969. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +0 -6
  970. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +0 -5
  971. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +0 -7
  972. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +0 -28
  973. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +0 -6
  974. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +0 -8
  975. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +0 -8
  976. package/app/.next-cli-build/server/chunks/1051.js +0 -1
  977. package/app/.next-cli-build/server/chunks/1220.js +0 -3
  978. package/app/.next-cli-build/server/chunks/1241.js +0 -1
  979. package/app/.next-cli-build/server/chunks/2117.js +0 -1
  980. package/app/.next-cli-build/server/chunks/2280.js +0 -1
  981. package/app/.next-cli-build/server/chunks/2548.js +0 -67
  982. package/app/.next-cli-build/server/chunks/2701.js +0 -10
  983. package/app/.next-cli-build/server/chunks/2768.js +0 -79
  984. package/app/.next-cli-build/server/chunks/3943.js +0 -1
  985. package/app/.next-cli-build/server/chunks/4632.js +0 -1
  986. package/app/.next-cli-build/server/chunks/4827.js +0 -1
  987. package/app/.next-cli-build/server/chunks/5330.js +0 -161
  988. package/app/.next-cli-build/server/chunks/5612.js +0 -1
  989. package/app/.next-cli-build/server/chunks/5655.js +0 -1
  990. package/app/.next-cli-build/server/chunks/5699.js +0 -1
  991. package/app/.next-cli-build/server/chunks/5961.js +0 -28
  992. package/app/.next-cli-build/server/chunks/6040.js +0 -1
  993. package/app/.next-cli-build/server/chunks/6059.js +0 -1
  994. package/app/.next-cli-build/server/chunks/6070.js +0 -1
  995. package/app/.next-cli-build/server/chunks/6150.js +0 -64
  996. package/app/.next-cli-build/server/chunks/6306.js +0 -1
  997. package/app/.next-cli-build/server/chunks/6763.js +0 -1
  998. package/app/.next-cli-build/server/chunks/6777.js +0 -1
  999. package/app/.next-cli-build/server/chunks/6922.js +0 -1
  1000. package/app/.next-cli-build/server/chunks/7651.js +0 -1
  1001. package/app/.next-cli-build/server/chunks/8164.js +0 -67
  1002. package/app/.next-cli-build/server/chunks/8238.js +0 -1
  1003. package/app/.next-cli-build/server/chunks/8860.js +0 -32
  1004. package/app/.next-cli-build/server/chunks/8895.js +0 -67
  1005. package/app/.next-cli-build/server/chunks/8910.js +0 -8
  1006. package/app/.next-cli-build/server/chunks/8920.js +0 -1
  1007. package/app/.next-cli-build/server/chunks/9830.js +0 -73
  1008. package/app/.next-cli-build/static/HFerqnfiKkxdqoMVxOfPW/_buildManifest.js +0 -1
  1009. package/app/.next-cli-build/static/chunks/1321-39ad919b1616c75c.js +0 -1
  1010. package/app/.next-cli-build/static/chunks/1610-cd46c6c47a9aa99a.js +0 -1
  1011. package/app/.next-cli-build/static/chunks/1655-0df56bb46fc3a442.js +0 -73
  1012. package/app/.next-cli-build/static/chunks/2562-ceb69ca00b47af6e.js +0 -64
  1013. package/app/.next-cli-build/static/chunks/5242-bb1a1a7ec3bfb62f.js +0 -1
  1014. package/app/.next-cli-build/static/chunks/5497-1ebc533b1f404c9f.js +0 -7
  1015. package/app/.next-cli-build/static/chunks/5772-901f1092d831ec37.js +0 -3
  1016. package/app/.next-cli-build/static/chunks/705-012db20bb6a5da8b.js +0 -1
  1017. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/agent-library/page-b6f9c90a614bfb03.js +0 -1
  1018. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-af2d913820faedae.js +0 -1
  1019. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-a777baf9c2aa43b4.js +0 -1
  1020. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-3f5fa0d8e152056f.js +0 -1
  1021. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/routing/page-ff92eef8e57d1447.js +0 -1
  1022. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-73628e93426ae624.js +0 -1
  1023. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-a8d8d0f4bfbcfbae.js +0 -3
  1024. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-a915efd975f6af81.js +0 -59
  1025. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-9cad271042843781.js +0 -1
  1026. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-8bff15a89ffc3746.js +0 -4
  1027. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-4d2b06f4c8d1b384.js +0 -1
  1028. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-afeae41f2e9445ec.js +0 -1
  1029. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-ff7973275ee57a96.js +0 -1
  1030. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-5e44267c26a7e42d.js +0 -10
  1031. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-3afd6ee04180298c.js +0 -1
  1032. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-4957f02eb9879798.js +0 -1
  1033. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-14da9269a25bd090.js +0 -1
  1034. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/[id]/page-95e55b6593bcf3f7.js +0 -1
  1035. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-54d1bd253432bc6f.js +0 -1
  1036. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-ef0b203963c2c25e.js +0 -1
  1037. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-59db0b586ad5ab45.js +0 -1
  1038. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-58013e7e99d17d70.js +0 -1
  1039. package/app/.next-cli-build/static/chunks/app/_global-error/page-4ff27935cdf818b5.js +0 -1
  1040. package/app/.next-cli-build/static/chunks/app/api/agent-library/catalog/route-4ff27935cdf818b5.js +0 -1
  1041. package/app/.next-cli-build/static/chunks/app/api/agent-library/doctor/route-4ff27935cdf818b5.js +0 -1
  1042. package/app/.next-cli-build/static/chunks/app/api/agent-library/export/route-4ff27935cdf818b5.js +0 -1
  1043. package/app/.next-cli-build/static/chunks/app/api/agent-library/mcp/route-4ff27935cdf818b5.js +0 -1
  1044. package/app/.next-cli-build/static/chunks/app/api/agent-library/route-4ff27935cdf818b5.js +0 -1
  1045. package/app/.next-cli-build/static/chunks/app/api/agent-library/skills/route-4ff27935cdf818b5.js +0 -1
  1046. package/app/.next-cli-build/static/chunks/app/api/agent-library/sync/route-4ff27935cdf818b5.js +0 -1
  1047. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-4ff27935cdf818b5.js +0 -1
  1048. package/app/.next-cli-build/static/chunks/app/api/cli-tools/aider-settings/route-4ff27935cdf818b5.js +0 -1
  1049. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-4ff27935cdf818b5.js +0 -1
  1050. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-4ff27935cdf818b5.js +0 -1
  1051. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-4ff27935cdf818b5.js +0 -1
  1052. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-4ff27935cdf818b5.js +0 -1
  1053. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-4ff27935cdf818b5.js +0 -1
  1054. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-4ff27935cdf818b5.js +0 -1
  1055. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-4ff27935cdf818b5.js +0 -1
  1056. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-4ff27935cdf818b5.js +0 -1
  1057. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-4ff27935cdf818b5.js +0 -1
  1058. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-4ff27935cdf818b5.js +0 -1
  1059. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-4ff27935cdf818b5.js +0 -1
  1060. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-4ff27935cdf818b5.js +0 -1
  1061. package/app/.next-cli-build/static/chunks/app/api/cli-tools/gemini-cli-settings/route-4ff27935cdf818b5.js +0 -1
  1062. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-settings/route-4ff27935cdf818b5.js +0 -1
  1063. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-4ff27935cdf818b5.js +0 -1
  1064. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-4ff27935cdf818b5.js +0 -1
  1065. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-4ff27935cdf818b5.js +0 -1
  1066. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-4ff27935cdf818b5.js +0 -1
  1067. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-4ff27935cdf818b5.js +0 -1
  1068. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-4ff27935cdf818b5.js +0 -1
  1069. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-4ff27935cdf818b5.js +0 -1
  1070. package/app/.next-cli-build/static/chunks/app/api/combos/route-4ff27935cdf818b5.js +0 -1
  1071. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-4ff27935cdf818b5.js +0 -1
  1072. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-4ff27935cdf818b5.js +0 -1
  1073. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-4ff27935cdf818b5.js +0 -1
  1074. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-4ff27935cdf818b5.js +0 -1
  1075. package/app/.next-cli-build/static/chunks/app/api/health/route-4ff27935cdf818b5.js +0 -1
  1076. package/app/.next-cli-build/static/chunks/app/api/init/route-4ff27935cdf818b5.js +0 -1
  1077. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-4ff27935cdf818b5.js +0 -1
  1078. package/app/.next-cli-build/static/chunks/app/api/keys/route-4ff27935cdf818b5.js +0 -1
  1079. package/app/.next-cli-build/static/chunks/app/api/locale/route-4ff27935cdf818b5.js +0 -1
  1080. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-4ff27935cdf818b5.js +0 -1
  1081. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-4ff27935cdf818b5.js +0 -1
  1082. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-4ff27935cdf818b5.js +0 -1
  1083. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-4ff27935cdf818b5.js +0 -1
  1084. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-4ff27935cdf818b5.js +0 -1
  1085. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-4ff27935cdf818b5.js +0 -1
  1086. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-4ff27935cdf818b5.js +0 -1
  1087. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-4ff27935cdf818b5.js +0 -1
  1088. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-4ff27935cdf818b5.js +0 -1
  1089. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-4ff27935cdf818b5.js +0 -1
  1090. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-4ff27935cdf818b5.js +0 -1
  1091. package/app/.next-cli-build/static/chunks/app/api/models/route-4ff27935cdf818b5.js +0 -1
  1092. package/app/.next-cli-build/static/chunks/app/api/models/test/route-4ff27935cdf818b5.js +0 -1
  1093. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-4ff27935cdf818b5.js +0 -1
  1094. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-4ff27935cdf818b5.js +0 -1
  1095. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-4ff27935cdf818b5.js +0 -1
  1096. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-4ff27935cdf818b5.js +0 -1
  1097. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-4ff27935cdf818b5.js +0 -1
  1098. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-4ff27935cdf818b5.js +0 -1
  1099. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-4ff27935cdf818b5.js +0 -1
  1100. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-4ff27935cdf818b5.js +0 -1
  1101. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-4ff27935cdf818b5.js +0 -1
  1102. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-4ff27935cdf818b5.js +0 -1
  1103. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-4ff27935cdf818b5.js +0 -1
  1104. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-4ff27935cdf818b5.js +0 -1
  1105. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-4ff27935cdf818b5.js +0 -1
  1106. package/app/.next-cli-build/static/chunks/app/api/pricing/route-4ff27935cdf818b5.js +0 -1
  1107. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-4ff27935cdf818b5.js +0 -1
  1108. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-4ff27935cdf818b5.js +0 -1
  1109. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-4ff27935cdf818b5.js +0 -1
  1110. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/batch/route-4ff27935cdf818b5.js +0 -1
  1111. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/cache/route-4ff27935cdf818b5.js +0 -1
  1112. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/prepare/route-4ff27935cdf818b5.js +0 -1
  1113. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-4ff27935cdf818b5.js +0 -1
  1114. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-4ff27935cdf818b5.js +0 -1
  1115. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-4ff27935cdf818b5.js +0 -1
  1116. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-4ff27935cdf818b5.js +0 -1
  1117. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-4ff27935cdf818b5.js +0 -1
  1118. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-4ff27935cdf818b5.js +0 -1
  1119. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-4ff27935cdf818b5.js +0 -1
  1120. package/app/.next-cli-build/static/chunks/app/api/providers/route-4ff27935cdf818b5.js +0 -1
  1121. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-4ff27935cdf818b5.js +0 -1
  1122. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-4ff27935cdf818b5.js +0 -1
  1123. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-4ff27935cdf818b5.js +0 -1
  1124. package/app/.next-cli-build/static/chunks/app/api/routing/insights/route-4ff27935cdf818b5.js +0 -1
  1125. package/app/.next-cli-build/static/chunks/app/api/routing/learn/route-4ff27935cdf818b5.js +0 -1
  1126. package/app/.next-cli-build/static/chunks/app/api/routing/versions/promote/route-4ff27935cdf818b5.js +0 -1
  1127. package/app/.next-cli-build/static/chunks/app/api/routing/versions/rollback/route-4ff27935cdf818b5.js +0 -1
  1128. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-4ff27935cdf818b5.js +0 -1
  1129. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-4ff27935cdf818b5.js +0 -1
  1130. package/app/.next-cli-build/static/chunks/app/api/settings/route-4ff27935cdf818b5.js +0 -1
  1131. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-4ff27935cdf818b5.js +0 -1
  1132. package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-4ff27935cdf818b5.js +0 -1
  1133. package/app/.next-cli-build/static/chunks/app/api/tags/route-4ff27935cdf818b5.js +0 -1
  1134. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-4ff27935cdf818b5.js +0 -1
  1135. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-4ff27935cdf818b5.js +0 -1
  1136. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-4ff27935cdf818b5.js +0 -1
  1137. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-4ff27935cdf818b5.js +0 -1
  1138. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-4ff27935cdf818b5.js +0 -1
  1139. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-4ff27935cdf818b5.js +0 -1
  1140. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-4ff27935cdf818b5.js +0 -1
  1141. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-4ff27935cdf818b5.js +0 -1
  1142. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-4ff27935cdf818b5.js +0 -1
  1143. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-4ff27935cdf818b5.js +0 -1
  1144. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-4ff27935cdf818b5.js +0 -1
  1145. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-4ff27935cdf818b5.js +0 -1
  1146. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-4ff27935cdf818b5.js +0 -1
  1147. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-4ff27935cdf818b5.js +0 -1
  1148. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-4ff27935cdf818b5.js +0 -1
  1149. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-4ff27935cdf818b5.js +0 -1
  1150. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-4ff27935cdf818b5.js +0 -1
  1151. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-4ff27935cdf818b5.js +0 -1
  1152. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-4ff27935cdf818b5.js +0 -1
  1153. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-4ff27935cdf818b5.js +0 -1
  1154. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-4ff27935cdf818b5.js +0 -1
  1155. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-4ff27935cdf818b5.js +0 -1
  1156. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-4ff27935cdf818b5.js +0 -1
  1157. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-4ff27935cdf818b5.js +0 -1
  1158. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-4ff27935cdf818b5.js +0 -1
  1159. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-4ff27935cdf818b5.js +0 -1
  1160. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-4ff27935cdf818b5.js +0 -1
  1161. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-4ff27935cdf818b5.js +0 -1
  1162. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-4ff27935cdf818b5.js +0 -1
  1163. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-4ff27935cdf818b5.js +0 -1
  1164. package/app/.next-cli-build/static/chunks/app/api/v1/route-4ff27935cdf818b5.js +0 -1
  1165. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-4ff27935cdf818b5.js +0 -1
  1166. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-4ff27935cdf818b5.js +0 -1
  1167. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-4ff27935cdf818b5.js +0 -1
  1168. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-4ff27935cdf818b5.js +0 -1
  1169. package/app/.next-cli-build/static/chunks/app/api/version/route-4ff27935cdf818b5.js +0 -1
  1170. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-4ff27935cdf818b5.js +0 -1
  1171. package/app/.next-cli-build/static/chunks/app/api/version/update/route-4ff27935cdf818b5.js +0 -1
  1172. package/app/.next-cli-build/static/chunks/app/callback/page-64f2a90493720740.js +0 -1
  1173. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-2c2051aa3be879d6.js +0 -1
  1174. package/app/.next-cli-build/static/chunks/app/landing/page-8c76c0ea58e06a53.js +0 -1
  1175. package/app/.next-cli-build/static/chunks/app/login/page-4ff27935cdf818b5.js +0 -1
  1176. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-4ff27935cdf818b5.js +0 -1
  1177. package/app/.next-cli-build/static/chunks/app/page-4ff27935cdf818b5.js +0 -1
  1178. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-4ff27935cdf818b5.js +0 -1
  1179. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-4ff27935cdf818b5.js +0 -1
  1180. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-4ff27935cdf818b5.js +0 -1
  1181. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-4ff27935cdf818b5.js +0 -1
  1182. package/app/.next-cli-build/static/chunks/webpack-868e94e9a2c8d9a9.js +0 -1
  1183. package/app/.next-cli-build/static/css/20c5585d3269ee43.css +0 -1
  1184. package/app/cli/.build-home/.switchboard/auth/machine-id-salt +0 -1
  1185. package/app/cli/.build-home/.switchboard/db/data.sqlite +0 -0
  1186. package/app/cli/.build-home/.switchboard/machine-id +0 -1
  1187. package/app/public/i18n/literals/ar.json +0 -195
  1188. package/app/public/i18n/literals/bn.json +0 -195
  1189. package/app/public/i18n/literals/cs.json +0 -195
  1190. package/app/public/i18n/literals/da.json +0 -195
  1191. package/app/public/i18n/literals/de.json +0 -195
  1192. package/app/public/i18n/literals/el.json +0 -195
  1193. package/app/public/i18n/literals/es.json +0 -195
  1194. package/app/public/i18n/literals/fa.json +0 -195
  1195. package/app/public/i18n/literals/fi.json +0 -195
  1196. package/app/public/i18n/literals/fr.json +0 -195
  1197. package/app/public/i18n/literals/he.json +0 -195
  1198. package/app/public/i18n/literals/hi.json +0 -195
  1199. package/app/public/i18n/literals/hu.json +0 -195
  1200. package/app/public/i18n/literals/id.json +0 -195
  1201. package/app/public/i18n/literals/it.json +0 -195
  1202. package/app/public/i18n/literals/ja.json +0 -195
  1203. package/app/public/i18n/literals/ko.json +0 -195
  1204. package/app/public/i18n/literals/nl.json +0 -195
  1205. package/app/public/i18n/literals/no.json +0 -195
  1206. package/app/public/i18n/literals/pl.json +0 -195
  1207. package/app/public/i18n/literals/pt-BR.json +0 -195
  1208. package/app/public/i18n/literals/pt-PT.json +0 -195
  1209. package/app/public/i18n/literals/ro.json +0 -195
  1210. package/app/public/i18n/literals/ru.json +0 -195
  1211. package/app/public/i18n/literals/sv.json +0 -195
  1212. package/app/public/i18n/literals/th.json +0 -195
  1213. package/app/public/i18n/literals/tl.json +0 -195
  1214. package/app/public/i18n/literals/tr.json +0 -195
  1215. package/app/public/i18n/literals/uk.json +0 -195
  1216. package/app/public/i18n/literals/ur.json +0 -195
  1217. package/app/public/i18n/literals/vi.json +0 -195
  1218. package/app/public/i18n/literals/zh-TW.json +0 -195
  1219. package/app/.next-cli-build/static/{HFerqnfiKkxdqoMVxOfPW → sBwyl4vbyME9SYpTbTHkn}/_ssgManifest.js +0 -0
  1220. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/at-rule.js +0 -0
  1221. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/comment.js +0 -0
  1222. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/declaration.js +4 -4
  1223. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/document.js +0 -0
  1224. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/list.js +0 -0
  1225. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/parse.js +1 -1
  1226. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/postcss.js +12 -12
  1227. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/root.js +0 -0
  1228. package/app/node_modules/{next/node_modules/postcss → postcss}/lib/rule.js +6 -6
  1229. /package/app/node_modules/{next/node_modules/postcss → postcss}/lib/stringify.js +0 -0
  1230. /package/app/node_modules/{next/node_modules/postcss → postcss}/lib/symbols.js +0 -0
  1231. /package/app/node_modules/{next/node_modules/postcss → postcss}/lib/terminal-highlight.js +0 -0
  1232. /package/app/node_modules/{next/node_modules/postcss → postcss}/lib/warn-once.js +0 -0
  1233. /package/app/node_modules/{next/node_modules/postcss → postcss}/lib/warning.js +0 -0
@@ -1,67 +0,0 @@
1
- "use strict";exports.id=8895,exports.ids=[2422,8895],exports.modules={324:(a,b,c)=>{c.d(b,{J:()=>e,Q:()=>f});let d={claude:["claude","anthropic"],"gemini-cli":["gemini-cli"],antigravity:["antigravity"],codex:["codex"]};function e(a={},b={}){let c=(a["user-agent"]||"").toLowerCase(),d=(a["x-app"]||"").toLowerCase(),f=(a["openai-intent"]||"").toLowerCase(),g=(a["x-initiator"]||a["X-Initiator"]||"").toLowerCase();return"antigravity"===b.userAgent?"antigravity":c.includes("githubcopilotchat")||"conversation-panel"===f||"user"===g?"github-copilot":c.includes("claude-cli")||c.includes("claude-code")||"cli"===d?"claude":c.includes("gemini-cli")?"gemini-cli":c.includes("codex-cli")?"codex":c.includes("deepseek-tui")?"deepseek-tui":null}function f(a,b){if(!a)return!1;let c=d[a];if(!c)return!1;let e=b.startsWith("anthropic-compatible")?"anthropic":b;return c.includes(e)}},5016:(a,b,c)=>{c.d(b,{N:()=>o});var d=c(14170),e=c(39551),f=c(25734),g=c(73483),h=c(43659),i=c(41004),j=c(52422),k=c(86171),l=c(89805),m=c(55399),n=c(63257);async function o({providerResponse:a,provider:b,model:c,sourceFormat:p,targetFormat:q,body:r,stream:s,translatedBody:t,finalBody:u,requestStartTime:v,connectionId:w,apiKey:x,clientRawRequest:y,onRequestSuccess:z,reqLogger:A,toolNameMap:B,trackDone:C,appendLog:D}){let E;if(C(),(a.headers.get("content-type")||"").includes("text/event-stream")){let b=await (0,j.i)(a.body,c);if(!b)return D({status:`FAILED ${i.gx.BAD_GATEWAY}`}),(0,h.A1)(i.gx.BAD_GATEWAY,"Invalid SSE response for non-streaming request");E=b}else try{E=await a.json()}catch(a){return D({status:`FAILED ${i.gx.BAD_GATEWAY}`}),console.error(`[ChatCore] Failed to parse JSON from ${b}:`,a.message),(0,h.A1)(i.gx.BAD_GATEWAY,`Invalid JSON response from ${b}`)}A.logProviderResponse(a.status,a.statusText,a.headers,E),z&&Promise.resolve().then(z).catch(a=>{console.error("[ChatCore] onRequestSuccess failed:",a?.message||a)}),E=(0,m.kR)(E,B);let F=(0,k.MK)(E);D({tokens:F,status:"200 OK"}),(0,k.qr)({provider:b,model:c,tokens:F,connectionId:w,apiKey:x,endpoint:y?.endpoint});let G=p===q&&p!==d.h.OPENAI,H=G?null:q===d.h.OPENAI?E:function(a,b){if(b===d.h.OPENAI)return a;if(b===d.h.GEMINI||b===d.h.ANTIGRAVITY||b===d.h.GEMINI_CLI||b===d.h.VERTEX){let b=a.response||a;if(!b?.candidates?.[0])return a;let c=b.candidates[0],d=c.content,e=b.usageMetadata||a.usageMetadata,f="",g="",h=[];if(d?.parts)for(let a of d.parts){!0===a.thought&&a.text?g+=a.text:void 0!==a.text&&(f+=a.text),a.functionCall&&h.push({id:`call_${a.functionCall.name}_${Date.now()}_${h.length}`,type:"function",function:{name:a.functionCall.name,arguments:JSON.stringify(a.functionCall.args||{})}});let b=a.inlineData||a.inline_data;if(b?.data){let a=b.mimeType||b.mime_type||"image/png";f+=`
2
- ![image](data:${a};base64,${b.data})
3
- `}}let i={role:"assistant"};f&&(i.content=f),g&&(i.reasoning_content=g),h.length>0&&(i.tool_calls=h),i.content||i.tool_calls||(i.content="");let j=(c.finishReason||"stop").toLowerCase();"stop"===j&&h.length>0&&(j="tool_calls");let k=new Date(b.createTime||Date.now()).getTime(),l=Number.isFinite(k)?Math.floor(k/1e3):Math.floor(Date.now()/1e3),m={id:`chatcmpl-${b.responseId||Date.now()}`,object:"chat.completion",created:l,model:b.modelVersion||"gemini",choices:[{index:0,message:i,finish_reason:j}]};return e&&(m.usage={prompt_tokens:(e.promptTokenCount||0)+(e.thoughtsTokenCount||0),completion_tokens:e.candidatesTokenCount||0,total_tokens:e.totalTokenCount||0},e.thoughtsTokenCount>0&&(m.usage.completion_tokens_details={reasoning_tokens:e.thoughtsTokenCount})),m}if(b===d.h.CLAUDE){if(a.choices||a.content&&!Array.isArray(a.content))return a;let b="",c="",d=[];for(let e of a.content||[])"text"===e.type?b+=(e.text??"").replace(/^\s*```\s*json\s*\n?/i,"").replace(/\n?\s*```\s*$/i,""):"thinking"===e.type?c+=e.thinking||"":"tool_use"===e.type&&d.push({id:e.id,type:"function",function:{name:e.name,arguments:JSON.stringify(e.input||{})}});let e={role:"assistant"};b&&(e.content=b),c&&(e.reasoning_content=c),d.length>0&&(e.tool_calls=d),e.content||e.tool_calls||(e.content="");let f=a.stop_reason||"stop";"end_turn"===f&&(f="stop"),"tool_use"===f&&(f="tool_calls");let g={id:`chatcmpl-${a.id||Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:a.model||"claude",choices:[{index:0,message:e,finish_reason:f}]};return a.usage&&(g.usage={prompt_tokens:a.usage.input_tokens||0,completion_tokens:a.usage.output_tokens||0,total_tokens:(a.usage.input_tokens||0)+(a.usage.output_tokens||0)}),g}return b===d.h.OLLAMA?(0,e._)(a):a}(E,q),I=!1;if(H?.choices)for(let a of H.choices){let b=a?.message;if(b?.content&&"string"==typeof b.content){let{content:a,reasoning:c}=(0,n.j)(b.content);c&&(b.reasoning_content=c,b.content=a,I=!0)}}if(H?.choices?.[0]){let a=H.choices[0],b=a.message;if(Array.isArray(b?.tool_calls)&&b.tool_calls.length>0&&"tool_calls"!==a.finish_reason&&(a.finish_reason="tool_calls"),H.object||(H.object="chat.completion"),H.created||(H.created=Math.floor(Date.now()/1e3)),delete H.prompt_filter_results,H.choices)for(let a of H.choices)delete a.content_filter_results;if(H.usage&&(H.usage=(0,g.WL)((0,g.O9)(H.usage),d.h.OPENAI)),!I)for(let a of H.choices)a?.message?.reasoning_content&&a.message.content&&delete a.message.reasoning_content}let J=G?E:(0,f.p)(H,p),K=p===d.h.CLAUDE&&J?.type==="message";A.logConvertedResponse(J);let L=Date.now()-v,M=K?J?.content?.find?.(a=>"text"===a.type)?.text||null:J?.choices?.[0]?.message?.content||J?.content||null;return(0,l.ox)((0,k.$R)({provider:b,model:c,connectionId:w,latency:{ttft:L,total:L},tokens:F||{prompt_tokens:0,completion_tokens:0},request:(0,k.Fo)(r,s),providerRequest:u||t||null,providerResponse:E||null,response:{content:M,thinking:J?.choices?.[0]?.message?.reasoning_content||null,finish_reason:J?.choices?.[0]?.finish_reason||J?.stop_reason||"unknown"},status:"success"},{endpoint:y?.endpoint||null})).catch(a=>{console.error("[RequestDetail] Failed to save:",a.message)}),{success:!0,response:new Response(JSON.stringify(J),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}},5263:(a,b,c)=>{c.d(b,{X:()=>m});var d=c(14170);let e={vision:"[image omitted: model has no vision support]",audioInput:"[audio omitted: model has no audio support]",pdf:"[file omitted: model has no document support]"},f={vision:"[Previous image omitted from context.]",audioInput:"[Previous audio omitted from context.]",pdf:"[Previous file omitted from context.]"},g=(a,b)=>(b?e:f)[a];function h(a){let b=a?.type;return"image_url"===b||"image"===b?"vision":"input_audio"===b||"audio_url"===b?"audioInput":"file"===b?"pdf":null}function i(a){let b=a?.type;return"image"===b?"vision":"document"===b?"pdf":null}function j(a,b,c,d,e){let f=[];for(let e of a){let a=b(e);if(a&&!1===c[a]){d.add(a);continue}f.push(e)}for(let a of d)f.push({type:"text",text:g(a,e)});return f}function k(a,b){if(!Array.isArray(a.messages))return;let c=a.messages.length-1;a.messages.forEach((a,d)=>{if(!Array.isArray(a.content))return;let e=new Set;a.content=j(a.content,h,b,e,d===c)})}function l(a,b){if(!Array.isArray(a))return;let c=a.length-1;a.forEach((a,d)=>{if(!Array.isArray(a.parts))return;let e=new Set;for(let f of(a.parts=a.parts.filter(a=>{var c;let d="string"!=typeof(c=a?.inlineData?.mimeType||a?.fileData?.mimeType)?null:c.startsWith("image/")?"vision":c.startsWith("audio/")?"audioInput":"application/pdf"===c?"pdf":null;return!d||!1!==b[d]||(e.add(d),!1)}),e))a.parts.push({text:g(f,d===c)})})}function m(a,b,c){if(!a||!c||!1!==c.vision&&!1!==c.audioInput&&!1!==c.pdf)return!1;switch(b){case d.h.OPENAI:case d.h.OLLAMA:case d.h.KIRO:case d.h.CURSOR:case d.h.COMMANDCODE:k(a,c);break;case d.h.CLAUDE:!function(a,b){if(!Array.isArray(a.messages))return;let c=a.messages.length-1;a.messages.forEach((a,d)=>{if(!Array.isArray(a.content))return;let e=new Set;a.content=j(a.content,i,b,e,d===c)})}(a,c);break;case d.h.OPENAI_RESPONSES:case d.h.OPENAI_RESPONSE:case d.h.CODEX:!function(a,b){if(!Array.isArray(a.input))return;let c=a.input.length-1;a.input.forEach((a,d)=>{if(!Array.isArray(a.content))return;let e=new Set;for(let f of(a.content=a.content.filter(a=>{let c=a?.type==="input_image"?"vision":a?.type==="input_file"?"pdf":null;return!c||!1!==b[c]||(e.add(c),!1)}),e))a.content.push({type:"input_text",text:g(f,d===c)})})}(a,c);break;case d.h.GEMINI:case d.h.GEMINI_CLI:case d.h.VERTEX:l(a.contents,c);break;case d.h.ANTIGRAVITY:l(a?.request?.contents,c);break;default:k(a,c)}return!0}},12557:(a,b,c)=>{c.d(b,{Bl:()=>j,Qo:()=>f,S5:()=>l,hk:()=>e,kJ:()=>k});var d=c(3662);function e(a,b,c=0){let f=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"";for(let b of d.t2)if(b.text&&f&&f.includes(b.text)||b.status&&b.status===a){let a=!1!==b.shouldFallback;if(b.backoff){let b=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:a,cooldownMs:function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(b),newBackoffLevel:b}}return{shouldFallback:a,cooldownMs:b.cooldownMs||0}}return a>=400&&a<500&&408!==a&&429!==a?{shouldFallback:!1,cooldownMs:0}:{shouldFallback:!0,cooldownMs:d.wf}}function f(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return"reset after 0s";let c=Math.ceil(b/1e3),d=Math.floor(c/3600),e=Math.floor(c%3600/60),f=c%60,g=[];return d>0&&g.push(`${d}h`),e>0&&g.push(`${e}m`),(f>0||0===g.length)&&g.push(`${f}s`),`reset after ${g.join(" ")}`}let g="modelLock_",h=`${g}__all`;function i(a){return a?`${g}${a}`:h}function j(a,b){let c=a[i(b)]||a[h];return!!c&&new Date(c).getTime()>Date.now()}function k(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(g)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function l(a,b){return{[i(a)]:new Date(Date.now()+b).toISOString()}}},14724:(a,b,c)=>{c.d(b,{F:()=>g});let d=[{triggers:["mcp__exa__web_search_exa","mcp__exa__web_fetch_exa"],strip:["WebSearch","WebFetch","mcp__workspace__web_fetch"]},{triggers:["mcp__tavily__tavily_search","mcp__tavily__tavily_extract"],strip:["WebSearch","WebFetch","mcp__workspace__web_fetch"]},{triggers:[/^mcp__browsermcp__/],strip:[/^mcp__Claude_in_Chrome__/]}];function e(a){return a?.name||a?.function?.name||""}function f(a,b){return"string"==typeof b?a===b:b instanceof RegExp&&b.test(a)}function g(a){if(!Array.isArray(a)||0===a.length)return{tools:a,stripped:[]};let b=a.map(e),c=new Set;for(let a of d)if(b.some(b=>a.triggers.some(a=>f(b,a))))for(let d of b)a.strip.some(a=>f(d,a))&&c.add(d);return 0===c.size?{tools:a,stripped:[]}:{tools:a.filter(a=>!c.has(e(a))),stripped:Array.from(c)}}},20623:(a,b,c)=>{c.d(b,{$:()=>p,M:()=>o});var d=c(14170),e=c(72768),f=c(71857),g=c(59657),h=c(35024),i=c(41004),j=c(30320),k=c(86171),l=c(89805),m=c(78959);let n={[d.h.OPENAI_RESPONSES]:d.h.OPENAI_RESPONSES,[d.h.CLAUDE]:d.h.CLAUDE,[d.h.ANTIGRAVITY]:d.h.ANTIGRAVITY,[d.h.GEMINI]:d.h.ANTIGRAVITY,[d.h.GEMINI_CLI]:d.h.ANTIGRAVITY};async function o({providerResponse:a,provider:b,model:c,sourceFormat:p,targetFormat:q,userAgent:r,body:s,stream:t,translatedBody:u,finalBody:v,requestStartTime:w,connectionId:x,apiKey:y,clientRawRequest:z,onRequestSuccess:A,reqLogger:B,toolNameMap:C,streamController:D,onStreamComplete:E,streamDetailId:F}){A&&Promise.resolve().then(A).catch(a=>{console.error("[ChatCore] onRequestSuccess failed:",a?.message||a)});let G=(a.headers.get("content-type")||"").toLowerCase();if((G.includes("application/x-ndjson")||G.includes("application/ndjson"))&&a.body){let b,c,d,e;a=new Response(a.body.pipeThrough((b=new TextDecoder,c=new TextEncoder,d="",new TransformStream({transform(a,e){let f=(d+=b.decode(a,{stream:!0})).split("\n");for(let a of(d=f.pop()||"",f)){let b=a.trim();if(b){if(b.startsWith("data:")||b.startsWith("event:")){e.enqueue(c.encode(a+"\n"));continue}try{JSON.parse(b),e.enqueue(c.encode(`data: ${b}
4
-
5
- `))}catch{}}}},flush(a){let b=d.trim();if(b)try{JSON.parse(b),a.enqueue(c.encode(`data: ${b}
6
-
7
- `))}catch{}}}))),{status:a.status,statusText:a.statusText,headers:((e=new Headers(a.headers)).set("content-type","text/event-stream"),e)})}else if(G&&!G.includes("text/event-stream")&&!G.includes("application/json")){let d=await a.text().catch(()=>""),e=d.match(/<title>([^<]+)<\/title>/i),f=(e?.[1]||"").replace(/<[^>]*>/g,"").replace(/[\r\n]+/g," ").trim().slice(0,160)||(d.length<200?d.replace(/<[^>]*>/g,"").trim().slice(0,160):`Upstream returned non-SSE response (${G})`),g=a.status||502;return console.warn(`[STREAM] ${b} | ${c} | blocked pipe: ${f} [${g}]`),D?.handleError?.(Error(`upstream non-SSE: ${g}`)),{success:!1,response:new Response(JSON.stringify({error:{message:`[${g}]: ${f}`}}),{status:g,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}let H=function({provider:a,sourceFormat:b,targetFormat:c,userAgent:g,reqLogger:i,toolNameMap:j,model:k,connectionId:l,body:m,onStreamComplete:o,apiKey:p}){let q=g?.toLowerCase().includes("droid")||g?.toLowerCase().includes("codex-cli");if(h.xq[a]?.format===d.h.OPENAI_RESPONSES&&c===d.h.OPENAI_RESPONSES&&!q){let c=n[b]||d.h.OPENAI;return(0,f.i5)(d.h.OPENAI_RESPONSES,c,a,i,j,k,l,m,o,p)}return(0,e.nZ)(c,b)?(0,f.i5)(c,b,a,i,j,k,l,m,o,p):(0,f.l2)(a,i,j,k,l,m,o,p)}({provider:b,sourceFormat:p,targetFormat:q,userAgent:r,reqLogger:B,toolNameMap:C,model:c,connectionId:x,body:s,onStreamComplete:E,apiKey:y}),I=p===d.h.OPENAI_RESPONSES&&q===d.h.OPENAI_RESPONSES?j.Hr:null,J=h.xq[b]?.stallTimeoutMs||i.xM,K=(0,g.Jb)(a,H,D,I,J);return(0,l.ox)((0,k.$R)({provider:b,model:c,connectionId:x,latency:{ttft:0,total:Date.now()-w},tokens:{prompt_tokens:0,completion_tokens:0},request:(0,k.Fo)(s,t),providerRequest:v||u||null,providerResponse:"[Streaming - raw response not captured]",response:{content:"[Streaming in progress...]",thinking:null,type:"streaming"},status:"success"},{id:F})).catch(a=>{console.error("[RequestDetail] Failed to save streaming request:",a.message)}),{success:!0,response:new Response(K,{headers:m.RK})}}function p({provider:a,model:b,connectionId:c,apiKey:d,requestStartTime:e,body:f,stream:g,finalBody:h,translatedBody:i,clientRawRequest:j}){let m=`${Date.now()}-${Math.random().toString(36).slice(2,11)}`;return{onStreamComplete:(n,o,p)=>{let q={ttft:p?p-e:Date.now()-e,total:Date.now()-e},r=n?.content||"[Empty streaming response]",s=n?.thinking||null;(0,l.ox)((0,k.$R)({provider:a,model:b,connectionId:c,latency:q,tokens:o||{prompt_tokens:0,completion_tokens:0},request:(0,k.Fo)(f,g),providerRequest:h||i||null,providerResponse:r,response:{content:r,thinking:s,type:"streaming"},status:"success"},{id:m})).catch(a=>{console.error("[RequestDetail] Failed to update streaming content:",a.message)}),(0,k.qr)({provider:a,model:b,tokens:o,connectionId:c,apiKey:d,endpoint:j?.endpoint,label:"STREAM USAGE"})},streamDetailId:m}}},24643:(a,b,c)=>{c.d(b,{J:()=>f});var d=c(14170);function e(a,b){if(!a||!b)return!1;let c="string"==typeof b?b.trim():"";if(!c)return!1;let d=c.slice(0,100);return a.includes(d)}function f(a,b,c){if(a&&c)switch(b){case d.h.CLAUDE:!function(a,b){if("string"==typeof a.system&&a.system.length>0){if(e(a.system,b))return;a.system=`${a.system}
8
-
9
- ${b}`;return}if(Array.isArray(a.system)){if(e(a.system.map(a=>a?.text||"").join(" "),b))return;let c={type:"text",text:b},d=-1;for(let b=a.system.length-1;b>=0;b--)if(a.system[b]?.cache_control){d=b;break}d>=0?a.system.splice(d,0,c):a.system.push(c);return}a.system=b}(a,c);return;case d.h.GEMINI:case d.h.GEMINI_CLI:case d.h.VERTEX:case d.h.ANTIGRAVITY:!function(a,b){let c=a.request&&"object"==typeof a.request?a.request:a,d=Object.prototype.hasOwnProperty.call(c,"system_instruction")?"system_instruction":"systemInstruction",f=c[d];if(f&&Array.isArray(f.parts)){if(e(f.parts.map(a=>a.text||"").join(" "),b))return;f.parts.push({text:b});return}c[d]={parts:[{text:b}]}}(a,c);return;default:!function(a,b){if("string"==typeof a.instructions){if(e(a.instructions,b))return;a.instructions=a.instructions?`${a.instructions}
10
-
11
- ${b}`:b;return}let c=Array.isArray(a.messages)?a.messages:Array.isArray(a.input)?a.input:null;if(!c)return;let d=c.findIndex(a=>a&&("system"===a.role||"developer"===a.role));if(d>=0){var f,g,h;if(e("string"==typeof(f=c[d]).content?f.content:Array.isArray(f.content)?f.content.map(a=>a.text||"").join(" "):"",b))return;g=c[d],h=b,"string"==typeof g.content?g.content=`${g.content}
12
-
13
- ${h}`:Array.isArray(g.content)?g.content.push({type:"input_text",text:h}):g.content=h}else c.unshift({role:"system",content:b})}(a,c)}}},25734:(a,b,c)=>{c.d(b,{p:()=>k});var d=c(14170),e=c(21855),f=c(69320);function g(a){if(!a)return{};if("object"==typeof a)return a;try{return JSON.parse(a)}catch{return{}}}function h(a){return a?.choices?.[0]||{}}function i(a){return h(a).message||{}}function j(a){let b=i(a).tool_calls;return Array.isArray(b)?b:[]}function k(a,b){switch(b){case d.h.CLAUDE:return function(a){if(!a?.choices?.[0])return a;let b=h(a),c=i(a),f=[],k=c.reasoning_content||c.provider_specific_fields?.reasoning_content||"";for(let b of(k&&f.push({type:"thinking",thinking:k}),"string"==typeof c.content&&c.content.length>0&&f.push({type:"text",text:c.content}),j(a))){let a=b.function||{};f.push({type:"tool_use",id:b.id||`toolu_${Date.now()}_${f.length}`,name:a.name||b.name||"",input:g(a.arguments||b.arguments)})}0===f.length&&f.push({type:"text",text:""});let l=a.usage||{};return{id:String(a.id||`msg_${Date.now()}`).replace(/^chatcmpl-/,""),type:"message",role:"assistant",model:a.model||"unknown",content:f,stop_reason:(0,e.Q)(b.finish_reason,d.h.CLAUDE),stop_sequence:null,usage:{input_tokens:l.prompt_tokens||l.input_tokens||0,output_tokens:l.completion_tokens||l.output_tokens||0}}}(a);case d.h.GEMINI:case d.h.GEMINI_CLI:case d.h.ANTIGRAVITY:case d.h.VERTEX:return function(a){if(!a?.choices?.[0])return a;let b=i(a),c=a.usage||{},d=[],e=b.reasoning_content||b.provider_specific_fields?.reasoning_content||"";for(let c of(e&&d.push({text:e,thought:!0}),"string"==typeof b.content&&b.content.length>0&&d.push({text:b.content}),j(a))){let a=c.function||{};d.push({functionCall:{name:a.name||c.name||"",args:g(a.arguments||c.arguments)}})}return 0===d.length&&d.push({text:""}),{response:{candidates:[{content:{role:"model",parts:d},finishReason:function(a){switch(a){case f.bC.LENGTH:return f.a_.MAX_TOKENS;case f.bC.CONTENT_FILTER:return f.a_.SAFETY;default:return f.a_.STOP}}(h(a).finish_reason),index:0}],usageMetadata:{promptTokenCount:c.prompt_tokens||c.input_tokens||0,candidatesTokenCount:c.completion_tokens||c.output_tokens||0,totalTokenCount:c.total_tokens||(c.prompt_tokens||0)+(c.completion_tokens||0)},modelVersion:a.model||"unknown",responseId:a.id||`resp_${Date.now()}`}}}(a);case d.h.OLLAMA:return function(a){if(!a?.choices?.[0])return a;let b=h(a),c=i(a),d={role:"assistant",content:"string"==typeof c.content?c.content:""};c.reasoning_content&&(d.thinking=c.reasoning_content);let e=j(a).map(a=>{let b=a.function||{};return{id:a.id,function:{name:b.name||a.name||"",arguments:g(b.arguments||a.arguments)}}});e.length>0&&(d.tool_calls=e);let f=a.usage||{};return{model:a.model||"unknown",created_at:a.created?new Date(1e3*a.created).toISOString():new Date().toISOString(),message:d,done:!0,done_reason:b.finish_reason||"stop",prompt_eval_count:f.prompt_tokens||f.input_tokens||0,eval_count:f.completion_tokens||f.output_tokens||0}}(a);case d.h.OPENAI_RESPONSES:case d.h.OPENAI_RESPONSE:return function(a){if(!a?.choices?.[0])return a;let b=i(a),c=a.usage||{},d=[],e=0,f=b.reasoning_content||b.provider_specific_fields?.reasoning_content||"";f&&(d.push({type:"reasoning",id:`rs_${a.id||Date.now()}_${e}`,summary:[{type:"summary_text",text:f}]}),e++);let g="string"==typeof b.content?b.content:"";g&&(d.push({type:"message",id:`msg_${a.id||Date.now()}_${e}`,role:"assistant",content:[{type:"output_text",text:g,annotations:[],logprobs:[]}]}),e++);let k=j(a);if(k.length>0)for(let a of k){let b=a.function||{},c=a.id||`call_${b.name||"tool"}_${e}`;d.push({type:"function_call",id:`fc_${c}`,call_id:c,name:b.name||a.name||"",arguments:"string"==typeof b.arguments?b.arguments:JSON.stringify(b.arguments||{})}),e++}else g||f||d.push({type:"message",id:`msg_${a.id||Date.now()}_${e}`,role:"assistant",content:[{type:"output_text",text:"",annotations:[],logprobs:[]}]});let l=h(a).finish_reason||"stop";return{id:a.id?`resp_${a.id}`:`resp_${Date.now()}`,object:"response",created_at:a.created||Math.floor(Date.now()/1e3),status:"stop"===l||"tool_calls"===l?"completed":l,output:d,usage:{input_tokens:c.prompt_tokens||c.input_tokens||0,output_tokens:c.completion_tokens||c.output_tokens||0,total_tokens:c.total_tokens||(c.prompt_tokens||0)+(c.completion_tokens||0)}}}(a);default:return a}}},27349:(a,b,c)=>{c.d(b,{c:()=>i});var d=c(57647),e=c(72768),f=c(14170),g=c(41004),h=c(71857);function i(a,b,c="",e=!1){if(!c.includes("claude-cli")||!a.messages?.length)return null;let f=a.messages,h=a=>"string"==typeof a?a:Array.isArray(a)?a.filter(a=>"text"===a.type).map(a=>a.text).join(" "):"",j=!1,m=!1,n=f[f.length-1];if(n?.role==="assistant"&&n.content?.[0]?.text==="{"&&(j=!0),j||"Warmup"===h(f[0]?.content)&&(j=!0),j||1!==f.length||f[0]?.role!=="user"||"count"===h(f[0]?.content)&&(j=!0),!j&&g.C8?.length){let a=f.filter(a=>"user"===a.role).map(a=>h(a.content)).join(" ");g.C8.some(b=>a.includes(b))&&(j=!0)}if(!j&&e){let b=f.find(a=>"system"===a.role),c=h(b?.content),d=Array.isArray(a.system)?a.system.filter(a=>"text"===a.type).map(a=>a.text).join(" "):"string"==typeof a.system?a.system:"";(c||d).includes("isNewTopic")&&(j=!0,m=!0)}if(!j)return null;let o=(0,d.Tz)(a),p=!1!==a.stream;if(m){let a=f.find(a=>"user"===a.role),c=JSON.stringify({isNewTopic:!0,title:h(a?.content).trim().split(/\s+/).slice(0,3).join(" ")});return p?l(o,b,c):k(o,b,c)}return p?l(o,b):k(o,b)}function j(a,b="CLI Command Execution: Clear Terminal"){return{id:`chatcmpl-${Date.now()}`,object:"chat.completion",created:Math.floor(Date.now()/1e3),model:a,choices:[{index:0,message:{role:"assistant",content:b},finish_reason:"stop"}],usage:{prompt_tokens:1,completion_tokens:1,total_tokens:2}}}function k(a,b,c){let d=j(b,c);if(a===f.h.OPENAI)return{success:!0,response:new Response(JSON.stringify(d),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})};let g=(0,e.Ws)(a);g.model=b;let h=m(d),i=[];for(let b of h){let c=(0,e.Y8)(f.h.OPENAI,a,b,g);c?.length>0&&i.push(...c)}let k=(0,e.Y8)(f.h.OPENAI,a,null,g);return k?.length>0&&i.push(...k),{success:!0,response:new Response(JSON.stringify(function(a,b){if(!a||0===a.length)return j("unknown");let c=a[a.length-1];if(b===f.h.CLAUDE&&a.find(a=>"message_stop"===a.type)){a.find(a=>"content_block_delta"===a.type);let b=a.find(a=>"message_delta"===a.type),d=a.find(a=>"message_start"===a.type);if(d?.message){c=d.message;let a=d.message.usage,e=b?.usage;(a||e)&&(c.usage={...a||{},...e||{},...a?.cache_read_input_tokens!==void 0?{cache_read_input_tokens:a.cache_read_input_tokens}:{},...a?.cache_creation_input_tokens!==void 0?{cache_creation_input_tokens:a.cache_creation_input_tokens}:{},...a?.input_tokens!==void 0?{input_tokens:a.input_tokens}:{}})}}return c}(i,a)),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}function l(a,b,c){let d=j(b,c),g=(0,e.Ws)(a);g.model=b;let i=m(d),k=[];for(let b of i){let c=(0,e.Y8)(f.h.OPENAI,a,b,g);if(c?.length>0)for(let b of c)k.push((0,h.v8)(b,a))}let l=(0,e.Y8)(f.h.OPENAI,a,null,g);if(l?.length>0)for(let b of l)k.push((0,h.v8)(b,a));return k.push("data: [DONE]\n\n"),{success:!0,response:new Response(k.join(""),{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive","Access-Control-Allow-Origin":"*"}})}}function m(a){let{id:b,created:c,model:d,choices:e}=a;return[{id:b,object:"chat.completion.chunk",created:c,model:d,choices:[{index:0,delta:{role:"assistant",content:e[0].message.content},finish_reason:null}]},{id:b,object:"chat.completion.chunk",created:c,model:d,choices:[{index:0,delta:{},finish_reason:"stop"}],usage:a.usage}]}},30320:(a,b,c)=>{c.d(b,{Hr:()=>j,nu:()=>h,u9:()=>k,yx:()=>g});var d=c(14170),e=c(9024);let f=new Set(["response.completed","response.done","response.failed","error"]);function g(a,b){return a||(b&&"string"==typeof b.type?b.type:null)}function h(a,b){let c=g(a,b);if(f.has(c))return!0;let d=b?.response?.status;return"completed"===d||"failed"===d}let i=new TextEncoder;function j(){return i.encode(`${k()}data: [DONE]
14
-
15
- `)}function k(){return(0,e.v8)({event:"response.failed",data:{type:"response.failed",response:{id:`resp_${Date.now()}`,status:"failed",error:{type:"stream_error",code:"stream_disconnected",message:"stream closed before response.completed"}}}},d.h.OPENAI_RESPONSES)}},43659:(a,b,c)=>{c.d(b,{A1:()=>g,lR:()=>i,wO:()=>h,yj:()=>e,zL:()=>f});var d=c(3662);function e(a,b){let c;return new Response(JSON.stringify((c=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:c.type,code:c.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function f(a,b=null){let c="";try{c=await a.text()}catch{c=""}if(b&&"function"==typeof b.parseError)try{let e=b.parseError(a,c);if(e&&"object"==typeof e){let b=e.message||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:e.status||a.status,message:b,resetsAtMs:e.resetsAtMs}}}catch{}let e="";try{let a=JSON.parse(c);e=a.error?.message||a.message||a.error||c}catch{e=c}let g=("string"==typeof e?e:JSON.stringify(e))||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:a.status,message:g}}function g(a,b,c){return{success:!1,status:a,error:b,resetsAtMs:c,response:e(a,b)}}function h(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function i(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}},48895:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{SB:()=>f.SB}),c(39609),c(35024),c(75924),c(41004),c(45699),c(14170),c(72768),c(57647),c(40669),c(12557),c(8521),c(93943);var e=c(92500);c(59657);var f=c(55330);c(43659),c(71857);var g=a([e,f]);[e,f]=g.then?(await g)():g,d()}catch(a){d(a)}})},52422:(a,b,c)=>{function d(a,b){let c;if(!a.trim())return;let d=a.match(/^event:\s*(.+)$/m),e=a.match(/^data:\s*(.+)$/m);if(!d||!e)return;let f=d[1].trim(),g=e[1].trim();if("[DONE]"!==g){try{c=JSON.parse(g)}catch{return}"response.created"===f?(b.responseId=c.response?.id||b.responseId,b.created=c.response?.created_at||b.created):"response.output_item.done"===f?b.items.set(c.output_index??0,c.item):"response.completed"===f||"response.done"===f?(b.status="completed",c.response?.usage&&(b.usage.input_tokens=c.response.usage.input_tokens||0,b.usage.output_tokens=c.response.usage.output_tokens||0,b.usage.total_tokens=c.response.usage.total_tokens||0)):"response.failed"===f&&(b.status="failed")}}c.d(b,{convertResponsesStreamToJson:()=>l,i:()=>k});let e={input_tokens:0,output_tokens:0,total_tokens:0};function f(a){if(Number.isFinite(a)&&a>0)return a;let b=Number.parseInt(globalThis.process?.env?.STREAM_TO_JSON_MAX_BYTES||"",10);return Number.isFinite(b)&&b>0?b:0x1000000}class g extends Error{constructor(a){super(`SSE stream exceeded STREAM_TO_JSON_MAX_BYTES (${a} bytes)`),this.name="StreamToJsonMaxBytesError"}}function h(a){return a?"number"==typeof a.byteLength?a.byteLength:"number"==typeof a.length?a.length:0:0}function i(a,b){if(a>b)throw new g(b)}function j(a,b){let c=a.trim();if(!c.startsWith("data:"))return;let d=c.slice(5).trim();if(d&&"[DONE]"!==d)try{!function(a,b){b.seenChunk||(b.first=a||{},b.seenChunk=!0);let c=a?.choices?.[0],d=c?.delta||{};if("string"==typeof d.content&&d.content.length>0&&b.contentParts.push(d.content),"string"==typeof d.reasoning_content&&d.reasoning_content.length>0&&b.reasoningParts.push(d.reasoning_content),c?.finish_reason&&(b.finishReason=c.finish_reason),a?.usage&&"object"==typeof a.usage&&(b.usage=a.usage),Array.isArray(d.tool_calls))for(let a of d.tool_calls){let c=a.index??0;b.toolCallMap.has(c)||b.toolCallMap.set(c,{id:a.id||"",type:"function",function:{name:"",arguments:""}});let d=b.toolCallMap.get(c);a.id&&(d.id=a.id),a.function?.name&&(d.function.name+=a.function.name),a.function?.arguments&&(d.function.arguments+=a.function.arguments)}}(JSON.parse(d),b)}catch{}}async function k(a,b,{maxBytes:c}={}){if(!a||"function"!=typeof a.getReader)return null;let d=a.getReader(),e=new TextDecoder,g=f(c),l={fallbackModel:b,seenChunk:!1,first:null,contentParts:[],reasoningParts:[],toolCallMap:new Map,finishReason:"stop",usage:null},m="",n=0;try{for(;;){let{done:a,value:b}=await d.read();if(a)break;n+=h(b),i(n,g);let c=(m+=e.decode(b,{stream:!0})).split("\n");for(let a of(m=c.pop()||"",c))j(a,l)}let a=e.decode();a&&(m+=a),m&&j(m,l)}catch(a){try{await d.cancel(a)}catch{}throw a}finally{d.releaseLock()}if(!l.seenChunk)return null;let o=l.first||{},p={role:"assistant",content:l.contentParts.join("")||(l.toolCallMap.size>0?null:"")};l.reasoningParts.length>0&&(p.reasoning_content=l.reasoningParts.join("")),l.toolCallMap.size>0&&(p.tool_calls=[...l.toolCallMap.entries()].sort((a,b)=>a[0]-b[0]).map(([,a])=>a));let q={id:o.id||`chatcmpl-${Date.now()}`,object:"chat.completion",created:o.created||Math.floor(Date.now()/1e3),model:o.model||l.fallbackModel||"unknown",choices:[{index:0,message:p,finish_reason:l.finishReason}]};return l.usage&&(q.usage=l.usage),q}async function l(a,{maxBytes:b}={}){if(!a||"function"!=typeof a.getReader)return{id:`resp_${Date.now()}`,object:"response",created_at:Math.floor(Date.now()/1e3),status:"failed",output:[],usage:{...e}};let c=a.getReader(),g=new TextDecoder,j=f(b),k="",m=0,n={responseId:"",created:Math.floor(Date.now()/1e3),status:"in_progress",usage:{...e},items:new Map};try{for(;;){let{done:a,value:b}=await c.read();if(a)break;m+=h(b),i(m,j);let e=(k+=g.decode(b,{stream:!0})).split("\n\n");for(let a of(k=e.pop()||"",e))d(a,n)}let a=g.decode();a&&(k+=a),k.trim()&&d(k,n)}catch(a){try{await c.cancel(a)}catch{}throw a}finally{c.releaseLock()}let o=[],p=n.items.size>0?Math.max(...n.items.keys()):-1;for(let a=0;a<=p;a++)o.push(n.items.get(a)||{type:"message",content:[],role:"assistant"});return{id:n.responseId||`resp_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,object:"response",created_at:n.created,status:n.status||"completed",output:o,usage:n.usage}}},59657:(a,b,c)=>{c.d(b,{Jb:()=>g,jd:()=>f});var d=c(41004),e=c(92306);function f({onDisconnect:a,onError:b,log:c,provider:d,model:g}={}){let h=new AbortController,i=Date.now(),j=!1,k=null,l=a=>{let b=Date.now()-i,c=d?.toUpperCase()||"UNKNOWN";console.log(`[${new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}] 🌊 [STREAM] ${c} | ${g||"unknown"} | ${b}ms | ${a}`)};return{signal:h.signal,startTime:i,isConnected:()=>!j,handleDisconnect:(b="client_closed")=>{j||(j=!0,l(`disconnect: ${b}`),(0,e.s)("CTRL",`${d}/${g} | disconnect=${b} | dur=${Date.now()-i}ms`),k=setTimeout(()=>{h.abort()},500),a?.({reason:b,duration:Date.now()-i}))},handleComplete:()=>{!j&&(j=!0,l("complete"),k&&(clearTimeout(k),k=null))},handleError:a=>{if(!j){if(j=!0,k&&(clearTimeout(k),k=null),"AbortError"===a.name)return void l("aborted");l(`error: ${a.message}`),b?.(a)}},abort:()=>h.abort()}}function g(a,b,c,f=null,h=d.xM,i=d.Z1){let j=null,k=null,l=0,m=0,n=Date.now(),o=Date.now(),p="STREAM",q=()=>{j&&(clearTimeout(j),j=null)},r=()=>{k&&(clearTimeout(k),k=null)},s=()=>{q(),r()},t=()=>{q(),j=setTimeout(()=>{j=null,(0,e.s)(p,`STALL TIMEOUT ${h}ms | chunks=${l} | bytes=${m} | sinceLast=${Date.now()-n}ms`),c.handleError?.(Error("stream stall timeout")),c.abort?.()},h)},u={signal:c.signal,startTime:c.startTime,isConnected:()=>c.isConnected(),handleComplete:()=>{(0,e.s)(p,`complete | chunks=${l} | bytes=${m} | dur=${Date.now()-o}ms`),s(),c.handleComplete()},handleError:a=>{(0,e.s)(p,`error: ${a?.message} | chunks=${l} | bytes=${m} | dur=${Date.now()-o}ms`),s(),c.handleError(a)},handleDisconnect:a=>{(0,e.s)(p,`disconnect: ${a} | chunks=${l} | bytes=${m} | dur=${Date.now()-o}ms`),s(),c.handleDisconnect(a)},abort:()=>{s(),c.abort()}};i>0&&(k=setTimeout(()=>{k=null,0===l&&((0,e.s)(p,`FIRST-CHUNK TIMEOUT ${i}ms`),c.handleError?.(Error("stream first-chunk timeout")),c.abort?.())},i)),(0,e.s)(p,`pipe start | firstChunkTimeout=${i}ms | stallTimeout=${h}ms`);let v=new TransformStream({transform(a,b){1==++l&&(r(),t());let c=a?.byteLength||a?.length||0;m+=c;let d=Date.now(),f=d-n;n=d,e.T&&(l<=5||l%20==0||f>5e3)&&(0,e.s)(p,`chunk #${l} | size=${c}B | gap=${f}ms | total=${m}B`),l>1&&t(),b.enqueue(a)},flush(){(0,e.s)(p,`upstream EOF | chunks=${l} | bytes=${m} | dur=${Date.now()-o}ms`),s()}});return function(a,b,c=null){let d=a.readable.getReader(),e=a.writable.getWriter(),f=!1,g=a=>{if(!f&&c){f=!0;try{let b=c();b&&a.enqueue(b)}catch{}}};return new ReadableStream({async pull(a){if(!b.isConnected()){g(a),a.close();return}try{let{done:c,value:e}=await d.read();if(c){b.handleComplete(),a.close();return}a.enqueue(e)}catch(l){let f=b.isConnected(),h=l?.message||"";h.includes("already closed")||h.includes("Invalid state")||b.handleError(l),d.cancel().catch(()=>{}),e.abort().catch(()=>{});let i=l?.message||"",j=l?.code||l?.cause?.code||"",k="AbortError"===l.name||i.includes("aborted")||i.includes("socket hang up")||i.includes("ECONNRESET")||i.includes("ETIMEDOUT")||i.includes("EPIPE")||"ECONNRESET"===j||"ETIMEDOUT"===j||"EPIPE"===j||"UND_ERR_SOCKET"===j;try{!f||k||c?(g(a),a.close()):a.error(l)}catch(a){}}},cancel(a){b.handleDisconnect(a||"cancelled"),d.cancel(),e.abort()}})}({readable:a.body.pipeThrough(v).pipeThrough(b),writable:{getWriter:()=>({abort:()=>Promise.resolve()})}},u,f)}},60125:(a,b,c)=>{c.d(b,{p:()=>n});var d=c(24643);let e="Code blocks, file paths, commands, errors, URLs: keep exact. Security warnings, irreversible action confirmations, multi-step ordered sequences: write normal. Resume terse style after.",f='Not: "Sure! I\'d be happy to help you with that. The issue you\'re experiencing is likely caused by..." Yes: "Bug in auth middleware. Token expiry check use `<` not `<=`. Fix:"',g="Auto-Clarity: drop caveman for security warnings, irreversible actions, multi-step sequences where fragment ambiguity risks misread, or when user repeats a question. Resume after the clear part.",h="ACTIVE EVERY RESPONSE. No revert after many turns. No filler drift. Still active if unsure.",i="No invented abbreviations. Standard well-known tech acronyms (DB, API, HTTP, URL, JSON, ID, OS, CPU) OK. Names of code symbols, function names, API names, error strings: keep verbatim.",j="Preserve the user's dominant language. User wrote Vietnamese, reply Vietnamese. User wrote English, reply English. Wenyan/classical-Chinese levels override this language-preservation rule. Code identifiers, error strings, file paths, commands: keep in their original form regardless of language.",k='No self-reference. Do not name or announce the style (no "caveman mode", no "me caveman think", no "compressed mode active"). Just respond.',l='No decorative emoji. No narrating tool calls ("I will now search", "I used X to find Y"). No status phrases ("Sure!", "Of course!", "I\'d be happy to"). No causal arrow shorthand ("A -> B -> fails"). State the thing, the action, the reason. Then next step.',m={lite:["Respond tersely. Keep grammar and full sentences but drop filler, hedging and pleasantries (just/really/basically/sure/of course/I'd be happy to). Pattern: state the thing, the action, the reason. Then next step.",f,e,g,h,i,j,k,l].join(" "),full:["Respond like terse caveman. All technical substance stay exact, only fluff die. Drop: articles (a/an/the), filler (just/really/basically/actually/simply), pleasantries, hedging. Fragments OK. Short synonyms (big not extensive, fix not implement a solution for). Pattern: [thing] [action] [reason]. [next step].",f,e,g,h,i,j,k,l].join(" "),ultra:["Respond ultra-terse. Maximum compression. Telegraphic. Strip conjunctions. One word when one word enough. Pattern: [thing] [action] [reason]. [next step].",f,e,g,h,i,j,k,l].join(" "),"wenyan-lite":["Respond semi-classical. Drop filler/hedging but keep grammar structure, classical register. Use classical Chinese sentence patterns where natural. Keep English for technical terms.",f,e,g,h,i,j,k,l].join(" "),wenyan:["Respond classical Chinese (文言文). Maximum classical terseness. 80-90% character reduction. Classical sentence patterns, verbs precede objects, subjects often omitted, classical particles (之/乃/為/其). Keep English for code, commands, function names, API names, error strings.",f,e,g,h,i,j,k,l].join(" "),"wenyan-ultra":["Respond extreme classical compression (文言文 ultra). Maximum compression, ultra terse. Same classical rules as wenyan-full but even more compressed. One classical particle per clause.",f,e,g,h,i,j,k,l].join(" ")};function n(a,b,c){(0,d.J)(a,b,m[c])}},60475:(a,b,c)=>{c.d(b,{U:()=>l});var d=c(24643);let e="You are a lazy senior developer. Lazy means efficient, not careless. The best code is the code never written.",f="Before writing code, stop at the first rung that holds: 1) Does this need to exist at all? (YAGNI) 2) Stdlib does it? Use it. 3) Native platform feature covers it? Use it (CSS over JS, DB constraint over app code). 4) Already-installed dependency solves it? Use it; never add a new one for what a few lines can do. 5) Can it be one line? One line. 6) Only then: the minimum code that works.",g='No unrequested abstractions (no interface with one implementation, no factory for one product, no config for a value that never changes). No boilerplate or scaffolding "for later". Deletion over addition. Boring over clever. Fewest files possible; shortest working diff wins. Two stdlib options the same size: take the edge-case-correct one. Mark deliberate simplifications with a `ponytail:` comment naming the ceiling and upgrade path.',h="Code first. Then at most three short lines: what was skipped, when to add it. No essays or design notes. Pattern: `[code] → skipped: [X], add when [Y].`",i="Never simplify away: input validation at trust boundaries, error handling that prevents data loss, security, accessibility, anything explicitly requested. Non-trivial logic leaves ONE runnable check behind (an assert-based self-check or one small test file; no frameworks). Trivial one-liners need no test.",j="ACTIVE EVERY RESPONSE. No drift back to over-building. Still active if unsure.",k={lite:[e,"Lite: build what's asked, but name the lazier alternative in one line. User picks.",f,g,h,i,j].join(" "),full:[e,"Full: the ladder enforced. Stdlib and native first. Shortest diff, shortest explanation.",f,g,h,i,j].join(" "),ultra:[e,"Ultra: YAGNI extremist. Deletion before addition. Ship the one-liner and challenge the rest of the requirement in the same response.",f,g,h,i,j].join(" ")};function l(a,b,c){(0,d.J)(a,b,k[c])}},63257:(a,b,c)=>{c.d(b,{H:()=>h,j:()=>g});let d="<think>",e="</think>",f=RegExp(`${d}([\\s\\S]*?)${e}\\s*`);function g(a){if("string"!=typeof a)return{content:a,reasoning:null};let b=a.match(f);return b?{content:a.replace(RegExp(`${d}[\\s\\S]*?${e}\\s*`,"g"),"").trimStart(),reasoning:b[1].trim()}:{content:a,reasoning:null}}function h(){let a="",b=!1;return function(c){let f=null;if("string"!=typeof c)return{content:c,reasoning:f};if(b){let d=c.indexOf(e);d>=0?(a+=c.slice(0,d),f=a.trim(),a="",b=!1,c=c.slice(d+e.length).trimStart()):(a+=c,c="")}if(!b){let g=c.indexOf(d);if(g>=0){let h=c.slice(g+d.length),i=h.indexOf(e);i>=0?(f=(f?f+"\n":"")+h.slice(0,i).trim(),c=c.slice(0,g)+h.slice(i+e.length).trimStart()):(b=!0,a=h,c=c.slice(0,g))}}return{content:c,reasoning:f}}}},70190:(a,b,c)=>{c.d(b,{Nv:()=>l,O2:()=>m,SI:()=>k,cB:()=>n});var d=c(60983),e=c(19979),f=c(65377);function g(a){try{return new TextEncoder().encode(JSON.stringify(a)||"").length}catch{return 0}}function h(a){let b=Array.isArray(a?.messages)?a.messages:Array.isArray(a?.input)?a.input:null;return{bodyBytes:g(a),messageBytes:b?g(b):0}}function i(a,b){a&&!a.reason&&(a.reason=b)}async function j(a,b,c,d,e,f){let g,h=function(a){try{let b=new URL(a);return b.pathname=`${b.pathname.replace(/\/$/,"")}/v1/compress`,b.hash="",b.toString()}catch{let[b,c=""]=String(a).replace(/#.*$/,"").split("?",2),d=`${b.replace(/\/$/,"")}/v1/compress`;return c?`${d}?${c}`:d}}(a);f.endpoint=function(a){try{let b=new URL(a);return b.username="",b.password="",b.search="",b.hash="",b.toString()}catch{return String(a).replace(/\/\/[^/@\s]+@/,"//").replace(/[?#].*$/,"")}}(h);let j={messages:b,model:c};e&&(j.config={compress_user_messages:!0});try{g=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(j),signal:AbortSignal.timeout(d)})}catch(d){var k;let a,b,c;return i(f,`request failed: ${(k=d,a=k?.cause,b=a?.code||k?.code,c=String(a?.message||k?.message||String(k)).replace(/\/\/[^/@\s]+@/g,"//").replace(/(https?:\/\/[^\s?#]+)[?#][^\s)]*/g,"$1"),b?`${b}: ${c}`:c)}`),null}if(!g.ok)return i(f,`proxy returned HTTP ${g.status}`),null;let l=await g.json();return Array.isArray(l?.messages)?l:(i(f,"proxy response missing messages[]"),null)}async function k(a,{enabled:b,url:c,model:g,format:l,compressUserMessages:m,timeoutMs:n=3e3,diagnostics:o=null}={}){if(!b)return i(o,"disabled"),null;if(!c)return i(o,"missing proxy URL"),null;if(!a)return i(o,"missing request body"),null;try{if(o&&(o.before=h(a)),"claude"===l){let b=(0,d.t)(g,a,!1);if(!Array.isArray(b?.messages))return i(o,"Claude request did not translate to messages[]"),null;let f=await j(c,b.messages,g,n,m,o||{});if(!f)return null;let k=(0,e.p)(g,{...b,messages:f.messages},!1);return Array.isArray(k?.messages)&&(a.messages=k.messages),k?.system!==void 0&&(a.system=k.system),o&&(o.after=h(a)),f}if("openai-responses"===l){if(Array.isArray(a?.input)&&a.input.some(a=>!(!a||"object"!=typeof a||Array.isArray(a))&&"string"==typeof a.type&&"message"!==a.type))return i(o,"skipped: openai-responses tool/reasoning input is not safe to compress"),null;let b=(0,f.Z)(g,a,!1);if(!Array.isArray(b?.messages))return null;let d=await j(c,b.messages,g,n,m,o||{});if(!d)return null;let e=(0,f.h)(g,{...b,input:void 0,messages:d.messages},!1);return Array.isArray(e?.input)&&(a.input=e.input),o&&(o.after=h(a)),d}let b=Array.isArray(a.messages)?"messages":Array.isArray(a.input)?"input":null;if(!b)return i(o,`unsupported ${l||"unknown"} request shape`),null;let k=await j(c,a[b],g,n,m,o||{});if(!k)return null;return a[b]=k.messages,o&&(o.after=h(a)),k}catch(a){return i(o,`unexpected error: ${a?.message||String(a)}`),null}}function l(a){if(!a)return null;let b=a.tokens_before||0,c=a.tokens_after||0,d=a.tokens_saved||0,e=b>0?(d/b*100).toFixed(1):"0";return`reported token delta=${d} before=${b}${c?` after=${c}`:""} (${e}%)`.trim()}function m(a){let b=a?.before,c=a?.after;return b&&c?`body=${b.bodyBytes}B→${c.bodyBytes}B messages=${b.messageBytes}B→${c.messageBytes}B`:""}function n(a,b,c=.05){if(!a?.tokens_saved||a.tokens_saved<=0)return!1;let d=b?.before?.bodyBytes||0,e=b?.after?.bodyBytes||0;return!(d<=0)&&!(e<=0)&&e>=d*(1-c)}},71336:(a,b,c)=>{c.d(b,{q7:()=>m});let d="u">typeof process&&process.versions?.node&&!0,e="u">typeof process&&process.env?.ENABLE_REQUEST_LOGS==="true",f=null,g=null,h=null;async function i(){if(d&&e&&!f)try{f=await Promise.resolve().then(c.t.bind(c,29021,23)),h=(g=await Promise.resolve().then(c.t.bind(c,33873,23))).join("u">typeof process&&process.cwd?process.cwd():".","logs")}catch{}}async function j(a,b,c){if(await i(),!f||!h)return null;try{f.existsSync(h)||f.mkdirSync(h,{recursive:!0});let d=function(a=new Date){let b=a=>String(a).padStart(2,"0"),c=a.getFullYear(),d=b(a.getMonth()+1),e=b(a.getDate()),f=b(a.getHours()),g=b(a.getMinutes()),h=b(a.getSeconds()),i=String(a.getMilliseconds()).padStart(3,"0");return`${c}${d}${e}_${f}${g}${h}_${i}`}(),e=(c||"unknown").replace(/[/:]/g,"-"),i=`${a}_${b}_${e}_${d}`,j=g.join(h,i);return f.mkdirSync(j,{recursive:!0}),j}catch(a){return console.log("[LOG] Failed to create log session:",a.message),null}}function k(a,b,c){if(f&&a)try{let d=g.join(a,b);f.writeFileSync(d,JSON.stringify(c,null,2))}catch(a){console.log(`[LOG] Failed to write ${b}:`,a.message)}}function l(a){if(!a)return{};let b={...a},c=["authorization","x-api-key","x-goog-api-key","cookie","token","set-cookie"];for(let a of Object.keys(b)){let d=a.toLowerCase();if(c.some(a=>d.includes(a))){let c=b[a];"string"==typeof c&&c.length>12?b[a]=c.slice(0,8)+"..."+c.slice(-4):null!=c&&(b[a]="[redacted]")}}return b}async function m(a,b,c){if(!e)return{sessionPath:null,logClientRawRequest(){},logRawRequest(){},logOpenAIRequest(){},logTargetRequest(){},logProviderResponse(){},appendProviderChunk(){},appendOpenAIChunk(){},logConvertedResponse(){},appendConvertedChunk(){},logError(){}};let d=await j(a,b,c);return{get sessionPath(){return d},logClientRawRequest(a,b,c={}){k(d,"1_req_client.json",{timestamp:new Date().toISOString(),endpoint:a,headers:l(c),body:b})},logRawRequest(a,b={}){k(d,"2_req_source.json",{timestamp:new Date().toISOString(),headers:l(b),body:a})},logOpenAIRequest(a){k(d,"3_req_openai.json",{timestamp:new Date().toISOString(),body:a})},logTargetRequest(a,b,c){k(d,"4_req_target.json",{timestamp:new Date().toISOString(),url:a,headers:l(b),body:c})},logProviderResponse(a,b,c,e){k(d,"5_res_provider.json",{timestamp:new Date().toISOString(),status:a,statusText:b,headers:l(c&&"function"==typeof c.entries?Object.fromEntries(c.entries()):c),body:e})},appendProviderChunk(a){if(f&&d)try{let b=g.join(d,"5_res_provider.txt");f.appendFileSync(b,a)}catch(a){}},appendOpenAIChunk(a){if(f&&d)try{let b=g.join(d,"6_res_openai.txt");f.appendFileSync(b,a)}catch(a){}},logConvertedResponse(a){k(d,"7_res_client.json",{timestamp:new Date().toISOString(),body:a})},appendConvertedChunk(a){if(f&&d)try{let b=g.join(d,"7_res_client.txt");f.appendFileSync(b,a)}catch(a){}},logError(a,b=null){k(d,"6_error.json",{timestamp:new Date().toISOString(),error:a?.message||String(a),stack:a?.stack,requestBody:b})}}}},71857:(a,b,c)=>{c.d(b,{i5:()=>p,l2:()=>q,lm:()=>g.lm,v8:()=>h.v8});var d=c(72768),e=c(14170),f=c(89805),g=c(73483),h=c(9024),i=c(30320),j=c(92306);c(78959);var k=c(63257);let l=new TextEncoder,m="translate",n="passthrough";function o(a={}){let{mode:b=m,targetFormat:c,sourceFormat:p,provider:q=null,reqLogger:r=null,toolNameMap:s=null,model:t=null,connectionId:u=null,body:v=null,onStreamComplete:w=null,apiKey:x=null}=a,y="",z=null,A=new TextDecoder("utf-8",{fatal:!1}),B=b===m?{...(0,d.Ws)(p),provider:q,toolNameMap:s,model:t}:null,C=0,D="",E="",F=null,G=0,H=0,I={},J=null,K=!1,L=!1,M=!1,N=(0,k.H)();function O(a){if(j.T&&a&&(G++,a.startsWith("event:"))){let b=a.slice(6).trim();I[b]=(I[b]||0)+1}}function P(a,b){let c;if(!a.trim())return;let d=a.split(/\r?\n/);for(let a of d)O(a.trim());let f=d.filter(a=>a.startsWith("data:")),i=f.map(a=>a.slice(5).replace(/^ /,"")).join("\n"),j=!1;if(f.length>0)if("[DONE]"===i.trim()){if(M)return;M=!0,c="data: [DONE]\n\n"}else try{let a=JSON.parse(i.trim()),b=(0,h.A4)(a),d=!1;if(s?.size>0&&a?.type==="content_block_start"&&a?.content_block?.type==="tool_use"){let b=s.get(a.content_block.name);b&&(a.content_block={...a.content_block,name:b},d=!0)}let f=!1;if(void 0!==a.choices&&(a.object||(a.object="chat.completion.chunk",f=!0),a.created||(a.created=Math.floor(Date.now()/1e3),f=!0)),void 0!==a.prompt_filter_results&&(delete a.prompt_filter_results,f=!0),a?.choices)for(let b of a.choices)void 0!==b.content_filter_results&&(delete b.content_filter_results,f=!0);if(a?.choices)for(let b of a.choices)b.delta?.tool_calls&&Array.isArray(b.delta.tool_calls)&&0===b.delta.tool_calls.length&&(delete b.delta.tool_calls,f=!0);if(!(0,h.c2)(a,e.h.OPENAI))return;let k=a.choices?.[0]?.delta;if("string"==typeof k?.content){let{content:a,reasoning:b}=N(k.content);b&&(k.reasoning_content=(k.reasoning_content||"")+b),a!==k.content&&(!k.reasoning_content||a&&a.trim()?k.content=a||"":delete k.content,f=!0)}let l=k?.content,m=k?.reasoning_content;l&&"string"==typeof l&&(C+=l.length,D+=l),m&&"string"==typeof m&&(C+=m.length,E+=m);let n=(0,g.f5)(a);n&&(z=(0,g._L)(z,n));let o=a.choices?.[0]?.finish_reason;if(o&&!(0,g.Gh)(a.usage)){let b=(0,g.OF)(v,C,e.h.OPENAI);a.usage=(0,g.WL)(b,e.h.OPENAI),c=`data: ${JSON.stringify(a)}
16
-
17
- `,z=b,j=!0}else if(o&&z){let b=(0,g.O9)(z);a.usage=(0,g.WL)(b,e.h.OPENAI),c=`data: ${JSON.stringify(a)}
18
-
19
- `,j=!0}else(b||f||d)&&(c=`data: ${JSON.stringify(a)}
20
-
21
- `,j=!0)}catch{return}j||c||(c=d.map(a=>a.startsWith("data:")&&!a.startsWith("data: ")?"data: "+a.slice(5):a).join("\n")+"\n\n"),r?.appendConvertedChunk?.(c),b.enqueue(l.encode(c))}function Q(a,b=!1){let c=y.split(/\r?\n\r?\n/);for(let b of(y=c.pop()||"",c))P(b,a);b&&y&&(P(y,a),y="")}return new TransformStream({transform(a,f){F||(F=Date.now());let j=A.decode(a,{stream:!0});if(y+=j,r?.appendProviderChunk?.(j),b===n)return void Q(f);let k=y.split("\n");for(let a of(y=k.pop()||"",k)){let j=a.trim();if(O(j),b===m&&c===e.h.OPENAI_RESPONSES&&j.startsWith("event:")&&(J=j.slice(6).trim()),!j)continue;let k=(0,h.tV)(j,c);if(!k)continue;let n=c===e.h.OPENAI_RESPONSES,o=n&&p===e.h.OPENAI_RESPONSES,q=n?(0,i.yx)(J,k):null;if(n&&(0,i.nu)(q,k)&&(K=!0),"string"==typeof k?.choices?.[0]?.delta?.content){let a=k.choices[0].delta,{content:b,reasoning:c}=N(a.content);c&&(a.reasoning_content=(a.reasoning_content||"")+c),b!==a.content&&(!a.reasoning_content||b&&b.trim()?a.content=b||"":delete a.content)}if(k&&k.done&&c!==e.h.OLLAMA){if(o&&!K){let a=(0,i.u9)();r?.appendConvertedChunk?.(a),f.enqueue(l.encode(a)),K=!0,H++}if(o&&!M){let a="data: [DONE]\n\n";r?.appendConvertedChunk?.(a),f.enqueue(l.encode(a))}M=!0,o&&(L=!0);continue}if(k.delta?.text&&(C+=k.delta.text.length,D+=k.delta.text),k.delta?.thinking&&(C+=k.delta.thinking.length,E+=k.delta.thinking),k.choices?.[0]?.delta?.content&&(C+=k.choices[0].delta.content.length,D+=k.choices[0].delta.content),k.choices?.[0]?.delta?.reasoning_content&&(C+=k.choices[0].delta.reasoning_content.length,E+=k.choices[0].delta.reasoning_content),k.candidates?.[0]?.content?.parts)for(let a of k.candidates[0].content.parts)a.text&&"string"==typeof a.text&&(C+=a.text.length,!0===a.thought?E+=a.text:D+=a.text);let s=(0,g.f5)(k);if(s&&(B.usage=(0,g._L)(B.usage,s)),o&&q){let a=(0,h.v8)({event:q,data:k},p);r?.appendConvertedChunk?.(a),f.enqueue(l.encode(a)),J=null,H++;continue}J=null;let t=(0,d.Y8)(c,p,k,B);if(t?._openaiIntermediate)for(let a of t._openaiIntermediate){let b=(0,h.v8)(a,e.h.OPENAI);r?.appendOpenAIChunk?.(b)}if(t?.length>0)for(let a of t){if(null==a||!(0,h.c2)(a,p))continue;let b="message_delta"===a.type||a.choices?.[0]?.finish_reason;if(B.finishReason&&b&&!(0,g.Gh)(a.usage)&&C>0){let b=(0,g.OF)(v,C,p);a.usage=(0,g.WL)(b,p),B.usage=b}else if(B.finishReason&&b&&B.usage){let b=(0,g.O9)(B.usage);a.usage=(0,g.WL)(b,p)}let c=(0,h.v8)(a,p);r?.appendConvertedChunk?.(c),f.enqueue(l.encode(c)),H++}}},flush(a){let k=Object.entries(I).map(([a,b])=>`${a}=${b}`).join(",")||"none";(0,j.s)("SSE",`flush | provider=${q} | model=${t} | recvLines=${G} | emitted=${H} | events=[${k}]`),(0,f.uw)(t,q,u,!1);try{let j=A.decode();if(j&&(y+=j),b===n){Q(a,!0),!(0,g.Gh)(z)&&C>0&&(z=(0,g.OF)(v,C,e.h.OPENAI)),(0,g.Gh)(z)?(0,g.IF)(q,z,t,u,x):(0,f.E5)({model:t,provider:q,connectionId:u,tokens:null,status:"200 OK"}).catch(()=>{});let b="antigravity"===q||"gemini"===q||"vertex"===q;if(!M&&!b){let b="data: [DONE]\n\n";r?.appendConvertedChunk?.(b),a.enqueue(l.encode(b))}w&&w({content:D,thinking:E},z,F);return}if(y.trim()){let b=(0,h.tV)(y.trim());if(b&&!b.done){let f=(0,d.Y8)(c,p,b,B);if(f?._openaiIntermediate)for(let a of f._openaiIntermediate){let b=(0,h.v8)(a,e.h.OPENAI);r?.appendOpenAIChunk?.(b)}if(f?.length>0)for(let b of f){if(null==b)continue;let c=(0,h.v8)(b,p);r?.appendConvertedChunk?.(c),a.enqueue(l.encode(c))}}}let k=(0,d.Y8)(c,p,null,B);if(k?._openaiIntermediate)for(let a of k._openaiIntermediate){let b=(0,h.v8)(a,e.h.OPENAI);r?.appendOpenAIChunk?.(b)}if(k?.length>0)for(let b of k){if(null==b)continue;let c=(0,h.v8)(b,p);r?.appendConvertedChunk?.(c),a.enqueue(l.encode(c))}let m=c===e.h.OPENAI_RESPONSES&&p===e.h.OPENAI_RESPONSES;if(m&&!K){let b=(0,i.u9)();r?.appendConvertedChunk?.(b),a.enqueue(l.encode(b)),K=!0}if(m&&!L&&!M){let b="data: [DONE]\n\n";r?.appendConvertedChunk?.(b),a.enqueue(l.encode(b)),L=!0,M=!0}!(0,g.Gh)(B?.usage)&&C>0&&(B.usage=(0,g.OF)(v,C,p)),(0,g.Gh)(B?.usage)?(0,g.IF)(B.provider||c,B.usage,t,u,x):(0,f.E5)({model:t,provider:q,connectionId:u,tokens:null,status:"200 OK"}).catch(()=>{}),w&&w({content:D,thinking:E},B?.usage,F)}catch(a){console.log("Error in flush:",a)}}})}function p(a,b,c=null,d=null,e=null,f=null,g=null,h=null,i=null,j=null){return o({mode:m,targetFormat:a,sourceFormat:b,provider:c,reqLogger:d,toolNameMap:e,model:f,connectionId:g,body:h,onStreamComplete:i,apiKey:j})}function q(a=null,b=null,c=null,d=null,e=null,f=null,g=null,h=null){return o({mode:n,provider:a,reqLogger:b,toolNameMap:c,model:d,connectionId:e,body:f,onStreamComplete:g,apiKey:h})}},72758:(a,b,c)=>{c.d(b,{B:()=>G,f:()=>J});let d=["node_modules",".git","target","__pycache__",".next","dist","build",".cache",".turbo",".vercel",".pytest_cache",".mypy_cache",".tox",".venv","venv","env","coverage",".nyc_output",".DS_Store","Thumbs.db",".idea",".vscode",".vs","*.egg-info",".eggs"];function e(a,b=500){let c=[],d="",f=0,g=0,h=!1,i=0,j=0,k=!1;for(let e of a.split("\n")){if(e.startsWith("diff --git")){j>0&&(c.push(` ... (${j} lines truncated)`),k=!0,j=0),d&&(f>0||g>0)&&c.push(` +${f} -${g}`);let a=e.split(" b/");d=a.length>1?a.slice(1).join(" b/"):"unknown",c.push(`
22
- ${d}`),f=0,g=0,h=!1,i=0}else e.startsWith("@@")?(j>0&&(c.push(` ... (${j} lines truncated)`),k=!0,j=0),h=!0,i=0,c.push(` ${e}`)):h&&(e.startsWith("+")&&!e.startsWith("+++")?(f+=1,i<100?(c.push(` ${e}`),i+=1):j+=1):e.startsWith("-")&&!e.startsWith("---")?(g+=1,i<100?(c.push(` ${e}`),i+=1):j+=1):i<100&&!e.startsWith("\\")&&i>0&&(c.push(` ${e}`),i+=1));if(c.length>=b){c.push("\n... (more changes truncated)"),k=!0;break}}return j>0&&(c.push(` ... (${j} lines truncated)`),k=!0),d&&(f>0||g>0)&&c.push(` +${f} -${g}`),k&&c.push("[full diff: rtk git diff --no-compact]"),c.join("\n")}function f(a){let b=a.split("\n");if(0===b.length||1===b.length&&!b[0].trim())return"Clean working tree";let c="",d=[],e=[],f=[],g=0,h=0,i=0,j=0,k=!1;for(let a of b){if(!a.trim())continue;let b=a.match(/^On branch (\S+)/);if(b){c=b[1],k=!1;continue}if(a.startsWith("##")){c=a.replace(/^##\s*/,""),k=!1;continue}if(/^Untracked files:/i.test(a.trim())){k=!0;continue}if(/^(Changes not staged|Changes to be committed|Unmerged paths):/i.test(a.trim())){k=!1;continue}if(a.length>=3&&/^[ MADRCU?!][ MADRCU?!] /.test(a)){k=!1;let b=a[0],c=a[1],l=a.slice(3);if("??"===a.slice(0,2)){i++,f.push(l);continue}"MADRC".includes(b)?(g++,d.push(l)):"U"===b&&j++,("M"===c||"D"===c)&&(h++,e.push(l));continue}let l=a.match(/^\s*(modified|new file|deleted|renamed|both modified):\s+(.+)$/);if(l){k=!1;let a=l[1],b=l[2].trim();"both modified"===a?j++:"modified"===a||"deleted"===a?(h++,e.push(b)):("new file"===a||"renamed"===a)&&(g++,d.push(b));continue}if(k){let b=a.trim();if(!b||b.startsWith("(")||b.startsWith("use "))continue;i++,f.push(b)}}let l="";if(c&&(l+=`* ${c}
23
- `),g>0){for(let a of(l+=`+ Staged: ${g} files
24
- `,d.slice(0,10)))l+=` ${a}
25
- `;d.length>10&&(l+=` ... +${d.length-10} more
26
- `)}if(h>0){for(let a of(l+=`~ Modified: ${h} files
27
- `,e.slice(0,10)))l+=` ${a}
28
- `;e.length>10&&(l+=` ... +${e.length-10} more
29
- `)}if(i>0){for(let a of(l+=`? Untracked: ${i} files
30
- `,f.slice(0,10)))l+=` ${a}
31
- `;f.length>10&&(l+=` ... +${f.length-10} more
32
- `)}return j>0&&(l+=`conflicts: ${j} files
33
- `),0===g&&0===h&&0===i&&0===j&&(l+="clean — nothing to commit\n"),l.replace(/\n+$/,"")}function g(a,b=200){if(!a)return"";let c=String(a),d=c.split("\n"),e=[],f=0,h=!1,i=!1;function j(a){return e.length<b?(e.push(a),!0):(f++,!1)}for(let a=0;a<d.length;a++){let b=d[a].trimEnd(),c=b.trim();if(/^commit [0-9a-f]{7,40}(\s|$|[([<{])/i.test(c)||/^[*|/\\ ]+commit [0-9a-f]{7,40}/i.test(c)){h=!0,i=!1,j(b);continue}if(h){if(/^[*|/\\ ]*(Author|Date):/i.test(c)){j(c);continue}if(""===c)continue;if(!i&&/^[*|/\\ ]* \S/.test(b)){j(" Subject: "+c),i=!0;continue}if(/^\d+ file\w* changed/.test(c)){j(" "+c);continue}/^diff --git /.test(c)&&j(" ... diff body omitted");continue}let e=c.match(/^[*|/\\ ]+([0-9a-f]{7,40}\s+.+)/i);if(e){j(e[1]);continue}if(/^[0-9a-f]{7,40}\s+/.test(c)){j(c);continue}/^[*|/\\ ]+$/.test(c)&&/[*|/\\]/.test(c)||j(c)}f>0&&e.push(`... (${f} more lines)`);let k=e.join("\n");return!k&&c||k.length>c.length?c:k}e.filterName="git-diff",f.filterName="git-status",g.filterName="git-log";let h=/^\s*(-->|\||\d+\s*\||=)/;function i(a){let b=a.split("\n");if(0===b.length)return a;let c=[],d=[],e=[],f=null,g=0,i=0,j=!1;for(let a of b){let b=a.trim();if(j){if(!b){j=!1;continue}if(h.test(a)){c.push(a);continue}j=!1}if(b){if(/^npm (ERR!|error)/i.test(b)||/^yarn error/i.test(b)){c.push(a);continue}if(/^npm warn deprecated/i.test(b)){e.push(a);continue}if(/^npm warn/i.test(b)||/^yarn warn/i.test(b)){d.push(a);continue}if(/^error(\[|:)/i.test(b)||b.startsWith("error --\x3e")){c.push(a),j=!0;continue}if(/^warning(\[|:)/i.test(b)||b.startsWith("warning --\x3e")){d.push(a),j=!0;continue}if(/^ERROR:/i.test(b)||/^\[ERROR\]/i.test(b)||/^BUILD FAILED/i.test(b)){c.push(a);continue}if(/^\[WARNING\]/i.test(b)){d.push(a);continue}if(/^\s*Compiling\s+\S+/i.test(b)){g++;continue}if(/^\s*Downloading\s+\S+/i.test(b)||/^Fetching\s+/i.test(b)){i++;continue}if(/^(added|removed|changed|audited|installed)\s+\d+\s+package/i.test(b)||/^\s*Finished\s+/i.test(b)||/^BUILD SUCCESS/i.test(b)||/^\d+\s+(vulnerabilities|packages?|warnings?|errors?)/i.test(b)||/^Successfully (installed|built)/i.test(b)||/^To address .* issues/i.test(b)||/^Run `npm (audit|fund)`/i.test(b)||/packages are looking for funding/i.test(b)){f=f?`${f}
34
- ${a}`:a;continue}}}let k="";for(let a of e.slice(0,3))k+=`${a}
35
- `;for(let a of(e.length>3&&(k+=`... +${e.length-3} more deprecated packages
36
- `),g>0&&(k+=`Compiled ${g} packages
37
- `),i>0&&(k+=`Downloaded ${i} packages
38
- `),c))k+=`${a}
39
- `;for(let a of d.slice(0,5))k+=`${a}
40
- `;return d.length>5&&(k+=`... +${d.length-5} more warnings
41
- `),f&&(k+=`${f}
42
- `),k.replace(/\n+$/,"")||a}function j(a){let b=new Map,c=0;for(let d of a.split("\n")){let a=D(d);if(!a)continue;let{file:e,lineNum:f,content:g}=a;c++,b.has(e)||b.set(e,[]),b.get(e).push([f,g])}if(0===c)return a;let d=Array.from(b.keys()).sort(),e=`${c} matches in ${d.length}F:
43
-
44
- `;for(let a of d){let c=b.get(a);for(let[b,d]of(e+=`[file] ${a} (${c.length}):
45
- `,c.slice(0,10)))e+=` ${b.padStart(4)}: ${d.trim()}
46
- `;c.length>10&&(e+=` +${c.length-10}
47
- `),e+="\n"}return e}function k(a){let b=a.split("\n").filter(a=>a.trim());if(0===b.length)return a;let c=new Map;for(let a of b){let b,d,e=Math.max(a.lastIndexOf("/"),a.lastIndexOf("\\"));-1===e?(b=".",d=a):(b=a.slice(0,e)||"/",d=a.slice(e+1)),c.has(b)||c.set(b,[]),c.get(b).push(d)}let d=Array.from(c.keys()).sort(),e=`${b.length} files in ${d.length} dirs:
48
-
49
- `;for(let a of d.slice(0,20)){let b=c.get(a),d=a.replace(/\\/g,"/");for(let a of(e+=`${d}/ (${b.length})
50
- `,b.slice(0,10)))e+=` ${a}
51
- `;b.length>10&&(e+=` +${b.length-10}
52
- `)}return d.length>20&&(e+=`
53
- +${d.length-20} more dirs
54
- `),e}function l(a){let b=a.split("\n"),c=[],d=null,e=0,f=0,g=()=>{null!==d&&e>1&&c.push(` ... (${e-1} duplicate lines)`)};for(let a of b){if(""===a.trim()){f<1&&c.push(a),f+=1,g(),d=null,e=0;continue}if(f=0,a===d){e+=1;continue}if(g(),c.push(a),d=a,e=1,c.length>=2e3)return c.push("... (truncated at 2000 lines)"),c.join("\n")}return g(),c.join("\n")}i.filterName="build-output",j.filterName="grep",k.filterName="find",l.filterName="dedup-log";let m=/\s+(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+\d{1,2}\s+(\d{4}|\d{2}:\d{2})\s+/;function n(a){let b=[],c=[],e=new Map;for(let g of a.split("\n")){if(g.startsWith("total ")||0===g.length)continue;let a=function(a){let b=m.exec(a);if(!b)return null;let c=a.slice(b.index+b[0].length),d=a.slice(0,b.index).split(/\s+/).filter(Boolean);if(d.length<4)return null;let e=d[0].charAt(0),f=0;for(let a=d.length-1;a>=0;a--){let b=Number(d[a]);if(Number.isInteger(b)&&String(b)===d[a]){f=b;break}}return{fileType:e,size:f,name:c}}(g);if(a&&"."!==a.name&&".."!==a.name&&!d.includes(a.name)){if("d"===a.fileType)b.push(a.name);else if("-"===a.fileType||"l"===a.fileType){var f;let b=a.name.lastIndexOf("."),d=b>0?a.name.slice(b):"no ext";e.set(d,(e.get(d)||0)+1),c.push([a.name,(f=a.size)>=1048576?`${(f/1048576).toFixed(1)}M`:f>=1024?`${(f/1024).toFixed(1)}K`:`${f}B`])}}}if(0===b.length&&0===c.length)return a;let g="";for(let a of b)g+=`${a}/
55
- `;for(let[a,b]of c)g+=`${a} ${b}
56
- `;let h=`
57
- Summary: ${c.length} files, ${b.length} dirs`;if(e.size>0){let a=Array.from(e.entries()).sort((a,b)=>b[1]-a[1]),b=a.slice(0,5).map(([a,b])=>`${b} ${a}`);h+=` (${b.join(", ")}`,a.length>5&&(h+=`, +${a.length-5} more`),h+=")"}return g+h}function o(a){let b=a.split("\n");if(0===b.length)return a;let c=[];for(let a of b)a.includes("director")&&a.includes("file")||(""!==a.trim()||0!==c.length)&&c.push(a);for(;c.length>0&&""===c[c.length-1].trim();)c.pop();if(c.length>200){let a=c.length-200;return c.slice(0,200).join("\n")+`
58
- ... +${a} more lines`}return c.join("\n")}function p(a){let b=a.split("\n");if(b.length<250)return a;let c=b.slice(0,120),d=b.slice(b.length-60),e=b.length-c.length-d.length;return[...c,`... +${e} lines truncated`,...d].join("\n")}function q(a){let b=a.split("\n");if(b.length<250)return a;let c=b.slice(0,120),d=b.slice(b.length-60),e=b.length-c.length-d.length;return[...c,`... +${e} lines truncated (file continues)`,...d].join("\n")}n.filterName="ls",o.filterName="tree",p.filterName="smart-truncate",q.filterName="read-numbered";let r=/^\s*\d+\|/;function s(a){let b=a.split("\n");if(0===b.length)return a;let c=b[0]||"",d=b.slice(1),e=[];for(let a of d){let b=a.trim();b.startsWith("- ")&&e.push(b.slice(2))}if(0===e.length)return a;let f=new Map;for(let a of e){let b=Math.max(a.lastIndexOf("/"),a.lastIndexOf("\\")),c=-1===b?".":a.slice(0,b)||"/",d=-1===b?a:a.slice(b+1);f.has(c)||f.set(c,[]),f.get(c).push(d)}let g=Array.from(f.keys()).sort(),h=`${c}
59
- ${e.length} files in ${g.length} dirs:
60
-
61
- `;for(let a of g.slice(0,20)){let b=f.get(a),c=a.replace(/\\/g,"/");for(let a of(h+=`${c}/ (${b.length}):
62
- `,b.slice(0,10)))h+=` ${a}
63
- `;b.length>10&&(h+=` +${b.length-10}
64
- `),h+="\n"}return g.length>20&&(h+=`+${g.length-20} more dirs
65
- `),h.replace(/\n+$/,"")}s.filterName="search-list";let t=/^Result of search in '[^']*' \(total (\d+) files?\):/,u=/^diff --git /m,v=/^@@ /m,w=/^On branch |^nothing to commit|^Changes (not |to be )|^Untracked files:/m,x=/^[*|/\\ ]*commit [0-9a-f]{7,40}(\s|$|[([<{])/im,y=/^[ MADRCU?!][ MADRCU?!] \S/m,z=/^(npm (warn|error|ERR!)|yarn (warn|error)|\s*Compiling\s+\S+|\s*Downloading\s+\S+|added \d+ package|\[ERROR\]|BUILD (SUCCESS|FAILED)|\s*Finished\s+|Successfully (installed|built)|ERROR:)/im,A=/[├└]──|│ /,B=/^[-dlbcps][rwx-]{9}/m,C=/^total \d+$/m;function D(a){if(!a)return null;let b=0;/^[A-Za-z]:[\\/]/.test(a)&&(b=2);let c=a.indexOf(":",b);if(-1===c)return null;let d=a.indexOf(":",c+1);if(-1===d)return null;let e=a.slice(0,c),f=a.slice(c+1,d);return/^\d+$/.test(f)?{file:e,lineNum:f,content:a.slice(d+1)}:null}function E(a){return null!==D(a)}function F(a){let b=a.trim();return 0!==b.length&&(!!/^[A-Za-z]:[\\/]/.test(b)||!b.includes(":")&&(b.startsWith(".")||b.startsWith("/")||b.includes("/")||b.includes("\\")))}function G(a,b){if(!b||!a)return null;if(a.conversationState){var c=a;let b={bytesBefore:0,bytesAfter:0,hits:[]};try{let a=c.conversationState,d=[...Array.isArray(a?.history)?a.history:[]];for(let c of(a?.currentMessage&&d.push(a.currentMessage),d)){let a=c?.userInputMessage?.userInputMessageContext?.toolResults;if(Array.isArray(a)){for(let c of a)if("error"!==c.status&&Array.isArray(c.content)){for(let a of c.content)if(a&&"string"==typeof a.text){if(H(a.text))continue;a.text=I(a.text,b,"kiro-tool-result")}}}}}catch(a){return console.warn("[RTK] compressKiroFormat error:",a.message),null}return b}let d=Array.isArray(a.messages)?a.messages:Array.isArray(a.input)?a.input:null;if(!d)return null;let e={bytesBefore:0,bytesAfter:0,hits:[]};try{for(let a=0;a<d.length;a++){let b=d[a];if(b){if("function_call_output"===b.type){if(!0===b.is_error||"error"===b.status)continue;if("string"==typeof b.output){if(H(b.output))continue;b.output=I(b.output,e,"openai-responses-string")}else if(Array.isArray(b.output))for(let a=0;a<b.output.length;a++){let c=b.output[a];if(c&&"input_text"===c.type&&"string"==typeof c.text){if(H(c.text))continue;c.text=I(c.text,e,"openai-responses-array")}}continue}if("tool"===b.role&&"string"==typeof b.content){if(!0===b.is_error||H(b.content))continue;b.content=I(b.content,e,"openai-tool");continue}if(Array.isArray(b.content)){if("tool"===b.role){if(!0===b.is_error)continue;for(let a=0;a<b.content.length;a++){let c=b.content[a];if(c&&"text"===c.type&&"string"==typeof c.text){if(H(c.text))continue;c.text=I(c.text,e,"openai-tool-array")}}continue}for(let a=0;a<b.content.length;a++){let c=b.content[a];if(c&&"tool_result"===c.type&&!0!==c.is_error){if("string"==typeof c.content){if(H(c.content))continue;c.content=I(c.content,e,"claude-string")}else if(Array.isArray(c.content))for(let a=0;a<c.content.length;a++){let b=c.content[a];if(b&&"text"===b.type&&"string"==typeof b.text){if(H(b.text))continue;b.text=I(b.text,e,"claude-array")}}}}}}}}catch(a){return console.warn("[RTK] compressMessages error:",a.message),null}return e}function H(a){return"string"==typeof a&&!(a.length<8)&&(/^\s*(Error|Exception|Traceback|TypeError|ReferenceError|SyntaxError|Failed)\b/m.test(a)||/\bat\s+\S+\s+\([^)]+:\d+:\d+\)/.test(a))}function I(a,b,c){let d=a.length;if(b.bytesBefore+=d,d<500||d>0xa00000)return b.bytesAfter+=d,a;let h=function(a){var b,c;let d,h,m=a.length>1024?a.slice(0,1024):a;if(x.test(m))return g;if(u.test(m)||v.test(m))return e;if(w.test(m))return f;if(z.test(m))return i;if(!((d=m.split("\n").filter(a=>a.trim())).length<3)&&d.filter(a=>y.test(a)).length/d.length>=.6)return f;let D=m.split("\n"),G=D.filter(a=>a.trim().length>0);return G.slice(0,5).some(E)?j:G.length>=3&&G.every(F)?k:A.test(m)?o:C.test(m)||(b=m,h=new RegExp((c=B).source,c.flags.includes("g")?c.flags:c.flags+"g"),(b.match(h)||[]).length>=3)?n:t.test(m)?s:D.length>=250&&function(a){let b=0,c=0;for(let d of a.slice(0,100))0!==d.length&&(c++,r.test(d)&&b++);return!(c<5)&&b/c>=.7}(D)?q:G.length>=5?l:a.split("\n").length>=250?p:null}(a);if(!h)return b.bytesAfter+=d,a;let m=function(a,b){if("function"!=typeof a)return b;try{let c=a(b);if("string"!=typeof c)return b;return c}catch(d){let c=a.filterName||a.name||"anonymous";return console.warn(`[rtk] warning: filter '${c}' panicked — passing through raw output: ${d?.message||d}`),b}}(h,a);return!m||0===m.length||m.length>=d?(b.bytesAfter+=d,a):(b.bytesAfter+=m.length,b.hits.push({shape:c,filter:h.filterName||h.name,saved:d-m.length}),m)}function J(a){if(!a||!a.hits||0===a.hits.length)return null;let b=a.bytesBefore-a.bytesAfter,c=a.bytesBefore>0?(b/a.bytesBefore*100).toFixed(1):"0",d=Array.from(new Set(a.hits.map(a=>a.filter))).join(",");return`[RTK] saved ${b}B / ${a.bytesBefore}B (${c}%) via [${d}] hits=${a.hits.length}`}},75749:(a,b,c)=>{c.d(b,{I:()=>n});var d=c(52422),e=c(43659),f=c(41004),g=c(14170),h=c(35024),i=c(25734),j=c(86171),k=c(89805);let l=a=>h.xq[a]?.format===g.h.OPENAI_RESPONSES;function m(a){if(!a?.content||!Array.isArray(a.content))return"";let b=a.content.find(a=>"output_text"===a.type);if("string"==typeof b?.text)return b.text;let c=a.content.find(a=>"string"==typeof a.text);return"string"==typeof c?.text?c.text:""}async function n({providerResponse:a,sourceFormat:b,provider:c,model:h,body:o,stream:p,translatedBody:q,finalBody:r,requestStartTime:s,connectionId:t,apiKey:u,clientRawRequest:v,onRequestSuccess:w,trackDone:x,appendLog:y}){let z=a.headers.get("content-type")||"";if(!(z.includes("text/event-stream")||""===z&&l(c)))return null;x();let A={provider:c,model:h,connectionId:t,request:(0,j.Fo)(o,p),providerRequest:r||q||null};if(l(c)||b===g.h.OPENAI_RESPONSES)try{let e=await (0,d.convertResponsesStreamToJson)(a.body);w&&await w();let f=e.usage||{};y({tokens:f,status:"200 OK"}),(0,j.qr)({provider:c,model:h,tokens:f,connectionId:t,apiKey:u,endpoint:v?.endpoint});let{msgItem:l,textContent:n}=function(a){if(!Array.isArray(a))return{msgItem:null,textContent:null};let b=a.filter(a=>a?.type==="message");if(0===b.length)return{msgItem:null,textContent:null};for(let a=b.length-1;a>=0;a--){let c=m(b[a]);if(c.length>0)return{msgItem:b[a],textContent:c}}let c=b[b.length-1];return{msgItem:c,textContent:m(c)}}(e.output),o=Date.now()-s;if((0,k.ox)((0,j.$R)({...A,latency:{ttft:o,total:o},tokens:{prompt_tokens:f.input_tokens||0,completion_tokens:f.output_tokens||0},response:{content:n,thinking:null,finish_reason:e.status||"unknown"},status:"success"},{endpoint:v?.endpoint||null})).catch(()=>{}),b===g.h.OPENAI_RESPONSES)return{success:!0,response:new Response(JSON.stringify(e),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})};let p=f.input_tokens||0,q=f.output_tokens||0,r=(e.output||[]).filter(a=>"function_call"===a.type).map((a,b)=>({id:a.call_id||`call_${a.name}_${Date.now()}_${b}`,type:"function",function:{name:a.name,arguments:"string"==typeof a.arguments?a.arguments:JSON.stringify(a.arguments||{})}})),x=r.length>0,z="completed"===e.status||"done"===e.status,B=x?"tool_calls":z?"stop":e.status||"stop",C={id:e.id||`chatcmpl-${Date.now()}`,object:"chat.completion",created:e.created_at||Math.floor(Date.now()/1e3),model:e.model||h,choices:[{index:0,message:{role:"assistant",content:n||(x?null:""),...x?{tool_calls:r}:{}},finish_reason:B}],usage:{prompt_tokens:p,completion_tokens:q,total_tokens:p+q}},D=(0,i.p)(C,b);return{success:!0,response:new Response(JSON.stringify(D),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}catch(a){return console.error("[ChatCore] Responses API SSE→JSON failed:",a),(0,e.A1)(f.gx.BAD_GATEWAY,"Failed to convert streaming response to JSON")}try{let g=await (0,d.i)(a.body,h);if(!g)return(0,e.A1)(f.gx.BAD_GATEWAY,"Invalid SSE response for non-streaming request");w&&await w();let l=g.usage||{};y({tokens:l,status:"200 OK"}),(0,j.qr)({provider:c,model:h,tokens:l,connectionId:t,apiKey:u,endpoint:v?.endpoint});let m=Date.now()-s;if((0,k.ox)((0,j.$R)({...A,latency:{ttft:m,total:m},tokens:l,response:{content:g.choices?.[0]?.message?.content||null,thinking:g.choices?.[0]?.message?.reasoning_content||null,finish_reason:g.choices?.[0]?.finish_reason||"unknown"},status:"success"},{endpoint:v?.endpoint||null})).catch(()=>{}),g?.choices)for(let a of g.choices)a?.message?.reasoning_content&&a.message.content&&delete a.message.reasoning_content;let n=(0,i.p)(g,b);return{success:!0,response:new Response(JSON.stringify(n),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}}catch(a){return console.error("[ChatCore] Chat Completions SSE→JSON failed:",a),(0,e.A1)(f.gx.BAD_GATEWAY,"Failed to convert streaming response to JSON")}}},76083:(a,b,c)=>{c.d(b,{C:()=>h});var d=c(14170),e=c(71301);let f=new Set([d.h.GEMINI,d.h.GEMINI_CLI,d.h.VERTEX,d.h.ANTIGRAVITY,d.h.OLLAMA,d.h.KIRO]);function g(a){return"string"==typeof a&&(a.startsWith("http://")||a.startsWith("https://"))}async function h(a,b,c,i={}){if(!a||!f.has(c))return 0;let j=function(a,b){let c=[],e=a=>{for(let b of a||[])if(Array.isArray(b.content)){for(let a of b.content)if(a?.type==="image_url"){let b="string"==typeof a.image_url?a.image_url:a.image_url?.url;g(b)&&c.push({get:()=>b,set:b=>{"string"==typeof a.image_url?a.image_url=b:a.image_url.url=b}})}}},f=a=>{for(let b of a||[])for(let a of b.parts||[]){let b=a?.fileData?.fileUri;g(b)&&c.push({get:()=>b,part:a})}},h=a=>{for(let b of a||[])if(Array.isArray(b?.content))for(let a of b.content)a?.type==="input_image"&&g("string"==typeof a.image_url?a.image_url:a.image_url?.url||a.file_id)&&c.push({get:()=>"string"==typeof a.image_url?a.image_url:a.image_url?.url||a.file_id,set:b=>{"string"==typeof a.image_url?a.image_url=b:a.image_url&&"object"==typeof a.image_url?a.image_url.url=b:a.image_url=b}})};switch(b){case d.h.OPENAI:case d.h.OLLAMA:case d.h.KIRO:case d.h.CURSOR:case d.h.COMMANDCODE:e(a.messages),Array.isArray(a.input)&&h(a.input);break;case d.h.OPENAI_RESPONSES:case d.h.OPENAI_RESPONSE:case d.h.CODEX:h(a.input);break;case d.h.CLAUDE:for(let b of a.messages||[])if(Array.isArray(b.content))for(let a of b.content)a?.type==="image"&&a.source?.type==="url"&&g(a.source.url)&&c.push({get:()=>a.source.url,claudeBlock:a});break;case d.h.GEMINI:case d.h.GEMINI_CLI:case d.h.VERTEX:f(a.contents);break;case d.h.ANTIGRAVITY:f(a?.request?.contents);break;default:e(a.messages),Array.isArray(a.input)&&h(a.input)}return c}(a,b);if(!j.length)return 0;let k=0;for(let a of j){let b=a.get();if((0,e.W$)(b))continue;let c=await (0,e.ni)(b,i);c&&(a.set?a.set(c.url):a.part?(delete a.part.fileData,a.part.inlineData={mimeType:c.mimeType,data:c.url.split(",")[1]}):a.claudeBlock&&(a.claudeBlock.source={type:"base64",media_type:c.mimeType,data:c.url.split(",")[1]}),k++)}return k}},86171:(a,b,c)=>{c.d(b,{$R:()=>j,Fo:()=>h,MK:()=>i,qr:()=>k});var d=c(89805),e=c(71857),f=c(73483);let g=["temperature","top_p","top_k","max_tokens","max_completion_tokens","thinking","reasoning","enable_thinking","presence_penalty","frequency_penalty","seed","stop","tools","tool_choice","response_format","prediction","store","metadata","n","logprobs","top_logprobs","logit_bias","user","parallel_tool_calls"];function h(a,b){let c={messages:a.messages||[],model:a.model,stream:b};for(let b of g)void 0!==a[b]&&(c[b]=a[b]);return c}function i(a){return a&&"object"==typeof a?a.usage?.input_tokens!==void 0?{prompt_tokens:a.usage.input_tokens||0,completion_tokens:a.usage.output_tokens||0,cache_read_input_tokens:a.usage.cache_read_input_tokens,cache_creation_input_tokens:a.usage.cache_creation_input_tokens}:a.usage?.prompt_tokens!==void 0?{prompt_tokens:a.usage.prompt_tokens||0,completion_tokens:a.usage.completion_tokens||0,cached_tokens:a.usage.prompt_tokens_details?.cached_tokens,reasoning_tokens:a.usage.completion_tokens_details?.reasoning_tokens}:a.usageMetadata?{prompt_tokens:a.usageMetadata.promptTokenCount||0,completion_tokens:a.usageMetadata.candidatesTokenCount||0,cached_tokens:a.usageMetadata.cachedContentTokenCount||0,reasoning_tokens:a.usageMetadata.thoughtsTokenCount||0}:null:null}function j(a,b={}){return{provider:a.provider||"unknown",model:a.model||"unknown",connectionId:a.connectionId||void 0,timestamp:new Date().toISOString(),latency:a.latency||{ttft:0,total:0},tokens:a.tokens||{prompt_tokens:0,completion_tokens:0},request:a.request,providerRequest:a.providerRequest||null,providerResponse:a.providerResponse||null,response:a.response||{},status:a.status||"success",...b}}function k({provider:a,model:b,tokens:c,connectionId:g,apiKey:h,endpoint:i,label:j="USAGE"}){if(!c||"object"!=typeof c)return;let l=c.input_tokens??c.prompt_tokens??0,m=c.output_tokens??c.completion_tokens??0;if(0===l&&0===m)return;let n=new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),o=g?` | account=${g.slice(0,8)}...`:"";console.log(`${e.lm.green}[${n}] 📊 [${j}] ${a.toUpperCase()} | in=${l} | out=${m}${o}${e.lm.reset}`);let p=(0,f._6)(c)||{prompt_tokens:c.prompt_tokens??c.input_tokens??0,completion_tokens:c.completion_tokens??c.output_tokens??0};(0,d.sZ)({provider:a||"unknown",model:b||"unknown",tokens:p,timestamp:new Date().toISOString(),connectionId:g||void 0,apiKey:h||void 0,endpoint:i||null}).catch(()=>{})}},91533:(a,b,c)=>{c.d(b,{gH:()=>f});var d=c(69320),e=c(41004);function f({body:a,reexecute:b,signal:c,log:g,stallTimeoutMs:h=e.xM,baseDelayMs:i=500,onExhausted:j}){let k=new TextEncoder,l=null,m=!1;return new ReadableStream({async start(e){l=a.getReader();let f=!1,n=null,o=a=>{if(!m)try{e.enqueue(k.encode(a))}catch{m=!0}},p=()=>{if(!m)try{e.close()}catch{}},q=()=>{try{l.cancel().catch(()=>{})}catch{}if(m)return;let a=Error("Request aborted");a.name="AbortError";try{e.error(a)}catch{}},r=async a=>{try{await Promise.resolve(j?.(a,{upstreamError:n?.error||null}))}catch{}let b=n?.kind==="error_object"?n.line:`data: ${JSON.stringify({error:{code:502,status:"EMPTY_RESPONSE",message:a}})}`;o(`${b}
66
-
67
- `),p()};for(let a=0;;a++){let e=new TextDecoder,j="",k=null,m=!1,s="empty";for(;;){let a,b;if(c?.aborted)return q();try{a=await Promise.race([l.read(),new Promise(a=>{b=setTimeout(()=>a({__stalled:!0}),h)})])}catch{if(c?.aborted)return q();s="read_error";break}finally{clearTimeout(b)}if(a.__stalled){try{l.cancel().catch(()=>{})}catch{}s="stall";break}let{done:g,value:i}=a;if(g)break;let p=(j+=e.decode(i,{stream:!0})).split("\n");for(let a of(j=p.pop(),p)){let b;if(k)continue;let c=a.trim();if(!c.startsWith("data:")){o(a+"\n");continue}let e=c.slice(5).trim();if(!e||"[DONE]"===e){o(a+"\n");continue}try{b=JSON.parse(e)}catch{o(a+"\n");continue}let g=function(a,b){let c=a.response||a;if(!c||"object"!=typeof c)return{action:"forward"};let e=c.error||a.error;if(e)return b?{action:"forward",terminal:!0}:{action:"hold",kind:"error_object",reason:e.status||e.message||"error",error:e};if(!c.candidates?.length&&c.promptFeedback?.blockReason)return{action:"forward",terminal:!0};let f=c.candidates?.[0];if(!f)return{action:"forward"};let g=!1;for(let a of f.content?.parts||[])if(a.functionCall||a.inlineData?.data||a.inline_data?.data||!0!==a.thought&&"string"==typeof a.text&&a.text.trim().length>0){g=!0;break}let h=f.finishReason&&String(f.finishReason).toUpperCase();return h?d.zh.has(h)||h===d.a_.MAX_TOKENS||g||b?{action:"forward",meaningful:g,terminal:!0}:{action:"hold",kind:d.lW.has(h)?"error_finish":"stop",reason:h}:{action:"forward",meaningful:g}}(b,f);if(g.meaningful&&(f=!0),"hold"===g.action){n=k={kind:g.kind,reason:g.reason,error:g.error||null,line:a};continue}g.terminal&&(m=!0),o(a+"\n")}}if(f||m){let a=j+e.decode();!k&&a&&o(a),p();return}let t=k?k.reason:s;if(g?.warn?.("STREAM",`ANTIGRAVITY | empty (${t}) | attempt ${a+1}/3`),a>=2)return r(`empty response from upstream (${t}) after ${a+1} attempts`);if(await new Promise(b=>{let d=setTimeout(b,i*2**a);c?.addEventListener?.("abort",()=>{clearTimeout(d),b()},{once:!0})}),c?.aborted)return q();try{l=(await b()).getReader()}catch(a){if(a?.name==="AbortError"||c?.aborted)return q();return r(a?.message||"retry request failed")}}},cancel(a){m=!0;try{l?.cancel(a)?.catch?.(()=>{})}catch{}}})}},92500:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{w:()=>L});var e=c(57647),f=c(72768),g=c(52136),h=c(14170),i=c(95189),j=c(71857),k=c(59657),l=c(8521),m=c(93943),n=c(71336),o=c(45699),p=c(35024),q=c(43659),r=c(41004),s=c(27349),t=c(89805),u=c(55330),v=c(86171),w=c(75749),x=c(5016),y=c(20623),z=c(91533),A=c(324),B=c(14724),C=c(17242),D=c(60125),E=c(60475),F=c(72758),G=c(70190),H=c(66306),I=c(5263),J=c(76083),K=a([u]);async function L({body:a,modelInfo:b,credentials:c,log:d,onCredentialsRefreshed:K,onRequestSuccess:M,onDisconnect:N,onUpstreamEmptyExhausted:O,clientRawRequest:P,connectionId:Q,userAgent:R,apiKey:S,ccFilterNaming:T,rtkEnabled:U,headroomEnabled:V,headroomUrl:W,headroomCompressUserMessages:X,cavemanEnabled:Y,cavemanLevel:Z,ponytailEnabled:$,ponytailLevel:_,sourceFormatOverride:aa,providerThinking:ab,abortSignal:ac}){let ad,ae,af,ag,ah,ai,{provider:aj,model:ak}=b,al=Date.now(),am=aa||(0,e.Tz)(a),an=(0,s.c)(a,ak,R,T);if(an)return an;let ao=o.Xg[aj]||aj,ap=(0,o.ux)(ao,ak),aq=(0,e.oF)(aj,am),ar=aq?.format===am;aq&&c&&(c.runtimeTransport=aq);let as=ar?am:ap||aq?.format||(0,e.jJ)(aj),at=(0,o.cY)(ao,ak),au=(0,o.kt)(ao,ak);if(ab?.mode&&"auto"!==ab.mode){let b=ab.mode;"on"!==b||a.thinking?"off"!==b||a.thinking?a.reasoning_effort||(a={...a,reasoning_effort:b}):a={...a,thinking:{type:"disabled"}}:(console.log("Injecting provider-level thinking config override: on"),a={...a,thinking:{type:"enabled",budget_tokens:1e4}})}let av=!0===a.stream||am===h.h.ANTIGRAVITY||am===h.h.GEMINI||am===h.h.GEMINI_CLI,aw=p.xq[aj]?.forceStream===!0,ax=!!aw||!1!==a.stream,ay=(0,o.OA)(ao,ak);("imageGen"===ay||/image|imagen|image-generation/i.test(ak))&&("antigravity"===aj||"gemini-cli"===aj)&&(ax=!1);let az=(0,A.J)(P?.headers||{},a);"deepseek-tui"===az&&!0!==a.stream&&(ax=!1);let aA=P?.headers?.accept||"",aB=aA.includes("application/json"),aC=aA.includes("text/event-stream");!aB||aC||!0===a.stream||aw||(ax=!1),a&&"object"==typeof a&&(a={...a,stream:ax});let aD=await (0,n.q7)(am,as,ak);P&&aD.logClientRawRequest(P.endpoint,P.body,P.headers),aD.logRawRequest(a),d?.debug?.("FORMAT",`${am} → ${as} | stream=${ax}`);let aE=(0,A.J)(P?.headers||{},a),aF=(0,A.Q)(aE,aj);if(c&&(c.rawHeaders=P?.headers||{}),!aF){let b=(0,H.nl)(aj,ak);(0,I.X)(a,am,b)&&d?.debug?.("MODALITY",`stripped unsupported media for ${aj}/${ak}`);try{let b=await (0,J.C)(a,am,as,{signal:void 0});b>0&&d?.debug?.("MODALITY",`prefetched ${b} remote image(s) for ${as}`)}catch(a){d?.warn?.("MODALITY",`image prefetch failed: ${a.message}`)}}let aG=(0,C.Ay)(a);if(aG>0&&d?.debug?.("TOOLCLEAN",`pre-translation: stripped ${aG} orphaned tool result(s)`),aF)d?.debug?.("PASSTHROUGH",`${aE} → ${aj} | native lossless`),ad={...a,model:(0,g.kD)(au)},"claude"===aE&&(0,i.ui)(ad,ad.model);else{if(!(ad=(0,f.GH)(am,as,au,a,ax,c,aj,aD,at,Q,aE)))return(0,t.uw)(ak,aj,Q,!1,!0),(0,q.A1)(r.gx.BAD_REQUEST,`Failed to translate request for ${am} → ${as}`);ae=ad._toolNameMap,delete ad._toolNameMap,ad.model=(0,g.kD)(au)}if("claude"===aE&&Array.isArray(ad.tools)){let{tools:a,stripped:b}=(0,B.F)(ad.tools);b.length>0&&(ad.tools=a,d?.debug?.("TOOLDEDUP",`stripped ${b.length}: ${b.slice(0,3).join(", ")}${b.length>3?"...":""}`))}let aH=aF?am:as;"tts"===(0,o.OA)(ao,ak)&&ad.messages&&(ad.messages=ad.messages.filter(a=>"tool"!==a.role),delete ad.tools);let aI=(0,F.B)(ad,U),aJ=(0,F.f)(aI);aJ&&console.log(aJ);let aK={},aL=await (0,G.SI)(ad,{enabled:V,url:W,model:au,format:aH,compressUserMessages:X,diagnostics:aK}),aM=(0,G.Nv)(aL),aN=(0,G.O2)(aK);aM?(d?.info?.("HEADROOM",`${aM}${aN?` | ${aN}`:""}`),(0,G.cB)(aL,aK)&&d?.warn?.("HEADROOM",`reported token delta, but outbound JSON shrank <5%; provider may bill near-original payload | ${aN}`)):V&&d?.warn?.("HEADROOM",`skipped: ${aK.reason||"compression unavailable"}${aK.endpoint?` (${aK.endpoint})`:""}`);let aO=(0,C.Ay)(ad);aO>0&&d?.debug?.("TOOLCLEAN",`post-compression: stripped ${aO} orphaned tool result(s)`),Y&&Z&&((0,D.p)(ad,aH,Z),d?.debug?.("CAVEMAN",`${Z} | ${aH}`)),$&&_&&((0,E.U)(ad,aH,_),d?.debug?.("PONYTAIL",`${_} | ${aH}`)),ad&&"object"==typeof ad&&ad.stream!==ax&&(ad={...ad,stream:ax});let aP=(0,u.SB)(aj);(0,t.uw)(ak,aj,Q,!0),(0,t.E5)({model:ak,provider:aj,connectionId:Q,status:"PENDING"}).catch(()=>{});let aQ=ad.messages?.length||ad.input?.length||ad.contents?.length||ad.request?.contents?.length||0;d?.debug?.("REQUEST",`${aj.toUpperCase()} | ${ak} | ${aQ} msgs`);let aR=(0,k.jd)({onDisconnect:a=>{(0,t.uw)(ak,aj,Q,!1),N&&N(a)},onError:()=>(0,t.uw)(ak,aj,Q,!1),log:d,provider:aj,model:ak});if(ac)if(ac.aborted)try{aR.abort()}catch{}else ac.addEventListener("abort",()=>{try{aR.abort()}catch{}},{once:!0});let aS={connectionProxyEnabled:c?.providerSpecificData?.connectionProxyEnabled===!0,connectionProxyUrl:c?.providerSpecificData?.connectionProxyUrl||"",connectionNoProxy:c?.providerSpecificData?.connectionNoProxy||"",vercelRelayUrl:c?.providerSpecificData?.vercelRelayUrl||""};if(aS.vercelRelayUrl){let a=c?.connectionName||c?.connectionId||"unknown",b=c?.providerSpecificData?.connectionProxyPoolId||"none";d?.info?.("PROXY",`${aj.toUpperCase()} | ${ak} | conn=${a} | pool=${b} | vercel-relay=${aS.vercelRelayUrl}`)}else if(aS.connectionProxyEnabled&&aS.connectionProxyUrl){let a=aS.connectionProxyUrl;try{let b=new URL(aS.connectionProxyUrl),c=b.hostname||"",d=b.port?`:${b.port}`:"",e=b.protocol||"http:";a=`${e}//${c}${d}`}catch{}let b=c?.providerSpecificData?.connectionProxyPoolId||"none",e=c?.connectionName||c?.connectionId||"unknown";d?.info?.("PROXY",`${aj.toUpperCase()} | ${ak} | conn=${e} | pool=${b} | url=${a}`)}if(aS.connectionProxyEnabled&&aS.connectionNoProxy){let a=c?.connectionName||c?.connectionId||"unknown";d?.debug?.("PROXY",`${aj.toUpperCase()} | ${ak} | conn=${a} | no_proxy=${aS.connectionNoProxy}`)}try{let a=await aP.execute({model:ak,body:ad,stream:ax,credentials:c,signal:aR.signal,log:d,proxyOptions:aS});af=a.response,ag=a.url,ah=a.headers,ai=a.transformedBody,aD.logTargetRequest(ag,ah,ai)}catch(c){if((0,t.uw)(ak,aj,Q,!1,!0),(0,t.E5)({model:ak,provider:aj,connectionId:Q,status:`FAILED ${"AbortError"===c.name?499:r.gx.BAD_GATEWAY}`}).catch(()=>{}),(0,t.ox)((0,v.$R)({provider:aj,model:ak,connectionId:Q,latency:{ttft:0,total:Date.now()-al},tokens:{prompt_tokens:0,completion_tokens:0},request:(0,v.Fo)(a,ax),providerRequest:ad||null,response:{error:c.message||String(c),status:"AbortError"===c.name?499:502,thinking:null},status:"error"})).catch(()=>{}),"AbortError"===c.name)return aR.handleError(c),(0,q.A1)(499,"Request aborted");let b=(0,q.lR)(c,aj,ak,r.gx.BAD_GATEWAY);return console.log(`${j.lm.red}[ERROR] ${b}${j.lm.reset}`),(0,q.A1)(r.gx.BAD_GATEWAY,b)}if(!aP.noAuth&&(af.status===r.gx.UNAUTHORIZED||af.status===r.gx.FORBIDDEN))try{let a=await (0,l.qZ)(()=>(0,m.MF)(aj,c,()=>aP.refreshCredentials(c,d)),3,d);if(a?.accessToken||a?.copilotToken){if(d?.info?.("TOKEN",`${aj.toUpperCase()} | refreshed`),Object.assign(c,a),K)try{await K(a)}catch(a){d?.warn?.("TOKEN",`onCredentialsRefreshed failed: ${a.message}`)}try{let a=await aP.execute({model:ak,body:ad,stream:ax,credentials:c,signal:aR.signal,log:d,proxyOptions:aS});a.response.ok&&(af=a.response,ag=a.url)}catch{d?.warn?.("TOKEN",`${aj.toUpperCase()} | retry after refresh failed`)}}else d?.warn?.("TOKEN",`${aj.toUpperCase()} | refresh failed`)}catch(a){d?.warn?.("TOKEN",`${aj.toUpperCase()} | refresh threw: ${a.message}`)}if(!af.ok){(0,t.uw)(ak,aj,Q,!1,!0);let{statusCode:b,message:c,resetsAtMs:d}=await (0,q.zL)(af,aP);(0,t.E5)({model:ak,provider:aj,connectionId:Q,status:`FAILED ${b}`}).catch(()=>{}),(0,t.ox)((0,v.$R)({provider:aj,model:ak,connectionId:Q,latency:{ttft:0,total:Date.now()-al},tokens:{prompt_tokens:0,completion_tokens:0},request:(0,v.Fo)(a,ax),providerRequest:ai||ad||null,response:{error:c,status:b,thinking:null},status:"error"})).catch(()=>{});let e=(0,q.lR)(Error(c),aj,ak,b);return console.log(`${j.lm.red}[ERROR] ${e}${j.lm.reset}`),aD.logError(Error(c),ai||ad),(0,q.A1)(b,e,d)}if("antigravity"===aj&&ax&&af.body){let a=async()=>{let a=await aP.execute({model:ak,body:ad,stream:ax,credentials:c,signal:aR.signal,log:d,proxyOptions:aS});if(!a.response.ok){let{statusCode:b,message:c}=await (0,q.zL)(a.response,aP);throw Error(`[${b}] ${c}`)}if(!a.response.body)throw Error("upstream returned no body");return a.response.body};af=new Response((0,z.gH)({body:af.body,reexecute:a,signal:aR.signal,log:d,onExhausted:(a,{upstreamError:b}={})=>{if(!O)return;let c=aP.parseRetryFromErrorMessage?.(b?.message||a);return O((0,q.lR)(Error(a),aj,ak,r.gx.BAD_GATEWAY),c?Date.now()+c:void 0)}}),{status:af.status,headers:af.headers})}let aT={provider:aj,model:ak,body:a,stream:ax,translatedBody:ad,finalBody:ai,requestStartTime:al,connectionId:Q,apiKey:S,clientRawRequest:P,onRequestSuccess:M},aU=a=>(0,t.E5)({model:ak,provider:aj,connectionId:Q,...a}).catch(()=>{}),aV=()=>(0,t.uw)(ak,aj,Q,!1);if(!av&&aw){let a=await (0,w.I)({...aT,providerResponse:af,sourceFormat:am,targetFormat:as,trackDone:aV,appendLog:aU});if(a)return aR.handleComplete(),a}if(!ax){let a=await (0,x.N)({...aT,providerResponse:af,sourceFormat:am,targetFormat:as,reqLogger:aD,toolNameMap:ae,trackDone:aV,appendLog:aU});return aR.handleComplete(),a}let{onStreamComplete:aW,streamDetailId:aX}=(0,y.$)({...aT});return(0,y.M)({...aT,providerResponse:af,sourceFormat:am,targetFormat:as,userAgent:R,reqLogger:aD,toolNameMap:ae,streamController:aR,onStreamComplete:aW,streamDetailId:aX})}u=(K.then?(await K)():K)[0],d()}catch(a){d(a)}})}};
@@ -1,8 +0,0 @@
1
- "use strict";exports.id=8910,exports.ids=[8910],exports.modules={18910:(a,b,c)=>{c.d(b,{Pr:()=>r,UP:()=>p,Vu:()=>q,t8:()=>o,vt:()=>t,xP:()=>l});var d=c(12557),e=c(43659),f=c(66306),g=c(26922);let h=new Set(["vision","pdf","audioInput","videoInput"]),i="[Called tools: ",j="[Tool result: ";function k(a){return a.filter(a=>a).map(a=>{if("tool"===a.role||"function"===a.role)return{role:"assistant",content:`${j}${(0,g.kU)(a.content)||String(a.content??"")}]`};if("assistant"===a.role&&Array.isArray(a.tool_calls)){let{tool_calls:b,...c}=a,d=b.map(a=>a?.function?.name||a?.name||"tool").join(", "),e=(0,g.kU)(c.content)||("string"==typeof c.content?c.content:"");return{...c,content:`${e}${e?"\n":""}${i}${d}]`}}if(Array.isArray(a.content)){let b=a.content.some(a=>"tool_use"===a.type),c=a.content.some(a=>"tool_result"===a.type);if(b||c){let b=[],c=[],d=[];for(let e of a.content)"text"===e.type&&e.text&&b.push(e.text),"tool_use"===e.type&&c.push(e.name||"tool"),"tool_result"===e.type&&d.push((0,g.kU)(e.content)||String(e.content??""));let{...e}=a,f=b.join("\n");return c.length>0&&(f=`${f}${f?"\n":""}${i}${c.join(", ")}]`),d.length>0&&(f=`${f}${f?"\n":""}${j}${d.join("\n")}]`),{...e,content:f}}}return a})}function l(a,b){if(!b||0===b.size||!Array.isArray(a)||a.length<=1)return a;let c=[...b].filter(a=>h.has(a)),d=[...b].filter(a=>!h.has(a));return a.map((a,b)=>{let e,g,h,i;return{m:a,i:b,t:(g=(e="string"==typeof a?a.indexOf("/"):-1)>0?a.slice(0,e):"",h=e>0?a.slice(e+1):a,i=(0,f.nl)(g,h),c.every(a=>!0===i[a])?+!d.every(a=>!0===i[a]):2)}}).sort((a,b)=>a.t-b.t||a.i-b.i).map(a=>a.m)}let m=new Map;function n(a){if(!Array.isArray(a)||0===a.length)return[];let b=a=>"assistant"===a||"model"===a,c=a.length-1;for(;c>=0&&!b(a[c]?.role);)c--;return a.slice(c+1)}function o(a){let b=new Set;if(!a||"object"!=typeof a)return b;let c=a=>{if(!a||"object"!=typeof a)return;let c=a.type;("image_url"===c||"image"===c||"input_image"===c)&&b.add("vision"),("file"===c||"document"===c||"input_file"===c)&&b.add("pdf");let d=a.inlineData?.mimeType||a.fileData?.mimeType;"string"==typeof d&&d.startsWith("image/")&&b.add("vision"),"application/pdf"===d&&b.add("pdf")},d=a=>{if(Array.isArray(a))for(let b of a)c(b)};for(let b of n(a.messages))d(b.content);for(let b of n(a.input))d(b.content);for(let b of n(a.contents||a.request?.contents))d(b.parts);return b}function p(a){a?m.delete(a):m.clear()}function q(a,b){if(a.includes("/"))return null;let c=(Array.isArray(b)?b:b?.combos||[]).find(b=>b.name===a);return c&&c.models&&c.models.length>0?c.models:null}async function r({body:a,models:b,handleSingleModel:c,log:f,comboName:g,comboStrategy:h,comboStickyLimit:i=1,autoSwitch:j=!0}){let k=function(a,b,c,d=1){let e;if(!a||a.length<=1||"round-robin"!==c)return a;let f=b||"__default__",g=Number.isFinite(e=Number.parseInt(d,10))&&e>0?e:1,h=m.get(f),i="number"==typeof h?{index:h,consecutiveUseCount:0}:h||{index:0,consecutiveUseCount:0},j=i.index%a.length,k=function(a,b){let c=[...a];for(let a=0;a<b;a++){let a=c.shift();c.push(a)}return c}(a,j),l=i.consecutiveUseCount+1;return l>=g?m.set(f,{index:(j+1)%a.length,consecutiveUseCount:0}):m.set(f,{index:j,consecutiveUseCount:l}),k}(b,g,h,i);if(j){let b=o(a);if(b.size>0){let a=l(k,b);a[0]!==k[0]&&f.info("COMBO",`auto-switch for [${[...b].join(",")}] → ${a[0]}`),k=a}}let n=null,p=null,q=null;for(let b=0;b<k.length;b++){let e=k[b];f.info("COMBO",`Trying model ${b+1}/${k.length}: ${e}`);try{let b="function"==typeof structuredClone?structuredClone(a):JSON.parse(JSON.stringify(a)),g=await c(b,e);if(g.ok)return f.info("COMBO",`Model ${e} succeeded`),g;let h=g.statusText||"",i=null;try{let a=await g.clone().json();h=a?.error?.message||a?.error||a?.message||h,i=a?.retryAfter||null}catch{}if(i&&(!p||new Date(i)<new Date(p))&&(p=i),"string"!=typeof h)try{h=JSON.stringify(h)}catch{h=String(h)}let{shouldFallback:j,cooldownMs:k}=(0,d.hk)(g.status,h);if(!j)return f.warn("COMBO",`Model ${e} failed (no fallback)`,{status:g.status}),g;k&&k>0&&k<=5e3&&(503===g.status||502===g.status||504===g.status)&&(f.info("COMBO",`Model ${e} transient ${g.status}, waiting ${k}ms before next`),await new Promise(a=>setTimeout(a,k))),n=h||String(g.status),q||(q=g.status),f.warn("COMBO",`Model ${e} failed, trying next`,{status:g.status})}catch(a){n=a.message||String(a),q||(q=500),f.warn("COMBO",`Model ${e} threw error, trying next`,{error:n})}}let s=n&&n.toLowerCase().includes("no credentials")?503:q||503,t=n||"All combo models unavailable";if(p){let a=(0,d.Qo)(p);return f.warn("COMBO",`All models failed | ${t} (${a})`),(0,e.wO)(s,t,p,a)}return f.warn("COMBO",`All models failed | ${t}`),new Response(JSON.stringify({error:{message:t}}),{status:s,headers:{"Content-Type":"application/json"}})}let s={minPanel:2,stragglerGraceMs:8e3,panelHardTimeoutMs:9e4};async function t({body:a,models:b,handleSingleModel:c,log:d,comboName:e,judgeModel:f,tuning:h}){var i;let j,l,m=Array.isArray(b)?b.filter(Boolean):[];if(0===m.length)return new Response(JSON.stringify({error:{message:"Fusion combo has no models"}}),{status:400,headers:{"Content-Type":"application/json"}});if(1===m.length)return c(a,m[0]);let n={...s,...h||{}},o=Math.min(Math.max(2,n.minPanel),m.length),p=f&&f.trim()?f.trim():m[0];d.info("FUSION",`Combo "${e}" | panel=${m.length} [${m.join(", ")}] | judge=${p} | quorum=${o}`);let{tools:q,tool_choice:r,...u}=a,v={...u,stream:!1};Array.isArray(v.messages)?v.messages=k(v.messages):Array.isArray(v.input)&&(v.input=k(v.input));let w=Date.now(),x=m.map(()=>new AbortController),y=m.map((a,b)=>{var d,e,f;return d=c(v,a,{isPanel:!0,signal:x[b].signal}),e=n.panelHardTimeoutMs,f=x[b],new Promise(a=>{let b=setTimeout(()=>{try{f?.abort?.(Error("fusion panel hard timeout"))}catch{}a({__timeout:!0})},e);Promise.resolve(d).then(c=>{clearTimeout(b),a(c)}).catch(c=>{clearTimeout(b),c?.name==="AbortError"||f?.signal?.aborted?a({__timeout:!0,__aborted:!0}):a({__error:c})})})}),z=await function(a,{minPanel:b,stragglerGraceMs:c,panelHardTimeoutMs:d,abortControllers:e=[]}){return new Promise(f=>{let g=Array(a.length),h=0,i=0,j=!1,k=null,l=()=>{if(!j){for(let a of(j=!0,clearTimeout(m),k&&clearTimeout(k),e))if(a&&!a.signal.aborted)try{a.abort(Error("fusion panel collection finished"))}catch{}f(g)}},m=setTimeout(l,d);a.forEach((d,e)=>{Promise.resolve(d).then(a=>{g[e]=a}).catch(a=>{g[e]={__error:a}}).finally(()=>{if(h++,g[e]&&g[e].ok&&i++,h===a.length)return l();i>=b&&!k&&(k=setTimeout(l,c))})})})}(y,{...n,minPanel:o,abortControllers:x});d.info("FUSION",`fan-out collected in ${Date.now()-w}ms`);let A=[];for(let a=0;a<z.length;a++){let b=z[a],c=m[a];if(!b){d.warn("FUSION",`Panel ${c} dropped (straggler/timeout)`);continue}if(b.__timeout){d.warn("FUSION",`Panel ${c} timed out`);continue}if(b.__error){d.warn("FUSION",`Panel ${c} threw`,{error:b.__error?.message||String(b.__error)});continue}if(!b.ok){d.warn("FUSION",`Panel ${c} failed`,{status:b.status});continue}try{let a=await b.clone().json(),e=function(a){if(!a||"object"!=typeof a)return"";let b=a.choices?.[0];if(b){let a=b.message??b.delta??{},c=(0,g.kU)(a.content);if(c.trim())return c;if("string"==typeof b.text&&b.text.trim())return b.text}let c=(0,g.kU)(a.content);if(c.trim())return c;let d=a.candidates?.[0]?.content?.parts;if(Array.isArray(d)){let a=d.map(a=>a?.text||"").join("");if(a.trim())return a}if(Array.isArray(a.output)){let b=a.output.flatMap(a=>Array.isArray(a.content)?a.content.map(a=>a?.text||""):[]).join("");if(b.trim())return b}return""}(a);e?(A.push({model:c,text:e,json:a}),d.info("FUSION",`Panel ${c} ok (${e.length} chars)`)):d.warn("FUSION",`Panel ${c} returned empty content`)}catch(a){d.warn("FUSION",`Panel ${c} unparseable`,{error:a.message||String(a)})}}if(0===A.length)return d.warn("FUSION","All panel models failed"),new Response(JSON.stringify({error:{message:"All fusion panel models failed"}}),{status:503,headers:{"Content-Type":"application/json"}});if(1===A.length)return d.info("FUSION",`Only ${A[0].model} succeeded — returning buffered answer (no re-dispatch)`),function({model:a,text:b},c){let d=!!c?.stream,e=Math.floor(Date.now()/1e3),f=`chatcmpl-fusion-${e}`;return d?new Response(`data: ${JSON.stringify({id:f,object:"chat.completion.chunk",created:e,model:a||"fusion-survivor",choices:[{index:0,delta:{role:"assistant",content:b},finish_reason:null}]})}
2
-
3
- data: ${JSON.stringify({id:f,object:"chat.completion.chunk",created:e,model:a||"fusion-survivor",choices:[{index:0,delta:{},finish_reason:"stop"}]})}
4
-
5
- data: [DONE]
6
-
7
- `,{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache"}}):new Response(JSON.stringify({id:f,object:"chat.completion",created:e,model:a||"fusion-survivor",choices:[{index:0,message:{role:"assistant",content:b},finish_reason:"stop"}]}),{status:200,headers:{"Content-Type":"application/json"}})}(A[0],a);let B=(j=A.map((a,b)=>`[Source ${b+1}]
8
- ${a.text}`).join("\n\n"),i=[`You are the JUDGE in a model-fusion panel. ${A.length} expert models independently answered the user's most recent request. Their responses are below, anonymized by source.`,"\nDo NOT mention that multiple models were used, and do NOT refer to the sources. Produce ONE authoritative final answer addressed directly to the user.\n\nFirst, internally analyze the panel along these dimensions: consensus (points most sources agree on — treat as higher-confidence), contradictions (where they disagree — resolve with your own judgment), partial coverage, unique insights only one source surfaced, and blind spots every source missed. Then write the best possible final answer grounded in that analysis — more complete and correct than any single response, with no filler.\n\n=== PANEL RESPONSES ===",j,"=== END PANEL RESPONSES ===\n\nNow write the final answer to the user's original request."].join("\n"),l={...a},Array.isArray(a.messages)?l.messages=[...a.messages,{role:"user",content:i}]:Array.isArray(a.input)?l.input=[...a.input,{type:"message",role:"user",content:[{type:"input_text",text:i}]}]:Array.isArray(a.contents)?l.contents=[...a.contents,{role:"user",parts:[{text:i}]}]:l.messages=[{role:"user",content:i}],l);return d.info("FUSION",`Judging ${A.length} answers with ${p}`),c(B,p)}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=8920,exports.ids=[8920],exports.modules={58920:(a,b,c)=>{c.d(b,{PROVIDER_PRICING:()=>e,ad:()=>i,calculateCostFromTokens:()=>j,gH:()=>g,getPricingForModel:()=>h});let d={"claude-opus-4-6":{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25},"claude-opus-4-5-20251101":{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25},"claude-sonnet-4-6":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75},"claude-sonnet-4-5-20250929":{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75},"claude-haiku-4-5-20251001":{input:1,output:5,cached:.1,reasoning:5,cache_creation:1.25},"claude-sonnet-4-20250514":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-opus-4-20250514":{input:15,output:25,cached:7.5,reasoning:112.5,cache_creation:15},"claude-3-5-sonnet-20241022":{input:3,output:15,cached:1.5,reasoning:15,cache_creation:3},"claude-haiku-4.5":{input:.5,output:2.5,cached:.05,reasoning:3.75,cache_creation:.5},"claude-opus-4.1":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4.5":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4.6":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-sonnet-4":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-sonnet-4.5":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-sonnet-4.6":{input:3,output:15,cached:.3,reasoning:22.5,cache_creation:3},"claude-opus-4-5-thinking":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"claude-opus-4-6-thinking":{input:5,output:25,cached:.5,reasoning:37.5,cache_creation:5},"gpt-3.5-turbo":{input:.5,output:1.5,cached:.25,reasoning:2.25,cache_creation:.5},"gpt-4":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-4-turbo":{input:10,output:30,cached:5,reasoning:45,cache_creation:10},"gpt-4o":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-4o-mini":{input:.15,output:.6,cached:.075,reasoning:.9,cache_creation:.15},"gpt-4.1":{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5},"gpt-5":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"gpt-5-mini":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"gpt-5-codex":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"gpt-5.1":{input:4,output:16,cached:2,reasoning:24,cache_creation:4},"gpt-5.1-codex":{input:4,output:16,cached:2,reasoning:24,cache_creation:4},"gpt-5.1-codex-mini":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"gpt-5.1-codex-mini-high":{input:2,output:8,cached:1,reasoning:12,cache_creation:2},"gpt-5.1-codex-max":{input:8,output:32,cached:4,reasoning:48,cache_creation:8},"gpt-5.2":{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},"gpt-5.2-codex":{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5},"gpt-5.3-codex":{input:6,output:24,cached:3,reasoning:36,cache_creation:6},"gpt-5.3-codex-spark":{input:3,output:12,cached:.3,reasoning:12,cache_creation:3},o1:{input:15,output:60,cached:7.5,reasoning:90,cache_creation:15},"o1-mini":{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3},"gemini-3-flash-preview":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-pro-preview":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-low":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-3.1-pro-high":{input:4,output:18,cached:.5,reasoning:27,cache_creation:4},"gemini-pro-agent":{input:4,output:18,cached:.5,reasoning:27,cache_creation:4},"gemini-3-flash-agent":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3.5-flash-low":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3.5-flash-extra-low":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-3-flash":{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5},"gemini-2.5-pro":{input:2,output:12,cached:.25,reasoning:18,cache_creation:2},"gemini-2.5-flash":{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3},"gemini-2.5-flash-lite":{input:.15,output:1.25,cached:.015,reasoning:1.875,cache_creation:.15},"qwen3-coder-plus":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"qwen3-coder-flash":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"kimi-k2":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"kimi-k2-thinking":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"kimi-k2.5":{input:1.2,output:4.8,cached:.6,reasoning:7.2,cache_creation:1.2},"kimi-k2.5-thinking":{input:1.8,output:7.2,cached:.9,reasoning:10.8,cache_creation:1.8},"kimi-latest":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"deepseek-chat":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-reasoner":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-r1":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v3.2-chat":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v3.2-reasoner":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v4-flash":{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14},"deepseek-v4-pro":{input:.435,output:.87,cached:.003625,reasoning:.87,cache_creation:.435},"glm-4.6":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"glm-4.6v":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"glm-4.7":{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75},"glm-5":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"MiniMax-M3":{input:.3,output:1.2,cached:.06,reasoning:1.8,cache_creation:.3},"MiniMax-M2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M2.5":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"MiniMax-M2.7":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"minimax-m2.1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"minimax-m2.5":{input:.6,output:2.4,cached:.3,reasoning:3.6,cache_creation:.6},"grok-code-fast-1":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},auto:{input:2,output:8,cached:1,reasoning:12,cache_creation:2},"oswe-vscode-prime":{input:1,output:4,cached:.5,reasoning:6,cache_creation:1},"gpt-oss-120b-medium":{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5},"vision-model":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5},"coder-model":{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},e={gh:{"gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}}},f=[{pattern:"*-codex-xhigh",pricing:{input:10,output:40,cached:5,reasoning:60,cache_creation:10}},{pattern:"*-codex-high",pricing:{input:8,output:32,cached:4,reasoning:48,cache_creation:8}},{pattern:"*-codex-max",pricing:{input:8,output:32,cached:4,reasoning:48,cache_creation:8}},{pattern:"*-codex-mini-*",pricing:{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},{pattern:"*-codex-mini",pricing:{input:1.5,output:6,cached:.75,reasoning:9,cache_creation:1.5}},{pattern:"*-codex-low",pricing:{input:4,output:16,cached:2,reasoning:24,cache_creation:4}},{pattern:"*-codex-none",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"*-codex-spark",pricing:{input:3,output:12,cached:.3,reasoning:12,cache_creation:3}},{pattern:"codex-*",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"*-codex",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"claude-opus-*",pricing:{input:5,output:25,cached:.5,reasoning:25,cache_creation:6.25}},{pattern:"claude-sonnet-*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75}},{pattern:"claude-haiku-*",pricing:{input:1,output:5,cached:.1,reasoning:5,cache_creation:1.25}},{pattern:"claude-*",pricing:{input:3,output:15,cached:.3,reasoning:15,cache_creation:3.75}},{pattern:"gemini-*-flash-lite",pricing:{input:.15,output:1.25,cached:.015,reasoning:1.875,cache_creation:.15}},{pattern:"gemini-*-flash",pricing:{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3}},{pattern:"gemini-*-pro",pricing:{input:2,output:12,cached:.25,reasoning:18,cache_creation:2}},{pattern:"gemini-3-*",pricing:{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5}},{pattern:"gemini-2.5-*",pricing:{input:.3,output:2.5,cached:.03,reasoning:3.75,cache_creation:.3}},{pattern:"gemini-*",pricing:{input:.5,output:3,cached:.03,reasoning:4.5,cache_creation:.5}},{pattern:"gpt-5.3-*",pricing:{input:6,output:24,cached:3,reasoning:36,cache_creation:6}},{pattern:"gpt-5.2-*",pricing:{input:5,output:20,cached:2.5,reasoning:30,cache_creation:5}},{pattern:"gpt-5.1-*",pricing:{input:4,output:16,cached:2,reasoning:24,cache_creation:4}},{pattern:"gpt-5-*",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"gpt-5*",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"gpt-4o-*",pricing:{input:.15,output:.6,cached:.075,reasoning:.9,cache_creation:.15}},{pattern:"gpt-4o",pricing:{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5}},{pattern:"gpt-4*",pricing:{input:2.5,output:10,cached:1.25,reasoning:15,cache_creation:2.5}},{pattern:"o1-*",pricing:{input:3,output:12,cached:1.5,reasoning:18,cache_creation:3}},{pattern:"o1",pricing:{input:15,output:60,cached:7.5,reasoning:90,cache_creation:15}},{pattern:"o3-*",pricing:{input:10,output:40,cached:5,reasoning:60,cache_creation:10}},{pattern:"o4-*",pricing:{input:2,output:8,cached:1,reasoning:12,cache_creation:2}},{pattern:"qwen3-coder-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"qwen*-coder-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"qwen*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"kimi-*-thinking",pricing:{input:1.8,output:7.2,cached:.9,reasoning:10.8,cache_creation:1.8}},{pattern:"kimi-k2*",pricing:{input:1.2,output:4.8,cached:.6,reasoning:7.2,cache_creation:1.2}},{pattern:"kimi-*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"deepseek-*reasoner*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-r*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-v*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"deepseek-*",pricing:{input:.14,output:.28,cached:.0028,reasoning:.28,cache_creation:.14}},{pattern:"glm-5*",pricing:{input:1,output:4,cached:.5,reasoning:6,cache_creation:1}},{pattern:"glm-4*",pricing:{input:.75,output:3,cached:.375,reasoning:4.5,cache_creation:.75}},{pattern:"glm-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"MiniMax-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"minimax-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"grok-code-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}},{pattern:"grok-*",pricing:{input:.5,output:2,cached:.25,reasoning:3,cache_creation:.5}}];function g(a,b){return RegExp("^"+a.split("*").map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*")+"$","i").test(b)}function h(a,b){if(!b)return null;if(a&&e[a]?.[b])return e[a][b];let c=b.includes("/")?b.split("/").pop():b;if(d[c])return d[c];if(d[b])return d[b];for(let{pattern:a,pricing:d}of f)if(g(a,c)||g(a,b))return d;return null}function i(){return e}function j(a,b){if(!a||!b)return 0;let c=0,d=a.prompt_tokens||a.input_tokens||0,e=a.cached_tokens||a.cache_read_input_tokens||0,f=a.cache_creation_input_tokens||0;c+=Math.max(0,d-e-f)*(b.input/1e6),e>0&&(c+=e*((b.cached||b.input)/1e6)),c+=(a.completion_tokens||a.output_tokens||0)*(b.output/1e6);let g=a.reasoning_tokens||0;return g>0&&(c+=g*((b.reasoning||b.output)/1e6)),f>0&&(c+=f*((b.cache_creation||b.input)/1e6)),c}}};