n9router 0.4.44 → 0.4.45

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 (1317) hide show
  1. package/app/.next/BUILD_ID +1 -1
  2. package/app/.next/app-path-routes-manifest.json +22 -13
  3. package/app/.next/build-manifest.json +2 -2
  4. package/app/.next/prerender-manifest.json +27 -3
  5. package/app/.next/required-server-files.json +12 -0
  6. package/app/.next/routes-manifest.json +71 -0
  7. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  8. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  11. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  12. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  13. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  14. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  15. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  16. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  17. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  18. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  19. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  20. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  21. package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  22. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  23. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  24. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +30 -30
  26. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  27. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  28. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  29. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  30. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  32. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  33. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  34. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  35. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  36. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  37. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  38. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  39. package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  40. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  41. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  42. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  43. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  44. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  45. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  46. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +10 -6
  47. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  48. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  49. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  50. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  51. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  52. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  53. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  54. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  55. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  56. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  57. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  58. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  59. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  60. package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  61. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  62. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  63. package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  64. package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js +2 -0
  65. package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -0
  66. package/app/.next/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -0
  67. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  68. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  69. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  70. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +3 -3
  71. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  72. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  73. package/app/.next/server/app/_global-error/page.js +3 -3
  74. package/app/.next/server/app/_global-error/page.js.nft.json +1 -1
  75. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  76. package/app/.next/server/app/_global-error.html +1 -1
  77. package/app/.next/server/app/_global-error.rsc +1 -1
  78. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  79. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  80. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  81. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  82. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  83. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  84. package/app/.next/server/app/_not-found/page.js +2 -2
  85. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  86. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  87. package/app/.next/server/app/_not-found.html +1 -1
  88. package/app/.next/server/app/_not-found.rsc +4 -4
  89. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  90. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  91. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
  92. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  93. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  94. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  95. package/app/.next/server/app/api/antigravity-app/route.js +1 -1
  96. package/app/.next/server/app/api/antigravity-app/route.js.nft.json +1 -1
  97. package/app/.next/server/app/api/antigravity-app-v2/route.js +1 -1
  98. package/app/.next/server/app/api/antigravity-app-v2/route.js.nft.json +1 -1
  99. package/app/.next/server/app/api/antigravity-ide/route.js +1 -1
  100. package/app/.next/server/app/api/antigravity-ide/route.js.nft.json +1 -1
  101. package/app/.next/server/app/api/antigravity-targets/route.js +1 -1
  102. package/app/.next/server/app/api/antigravity-targets/route.js.nft.json +1 -1
  103. package/app/.next/server/app/api/antigravity-tools/import/route.js +1 -1
  104. package/app/.next/server/app/api/antigravity-tools/import/route.js.nft.json +1 -1
  105. package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js +1 -1
  106. package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js.nft.json +1 -1
  107. package/app/.next/server/app/api/auth/login/route.js +1 -1
  108. package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  109. package/app/.next/server/app/api/auth/logout/route.js +1 -1
  110. package/app/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  111. package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
  112. package/app/.next/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  113. package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
  114. package/app/.next/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  115. package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
  116. package/app/.next/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  117. package/app/.next/server/app/api/auth/reset-password/route.js +1 -0
  118. package/app/.next/server/app/api/auth/reset-password/route.js.nft.json +1 -0
  119. package/app/.next/server/app/api/auth/reset-password/route_client-reference-manifest.js +1 -0
  120. package/app/.next/server/app/api/auth/status/route.js +1 -1
  121. package/app/.next/server/app/api/auth/status/route.js.nft.json +1 -1
  122. package/app/.next/server/app/api/cli-tools/all-statuses/route.js +4 -4
  123. package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  124. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  125. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  126. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  127. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  128. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
  129. package/app/.next/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  130. package/app/.next/server/app/api/cli-tools/cline-settings/route.js +2 -2
  131. package/app/.next/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  132. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
  133. package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  134. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  135. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  136. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  137. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  138. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  139. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  140. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  141. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  142. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  143. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  144. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +2 -2
  145. package/app/.next/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  146. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  147. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  148. package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  149. package/app/.next/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  150. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  151. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  152. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  153. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  154. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  155. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  156. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  157. package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
  158. package/app/.next/server/app/api/combos/route.js +1 -1
  159. package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
  160. package/app/.next/server/app/api/donate/route.js +1 -1
  161. package/app/.next/server/app/api/donate/route.js.nft.json +1 -1
  162. package/app/.next/server/app/api/headroom/start/route.js +1 -0
  163. package/app/.next/server/app/api/headroom/start/route.js.nft.json +1 -0
  164. package/app/.next/server/app/api/headroom/start/route_client-reference-manifest.js +1 -0
  165. package/app/.next/server/app/api/headroom/status/route.js +1 -0
  166. package/app/.next/server/app/api/headroom/status/route.js.nft.json +1 -0
  167. package/app/.next/server/app/api/headroom/status/route_client-reference-manifest.js +1 -0
  168. package/app/.next/server/app/api/headroom/stop/route.js +1 -0
  169. package/app/.next/server/app/api/headroom/stop/route.js.nft.json +1 -0
  170. package/app/.next/server/app/api/headroom/stop/route_client-reference-manifest.js +1 -0
  171. package/app/.next/server/app/api/health/route.js +1 -1
  172. package/app/.next/server/app/api/health/route.js.nft.json +1 -1
  173. package/app/.next/server/app/api/init/route.js +1 -1
  174. package/app/.next/server/app/api/init/route.js.nft.json +1 -1
  175. package/app/.next/server/app/api/internal/account-health/route.js +1 -1
  176. package/app/.next/server/app/api/internal/account-health/route.js.nft.json +1 -1
  177. package/app/.next/server/app/api/internal/request-detail/route.js +1 -1
  178. package/app/.next/server/app/api/internal/request-detail/route.js.nft.json +1 -1
  179. package/app/.next/server/app/api/internal/usage/route.js +1 -1
  180. package/app/.next/server/app/api/internal/usage/route.js.nft.json +1 -1
  181. package/app/.next/server/app/api/keys/[id]/reset-usage/route.js +1 -1
  182. package/app/.next/server/app/api/keys/[id]/reset-usage/route.js.nft.json +1 -1
  183. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  184. package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
  185. package/app/.next/server/app/api/keys/[id]/usage/route.js +1 -1
  186. package/app/.next/server/app/api/keys/[id]/usage/route.js.nft.json +1 -1
  187. package/app/.next/server/app/api/keys/route.js +1 -1
  188. package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
  189. package/app/.next/server/app/api/locale/route.js +1 -1
  190. package/app/.next/server/app/api/locale/route.js.nft.json +1 -1
  191. package/app/.next/server/app/api/mcp/[plugin]/message/route.js +3 -3
  192. package/app/.next/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  193. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +6 -3
  194. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  195. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  196. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  197. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  198. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  199. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  200. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  201. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  202. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  203. package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
  204. package/app/.next/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  205. package/app/.next/server/app/api/models/alias/route.js +1 -1
  206. package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
  207. package/app/.next/server/app/api/models/availability/route.js +1 -1
  208. package/app/.next/server/app/api/models/availability/route.js.nft.json +1 -1
  209. package/app/.next/server/app/api/models/custom/route.js +1 -1
  210. package/app/.next/server/app/api/models/custom/route.js.nft.json +1 -1
  211. package/app/.next/server/app/api/models/disabled/route.js +1 -1
  212. package/app/.next/server/app/api/models/disabled/route.js.nft.json +1 -1
  213. package/app/.next/server/app/api/models/route.js +1 -1
  214. package/app/.next/server/app/api/models/route.js.nft.json +1 -1
  215. package/app/.next/server/app/api/models/test/route.js +1 -1
  216. package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
  217. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  218. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  219. package/app/.next/server/app/api/oauth/codex/bulk-import/route.js +1 -0
  220. package/app/.next/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -0
  221. package/app/.next/server/app/api/oauth/codex/bulk-import/route_client-reference-manifest.js +1 -0
  222. package/app/.next/server/app/api/oauth/codex/import-token/route.js +1 -1
  223. package/app/.next/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  224. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  225. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  226. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  227. package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  228. package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
  229. package/app/.next/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  230. package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
  231. package/app/.next/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  232. package/app/.next/server/app/api/oauth/kiro/api-key/route.js +1 -0
  233. package/app/.next/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -0
  234. package/app/.next/server/app/api/oauth/kiro/api-key/route_client-reference-manifest.js +1 -0
  235. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  236. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  237. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  238. package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  239. package/app/.next/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -0
  240. package/app/.next/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -0
  241. package/app/.next/server/app/api/oauth/kiro/import-cli-proxy/route_client-reference-manifest.js +1 -0
  242. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  243. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  244. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  245. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  246. package/app/.next/server/app/api/pricing/route.js +1 -1
  247. package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
  248. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  249. package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  250. package/app/.next/server/app/api/provider-nodes/route.js +1 -1
  251. package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
  252. package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
  253. package/app/.next/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  254. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  255. package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  256. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  257. package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
  258. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  259. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  260. package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
  261. package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  262. package/app/.next/server/app/api/providers/client/route.js +1 -1
  263. package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
  264. package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
  265. package/app/.next/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  266. package/app/.next/server/app/api/providers/route.js +1 -1
  267. package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
  268. package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
  269. package/app/.next/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  270. package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
  271. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  272. package/app/.next/server/app/api/providers/validate/route.js +1 -1
  273. package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
  274. package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
  275. package/app/.next/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  276. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  277. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  278. package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  279. package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  280. package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  281. package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  282. package/app/.next/server/app/api/proxy-pools/route.js +1 -1
  283. package/app/.next/server/app/api/proxy-pools/route.js.nft.json +1 -1
  284. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  285. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  286. package/app/.next/server/app/api/settings/database/route.js +1 -1
  287. package/app/.next/server/app/api/settings/database/route.js.nft.json +1 -1
  288. package/app/.next/server/app/api/settings/database/selective/route.js +1 -1
  289. package/app/.next/server/app/api/settings/database/selective/route.js.nft.json +1 -1
  290. package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
  291. package/app/.next/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  292. package/app/.next/server/app/api/settings/require-login/route.js +1 -1
  293. package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
  294. package/app/.next/server/app/api/settings/route.js +1 -1
  295. package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
  296. package/app/.next/server/app/api/shutdown/route.js +1 -1
  297. package/app/.next/server/app/api/shutdown/route.js.nft.json +1 -1
  298. package/app/.next/server/app/api/tags/route.js +1 -1
  299. package/app/.next/server/app/api/tags/route.js.nft.json +1 -1
  300. package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
  301. package/app/.next/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  302. package/app/.next/server/app/api/translator/console-logs/stream/route.js +4 -2
  303. package/app/.next/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  304. package/app/.next/server/app/api/translator/load/route.js +1 -1
  305. package/app/.next/server/app/api/translator/load/route.js.nft.json +1 -1
  306. package/app/.next/server/app/api/translator/save/route.js +1 -1
  307. package/app/.next/server/app/api/translator/save/route.js.nft.json +1 -1
  308. package/app/.next/server/app/api/translator/send/route.js +1 -1
  309. package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
  310. package/app/.next/server/app/api/translator/translate/route.js +1 -1
  311. package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
  312. package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
  313. package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  314. package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
  315. package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  316. package/app/.next/server/app/api/tunnel/status/route.js +1 -1
  317. package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
  318. package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
  319. package/app/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  320. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  321. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  322. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  323. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  324. package/app/.next/server/app/api/tunnel/tailscale-install/route.js +2 -2
  325. package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  326. package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -0
  327. package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -0
  328. package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route_client-reference-manifest.js +1 -0
  329. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  330. package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  331. package/app/.next/server/app/api/usage/chart/route.js +1 -1
  332. package/app/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
  333. package/app/.next/server/app/api/usage/history/route.js +1 -1
  334. package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
  335. package/app/.next/server/app/api/usage/logs/route.js +1 -1
  336. package/app/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
  337. package/app/.next/server/app/api/usage/providers/route.js +1 -1
  338. package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
  339. package/app/.next/server/app/api/usage/report/route.js +1 -1
  340. package/app/.next/server/app/api/usage/report/route.js.nft.json +1 -1
  341. package/app/.next/server/app/api/usage/request-details/route.js +1 -1
  342. package/app/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
  343. package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
  344. package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  345. package/app/.next/server/app/api/usage/stats/route.js +1 -1
  346. package/app/.next/server/app/api/usage/stats/route.js.nft.json +1 -1
  347. package/app/.next/server/app/api/usage/stream/route.js +2 -2
  348. package/app/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
  349. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  350. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  351. package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
  352. package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  353. package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
  354. package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  355. package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
  356. package/app/.next/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  357. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  358. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  359. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  360. package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  361. package/app/.next/server/app/api/v1/images/generations/route.js +2 -2
  362. package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  363. package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
  364. package/app/.next/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  365. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  366. package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  367. package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
  368. package/app/.next/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  369. package/app/.next/server/app/api/v1/models/info/route.js +1 -1
  370. package/app/.next/server/app/api/v1/models/info/route.js.nft.json +1 -1
  371. package/app/.next/server/app/api/v1/models/route.js +1 -1
  372. package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
  373. package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
  374. package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  375. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  376. package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  377. package/app/.next/server/app/api/v1/route.js +1 -1
  378. package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
  379. package/app/.next/server/app/api/v1/search/route.js +1 -1
  380. package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
  381. package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
  382. package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  383. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  384. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  385. package/app/.next/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
  386. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  387. package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
  388. package/app/.next/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
  389. package/app/.next/server/app/api/version/route.js +1 -1
  390. package/app/.next/server/app/api/version/route.js.nft.json +1 -1
  391. package/app/.next/server/app/api/version/shutdown/route.js +1 -1
  392. package/app/.next/server/app/api/version/shutdown/route.js.nft.json +1 -1
  393. package/app/.next/server/app/api/version/update/route.js +1 -1
  394. package/app/.next/server/app/api/version/update/route.js.nft.json +1 -1
  395. package/app/.next/server/app/callback/page.js +2 -2
  396. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  397. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  398. package/app/.next/server/app/callback.html +1 -1
  399. package/app/.next/server/app/callback.rsc +5 -5
  400. package/app/.next/server/app/callback.segments/_full.segment.rsc +5 -5
  401. package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
  402. package/app/.next/server/app/callback.segments/_index.segment.rsc +4 -4
  403. package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
  404. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
  405. package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
  406. package/app/.next/server/app/dashboard/basic-chat.html +1 -1
  407. package/app/.next/server/app/dashboard/basic-chat.rsc +6 -6
  408. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  409. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  410. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  411. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  412. package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  413. package/app/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  414. package/app/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  415. package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  416. package/app/.next/server/app/dashboard/cli-tools.html +1 -1
  417. package/app/.next/server/app/dashboard/cli-tools.rsc +6 -6
  418. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  419. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  420. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  421. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  422. package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  423. package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  424. package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  425. package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  426. package/app/.next/server/app/dashboard/combos.html +1 -1
  427. package/app/.next/server/app/dashboard/combos.rsc +6 -6
  428. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  429. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  430. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  431. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  432. package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  433. package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  434. package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  435. package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  436. package/app/.next/server/app/dashboard/endpoint.html +1 -1
  437. package/app/.next/server/app/dashboard/endpoint.rsc +6 -6
  438. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  439. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  440. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  441. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  442. package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  443. package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  444. package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  445. package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  446. package/app/.next/server/app/dashboard/media-providers/web.html +1 -1
  447. package/app/.next/server/app/dashboard/media-providers/web.rsc +6 -6
  448. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  449. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  450. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  451. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  452. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  453. package/app/.next/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  454. package/app/.next/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  455. package/app/.next/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  456. package/app/.next/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  457. package/app/.next/server/app/dashboard/mitm.html +1 -1
  458. package/app/.next/server/app/dashboard/mitm.rsc +6 -6
  459. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  460. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  461. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  462. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  463. package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  464. package/app/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  465. package/app/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  466. package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  467. package/app/.next/server/app/dashboard/profile.html +1 -1
  468. package/app/.next/server/app/dashboard/profile.rsc +6 -6
  469. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  470. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  471. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  472. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  473. package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  474. package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  475. package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  476. package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  477. package/app/.next/server/app/dashboard/providers/new.html +1 -1
  478. package/app/.next/server/app/dashboard/providers/new.rsc +6 -6
  479. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  480. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  481. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  482. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  483. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  484. package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  485. package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  486. package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  487. package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  488. package/app/.next/server/app/dashboard/providers.html +1 -1
  489. package/app/.next/server/app/dashboard/providers.rsc +6 -6
  490. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  491. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  492. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  493. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  494. package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  495. package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  496. package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  497. package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  498. package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
  499. package/app/.next/server/app/dashboard/proxy-pools.rsc +6 -6
  500. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  501. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  502. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  503. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  504. package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  505. package/app/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  506. package/app/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  507. package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  508. package/app/.next/server/app/dashboard/quota.html +2 -2
  509. package/app/.next/server/app/dashboard/quota.rsc +7 -7
  510. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  511. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  512. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  513. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  514. package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  515. package/app/.next/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  516. package/app/.next/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  517. package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  518. package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
  519. package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  520. package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  521. package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
  522. package/app/.next/server/app/dashboard/settings/pricing.rsc +5 -5
  523. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  524. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  525. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  526. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  527. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  528. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  529. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  530. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  531. package/app/.next/server/app/dashboard/skills.html +1 -1
  532. package/app/.next/server/app/dashboard/skills.rsc +6 -6
  533. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  534. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  535. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  536. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  537. package/app/.next/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  538. package/app/.next/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  539. package/app/.next/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  540. package/app/.next/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  541. package/app/.next/server/app/dashboard/token-saver.html +1 -0
  542. package/app/.next/server/app/dashboard/token-saver.meta +17 -0
  543. package/app/.next/server/app/dashboard/token-saver.rsc +23 -0
  544. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +6 -0
  545. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +5 -0
  546. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +5 -0
  547. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +6 -0
  548. package/app/.next/server/app/dashboard/token-saver.segments/_full.segment.rsc +23 -0
  549. package/app/.next/server/app/dashboard/token-saver.segments/_head.segment.rsc +6 -0
  550. package/app/.next/server/app/dashboard/token-saver.segments/_index.segment.rsc +8 -0
  551. package/app/.next/server/app/dashboard/token-saver.segments/_tree.segment.rsc +5 -0
  552. package/app/.next/server/app/dashboard/translator.html +1 -1
  553. package/app/.next/server/app/dashboard/translator.rsc +6 -6
  554. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  555. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  556. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  557. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  558. package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  559. package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  560. package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  561. package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  562. package/app/.next/server/app/dashboard/usage.html +1 -1
  563. package/app/.next/server/app/dashboard/usage.rsc +6 -6
  564. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  565. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  566. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  567. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  568. package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  569. package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  570. package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  571. package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  572. package/app/.next/server/app/dashboard.html +1 -1
  573. package/app/.next/server/app/dashboard.rsc +6 -6
  574. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  575. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  576. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  577. package/app/.next/server/app/dashboard.segments/_full.segment.rsc +6 -6
  578. package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
  579. package/app/.next/server/app/dashboard.segments/_index.segment.rsc +4 -4
  580. package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  581. package/app/.next/server/app/favicon.ico/route.js +1 -1
  582. package/app/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  583. package/app/.next/server/app/index.html +1 -1
  584. package/app/.next/server/app/index.rsc +4 -4
  585. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  586. package/app/.next/server/app/index.segments/_full.segment.rsc +4 -4
  587. package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
  588. package/app/.next/server/app/index.segments/_index.segment.rsc +4 -4
  589. package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  590. package/app/.next/server/app/landing/page.js +2 -2
  591. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  592. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  593. package/app/.next/server/app/landing.html +1 -1
  594. package/app/.next/server/app/landing.rsc +4 -4
  595. package/app/.next/server/app/landing.segments/_full.segment.rsc +4 -4
  596. package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
  597. package/app/.next/server/app/landing.segments/_index.segment.rsc +4 -4
  598. package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
  599. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  600. package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
  601. package/app/.next/server/app/login/page.js +2 -2
  602. package/app/.next/server/app/login/page.js.nft.json +1 -1
  603. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  604. package/app/.next/server/app/login.html +1 -1
  605. package/app/.next/server/app/login.rsc +5 -5
  606. package/app/.next/server/app/login.segments/_full.segment.rsc +5 -5
  607. package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
  608. package/app/.next/server/app/login.segments/_index.segment.rsc +4 -4
  609. package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  610. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  611. package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
  612. package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
  613. package/app/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  614. package/app/.next/server/app/page.js +2 -2
  615. package/app/.next/server/app/page.js.nft.json +1 -1
  616. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  617. package/app/.next/server/app-paths-manifest.json +22 -13
  618. package/app/.next/server/chunks/1051.js +1 -1
  619. package/app/.next/server/chunks/1241.js +1 -0
  620. package/app/.next/server/chunks/1350.js +1 -0
  621. package/app/.next/server/chunks/1470.js +1 -0
  622. package/app/.next/server/chunks/1719.js +1 -0
  623. package/app/.next/server/chunks/2041.js +1 -0
  624. package/app/.next/server/chunks/220.js +1 -0
  625. package/app/.next/server/chunks/2701.js +10 -0
  626. package/app/.next/server/chunks/318.js +21 -44
  627. package/app/.next/server/chunks/3535.js +1 -0
  628. package/app/.next/server/chunks/{1531.js → 3546.js} +1 -1
  629. package/app/.next/server/chunks/3955.js +1 -0
  630. package/app/.next/server/chunks/412.js +5 -5
  631. package/app/.next/server/chunks/4250.js +2 -2
  632. package/app/.next/server/chunks/4306.js +1 -0
  633. package/app/.next/server/chunks/4334.js +1 -1
  634. package/app/.next/server/chunks/4632.js +1 -0
  635. package/app/.next/server/chunks/4989.js +2 -2
  636. package/app/.next/server/chunks/5612.js +1 -0
  637. package/app/.next/server/chunks/5615.js +43 -0
  638. package/app/.next/server/chunks/5699.js +1 -0
  639. package/app/.next/server/chunks/5961.js +1 -0
  640. package/app/.next/server/chunks/5995.js +3 -3
  641. package/app/.next/server/chunks/6070.js +1 -0
  642. package/app/.next/server/chunks/6114.js +1 -0
  643. package/app/.next/server/chunks/615.js +1 -0
  644. package/app/.next/server/chunks/6182.js +6 -6
  645. package/app/.next/server/chunks/6292.js +1 -0
  646. package/app/.next/server/chunks/63.js +3 -3
  647. package/app/.next/server/chunks/6306.js +1 -0
  648. package/app/.next/server/chunks/6328.js +1 -0
  649. package/app/.next/server/chunks/6457.js +4 -4
  650. package/app/.next/server/chunks/{5433.js → 6630.js} +1 -1
  651. package/app/.next/server/chunks/{6108.js → 6763.js} +1 -1
  652. package/app/.next/server/chunks/6777.js +1 -0
  653. package/app/.next/server/chunks/{7912.js → 7186.js} +1 -1
  654. package/app/.next/server/chunks/7774.js +2 -2
  655. package/app/.next/server/chunks/7886.js +1 -0
  656. package/app/.next/server/chunks/7994.js +1 -1
  657. package/app/.next/server/chunks/8056.js +1 -0
  658. package/app/.next/server/chunks/8238.js +1 -0
  659. package/app/.next/server/chunks/8271.js +1 -0
  660. package/app/.next/server/chunks/8833.js +75 -0
  661. package/app/.next/server/chunks/8895.js +52 -6
  662. package/app/.next/server/chunks/8910.js +2 -0
  663. package/app/.next/server/chunks/8920.js +1 -0
  664. package/app/.next/server/chunks/9718.js +1 -1
  665. package/app/.next/server/middleware-build-manifest.js +1 -1
  666. package/app/.next/server/middleware.js +4 -4
  667. package/app/.next/server/pages/404.html +1 -1
  668. package/app/.next/server/pages/500.html +1 -1
  669. package/app/.next/server/server-reference-manifest.js +1 -1
  670. package/app/.next/server/server-reference-manifest.json +1 -1
  671. package/app/.next/static/T8rvyAbbOSQ8MIHxo1_4X/_buildManifest.js +1 -0
  672. package/app/.next/static/chunks/1321-691c34899090d436.js +1 -0
  673. package/app/.next/static/chunks/4406-7c91480ba4750afb.js +53 -0
  674. package/app/.next/static/chunks/5497-5cecb2d0cc54a0f8.js +7 -0
  675. package/app/.next/static/chunks/705-979ff3eb195b9023.js +1 -0
  676. package/app/.next/static/chunks/8198-78a2e809aa3deb41.js +1 -0
  677. package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-068dda6eab2b9c36.js → page-32d43003bf779725.js} +1 -1
  678. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-67d36bbaeb6af871.js → page-15778114f19494f8.js} +1 -1
  679. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-51957200aaa0e0f7.js → page-925d6a9314cf0c45.js} +1 -1
  680. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-4bb3df15dc91fcb2.js +1 -0
  681. package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/page-f60417f258999845.js +1 -0
  682. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-74bfeda48c347058.js +1 -0
  683. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-73b10fa11c40c00c.js +59 -0
  684. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-af17247a74fa851d.js → page-0f5128a45c7624cc.js} +1 -1
  685. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-2db8cc9e18677705.js → page-ff27d7416104ba6f.js} +2 -2
  686. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-3dda3de79f6783b9.js → page-e95e43c710b79a65.js} +1 -1
  687. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/{page-8cb9c569a7822a0a.js → page-7c06afe89ff9c503.js} +1 -1
  688. package/app/.next/static/chunks/app/(dashboard)/dashboard/page-89ea8a0102dcfaa6.js +1 -0
  689. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/{page-5d6cf330f43257e2.js → page-ddac36832067712f.js} +1 -1
  690. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-658bcd33b491d685.js +10 -0
  691. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/{page-90c4c56b239fd343.js → page-01642ff508f9e4da.js} +1 -1
  692. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-cf238376512e0f73.js +1 -0
  693. package/app/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-b9da35538f423062.js → page-5d746bc98c25d89d.js} +1 -1
  694. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-c38f42b5a56fb89a.js +1 -0
  695. package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/{page-00d80332b8940cff.js → page-78cef8869d7870c1.js} +1 -1
  696. package/app/.next/static/chunks/app/(dashboard)/dashboard/token-saver/page-74ebd1e0d5566f44.js +1 -0
  697. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/{page-216b24f865b63695.js → page-260de68ca87258e3.js} +1 -1
  698. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-40fda9a4c08e7bd5.js +3 -0
  699. package/app/.next/static/chunks/app/(dashboard)/layout-9e8819851f57b3cb.js +1 -0
  700. package/app/.next/static/chunks/app/_global-error/page-270635328efa0901.js +1 -0
  701. package/app/.next/static/chunks/app/api/antigravity-app/route-270635328efa0901.js +1 -0
  702. package/app/.next/static/chunks/app/api/antigravity-app-v2/route-270635328efa0901.js +1 -0
  703. package/app/.next/static/chunks/app/api/antigravity-ide/route-270635328efa0901.js +1 -0
  704. package/app/.next/static/chunks/app/api/antigravity-targets/route-270635328efa0901.js +1 -0
  705. package/app/.next/static/chunks/app/api/antigravity-tools/import/route-270635328efa0901.js +1 -0
  706. package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-270635328efa0901.js +1 -0
  707. package/app/.next/static/chunks/app/api/auth/login/route-270635328efa0901.js +1 -0
  708. package/app/.next/static/chunks/app/api/auth/logout/route-270635328efa0901.js +1 -0
  709. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-270635328efa0901.js +1 -0
  710. package/app/.next/static/chunks/app/api/auth/oidc/start/route-270635328efa0901.js +1 -0
  711. package/app/.next/static/chunks/app/api/auth/oidc/test/route-270635328efa0901.js +1 -0
  712. package/app/.next/static/chunks/app/api/auth/reset-password/route-270635328efa0901.js +1 -0
  713. package/app/.next/static/chunks/app/api/auth/status/route-270635328efa0901.js +1 -0
  714. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-270635328efa0901.js +1 -0
  715. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-270635328efa0901.js +1 -0
  716. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-270635328efa0901.js +1 -0
  717. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-270635328efa0901.js +1 -0
  718. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-270635328efa0901.js +1 -0
  719. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-270635328efa0901.js +1 -0
  720. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-270635328efa0901.js +1 -0
  721. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-270635328efa0901.js +1 -0
  722. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-270635328efa0901.js +1 -0
  723. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-270635328efa0901.js +1 -0
  724. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-270635328efa0901.js +1 -0
  725. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-270635328efa0901.js +1 -0
  726. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-270635328efa0901.js +1 -0
  727. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-270635328efa0901.js +1 -0
  728. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-270635328efa0901.js +1 -0
  729. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-270635328efa0901.js +1 -0
  730. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-270635328efa0901.js +1 -0
  731. package/app/.next/static/chunks/app/api/combos/[id]/route-270635328efa0901.js +1 -0
  732. package/app/.next/static/chunks/app/api/combos/route-270635328efa0901.js +1 -0
  733. package/app/.next/static/chunks/app/api/donate/route-270635328efa0901.js +1 -0
  734. package/app/.next/static/chunks/app/api/headroom/start/route-270635328efa0901.js +1 -0
  735. package/app/.next/static/chunks/app/api/headroom/status/route-270635328efa0901.js +1 -0
  736. package/app/.next/static/chunks/app/api/headroom/stop/route-270635328efa0901.js +1 -0
  737. package/app/.next/static/chunks/app/api/health/route-270635328efa0901.js +1 -0
  738. package/app/.next/static/chunks/app/api/init/route-270635328efa0901.js +1 -0
  739. package/app/.next/static/chunks/app/api/internal/account-health/route-270635328efa0901.js +1 -0
  740. package/app/.next/static/chunks/app/api/internal/request-detail/route-270635328efa0901.js +1 -0
  741. package/app/.next/static/chunks/app/api/internal/usage/route-270635328efa0901.js +1 -0
  742. package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-270635328efa0901.js +1 -0
  743. package/app/.next/static/chunks/app/api/keys/[id]/route-270635328efa0901.js +1 -0
  744. package/app/.next/static/chunks/app/api/keys/[id]/usage/route-270635328efa0901.js +1 -0
  745. package/app/.next/static/chunks/app/api/keys/route-270635328efa0901.js +1 -0
  746. package/app/.next/static/chunks/app/api/locale/route-270635328efa0901.js +1 -0
  747. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-270635328efa0901.js +1 -0
  748. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-270635328efa0901.js +1 -0
  749. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-270635328efa0901.js +1 -0
  750. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-270635328efa0901.js +1 -0
  751. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-270635328efa0901.js +1 -0
  752. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-270635328efa0901.js +1 -0
  753. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-270635328efa0901.js +1 -0
  754. package/app/.next/static/chunks/app/api/models/alias/route-270635328efa0901.js +1 -0
  755. package/app/.next/static/chunks/app/api/models/availability/route-270635328efa0901.js +1 -0
  756. package/app/.next/static/chunks/app/api/models/custom/route-270635328efa0901.js +1 -0
  757. package/app/.next/static/chunks/app/api/models/disabled/route-270635328efa0901.js +1 -0
  758. package/app/.next/static/chunks/app/api/models/route-270635328efa0901.js +1 -0
  759. package/app/.next/static/chunks/app/api/models/test/route-270635328efa0901.js +1 -0
  760. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-270635328efa0901.js +1 -0
  761. package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-270635328efa0901.js +1 -0
  762. package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-270635328efa0901.js +1 -0
  763. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-270635328efa0901.js +1 -0
  764. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-270635328efa0901.js +1 -0
  765. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-270635328efa0901.js +1 -0
  766. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-270635328efa0901.js +1 -0
  767. package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-270635328efa0901.js +1 -0
  768. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-270635328efa0901.js +1 -0
  769. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-270635328efa0901.js +1 -0
  770. package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-270635328efa0901.js +1 -0
  771. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-270635328efa0901.js +1 -0
  772. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-270635328efa0901.js +1 -0
  773. package/app/.next/static/chunks/app/api/pricing/route-270635328efa0901.js +1 -0
  774. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-270635328efa0901.js +1 -0
  775. package/app/.next/static/chunks/app/api/provider-nodes/route-270635328efa0901.js +1 -0
  776. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-270635328efa0901.js +1 -0
  777. package/app/.next/static/chunks/app/api/providers/[id]/models/route-270635328efa0901.js +1 -0
  778. package/app/.next/static/chunks/app/api/providers/[id]/route-270635328efa0901.js +1 -0
  779. package/app/.next/static/chunks/app/api/providers/[id]/test/route-270635328efa0901.js +1 -0
  780. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-270635328efa0901.js +1 -0
  781. package/app/.next/static/chunks/app/api/providers/client/route-270635328efa0901.js +1 -0
  782. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-270635328efa0901.js +1 -0
  783. package/app/.next/static/chunks/app/api/providers/route-270635328efa0901.js +1 -0
  784. package/app/.next/static/chunks/app/api/providers/suggested-models/route-270635328efa0901.js +1 -0
  785. package/app/.next/static/chunks/app/api/providers/test-batch/route-270635328efa0901.js +1 -0
  786. package/app/.next/static/chunks/app/api/providers/validate/route-270635328efa0901.js +1 -0
  787. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-270635328efa0901.js +1 -0
  788. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-270635328efa0901.js +1 -0
  789. package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-270635328efa0901.js +1 -0
  790. package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-270635328efa0901.js +1 -0
  791. package/app/.next/static/chunks/app/api/proxy-pools/route-270635328efa0901.js +1 -0
  792. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-270635328efa0901.js +1 -0
  793. package/app/.next/static/chunks/app/api/settings/database/route-270635328efa0901.js +1 -0
  794. package/app/.next/static/chunks/app/api/settings/database/selective/route-270635328efa0901.js +1 -0
  795. package/app/.next/static/chunks/app/api/settings/proxy-test/route-270635328efa0901.js +1 -0
  796. package/app/.next/static/chunks/app/api/settings/require-login/route-270635328efa0901.js +1 -0
  797. package/app/.next/static/chunks/app/api/settings/route-270635328efa0901.js +1 -0
  798. package/app/.next/static/chunks/app/api/shutdown/route-270635328efa0901.js +1 -0
  799. package/app/.next/static/chunks/app/api/tags/route-270635328efa0901.js +1 -0
  800. package/app/.next/static/chunks/app/api/translator/console-logs/route-270635328efa0901.js +1 -0
  801. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-270635328efa0901.js +1 -0
  802. package/app/.next/static/chunks/app/api/translator/load/route-270635328efa0901.js +1 -0
  803. package/app/.next/static/chunks/app/api/translator/save/route-270635328efa0901.js +1 -0
  804. package/app/.next/static/chunks/app/api/translator/send/route-270635328efa0901.js +1 -0
  805. package/app/.next/static/chunks/app/api/translator/translate/route-270635328efa0901.js +1 -0
  806. package/app/.next/static/chunks/app/api/tunnel/disable/route-270635328efa0901.js +1 -0
  807. package/app/.next/static/chunks/app/api/tunnel/enable/route-270635328efa0901.js +1 -0
  808. package/app/.next/static/chunks/app/api/tunnel/status/route-270635328efa0901.js +1 -0
  809. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-270635328efa0901.js +1 -0
  810. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-270635328efa0901.js +1 -0
  811. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-270635328efa0901.js +1 -0
  812. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-270635328efa0901.js +1 -0
  813. package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-270635328efa0901.js +1 -0
  814. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-270635328efa0901.js +1 -0
  815. package/app/.next/static/chunks/app/api/usage/chart/route-270635328efa0901.js +1 -0
  816. package/app/.next/static/chunks/app/api/usage/history/route-270635328efa0901.js +1 -0
  817. package/app/.next/static/chunks/app/api/usage/logs/route-270635328efa0901.js +1 -0
  818. package/app/.next/static/chunks/app/api/usage/providers/route-270635328efa0901.js +1 -0
  819. package/app/.next/static/chunks/app/api/usage/report/route-270635328efa0901.js +1 -0
  820. package/app/.next/static/chunks/app/api/usage/request-details/route-270635328efa0901.js +1 -0
  821. package/app/.next/static/chunks/app/api/usage/request-logs/route-270635328efa0901.js +1 -0
  822. package/app/.next/static/chunks/app/api/usage/stats/route-270635328efa0901.js +1 -0
  823. package/app/.next/static/chunks/app/api/usage/stream/route-270635328efa0901.js +1 -0
  824. package/app/.next/static/chunks/app/api/v1/api/chat/route-270635328efa0901.js +1 -0
  825. package/app/.next/static/chunks/app/api/v1/audio/speech/route-270635328efa0901.js +1 -0
  826. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-270635328efa0901.js +1 -0
  827. package/app/.next/static/chunks/app/api/v1/audio/voices/route-270635328efa0901.js +1 -0
  828. package/app/.next/static/chunks/app/api/v1/chat/completions/route-270635328efa0901.js +1 -0
  829. package/app/.next/static/chunks/app/api/v1/embeddings/route-270635328efa0901.js +1 -0
  830. package/app/.next/static/chunks/app/api/v1/images/generations/route-270635328efa0901.js +1 -0
  831. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-270635328efa0901.js +1 -0
  832. package/app/.next/static/chunks/app/api/v1/messages/route-270635328efa0901.js +1 -0
  833. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-270635328efa0901.js +1 -0
  834. package/app/.next/static/chunks/app/api/v1/models/info/route-270635328efa0901.js +1 -0
  835. package/app/.next/static/chunks/app/api/v1/models/route-270635328efa0901.js +1 -0
  836. package/app/.next/static/chunks/app/api/v1/responses/compact/route-270635328efa0901.js +1 -0
  837. package/app/.next/static/chunks/app/api/v1/responses/route-270635328efa0901.js +1 -0
  838. package/app/.next/static/chunks/app/api/v1/route-270635328efa0901.js +1 -0
  839. package/app/.next/static/chunks/app/api/v1/search/route-270635328efa0901.js +1 -0
  840. package/app/.next/static/chunks/app/api/v1/web/fetch/route-270635328efa0901.js +1 -0
  841. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-270635328efa0901.js +1 -0
  842. package/app/.next/static/chunks/app/api/v1beta/models/route-270635328efa0901.js +1 -0
  843. package/app/.next/static/chunks/app/api/version/route-270635328efa0901.js +1 -0
  844. package/app/.next/static/chunks/app/api/version/shutdown/route-270635328efa0901.js +1 -0
  845. package/app/.next/static/chunks/app/api/version/update/route-270635328efa0901.js +1 -0
  846. package/app/.next/static/chunks/app/callback/page-b12814e445464090.js +1 -0
  847. package/app/.next/static/chunks/app/dashboard/settings/pricing/page-71c6f6edfe7b111f.js +1 -0
  848. package/app/.next/static/chunks/app/login/page-1b46e625d19cb04a.js +1 -0
  849. package/app/.next/static/chunks/app/manifest.webmanifest/route-270635328efa0901.js +1 -0
  850. package/app/.next/static/chunks/app/page-270635328efa0901.js +1 -0
  851. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-270635328efa0901.js +1 -0
  852. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-270635328efa0901.js +1 -0
  853. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-270635328efa0901.js +1 -0
  854. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-270635328efa0901.js +1 -0
  855. package/app/.next/static/css/7eb3c00f858e3692.css +1 -0
  856. package/app/open-sse/AGENTS.md +39 -0
  857. package/app/open-sse/config/appConstants.js +20 -41
  858. package/app/open-sse/config/kiroConstants.js +55 -40
  859. package/app/open-sse/config/mediaConfig.js +27 -0
  860. package/app/open-sse/config/providerModels.js +15 -851
  861. package/app/open-sse/config/providers.js +6 -444
  862. package/app/open-sse/config/runtimeConfig.js +18 -3
  863. package/app/open-sse/config/ttsModels.js +2 -0
  864. package/app/open-sse/executors/antigravity.js +211 -125
  865. package/app/open-sse/executors/base.js +18 -8
  866. package/app/open-sse/executors/codebuddy-cn.js +40 -0
  867. package/app/open-sse/executors/codex.js +21 -89
  868. package/app/open-sse/executors/commandcode.js +10 -4
  869. package/app/open-sse/executors/cursor.js +96 -203
  870. package/app/open-sse/executors/default.js +148 -130
  871. package/app/open-sse/executors/github.js +5 -39
  872. package/app/open-sse/executors/grok-web.js +5 -7
  873. package/app/open-sse/executors/index.js +10 -0
  874. package/app/open-sse/executors/kimchi.js +123 -0
  875. package/app/open-sse/executors/kiro.js +126 -25
  876. package/app/open-sse/executors/mimo-free.js +167 -0
  877. package/app/open-sse/executors/opencode-go.js +12 -4
  878. package/app/open-sse/executors/opencode.js +1 -1
  879. package/app/open-sse/executors/perplexity-web.js +5 -7
  880. package/app/open-sse/executors/qoder.js +18 -10
  881. package/app/open-sse/executors/vertex.js +53 -7
  882. package/app/open-sse/executors/xiaomi-tokenplan.js +6 -5
  883. package/app/open-sse/handlers/chatCore/nonStreamingHandler.js +92 -12
  884. package/app/open-sse/handlers/chatCore/requestDetail.js +6 -10
  885. package/app/open-sse/handlers/chatCore/sseToJsonHandler.js +6 -2
  886. package/app/open-sse/handlers/chatCore/streamingHandler.js +51 -15
  887. package/app/open-sse/handlers/chatCore.js +58 -5
  888. package/app/open-sse/handlers/embeddingProviders/index.js +1 -0
  889. package/app/open-sse/handlers/embeddingProviders/openai.js +8 -16
  890. package/app/open-sse/handlers/imageGenerationCore.js +66 -6
  891. package/app/open-sse/handlers/imageProviders/antigravity.js +73 -0
  892. package/app/open-sse/handlers/imageProviders/blackForestLabs.js +2 -1
  893. package/app/open-sse/handlers/imageProviders/cloudflareAi.js +2 -1
  894. package/app/open-sse/handlers/imageProviders/codex.js +2 -1
  895. package/app/open-sse/handlers/imageProviders/comfyui.js +5 -1
  896. package/app/open-sse/handlers/imageProviders/falAi.js +2 -1
  897. package/app/open-sse/handlers/imageProviders/gemini.js +2 -1
  898. package/app/open-sse/handlers/imageProviders/huggingface.js +2 -1
  899. package/app/open-sse/handlers/imageProviders/index.js +5 -0
  900. package/app/open-sse/handlers/imageProviders/nanobanana.js +4 -2
  901. package/app/open-sse/handlers/imageProviders/openai.js +15 -22
  902. package/app/open-sse/handlers/imageProviders/runwayml.js +2 -1
  903. package/app/open-sse/handlers/imageProviders/sdwebui.js +4 -1
  904. package/app/open-sse/handlers/imageProviders/stabilityAi.js +2 -1
  905. package/app/open-sse/handlers/responsesHandler.js +3 -7
  906. package/app/open-sse/handlers/search/chatSearch.js +13 -14
  907. package/app/open-sse/handlers/sttCore.js +2 -3
  908. package/app/open-sse/handlers/ttsProviders/gemini.js +14 -3
  909. package/app/open-sse/handlers/ttsProviders/index.js +4 -2
  910. package/app/open-sse/handlers/ttsProviders/openai.js +4 -1
  911. package/app/open-sse/handlers/ttsProviders/openrouter.js +7 -4
  912. package/app/open-sse/index.js +0 -3
  913. package/app/open-sse/providers/REGISTRY_TEMPLATE.js +98 -0
  914. package/app/open-sse/providers/capabilities.js +291 -0
  915. package/app/open-sse/providers/index.js +51 -0
  916. package/app/open-sse/providers/models/helpers.js +20 -0
  917. package/app/open-sse/providers/models/namePatterns.js +33 -0
  918. package/app/open-sse/providers/models/schema.js +31 -0
  919. package/app/{src/shared/constants → open-sse/providers}/pricing.js +8 -5
  920. package/app/open-sse/providers/registry/alicode-intl.js +30 -0
  921. package/app/open-sse/providers/registry/alicode.js +31 -0
  922. package/app/open-sse/providers/registry/anthropic.js +32 -0
  923. package/app/open-sse/providers/registry/antigravity.js +85 -0
  924. package/app/open-sse/providers/registry/assemblyai.js +38 -0
  925. package/app/open-sse/providers/registry/aws-polly.js +45 -0
  926. package/app/open-sse/providers/registry/azure.js +21 -0
  927. package/app/open-sse/providers/registry/black-forest-labs.js +32 -0
  928. package/app/open-sse/providers/registry/blackbox.js +41 -0
  929. package/app/open-sse/providers/registry/brave-search.js +35 -0
  930. package/app/open-sse/providers/registry/byteplus.js +35 -0
  931. package/app/open-sse/providers/registry/cartesia.js +36 -0
  932. package/app/open-sse/providers/registry/cerebras.js +31 -0
  933. package/app/open-sse/providers/registry/chutes.js +24 -0
  934. package/app/open-sse/providers/registry/claude.js +89 -0
  935. package/app/open-sse/providers/registry/cline.js +51 -0
  936. package/app/open-sse/providers/registry/clinepass.js +57 -0
  937. package/app/open-sse/providers/registry/cloudflare-ai.js +55 -0
  938. package/app/open-sse/providers/registry/codebuddy-cn.js +77 -0
  939. package/app/open-sse/providers/registry/codex.js +95 -0
  940. package/app/open-sse/providers/registry/cohere.js +25 -0
  941. package/app/open-sse/providers/registry/comfyui.js +20 -0
  942. package/app/open-sse/providers/registry/commandcode.js +43 -0
  943. package/app/open-sse/providers/registry/coqui.js +30 -0
  944. package/app/open-sse/providers/registry/cursor.js +58 -0
  945. package/app/open-sse/providers/registry/deepgram.js +33 -0
  946. package/app/open-sse/providers/registry/deepseek.js +51 -0
  947. package/app/open-sse/providers/registry/edge-tts.js +24 -0
  948. package/app/open-sse/providers/registry/elevenlabs.js +35 -0
  949. package/app/open-sse/providers/registry/exa.js +50 -0
  950. package/app/open-sse/providers/registry/fal-ai.js +34 -0
  951. package/app/open-sse/providers/registry/firecrawl.js +34 -0
  952. package/app/open-sse/providers/registry/fireworks.js +29 -0
  953. package/app/open-sse/providers/registry/gemini-cli.js +58 -0
  954. package/app/open-sse/providers/registry/gemini.js +81 -0
  955. package/app/open-sse/providers/registry/github.js +82 -0
  956. package/app/open-sse/providers/registry/gitlab.js +32 -0
  957. package/app/open-sse/providers/registry/glm-cn.js +35 -0
  958. package/app/open-sse/providers/registry/glm.js +58 -0
  959. package/app/open-sse/providers/registry/google-pse.js +35 -0
  960. package/app/open-sse/providers/registry/google-tts.js +24 -0
  961. package/app/open-sse/providers/registry/grok-web.js +39 -0
  962. package/app/open-sse/providers/registry/groq.js +37 -0
  963. package/app/open-sse/providers/registry/huggingface.js +34 -0
  964. package/app/open-sse/providers/registry/hyperbolic.js +35 -0
  965. package/app/open-sse/providers/registry/iflow.js +52 -0
  966. package/app/open-sse/providers/registry/index.js +198 -0
  967. package/app/open-sse/providers/registry/inworld.js +36 -0
  968. package/app/open-sse/providers/registry/jina-ai.js +42 -0
  969. package/app/open-sse/providers/registry/jina-reader.js +34 -0
  970. package/app/open-sse/providers/registry/kilocode.js +51 -0
  971. package/app/open-sse/providers/registry/kimchi.js +49 -0
  972. package/app/open-sse/providers/registry/kimi-coding.js +65 -0
  973. package/app/open-sse/providers/registry/kimi.js +56 -0
  974. package/app/open-sse/providers/registry/kiro.js +96 -0
  975. package/app/open-sse/providers/registry/linkup.js +34 -0
  976. package/app/open-sse/providers/registry/local-device.js +24 -0
  977. package/app/open-sse/providers/registry/mimo-free.js +24 -0
  978. package/app/open-sse/providers/registry/minimax-cn.js +76 -0
  979. package/app/open-sse/providers/registry/minimax.js +83 -0
  980. package/app/open-sse/providers/registry/mistral.js +31 -0
  981. package/app/open-sse/providers/registry/mmf.js +19 -0
  982. package/app/open-sse/providers/registry/nanobanana.js +35 -0
  983. package/app/open-sse/providers/registry/nebius.js +27 -0
  984. package/app/open-sse/providers/registry/nvidia.js +43 -0
  985. package/app/open-sse/providers/registry/ollama-local.js +19 -0
  986. package/app/open-sse/providers/registry/ollama.js +36 -0
  987. package/app/open-sse/providers/registry/openai.js +81 -0
  988. package/app/open-sse/providers/registry/opencode-go.js +41 -0
  989. package/app/open-sse/providers/registry/opencode.js +25 -0
  990. package/app/open-sse/providers/registry/openrouter.js +60 -0
  991. package/app/open-sse/providers/registry/perplexity-web.js +33 -0
  992. package/app/open-sse/providers/registry/perplexity.js +35 -0
  993. package/app/open-sse/providers/registry/playht.js +36 -0
  994. package/app/open-sse/providers/registry/qoder.js +54 -0
  995. package/app/open-sse/providers/registry/qwen.js +33 -0
  996. package/app/open-sse/providers/registry/recraft.js +24 -0
  997. package/app/open-sse/providers/registry/runwayml.js +30 -0
  998. package/app/open-sse/providers/registry/sdwebui.js +20 -0
  999. package/app/open-sse/providers/registry/searchapi.js +35 -0
  1000. package/app/open-sse/providers/registry/searxng.js +33 -0
  1001. package/app/open-sse/providers/registry/serper.js +35 -0
  1002. package/app/open-sse/providers/registry/siliconflow.js +39 -0
  1003. package/app/open-sse/providers/registry/stability-ai.js +31 -0
  1004. package/app/open-sse/providers/registry/tavily.js +50 -0
  1005. package/app/open-sse/providers/registry/together.js +31 -0
  1006. package/app/open-sse/providers/registry/topaz.js +19 -0
  1007. package/app/open-sse/providers/registry/tortoise.js +30 -0
  1008. package/app/open-sse/providers/registry/venice.js +56 -0
  1009. package/app/open-sse/providers/registry/vercel-ai-gateway.js +41 -0
  1010. package/app/open-sse/providers/registry/vertex-partner.js +29 -0
  1011. package/app/open-sse/providers/registry/vertex.js +32 -0
  1012. package/app/open-sse/providers/registry/volcengine-ark.js +35 -0
  1013. package/app/open-sse/providers/registry/voyage-ai.js +30 -0
  1014. package/app/open-sse/providers/registry/xai.js +43 -0
  1015. package/app/open-sse/providers/registry/xiaomi-mimo.js +46 -0
  1016. package/app/open-sse/providers/registry/xiaomi-tokenplan.js +63 -0
  1017. package/app/open-sse/providers/registry/youcom.js +35 -0
  1018. package/app/open-sse/providers/schema.js +76 -0
  1019. package/app/open-sse/providers/shared.js +67 -0
  1020. package/app/open-sse/rtk/caveman.js +2 -93
  1021. package/app/open-sse/rtk/constants.js +6 -2
  1022. package/app/open-sse/rtk/filters/find.js +2 -3
  1023. package/app/open-sse/rtk/headroom.js +215 -0
  1024. package/app/open-sse/rtk/ponytail.js +9 -0
  1025. package/app/open-sse/rtk/ponytailPrompt.js +52 -0
  1026. package/app/open-sse/rtk/systemInject.js +98 -0
  1027. package/app/open-sse/services/clinepassModels.js +63 -0
  1028. package/app/open-sse/services/combo.js +375 -2
  1029. package/app/open-sse/services/copilotModels.js +155 -0
  1030. package/app/open-sse/services/kimchiModels.js +176 -0
  1031. package/app/open-sse/services/model.js +22 -145
  1032. package/app/open-sse/services/oauthCredentialManager.js +10 -5
  1033. package/app/open-sse/services/provider.js +17 -204
  1034. package/app/open-sse/services/qoderModels.js +2 -2
  1035. package/app/open-sse/services/tokenRefresh/dedup.js +31 -0
  1036. package/app/open-sse/services/tokenRefresh/providers.js +624 -0
  1037. package/app/open-sse/services/tokenRefresh.js +97 -735
  1038. package/app/open-sse/services/usage/claude.js +147 -0
  1039. package/app/open-sse/services/usage/codebuddy-cn.js +138 -0
  1040. package/app/open-sse/services/usage/codex.js +201 -0
  1041. package/app/open-sse/services/usage/github.js +100 -0
  1042. package/app/open-sse/services/usage/google.js +279 -0
  1043. package/app/open-sse/services/usage/kiro.js +188 -0
  1044. package/app/open-sse/services/usage/minimax.js +234 -0
  1045. package/app/open-sse/services/usage/misc.js +269 -0
  1046. package/app/open-sse/services/usage/shared.js +70 -0
  1047. package/app/open-sse/services/usage.js +40 -1295
  1048. package/app/open-sse/shared/clineAuth.js +37 -0
  1049. package/app/open-sse/shared/machineId.js +19 -0
  1050. package/app/open-sse/shared/qoder/constants.js +64 -0
  1051. package/app/open-sse/shared/qoder/cosy.js +175 -0
  1052. package/app/open-sse/shared/qoder/encoding.js +55 -0
  1053. package/app/open-sse/translator/concerns/chunk.js +11 -0
  1054. package/app/open-sse/translator/concerns/finishReason.js +63 -0
  1055. package/app/open-sse/translator/concerns/image.js +124 -0
  1056. package/app/open-sse/translator/concerns/json.js +5 -0
  1057. package/app/open-sse/translator/concerns/message.js +7 -0
  1058. package/app/open-sse/translator/concerns/modality.js +155 -0
  1059. package/app/open-sse/translator/concerns/paramSupport.js +44 -0
  1060. package/app/open-sse/translator/concerns/prefetch.js +96 -0
  1061. package/app/open-sse/translator/concerns/reasoning.js +24 -0
  1062. package/app/open-sse/translator/concerns/thinking.js +53 -0
  1063. package/app/open-sse/translator/concerns/thinkingUnified.js +271 -0
  1064. package/app/open-sse/translator/{helpers/toolCallHelper.js → concerns/toolCall.js} +5 -0
  1065. package/app/open-sse/translator/concerns/usage.js +69 -0
  1066. package/app/open-sse/translator/formats/claude.js +351 -0
  1067. package/app/open-sse/translator/{helpers/geminiHelper.js → formats/gemini.js} +24 -16
  1068. package/app/open-sse/translator/{helpers/maxTokensHelper.js → formats/maxTokens.js} +4 -1
  1069. package/app/open-sse/translator/{helpers/openaiHelper.js → formats/openai.js} +35 -31
  1070. package/app/open-sse/translator/{helpers/responsesApiHelper.js → formats/responsesApi.js} +17 -15
  1071. package/app/open-sse/translator/index.js +89 -56
  1072. package/app/open-sse/translator/request/antigravity-to-openai.js +40 -27
  1073. package/app/open-sse/translator/request/claude-to-kiro.js +466 -0
  1074. package/app/open-sse/translator/request/claude-to-openai.js +61 -33
  1075. package/app/open-sse/translator/request/gemini-to-openai.js +18 -13
  1076. package/app/open-sse/translator/request/openai-responses.js +39 -30
  1077. package/app/open-sse/translator/request/openai-to-claude.js +59 -90
  1078. package/app/open-sse/translator/request/openai-to-commandcode.js +23 -21
  1079. package/app/open-sse/translator/request/openai-to-cursor.js +25 -23
  1080. package/app/open-sse/translator/request/openai-to-gemini.js +42 -46
  1081. package/app/open-sse/translator/request/openai-to-kiro.js +56 -36
  1082. package/app/open-sse/translator/request/openai-to-ollama.js +16 -13
  1083. package/app/open-sse/translator/response/claude-to-openai.js +51 -80
  1084. package/app/open-sse/translator/response/commandcode-to-openai.js +25 -38
  1085. package/app/open-sse/translator/response/cursor-to-openai.js +2 -2
  1086. package/app/open-sse/translator/response/gemini-to-openai.js +66 -164
  1087. package/app/open-sse/translator/response/kiro-to-claude.js +261 -0
  1088. package/app/open-sse/translator/response/kiro-to-openai.js +37 -72
  1089. package/app/open-sse/translator/response/ollama-to-openai.js +21 -39
  1090. package/app/open-sse/translator/response/openai-responses.js +68 -123
  1091. package/app/open-sse/translator/response/openai-to-antigravity.js +7 -6
  1092. package/app/open-sse/translator/response/openai-to-claude.js +18 -19
  1093. package/app/open-sse/translator/schema/blocks.js +43 -0
  1094. package/app/open-sse/translator/schema/defaults.js +7 -0
  1095. package/app/open-sse/translator/schema/finishReasons.js +27 -0
  1096. package/app/open-sse/translator/schema/index.js +8 -0
  1097. package/app/open-sse/translator/schema/roles.js +16 -0
  1098. package/app/open-sse/utils/bypassHandler.js +18 -3
  1099. package/app/open-sse/utils/claudeCloaking.js +15 -5
  1100. package/app/open-sse/utils/claudeSignature.js +41 -0
  1101. package/app/open-sse/utils/reasoningContentInjector.js +4 -7
  1102. package/app/open-sse/utils/responsesStreamHelpers.js +1 -0
  1103. package/app/open-sse/utils/sessionManager.js +149 -0
  1104. package/app/open-sse/utils/sse.js +14 -0
  1105. package/app/open-sse/utils/sseConstants.js +23 -0
  1106. package/app/open-sse/utils/stream.js +47 -39
  1107. package/app/open-sse/utils/streamHandler.js +8 -6
  1108. package/app/open-sse/utils/usageTracking.js +93 -18
  1109. package/app/package.json +5 -2
  1110. package/app/public/i18n/literals/zh-CN.json +1 -0
  1111. package/app/public/providers/clinepass.png +0 -0
  1112. package/app/public/providers/codebuddy-cn.png +0 -0
  1113. package/app/public/providers/kimchi.png +0 -0
  1114. package/app/public/providers/kimchi.svg +4 -0
  1115. package/app/public/providers/mimo-free.png +0 -0
  1116. package/app/server.js +1 -1
  1117. package/app/src/mitm/cert/generate.js +2 -2
  1118. package/app/src/mitm/cert/rootCA.js +1 -1
  1119. package/app/src/mitm/config.js +3 -1
  1120. package/app/src/mitm/manager.js +29 -2
  1121. package/app/src/shared/constants/cliTools.js +23 -25
  1122. package/app/src/shared/constants/config.js +28 -18
  1123. package/app/src/shared/constants/coworkPlugins.js +1 -4
  1124. package/app/src/shared/constants/mitmToolHosts.js +1 -1
  1125. package/app/src/shared/constants/models.js +9 -0
  1126. package/app/src/shared/constants/providers.js +65 -180
  1127. package/app/src/shared/constants/providersDisplay.js +12 -0
  1128. package/package.json +1 -1
  1129. package/app/.next/server/chunks/1476.js +0 -1
  1130. package/app/.next/server/chunks/1498.js +0 -1
  1131. package/app/.next/server/chunks/1699.js +0 -1
  1132. package/app/.next/server/chunks/2569.js +0 -1
  1133. package/app/.next/server/chunks/3104.js +0 -43
  1134. package/app/.next/server/chunks/3110.js +0 -67
  1135. package/app/.next/server/chunks/3245.js +0 -1
  1136. package/app/.next/server/chunks/3588.js +0 -1
  1137. package/app/.next/server/chunks/4013.js +0 -1
  1138. package/app/.next/server/chunks/4177.js +0 -1
  1139. package/app/.next/server/chunks/4389.js +0 -1
  1140. package/app/.next/server/chunks/4404.js +0 -1
  1141. package/app/.next/server/chunks/5681.js +0 -1
  1142. package/app/.next/server/chunks/5859.js +0 -1
  1143. package/app/.next/server/chunks/6811.js +0 -1
  1144. package/app/.next/server/chunks/7341.js +0 -1
  1145. package/app/.next/server/chunks/7828.js +0 -1
  1146. package/app/.next/server/chunks/7879.js +0 -10
  1147. package/app/.next/server/chunks/8255.js +0 -1
  1148. package/app/.next/server/chunks/9295.js +0 -1
  1149. package/app/.next/server/chunks/9396.js +0 -44
  1150. package/app/.next/server/chunks/9489.js +0 -1
  1151. package/app/.next/server/chunks/9807.js +0 -7
  1152. package/app/.next/static/chunks/1321-5ac5b0e0510e7bc1.js +0 -1
  1153. package/app/.next/static/chunks/4406-9357c0d7c2c19d9b.js +0 -53
  1154. package/app/.next/static/chunks/5497-f16d2c74532d4ad3.js +0 -7
  1155. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-1271df5d411ef013.js +0 -1
  1156. package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/page-56d9eac21ab09df1.js +0 -1
  1157. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-770486eb0371891f.js +0 -1
  1158. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-e680a27ecacbfd49.js +0 -59
  1159. package/app/.next/static/chunks/app/(dashboard)/dashboard/page-68288fb612a60026.js +0 -1
  1160. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-bc4b466a331dbb31.js +0 -6
  1161. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-de08b6b9ad238de4.js +0 -1
  1162. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-1389351bfdd842f9.js +0 -1
  1163. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-d6fce7b8e1d3fdec.js +0 -3
  1164. package/app/.next/static/chunks/app/(dashboard)/layout-5d6111c3c8c1af01.js +0 -1
  1165. package/app/.next/static/chunks/app/_global-error/page-663014002ada02ea.js +0 -1
  1166. package/app/.next/static/chunks/app/api/antigravity-app/route-663014002ada02ea.js +0 -1
  1167. package/app/.next/static/chunks/app/api/antigravity-app-v2/route-663014002ada02ea.js +0 -1
  1168. package/app/.next/static/chunks/app/api/antigravity-ide/route-663014002ada02ea.js +0 -1
  1169. package/app/.next/static/chunks/app/api/antigravity-targets/route-663014002ada02ea.js +0 -1
  1170. package/app/.next/static/chunks/app/api/antigravity-tools/import/route-663014002ada02ea.js +0 -1
  1171. package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-663014002ada02ea.js +0 -1
  1172. package/app/.next/static/chunks/app/api/auth/login/route-663014002ada02ea.js +0 -1
  1173. package/app/.next/static/chunks/app/api/auth/logout/route-663014002ada02ea.js +0 -1
  1174. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-663014002ada02ea.js +0 -1
  1175. package/app/.next/static/chunks/app/api/auth/oidc/start/route-663014002ada02ea.js +0 -1
  1176. package/app/.next/static/chunks/app/api/auth/oidc/test/route-663014002ada02ea.js +0 -1
  1177. package/app/.next/static/chunks/app/api/auth/status/route-663014002ada02ea.js +0 -1
  1178. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-663014002ada02ea.js +0 -1
  1179. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-663014002ada02ea.js +0 -1
  1180. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-663014002ada02ea.js +0 -1
  1181. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-663014002ada02ea.js +0 -1
  1182. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-663014002ada02ea.js +0 -1
  1183. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-663014002ada02ea.js +0 -1
  1184. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-663014002ada02ea.js +0 -1
  1185. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-663014002ada02ea.js +0 -1
  1186. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-663014002ada02ea.js +0 -1
  1187. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-663014002ada02ea.js +0 -1
  1188. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-663014002ada02ea.js +0 -1
  1189. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-663014002ada02ea.js +0 -1
  1190. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-663014002ada02ea.js +0 -1
  1191. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-663014002ada02ea.js +0 -1
  1192. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-663014002ada02ea.js +0 -1
  1193. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-663014002ada02ea.js +0 -1
  1194. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-663014002ada02ea.js +0 -1
  1195. package/app/.next/static/chunks/app/api/combos/[id]/route-663014002ada02ea.js +0 -1
  1196. package/app/.next/static/chunks/app/api/combos/route-663014002ada02ea.js +0 -1
  1197. package/app/.next/static/chunks/app/api/donate/route-663014002ada02ea.js +0 -1
  1198. package/app/.next/static/chunks/app/api/health/route-663014002ada02ea.js +0 -1
  1199. package/app/.next/static/chunks/app/api/init/route-663014002ada02ea.js +0 -1
  1200. package/app/.next/static/chunks/app/api/internal/account-health/route-663014002ada02ea.js +0 -1
  1201. package/app/.next/static/chunks/app/api/internal/request-detail/route-663014002ada02ea.js +0 -1
  1202. package/app/.next/static/chunks/app/api/internal/usage/route-663014002ada02ea.js +0 -1
  1203. package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-663014002ada02ea.js +0 -1
  1204. package/app/.next/static/chunks/app/api/keys/[id]/route-663014002ada02ea.js +0 -1
  1205. package/app/.next/static/chunks/app/api/keys/[id]/usage/route-663014002ada02ea.js +0 -1
  1206. package/app/.next/static/chunks/app/api/keys/route-663014002ada02ea.js +0 -1
  1207. package/app/.next/static/chunks/app/api/locale/route-663014002ada02ea.js +0 -1
  1208. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-663014002ada02ea.js +0 -1
  1209. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-663014002ada02ea.js +0 -1
  1210. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-663014002ada02ea.js +0 -1
  1211. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-663014002ada02ea.js +0 -1
  1212. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-663014002ada02ea.js +0 -1
  1213. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-663014002ada02ea.js +0 -1
  1214. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-663014002ada02ea.js +0 -1
  1215. package/app/.next/static/chunks/app/api/models/alias/route-663014002ada02ea.js +0 -1
  1216. package/app/.next/static/chunks/app/api/models/availability/route-663014002ada02ea.js +0 -1
  1217. package/app/.next/static/chunks/app/api/models/custom/route-663014002ada02ea.js +0 -1
  1218. package/app/.next/static/chunks/app/api/models/disabled/route-663014002ada02ea.js +0 -1
  1219. package/app/.next/static/chunks/app/api/models/route-663014002ada02ea.js +0 -1
  1220. package/app/.next/static/chunks/app/api/models/test/route-663014002ada02ea.js +0 -1
  1221. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-663014002ada02ea.js +0 -1
  1222. package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-663014002ada02ea.js +0 -1
  1223. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-663014002ada02ea.js +0 -1
  1224. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-663014002ada02ea.js +0 -1
  1225. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-663014002ada02ea.js +0 -1
  1226. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-663014002ada02ea.js +0 -1
  1227. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-663014002ada02ea.js +0 -1
  1228. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-663014002ada02ea.js +0 -1
  1229. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-663014002ada02ea.js +0 -1
  1230. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-663014002ada02ea.js +0 -1
  1231. package/app/.next/static/chunks/app/api/pricing/route-663014002ada02ea.js +0 -1
  1232. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-663014002ada02ea.js +0 -1
  1233. package/app/.next/static/chunks/app/api/provider-nodes/route-663014002ada02ea.js +0 -1
  1234. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-663014002ada02ea.js +0 -1
  1235. package/app/.next/static/chunks/app/api/providers/[id]/models/route-663014002ada02ea.js +0 -1
  1236. package/app/.next/static/chunks/app/api/providers/[id]/route-663014002ada02ea.js +0 -1
  1237. package/app/.next/static/chunks/app/api/providers/[id]/test/route-663014002ada02ea.js +0 -1
  1238. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-663014002ada02ea.js +0 -1
  1239. package/app/.next/static/chunks/app/api/providers/client/route-663014002ada02ea.js +0 -1
  1240. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-663014002ada02ea.js +0 -1
  1241. package/app/.next/static/chunks/app/api/providers/route-663014002ada02ea.js +0 -1
  1242. package/app/.next/static/chunks/app/api/providers/suggested-models/route-663014002ada02ea.js +0 -1
  1243. package/app/.next/static/chunks/app/api/providers/test-batch/route-663014002ada02ea.js +0 -1
  1244. package/app/.next/static/chunks/app/api/providers/validate/route-663014002ada02ea.js +0 -1
  1245. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-663014002ada02ea.js +0 -1
  1246. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-663014002ada02ea.js +0 -1
  1247. package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-663014002ada02ea.js +0 -1
  1248. package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-663014002ada02ea.js +0 -1
  1249. package/app/.next/static/chunks/app/api/proxy-pools/route-663014002ada02ea.js +0 -1
  1250. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-663014002ada02ea.js +0 -1
  1251. package/app/.next/static/chunks/app/api/settings/database/route-663014002ada02ea.js +0 -1
  1252. package/app/.next/static/chunks/app/api/settings/database/selective/route-663014002ada02ea.js +0 -1
  1253. package/app/.next/static/chunks/app/api/settings/proxy-test/route-663014002ada02ea.js +0 -1
  1254. package/app/.next/static/chunks/app/api/settings/require-login/route-663014002ada02ea.js +0 -1
  1255. package/app/.next/static/chunks/app/api/settings/route-663014002ada02ea.js +0 -1
  1256. package/app/.next/static/chunks/app/api/shutdown/route-663014002ada02ea.js +0 -1
  1257. package/app/.next/static/chunks/app/api/tags/route-663014002ada02ea.js +0 -1
  1258. package/app/.next/static/chunks/app/api/translator/console-logs/route-663014002ada02ea.js +0 -1
  1259. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-663014002ada02ea.js +0 -1
  1260. package/app/.next/static/chunks/app/api/translator/load/route-663014002ada02ea.js +0 -1
  1261. package/app/.next/static/chunks/app/api/translator/save/route-663014002ada02ea.js +0 -1
  1262. package/app/.next/static/chunks/app/api/translator/send/route-663014002ada02ea.js +0 -1
  1263. package/app/.next/static/chunks/app/api/translator/translate/route-663014002ada02ea.js +0 -1
  1264. package/app/.next/static/chunks/app/api/tunnel/disable/route-663014002ada02ea.js +0 -1
  1265. package/app/.next/static/chunks/app/api/tunnel/enable/route-663014002ada02ea.js +0 -1
  1266. package/app/.next/static/chunks/app/api/tunnel/status/route-663014002ada02ea.js +0 -1
  1267. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-663014002ada02ea.js +0 -1
  1268. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-663014002ada02ea.js +0 -1
  1269. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-663014002ada02ea.js +0 -1
  1270. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-663014002ada02ea.js +0 -1
  1271. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-663014002ada02ea.js +0 -1
  1272. package/app/.next/static/chunks/app/api/usage/chart/route-663014002ada02ea.js +0 -1
  1273. package/app/.next/static/chunks/app/api/usage/history/route-663014002ada02ea.js +0 -1
  1274. package/app/.next/static/chunks/app/api/usage/logs/route-663014002ada02ea.js +0 -1
  1275. package/app/.next/static/chunks/app/api/usage/providers/route-663014002ada02ea.js +0 -1
  1276. package/app/.next/static/chunks/app/api/usage/report/route-663014002ada02ea.js +0 -1
  1277. package/app/.next/static/chunks/app/api/usage/request-details/route-663014002ada02ea.js +0 -1
  1278. package/app/.next/static/chunks/app/api/usage/request-logs/route-663014002ada02ea.js +0 -1
  1279. package/app/.next/static/chunks/app/api/usage/stats/route-663014002ada02ea.js +0 -1
  1280. package/app/.next/static/chunks/app/api/usage/stream/route-663014002ada02ea.js +0 -1
  1281. package/app/.next/static/chunks/app/api/v1/api/chat/route-663014002ada02ea.js +0 -1
  1282. package/app/.next/static/chunks/app/api/v1/audio/speech/route-663014002ada02ea.js +0 -1
  1283. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-663014002ada02ea.js +0 -1
  1284. package/app/.next/static/chunks/app/api/v1/audio/voices/route-663014002ada02ea.js +0 -1
  1285. package/app/.next/static/chunks/app/api/v1/chat/completions/route-663014002ada02ea.js +0 -1
  1286. package/app/.next/static/chunks/app/api/v1/embeddings/route-663014002ada02ea.js +0 -1
  1287. package/app/.next/static/chunks/app/api/v1/images/generations/route-663014002ada02ea.js +0 -1
  1288. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-663014002ada02ea.js +0 -1
  1289. package/app/.next/static/chunks/app/api/v1/messages/route-663014002ada02ea.js +0 -1
  1290. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-663014002ada02ea.js +0 -1
  1291. package/app/.next/static/chunks/app/api/v1/models/info/route-663014002ada02ea.js +0 -1
  1292. package/app/.next/static/chunks/app/api/v1/models/route-663014002ada02ea.js +0 -1
  1293. package/app/.next/static/chunks/app/api/v1/responses/compact/route-663014002ada02ea.js +0 -1
  1294. package/app/.next/static/chunks/app/api/v1/responses/route-663014002ada02ea.js +0 -1
  1295. package/app/.next/static/chunks/app/api/v1/route-663014002ada02ea.js +0 -1
  1296. package/app/.next/static/chunks/app/api/v1/search/route-663014002ada02ea.js +0 -1
  1297. package/app/.next/static/chunks/app/api/v1/web/fetch/route-663014002ada02ea.js +0 -1
  1298. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-663014002ada02ea.js +0 -1
  1299. package/app/.next/static/chunks/app/api/v1beta/models/route-663014002ada02ea.js +0 -1
  1300. package/app/.next/static/chunks/app/api/version/route-663014002ada02ea.js +0 -1
  1301. package/app/.next/static/chunks/app/api/version/shutdown/route-663014002ada02ea.js +0 -1
  1302. package/app/.next/static/chunks/app/api/version/update/route-663014002ada02ea.js +0 -1
  1303. package/app/.next/static/chunks/app/callback/page-1ac4b69a5de26857.js +0 -1
  1304. package/app/.next/static/chunks/app/dashboard/settings/pricing/page-29c50a560c8c4d2b.js +0 -1
  1305. package/app/.next/static/chunks/app/login/page-98aaabbf53ef75f6.js +0 -1
  1306. package/app/.next/static/chunks/app/manifest.webmanifest/route-663014002ada02ea.js +0 -1
  1307. package/app/.next/static/chunks/app/page-663014002ada02ea.js +0 -1
  1308. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-663014002ada02ea.js +0 -1
  1309. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-663014002ada02ea.js +0 -1
  1310. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-663014002ada02ea.js +0 -1
  1311. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-663014002ada02ea.js +0 -1
  1312. package/app/.next/static/css/d73c8ccb42eb9a7d.css +0 -1
  1313. package/app/.next/static/zOWV4f8WCIf4AVjdpAv5I/_buildManifest.js +0 -1
  1314. package/app/open-sse/translator/helpers/claudeHelper.js +0 -216
  1315. package/app/open-sse/translator/helpers/imageHelper.js +0 -34
  1316. package/app/open-sse/translator/request/openai-to-kiro.old.js +0 -278
  1317. /package/app/.next/static/{zOWV4f8WCIf4AVjdpAv5I → T8rvyAbbOSQ8MIHxo1_4X}/_ssgManifest.js +0 -0
@@ -5,12 +5,17 @@
5
5
  import { register } from "../index.js";
6
6
  import { FORMATS } from "../formats.js";
7
7
  import { v4 as uuidv4 } from "uuid";
8
+ import { resolveSessionId } from "../../utils/sessionManager.js";
8
9
  import {
9
10
  resolveKiroModel,
10
- isThinkingEnabled,
11
+ resolveKiroThinkingBudget,
11
12
  buildThinkingSystemPrefix,
12
- KIRO_AGENTIC_SYSTEM_PROMPT
13
+ KIRO_AGENTIC_SYSTEM_PROMPT,
14
+ resolveDefaultProfileArn
13
15
  } from "../../config/kiroConstants.js";
16
+ import { parseDataUri } from "../concerns/image.js";
17
+ import { DEFAULT_IMAGE_MIME } from "../schema/index.js";
18
+ import { ROLE, OPENAI_BLOCK, CLAUDE_BLOCK } from "../schema/index.js";
14
19
 
15
20
  /** Render a single tool call as a readable text line. */
16
21
  function toolCallToText(name, input) {
@@ -54,18 +59,18 @@ function flattenToolInteractions(messages) {
54
59
 
55
60
  for (const msg of messages) {
56
61
  // OpenAI tool-result message → user text line
57
- if (msg.role === "tool") {
58
- out.push({ role: "user", content: toolResultToText(msg.content) });
62
+ if (msg.role === ROLE.TOOL) {
63
+ out.push({ role: ROLE.USER, content: toolResultToText(msg.content) });
59
64
  continue;
60
65
  }
61
66
 
62
- if (msg.role === "assistant") {
67
+ if (msg.role === ROLE.ASSISTANT) {
63
68
  const parts = [];
64
69
  if (Array.isArray(msg.content)) {
65
70
  for (const c of msg.content) {
66
- if (c.type === "tool_use") {
71
+ if (c.type === CLAUDE_BLOCK.TOOL_USE) {
67
72
  parts.push(toolCallToText(c.name, c.input));
68
- } else if (c.type === "text" || c.text) {
73
+ } else if (c.type === OPENAI_BLOCK.TEXT || c.text) {
69
74
  parts.push(c.text || "");
70
75
  }
71
76
  }
@@ -75,15 +80,15 @@ function flattenToolInteractions(messages) {
75
80
  for (const tc of msg.tool_calls || []) {
76
81
  parts.push(toolCallToText(tc.function?.name, tc.function?.arguments));
77
82
  }
78
- out.push({ role: "assistant", content: parts.filter(Boolean).join("\n") });
83
+ out.push({ role: ROLE.ASSISTANT, content: parts.filter(Boolean).join("\n") });
79
84
  continue;
80
85
  }
81
86
 
82
87
  // User messages: replace tool_result blocks with text, keep text + images.
83
- if (msg.role === "user" && Array.isArray(msg.content)) {
88
+ if (msg.role === ROLE.USER && Array.isArray(msg.content)) {
84
89
  const newContent = msg.content.map(c =>
85
- c.type === "tool_result"
86
- ? { type: "text", text: toolResultToText(c.content) }
90
+ c.type === CLAUDE_BLOCK.TOOL_RESULT
91
+ ? { type: OPENAI_BLOCK.TEXT, text: toolResultToText(c.content) }
87
92
  : c
88
93
  );
89
94
  out.push({ ...msg, content: newContent });
@@ -265,8 +270,8 @@ function convertMessages(messages, tools, model) {
265
270
  let role = msg.role;
266
271
 
267
272
  // Normalize: system/tool -> user
268
- if (role === "system" || role === "tool") {
269
- role = "user";
273
+ if (role === ROLE.SYSTEM || role === ROLE.TOOL) {
274
+ role = ROLE.USER;
270
275
  }
271
276
 
272
277
  // If role changes, flush pending
@@ -275,7 +280,7 @@ function convertMessages(messages, tools, model) {
275
280
  }
276
281
  currentRole = role;
277
282
 
278
- if (role === "user") {
283
+ if (role === ROLE.USER) {
279
284
  // Extract content
280
285
  let content = "";
281
286
  if (typeof msg.content === "string") {
@@ -283,24 +288,23 @@ function convertMessages(messages, tools, model) {
283
288
  } else if (Array.isArray(msg.content)) {
284
289
  const textParts = [];
285
290
  for (const c of msg.content) {
286
- if (c.type === "text" || c.text) {
291
+ if (c.type === OPENAI_BLOCK.TEXT || c.text) {
287
292
  textParts.push(c.text || "");
288
- } else if (c.type === "image_url") {
293
+ } else if (c.type === OPENAI_BLOCK.IMAGE_URL) {
289
294
  // OpenAI format: image_url.url with data URI
290
295
  const url = c.image_url?.url || "";
291
- const base64Match = url.match(/^data:([^;]+);base64,(.+)$/);
292
- if (base64Match) {
293
- const mediaType = base64Match[1];
294
- const format = mediaType.split("/")[1] || mediaType;
295
- pendingImages.push({ format, source: { bytes: base64Match[2] } });
296
+ const parsed = parseDataUri(url);
297
+ if (parsed) {
298
+ const format = parsed.mimeType.split("/")[1] || parsed.mimeType;
299
+ pendingImages.push({ format, source: { bytes: parsed.base64 } });
296
300
  } else if (url.startsWith("http://") || url.startsWith("https://")) {
297
301
  // Kiro only supports base64 — fallback to URL text
298
302
  textParts.push(`[Image: ${url}]`);
299
303
  }
300
- } else if (c.type === "image") {
304
+ } else if (c.type === CLAUDE_BLOCK.IMAGE) {
301
305
  // Claude format: source.type = "base64", source.media_type, source.data
302
306
  if (c.source?.type === "base64" && c.source?.data) {
303
- const mediaType = c.source.media_type || "image/png";
307
+ const mediaType = c.source.media_type || DEFAULT_IMAGE_MIME;
304
308
  const format = mediaType.split("/")[1] || mediaType;
305
309
  pendingImages.push({ format, source: { bytes: c.source.data } });
306
310
  }
@@ -309,7 +313,7 @@ function convertMessages(messages, tools, model) {
309
313
  content = textParts.join("\n");
310
314
 
311
315
  // Check for tool_result blocks
312
- const toolResultBlocks = msg.content.filter(c => c.type === "tool_result");
316
+ const toolResultBlocks = msg.content.filter(c => c.type === CLAUDE_BLOCK.TOOL_RESULT);
313
317
  if (toolResultBlocks.length > 0) {
314
318
  toolResultBlocks.forEach(block => {
315
319
  const text = Array.isArray(block.content)
@@ -326,7 +330,7 @@ function convertMessages(messages, tools, model) {
326
330
  }
327
331
 
328
332
  // Handle tool role (from normalized)
329
- if (msg.role === "tool") {
333
+ if (msg.role === ROLE.TOOL) {
330
334
  const toolContent = typeof msg.content === "string" ? msg.content : "";
331
335
  pendingToolResults.push({
332
336
  toolUseId: msg.tool_call_id,
@@ -336,16 +340,16 @@ function convertMessages(messages, tools, model) {
336
340
  } else if (content) {
337
341
  pendingUserContent.push(content);
338
342
  }
339
- } else if (role === "assistant") {
343
+ } else if (role === ROLE.ASSISTANT) {
340
344
  // Extract text content and tool uses
341
345
  let textContent = "";
342
346
  let toolUses = [];
343
347
 
344
348
  if (Array.isArray(msg.content)) {
345
- const textBlocks = msg.content.filter(c => c.type === "text");
349
+ const textBlocks = msg.content.filter(c => c.type === OPENAI_BLOCK.TEXT);
346
350
  textContent = textBlocks.map(b => b.text).join("\n").trim();
347
351
 
348
- const toolUseBlocks = msg.content.filter(c => c.type === "tool_use");
352
+ const toolUseBlocks = msg.content.filter(c => c.type === CLAUDE_BLOCK.TOOL_USE);
349
353
  toolUses = toolUseBlocks;
350
354
  } else if (typeof msg.content === "string") {
351
355
  textContent = msg.content.trim();
@@ -508,19 +512,35 @@ function convertMessages(messages, tools, model) {
508
512
  * `thinking`, OpenAI `reasoning_effort`, AMP/Cursor magic tags, and model
509
513
  * name hints.
510
514
  */
511
- export function buildKiroPayload(model, body, stream, credentials) {
515
+ export function openaiToKiroRequest(model, body, stream, credentials) {
512
516
  const messages = body.messages || [];
513
517
  const tools = body.tools || [];
514
518
  const maxTokens = 32000;
515
519
  const temperature = body.temperature;
516
520
  const topP = body.top_p;
517
521
 
518
- const { upstream: upstreamModel, agentic, thinking: modelImpliesThinking } = resolveKiroModel(model);
519
- const thinkingEnabled = modelImpliesThinking || isThinkingEnabled(body, null, model);
522
+ const { upstream: upstreamModel, agentic } = resolveKiroModel(model);
523
+ const thinkingBudget = resolveKiroThinkingBudget(body, credentials?.rawHeaders, model);
520
524
 
521
525
  const { history, currentMessage } = convertMessages(messages, tools, upstreamModel);
522
526
 
523
- const profileArn = credentials?.providerSpecificData?.profileArn || "";
527
+ // API-key (headless) auth uses a raw CodeWhisperer credential whose profile is
528
+ // account-specific. Injecting the shared builder-id/social *default* placeholder
529
+ // ARN makes CodeWhisperer reject the request with 403 "bearer token invalid"
530
+ // (the ARN doesn't belong to the key's account). So for api_key, only send a
531
+ // profileArn that was actually resolved for this connection — never the default.
532
+ // OAuth/social keep the default fallback (their tokens accept it).
533
+ // api_key / idc / external_idp carry an account-specific (or token-bound)
534
+ // profile. The shared builder-id/social default ARN belongs to a different
535
+ // account and triggers 403 "bearer token invalid", so never fall back to it —
536
+ // send the resolved ARN, or an empty string so CodeWhisperer uses the token's
537
+ // own default profile. Only OAuth/social keep the shared placeholder.
538
+ const authMethod = credentials?.providerSpecificData?.authMethod;
539
+ const accountBoundAuth =
540
+ authMethod === "api_key" || authMethod === "idc" || authMethod === "external_idp";
541
+ const profileArn = accountBoundAuth
542
+ ? (credentials?.providerSpecificData?.profileArn || "")
543
+ : (credentials?.providerSpecificData?.profileArn || resolveDefaultProfileArn(authMethod));
524
544
 
525
545
  let finalContent = currentMessage?.userInputMessage?.content || "";
526
546
 
@@ -530,8 +550,8 @@ export function buildKiroPayload(model, body, stream, credentials) {
530
550
  // Order: thinking_mode tag first (so Kiro sees it before any user text),
531
551
  // then context/timestamp marker, then optional agentic chunked-write prompt.
532
552
  const prefixParts = [];
533
- if (thinkingEnabled) {
534
- prefixParts.push(buildThinkingSystemPrefix());
553
+ if (thinkingBudget !== null) {
554
+ prefixParts.push(buildThinkingSystemPrefix(thinkingBudget));
535
555
  }
536
556
  prefixParts.push(`[Context: Current time is ${timestamp}]`);
537
557
  if (agentic) {
@@ -542,7 +562,7 @@ export function buildKiroPayload(model, body, stream, credentials) {
542
562
  const payload = {
543
563
  conversationState: {
544
564
  chatTriggerType: "MANUAL",
545
- conversationId: uuidv4(),
565
+ conversationId: resolveSessionId({ headers: credentials?.rawHeaders, body, connectionId: credentials?.connectionId, scope: "kiro" }),
546
566
  currentMessage: {
547
567
  userInputMessage: {
548
568
  content: finalContent,
@@ -580,4 +600,4 @@ export function buildKiroPayload(model, body, stream, credentials) {
580
600
  return payload;
581
601
  }
582
602
 
583
- register(FORMATS.OPENAI, FORMATS.KIRO, buildKiroPayload, null);
603
+ register(FORMATS.OPENAI, FORMATS.KIRO, openaiToKiroRequest, null);
@@ -1,5 +1,8 @@
1
1
  import { register } from "../index.js";
2
2
  import { FORMATS } from "../formats.js";
3
+ import { parseDataUri } from "../concerns/image.js";
4
+ import { safeParseJSON } from "../concerns/json.js";
5
+ import { ROLE, OPENAI_BLOCK } from "../schema/index.js";
3
6
 
4
7
  /**
5
8
  * Convert OpenAI request to Ollama format
@@ -67,7 +70,7 @@ function normalizeMessages(messages) {
67
70
 
68
71
  // First pass: build tool_call_id -> tool_name map from assistant messages
69
72
  for (const msg of messages) {
70
- if (msg.role === "assistant" && msg.tool_calls) {
73
+ if (msg.role === ROLE.ASSISTANT && msg.tool_calls) {
71
74
  for (const tc of msg.tool_calls) {
72
75
  if (tc.id && tc.function?.name) {
73
76
  toolCallMap.set(tc.id, tc.function.name);
@@ -79,7 +82,7 @@ function normalizeMessages(messages) {
79
82
  // Second pass: convert messages
80
83
  for (const msg of messages) {
81
84
  // Handle tool result messages (OpenAI format -> Ollama format)
82
- if (msg.role === "tool") {
85
+ if (msg.role === ROLE.TOOL) {
83
86
  const toolResult = normalizeContent(msg.content);
84
87
  if (!toolResult) continue;
85
88
 
@@ -87,7 +90,7 @@ function normalizeMessages(messages) {
87
90
  const toolName = toolCallMap.get(msg.tool_call_id) || msg.name || "unknown_tool";
88
91
 
89
92
  result.push({
90
- role: "tool",
93
+ role: ROLE.TOOL,
91
94
  tool_name: toolName,
92
95
  content: toolResult
93
96
  });
@@ -95,23 +98,23 @@ function normalizeMessages(messages) {
95
98
  }
96
99
 
97
100
  // Handle assistant messages with tool_calls
98
- if (msg.role === "assistant" && msg.tool_calls) {
101
+ if (msg.role === ROLE.ASSISTANT && msg.tool_calls) {
99
102
  const content = normalizeContent(msg.content) || "";
100
103
 
101
104
  // Convert OpenAI tool_calls format to Ollama format
102
105
  const ollamaToolCalls = msg.tool_calls.map(tc => ({
103
- type: "function",
106
+ type: OPENAI_BLOCK.FUNCTION,
104
107
  function: {
105
108
  index: tc.index || 0,
106
109
  name: tc.function?.name || "",
107
110
  arguments: typeof tc.function?.arguments === "string"
108
- ? JSON.parse(tc.function.arguments || "{}")
111
+ ? safeParseJSON(tc.function.arguments || "{}", {})
109
112
  : tc.function?.arguments || {}
110
113
  }
111
114
  }));
112
115
 
113
116
  result.push({
114
- role: "assistant",
117
+ role: ROLE.ASSISTANT,
115
118
  content: content,
116
119
  tool_calls: ollamaToolCalls
117
120
  });
@@ -124,7 +127,7 @@ function normalizeMessages(messages) {
124
127
  const images = extractImagesFromContent(msg.content);
125
128
 
126
129
  // Skip empty messages (except assistant)
127
- if (!content && role !== "assistant") continue;
130
+ if (!content && role !== ROLE.ASSISTANT) continue;
128
131
 
129
132
  const out = {
130
133
  role: role,
@@ -153,7 +156,7 @@ function normalizeContent(content) {
153
156
  if (Array.isArray(content)) {
154
157
  // Extract text from content array
155
158
  const textParts = content
156
- .filter(block => block && block.type === "text" && block.text)
159
+ .filter(block => block && block.type === OPENAI_BLOCK.TEXT && block.text)
157
160
  .map(block => block.text);
158
161
 
159
162
  return textParts.join("\n") || "";
@@ -174,15 +177,15 @@ function extractImagesFromContent(content) {
174
177
  const images = [];
175
178
 
176
179
  for (const block of content) {
177
- if (!block || block.type !== "image_url") continue;
180
+ if (!block || block.type !== OPENAI_BLOCK.IMAGE_URL) continue;
178
181
 
179
182
  const url = typeof block.image_url === "string" ? block.image_url : block.image_url?.url;
180
183
  if (typeof url !== "string" || !url) continue;
181
184
 
182
- const m = url.match(/^data:[^;]+;base64,([\s\S]+)$/);
183
- if (!m) continue;
185
+ const parsed = parseDataUri(url);
186
+ if (!parsed) continue;
184
187
 
185
- images.push(m[1]);
188
+ images.push(parsed.base64);
186
189
  }
187
190
 
188
191
  return images;
@@ -1,19 +1,18 @@
1
1
  import { register } from "../index.js";
2
2
  import { FORMATS } from "../formats.js";
3
+ import { ROLE, OPENAI_BLOCK, CLAUDE_BLOCK, OPENAI_FINISH } from "../schema/index.js";
4
+ import { buildChunk } from "../concerns/chunk.js";
5
+ import { toOpenAIUsage } from "../concerns/usage.js";
6
+ import { reasoningDelta } from "../concerns/reasoning.js";
7
+ import { toOpenAIFinish } from "../concerns/finishReason.js";
3
8
 
4
9
  // Create OpenAI chunk helper
5
10
  function createChunk(state, delta, finishReason = null) {
6
- return {
7
- id: `chatcmpl-${state.messageId}`,
8
- object: "chat.completion.chunk",
9
- created: Math.floor(Date.now() / 1000),
10
- model: state.model,
11
- choices: [{
12
- index: 0,
13
- delta,
14
- finish_reason: finishReason
15
- }]
16
- };
11
+ return buildChunk(
12
+ { id: `chatcmpl-${state.messageId}`, created: Math.floor(Date.now() / 1000), model: state.model },
13
+ delta,
14
+ finishReason
15
+ );
17
16
  }
18
17
 
19
18
  // Convert Claude stream chunk to OpenAI format
@@ -28,16 +27,26 @@ export function claudeToOpenAIResponse(chunk, state) {
28
27
  state.messageId = chunk.message?.id || `msg_${Date.now()}`;
29
28
  state.model = chunk.message?.model;
30
29
  state.toolCallIndex = 0;
31
- // Capture input-side tokens from message_start.
32
- // Claude SSE reports input_tokens and cache tokens ONLY here; message_delta only has output_tokens.
33
- if (chunk.message?.usage) {
34
- state.inputUsage = {
35
- input_tokens: chunk.message.usage.input_tokens || 0,
36
- cache_read_input_tokens: chunk.message.usage.cache_read_input_tokens || 0,
37
- cache_creation_input_tokens: chunk.message.usage.cache_creation_input_tokens || 0
30
+ // Claude sends input_tokens + cache_read + cache_creation here; message_delta
31
+ // later carries only the final output_tokens. Capture cache now so the
32
+ // delta (output-only) doesn't reset it to zero.
33
+ const startUsage = chunk.message?.usage;
34
+ if (startUsage && typeof startUsage === "object") {
35
+ const inputTokens = typeof startUsage.input_tokens === "number" ? startUsage.input_tokens : 0;
36
+ const cacheReadTokens = typeof startUsage.cache_read_input_tokens === "number" ? startUsage.cache_read_input_tokens : 0;
37
+ const cacheCreationTokens = typeof startUsage.cache_creation_input_tokens === "number" ? startUsage.cache_creation_input_tokens : 0;
38
+ const promptTokens = inputTokens + cacheReadTokens + cacheCreationTokens;
39
+ state.usage = {
40
+ prompt_tokens: promptTokens,
41
+ completion_tokens: 0,
42
+ total_tokens: promptTokens,
43
+ input_tokens: inputTokens,
44
+ output_tokens: 0
38
45
  };
46
+ if (cacheReadTokens > 0) state.usage.cache_read_input_tokens = cacheReadTokens;
47
+ if (cacheCreationTokens > 0) state.usage.cache_creation_input_tokens = cacheCreationTokens;
39
48
  }
40
- results.push(createChunk(state, { role: "assistant" }));
49
+ results.push(createChunk(state, { role: ROLE.ASSISTANT }));
41
50
  break;
42
51
  }
43
52
 
@@ -48,20 +57,20 @@ export function claudeToOpenAIResponse(chunk, state) {
48
57
  state.serverToolBlockIndex = chunk.index;
49
58
  break;
50
59
  }
51
- if (block?.type === "text") {
60
+ if (block?.type === CLAUDE_BLOCK.TEXT) {
52
61
  state.textBlockStarted = true;
53
- } else if (block?.type === "thinking") {
62
+ } else if (block?.type === CLAUDE_BLOCK.THINKING) {
54
63
  state.inThinkingBlock = true;
55
64
  state.currentBlockIndex = chunk.index;
56
65
  results.push(createChunk(state, { content: "<think>" }));
57
- } else if (block?.type === "tool_use") {
66
+ } else if (block?.type === CLAUDE_BLOCK.TOOL_USE) {
58
67
  const toolCallIndex = state.toolCallIndex++;
59
68
  // Restore original tool name from mapping (Claude OAuth)
60
69
  const toolName = state.toolNameMap?.get(block.name) || block.name;
61
70
  const toolCall = {
62
71
  index: toolCallIndex,
63
72
  id: block.id,
64
- type: "function",
73
+ type: OPENAI_BLOCK.FUNCTION,
65
74
  function: {
66
75
  name: toolName,
67
76
  arguments: ""
@@ -80,7 +89,7 @@ export function claudeToOpenAIResponse(chunk, state) {
80
89
  if (delta?.type === "text_delta" && delta.text) {
81
90
  results.push(createChunk(state, { content: delta.text }));
82
91
  } else if (delta?.type === "thinking_delta" && delta.thinking) {
83
- results.push(createChunk(state, { reasoning_content: delta.thinking }));
92
+ results.push(createChunk(state, reasoningDelta(delta.thinking)));
84
93
  } else if (delta?.type === "input_json_delta" && delta.partial_json) {
85
94
  const toolCall = state.toolCalls.get(chunk.index);
86
95
  if (toolCall) {
@@ -114,21 +123,14 @@ export function claudeToOpenAIResponse(chunk, state) {
114
123
 
115
124
  case "message_delta": {
116
125
  // Extract usage from message_delta event (Claude native format).
117
- // IMPORTANT: Claude SSE only reports output_tokens in message_delta.
118
- // input_tokens and cache tokens were reported in message_start and are stored in state.inputUsage.
126
+ // Anthropic sends input/cache in message_start and only output here, so
127
+ // fall back to cache captured in message_start when the delta omits it.
119
128
  if (chunk.usage && typeof chunk.usage === "object") {
120
- const startUsage = state.inputUsage || {};
121
- // Use message_delta values when present; fall back to message_start captured values.
122
- const inputTokens = typeof chunk.usage.input_tokens === "number"
123
- ? chunk.usage.input_tokens
124
- : (startUsage.input_tokens || 0);
129
+ const prev = state.usage || {};
130
+ const inputTokens = typeof chunk.usage.input_tokens === "number" ? chunk.usage.input_tokens : (prev.input_tokens || 0);
125
131
  const outputTokens = typeof chunk.usage.output_tokens === "number" ? chunk.usage.output_tokens : 0;
126
- const cacheReadTokens = typeof chunk.usage.cache_read_input_tokens === "number"
127
- ? chunk.usage.cache_read_input_tokens
128
- : (startUsage.cache_read_input_tokens || 0);
129
- const cacheCreationTokens = typeof chunk.usage.cache_creation_input_tokens === "number"
130
- ? chunk.usage.cache_creation_input_tokens
131
- : (startUsage.cache_creation_input_tokens || 0);
132
+ const cacheReadTokens = typeof chunk.usage.cache_read_input_tokens === "number" ? chunk.usage.cache_read_input_tokens : (prev.cache_read_input_tokens || 0);
133
+ const cacheCreationTokens = typeof chunk.usage.cache_creation_input_tokens === "number" ? chunk.usage.cache_creation_input_tokens : (prev.cache_creation_input_tokens || 0);
132
134
 
133
135
  // prompt_tokens = input_tokens + cache_read + cache_creation (all prompt-side tokens)
134
136
  const promptTokens = inputTokens + cacheReadTokens + cacheCreationTokens;
@@ -147,28 +149,17 @@ export function claudeToOpenAIResponse(chunk, state) {
147
149
 
148
150
  if (chunk.delta?.stop_reason) {
149
151
  state.finishReason = convertStopReason(chunk.delta.stop_reason);
150
- const finalChunk = {
151
- id: `chatcmpl-${state.messageId}`,
152
- object: "chat.completion.chunk",
153
- created: Math.floor(Date.now() / 1000),
154
- model: state.model,
155
- choices: [{ index: 0, delta: {}, finish_reason: state.finishReason }]
156
- };
152
+ const finalChunk = createChunk(state, {}, state.finishReason);
157
153
 
158
154
  if (state.usage) {
159
- finalChunk.usage = {
160
- prompt_tokens: state.usage.prompt_tokens,
161
- completion_tokens: state.usage.completion_tokens,
162
- total_tokens: state.usage.total_tokens
163
- };
164
-
165
- const cacheRead = state.usage.cache_read_input_tokens;
166
- const cacheCreate = state.usage.cache_creation_input_tokens;
167
- if (cacheRead > 0 || cacheCreate > 0) {
168
- finalChunk.usage.prompt_tokens_details = {};
169
- if (cacheRead > 0) finalChunk.usage.prompt_tokens_details.cached_tokens = cacheRead;
170
- if (cacheCreate > 0) finalChunk.usage.prompt_tokens_details.cache_creation_tokens = cacheCreate;
171
- }
155
+ // Build OpenAI usage from the merged state (cache from message_start +
156
+ // output from message_delta), not the delta chunk alone.
157
+ finalChunk.usage = toOpenAIUsage({
158
+ input_tokens: state.usage.input_tokens || 0,
159
+ output_tokens: state.usage.output_tokens || 0,
160
+ cache_read_input_tokens: state.usage.cache_read_input_tokens,
161
+ cache_creation_input_tokens: state.usage.cache_creation_input_tokens
162
+ }, "claude");
172
163
  }
173
164
 
174
165
  results.push(finalChunk);
@@ -179,7 +170,7 @@ export function claudeToOpenAIResponse(chunk, state) {
179
170
 
180
171
  case "message_stop": {
181
172
  if (!state.finishReasonSent) {
182
- const finishReason = state.finishReason || (state.toolCalls?.size > 0 ? "tool_calls" : "stop");
173
+ const finishReason = state.finishReason || (state.toolCalls?.size > 0 ? OPENAI_FINISH.TOOL_CALLS : OPENAI_FINISH.STOP);
183
174
  const usageObj = (state.usage && typeof state.usage === 'object') ? {
184
175
  usage: {
185
176
  prompt_tokens: state.usage.input_tokens || 0,
@@ -187,18 +178,7 @@ export function claudeToOpenAIResponse(chunk, state) {
187
178
  total_tokens: (state.usage.input_tokens || 0) + (state.usage.output_tokens || 0)
188
179
  }
189
180
  } : {};
190
- results.push({
191
- id: `chatcmpl-${state.messageId}`,
192
- object: "chat.completion.chunk",
193
- created: Math.floor(Date.now() / 1000),
194
- model: state.model,
195
- choices: [{
196
- index: 0,
197
- delta: {},
198
- finish_reason: finishReason
199
- }],
200
- ...usageObj
201
- });
181
+ results.push({ ...createChunk(state, {}, finishReason), ...usageObj });
202
182
  state.finishReasonSent = true;
203
183
  }
204
184
  break;
@@ -208,16 +188,7 @@ export function claudeToOpenAIResponse(chunk, state) {
208
188
  return results.length > 0 ? results : null;
209
189
  }
210
190
 
211
- // Convert Claude stop_reason to OpenAI finish_reason
212
- function convertStopReason(reason) {
213
- switch (reason) {
214
- case "end_turn": return "stop";
215
- case "max_tokens": return "length";
216
- case "tool_use": return "tool_calls";
217
- case "stop_sequence": return "stop";
218
- default: return "stop";
219
- }
220
- }
191
+ const convertStopReason = (reason) => toOpenAIFinish(reason, "claude");
221
192
 
222
193
  // Register
223
194
  register(FORMATS.CLAUDE, FORMATS.OPENAI, null, claudeToOpenAIResponse);
@@ -17,6 +17,12 @@
17
17
  */
18
18
  import { register } from "../index.js";
19
19
  import { FORMATS } from "../formats.js";
20
+ import { ROLE, OPENAI_BLOCK, OPENAI_FINISH } from "../schema/index.js";
21
+ import { buildChunk } from "../concerns/chunk.js";
22
+ import { toOpenAIUsage } from "../concerns/usage.js";
23
+ import { reasoningDelta } from "../concerns/reasoning.js";
24
+ import { fallbackToolCallId } from "../concerns/toolCall.js";
25
+ import { toOpenAIFinish } from "../concerns/finishReason.js";
20
26
 
21
27
  function ensureState(state, model) {
22
28
  if (!state.responseId) {
@@ -34,28 +40,16 @@ function ensureState(state, model) {
34
40
  }
35
41
 
36
42
  function makeChunk(state, delta, finishReason = null) {
37
- return {
38
- id: state.responseId,
39
- object: "chat.completion.chunk",
40
- created: state.created,
41
- model: state.model,
42
- choices: [{ index: 0, delta, finish_reason: finishReason }],
43
- };
43
+ return buildChunk(
44
+ { id: state.responseId, created: state.created, model: state.model },
45
+ delta,
46
+ finishReason
47
+ );
44
48
  }
45
49
 
46
- function mapFinishReason(reason) {
47
- switch (reason) {
48
- case "stop": return "stop";
49
- case "length": return "length";
50
- case "tool-calls":
51
- case "tool_use": return "tool_calls";
52
- case "content-filter": return "content_filter";
53
- case "error": return "stop";
54
- default: return reason || "stop";
55
- }
56
- }
50
+ const mapFinishReason = (reason) => toOpenAIFinish(reason, "commandcode");
57
51
 
58
- export function convertCommandCodeToOpenAI(chunk, state) {
52
+ export function commandCodeToOpenAIResponse(chunk, state) {
59
53
  if (!chunk) return null;
60
54
 
61
55
  // Already-OpenAI chunk: pass through
@@ -87,7 +81,7 @@ export function convertCommandCodeToOpenAI(chunk, state) {
87
81
  case "text-delta": {
88
82
  const text = event.text || event.delta || "";
89
83
  if (!text) break;
90
- const delta = state.chunkIndex === 0 ? { role: "assistant", content: text } : { content: text };
84
+ const delta = state.chunkIndex === 0 ? { role: ROLE.ASSISTANT, content: text } : { content: text };
91
85
  state.chunkIndex++;
92
86
  state.openText = true;
93
87
  out.push(makeChunk(state, delta));
@@ -97,15 +91,13 @@ export function convertCommandCodeToOpenAI(chunk, state) {
97
91
  const text = event.text || "";
98
92
  if (!text) break;
99
93
  // Map reasoning to OpenAI "reasoning_content" field (used by deepseek-reasoner-style clients).
100
- const delta = state.chunkIndex === 0
101
- ? { role: "assistant", reasoning_content: text }
102
- : { reasoning_content: text };
94
+ const delta = reasoningDelta(text, state.chunkIndex === 0);
103
95
  state.chunkIndex++;
104
96
  out.push(makeChunk(state, delta));
105
97
  break;
106
98
  }
107
99
  case "tool-input-start": {
108
- const id = event.id || event.toolCallId || `call_${Date.now()}_${state.toolIndex}`;
100
+ const id = event.id || event.toolCallId || fallbackToolCallId(state.toolIndex);
109
101
  let idx = state.toolIndexById.get(id);
110
102
  if (idx == null) {
111
103
  idx = state.toolIndex++;
@@ -113,11 +105,11 @@ export function convertCommandCodeToOpenAI(chunk, state) {
113
105
  }
114
106
  state.openTools.add(id);
115
107
  const delta = {
116
- ...(state.chunkIndex === 0 ? { role: "assistant" } : {}),
108
+ ...(state.chunkIndex === 0 ? { role: ROLE.ASSISTANT } : {}),
117
109
  tool_calls: [{
118
110
  index: idx,
119
111
  id,
120
- type: "function",
112
+ type: OPENAI_BLOCK.FUNCTION,
121
113
  function: { name: event.toolName || "", arguments: "" },
122
114
  }],
123
115
  };
@@ -146,11 +138,11 @@ export function convertCommandCodeToOpenAI(chunk, state) {
146
138
  state.toolIndexById.set(id, idx);
147
139
  const argsStr = typeof event.input === "string" ? event.input : JSON.stringify(event.input ?? {});
148
140
  const delta = {
149
- ...(state.chunkIndex === 0 ? { role: "assistant" } : {}),
141
+ ...(state.chunkIndex === 0 ? { role: ROLE.ASSISTANT } : {}),
150
142
  tool_calls: [{
151
143
  index: idx,
152
144
  id,
153
- type: "function",
145
+ type: OPENAI_BLOCK.FUNCTION,
154
146
  function: { name: event.toolName || "", arguments: argsStr },
155
147
  }],
156
148
  };
@@ -167,22 +159,17 @@ export function convertCommandCodeToOpenAI(chunk, state) {
167
159
  const finishReason = state.finishReason || mapFinishReason(event.finishReason || "stop");
168
160
  const finalChunk = makeChunk(state, {}, finishReason);
169
161
  const totalUsage = event.totalUsage || state.usage;
170
- if (totalUsage) {
171
- finalChunk.usage = {
172
- prompt_tokens: totalUsage.inputTokens ?? 0,
173
- completion_tokens: totalUsage.outputTokens ?? 0,
174
- total_tokens: totalUsage.totalTokens ?? ((totalUsage.inputTokens ?? 0) + (totalUsage.outputTokens ?? 0)),
175
- };
176
- }
162
+ const usage = toOpenAIUsage(totalUsage, "commandcode");
163
+ if (usage) finalChunk.usage = usage;
177
164
  out.push(finalChunk);
178
165
  break;
179
166
  }
180
167
  case "error": {
181
- state.finishReason = "stop";
168
+ state.finishReason = OPENAI_FINISH.STOP;
182
169
  const errVal = event.error ?? event.message ?? "unknown";
183
170
  const errStr = typeof errVal === "string" ? errVal : JSON.stringify(errVal);
184
171
  out.push(makeChunk(state, { content: `\n\n[CommandCode error: ${errStr}]` }));
185
- out.push(makeChunk(state, {}, "stop"));
172
+ out.push(makeChunk(state, {}, OPENAI_FINISH.STOP));
186
173
  break;
187
174
  }
188
175
  // Silently ignore: start, start-step, reasoning-start, reasoning-end, text-start, text-end,
@@ -194,4 +181,4 @@ export function convertCommandCodeToOpenAI(chunk, state) {
194
181
  return out.length ? out : null;
195
182
  }
196
183
 
197
- register(FORMATS.COMMANDCODE, FORMATS.OPENAI, null, convertCommandCodeToOpenAI);
184
+ register(FORMATS.COMMANDCODE, FORMATS.OPENAI, null, commandCodeToOpenAIResponse);