n9router 0.4.49 → 0.4.51

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 (1217) hide show
  1. package/README.md +89 -17
  2. package/app/.next/BUILD_ID +1 -1
  3. package/app/.next/app-path-routes-manifest.json +30 -24
  4. package/app/.next/build-manifest.json +3 -3
  5. package/app/.next/prerender-manifest.json +3 -3
  6. package/app/.next/react-loadable-manifest.json +2 -2
  7. package/app/.next/required-server-files.json +2 -1
  8. package/app/.next/routes-manifest.json +38 -0
  9. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  10. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  11. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  12. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +24 -3
  13. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  14. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  15. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  16. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  17. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  18. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  19. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  20. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  21. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  22. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  23. package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  24. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  25. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  26. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  27. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +10 -10
  28. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  29. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  30. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  31. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  32. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  33. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  34. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  35. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  36. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  37. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  38. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  39. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  40. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  41. package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  42. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  43. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  44. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  45. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  46. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  47. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  48. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +7 -5
  49. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  50. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  51. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  52. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  53. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  54. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  55. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  56. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  57. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  58. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  59. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  60. package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  61. package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  62. package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  63. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  64. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  65. package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  66. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  67. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  68. package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  69. package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  70. package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  71. package/app/.next/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  72. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  73. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  74. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  75. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +3 -3
  76. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  77. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  78. package/app/.next/server/app/_global-error/page.js +2 -2
  79. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  80. package/app/.next/server/app/_global-error.html +1 -1
  81. package/app/.next/server/app/_global-error.rsc +1 -1
  82. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  83. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  84. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  85. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  86. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  87. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  88. package/app/.next/server/app/_not-found/page.js +2 -2
  89. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  90. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  91. package/app/.next/server/app/_not-found.html +1 -1
  92. package/app/.next/server/app/_not-found.rsc +4 -4
  93. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  94. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  95. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
  96. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  97. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  98. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  99. package/app/.next/server/app/api/antigravity-app/route.js +1 -1
  100. package/app/.next/server/app/api/antigravity-app-v2/route.js +1 -1
  101. package/app/.next/server/app/api/antigravity-ide/route.js +1 -1
  102. package/app/.next/server/app/api/antigravity-targets/route.js +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/logout/route.js +1 -1
  109. package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
  110. package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
  111. package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
  112. package/app/.next/server/app/api/auth/reset-password/route.js +1 -1
  113. package/app/.next/server/app/api/auth/status/route.js +1 -1
  114. package/app/.next/server/app/api/cli-tools/all-statuses/route.js +17 -4
  115. package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  116. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  117. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  118. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  119. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  120. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
  121. package/app/.next/server/app/api/cli-tools/cline-settings/route.js +1 -1
  122. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
  123. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  124. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  125. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  126. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  127. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  128. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route.js +2 -2
  129. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route.js +1 -1
  130. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/route.js +1 -1
  131. package/app/.next/server/app/api/cli-tools/cursor-byok/route.js +1 -1
  132. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  133. package/app/.next/server/app/api/cli-tools/devin-settings/route.js +2 -0
  134. package/app/.next/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -0
  135. package/app/.next/server/app/api/cli-tools/devin-settings/route_client-reference-manifest.js +1 -0
  136. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +2 -2
  137. package/app/.next/server/app/api/cli-tools/grok-build-settings/route.js +15 -0
  138. package/app/.next/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -0
  139. package/app/.next/server/app/api/cli-tools/grok-build-settings/route_client-reference-manifest.js +1 -0
  140. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  141. package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  142. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  143. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  144. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  145. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  146. package/app/.next/server/app/api/combos/route.js +1 -1
  147. package/app/.next/server/app/api/donate/route.js +1 -1
  148. package/app/.next/server/app/api/headroom/extras/route.js +1 -1
  149. package/app/.next/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  150. package/app/.next/server/app/api/headroom/restart/route.js +1 -1
  151. package/app/.next/server/app/api/headroom/start/route.js +1 -1
  152. package/app/.next/server/app/api/headroom/status/route.js +1 -1
  153. package/app/.next/server/app/api/headroom/stop/route.js +1 -1
  154. package/app/.next/server/app/api/health/route.js +1 -1
  155. package/app/.next/server/app/api/init/route.js +1 -1
  156. package/app/.next/server/app/api/internal/account-health/route.js +1 -1
  157. package/app/.next/server/app/api/internal/request-detail/route.js +1 -1
  158. package/app/.next/server/app/api/internal/usage/route.js +1 -1
  159. package/app/.next/server/app/api/keys/[id]/reset-usage/route.js +1 -1
  160. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  161. package/app/.next/server/app/api/keys/[id]/usage/route.js +1 -1
  162. package/app/.next/server/app/api/keys/route.js +1 -1
  163. package/app/.next/server/app/api/locale/route.js +1 -1
  164. package/app/.next/server/app/api/mcp/[plugin]/message/route.js +1 -1
  165. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  166. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  167. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  168. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  169. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  170. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  171. package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
  172. package/app/.next/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  173. package/app/.next/server/app/api/models/alias/route.js +1 -1
  174. package/app/.next/server/app/api/models/availability/route.js +1 -1
  175. package/app/.next/server/app/api/models/custom/route.js +1 -1
  176. package/app/.next/server/app/api/models/disabled/route.js +1 -1
  177. package/app/.next/server/app/api/models/route.js +1 -1
  178. package/app/.next/server/app/api/models/route.js.nft.json +1 -1
  179. package/app/.next/server/app/api/models/test/route.js +1 -1
  180. package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
  181. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  182. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  183. package/app/.next/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  184. package/app/.next/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  185. package/app/.next/server/app/api/oauth/codex/import-token/route.js +1 -1
  186. package/app/.next/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  187. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  188. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  189. package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  190. package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
  191. package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
  192. package/app/.next/server/app/api/oauth/kiro/api-key/route.js +1 -1
  193. package/app/.next/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  194. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  195. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  196. package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  197. package/app/.next/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  198. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  199. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  200. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  201. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  202. package/app/.next/server/app/api/pricing/route.js +1 -1
  203. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  204. package/app/.next/server/app/api/provider-nodes/route.js +1 -1
  205. package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
  206. package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
  207. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  208. package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  209. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  210. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  211. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  212. package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
  213. package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  214. package/app/.next/server/app/api/providers/client/route.js +1 -1
  215. package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
  216. package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
  217. package/app/.next/server/app/api/providers/route.js +1 -1
  218. package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
  219. package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
  220. package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
  221. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  222. package/app/.next/server/app/api/providers/validate/route.js +1 -1
  223. package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
  224. package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
  225. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  226. package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  227. package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  228. package/app/.next/server/app/api/proxy-pools/route.js +1 -1
  229. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  230. package/app/.next/server/app/api/pxpipe/health/route.js +2 -2
  231. package/app/.next/server/app/api/pxpipe/install/route.js +1 -1
  232. package/app/.next/server/app/api/pxpipe/logs/route.js +2 -2
  233. package/app/.next/server/app/api/pxpipe/restart/route.js +2 -2
  234. package/app/.next/server/app/api/pxpipe/start/route.js +2 -2
  235. package/app/.next/server/app/api/pxpipe/stats/route.js +2 -2
  236. package/app/.next/server/app/api/pxpipe/status/route.js +2 -2
  237. package/app/.next/server/app/api/pxpipe/stop/route.js +2 -2
  238. package/app/.next/server/app/api/settings/database/route.js +1 -1
  239. package/app/.next/server/app/api/settings/database/selective/route.js +1 -1
  240. package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
  241. package/app/.next/server/app/api/settings/require-login/route.js +1 -1
  242. package/app/.next/server/app/api/settings/route.js +1 -1
  243. package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
  244. package/app/.next/server/app/api/shutdown/route.js +1 -1
  245. package/app/.next/server/app/api/tags/route.js +1 -1
  246. package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
  247. package/app/.next/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  248. package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
  249. package/app/.next/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  250. package/app/.next/server/app/api/translator/load/route.js +1 -1
  251. package/app/.next/server/app/api/translator/save/route.js +1 -1
  252. package/app/.next/server/app/api/translator/send/route.js +1 -1
  253. package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
  254. package/app/.next/server/app/api/translator/translate/route.js +1 -1
  255. package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
  256. package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
  257. package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  258. package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
  259. package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  260. package/app/.next/server/app/api/tunnel/status/route.js +1 -1
  261. package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
  262. package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
  263. package/app/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  264. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  265. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  266. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  267. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  268. package/app/.next/server/app/api/tunnel/tailscale-install/route.js +3 -3
  269. package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  270. package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  271. package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  272. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  273. package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  274. package/app/.next/server/app/api/usage/chart/route.js +1 -1
  275. package/app/.next/server/app/api/usage/history/route.js +1 -1
  276. package/app/.next/server/app/api/usage/logs/route.js +1 -1
  277. package/app/.next/server/app/api/usage/providers/route.js +1 -1
  278. package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
  279. package/app/.next/server/app/api/usage/report/route.js +1 -1
  280. package/app/.next/server/app/api/usage/request-details/route.js +1 -1
  281. package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
  282. package/app/.next/server/app/api/usage/stats/route.js +1 -1
  283. package/app/.next/server/app/api/usage/stream/route.js +2 -2
  284. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  285. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  286. package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
  287. package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  288. package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
  289. package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  290. package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
  291. package/app/.next/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  292. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  293. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  294. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  295. package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  296. package/app/.next/server/app/api/v1/images/generations/route.js +2 -2
  297. package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  298. package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
  299. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  300. package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  301. package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
  302. package/app/.next/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  303. package/app/.next/server/app/api/v1/models/info/route.js +1 -1
  304. package/app/.next/server/app/api/v1/models/info/route.js.nft.json +1 -1
  305. package/app/.next/server/app/api/v1/models/route.js +1 -1
  306. package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
  307. package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
  308. package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  309. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  310. package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  311. package/app/.next/server/app/api/v1/route.js +1 -1
  312. package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
  313. package/app/.next/server/app/api/v1/search/route.js +1 -1
  314. package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
  315. package/app/.next/server/app/api/v1/videos/[id]/route.js +1 -0
  316. package/app/.next/server/app/api/v1/videos/[id]/route.js.nft.json +1 -0
  317. package/app/.next/server/app/api/v1/videos/[id]/route_client-reference-manifest.js +1 -0
  318. package/app/.next/server/app/api/v1/videos/edits/route.js +1 -0
  319. package/app/.next/server/app/api/v1/videos/edits/route.js.nft.json +1 -0
  320. package/app/.next/server/app/api/v1/videos/edits/route_client-reference-manifest.js +1 -0
  321. package/app/.next/server/app/api/v1/videos/extensions/route.js +1 -0
  322. package/app/.next/server/app/api/v1/videos/extensions/route.js.nft.json +1 -0
  323. package/app/.next/server/app/api/v1/videos/extensions/route_client-reference-manifest.js +1 -0
  324. package/app/.next/server/app/api/v1/videos/generations/route.js +1 -0
  325. package/app/.next/server/app/api/v1/videos/generations/route.js.nft.json +1 -0
  326. package/app/.next/server/app/api/v1/videos/generations/route_client-reference-manifest.js +1 -0
  327. package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
  328. package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  329. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  330. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  331. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  332. package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
  333. package/app/.next/server/app/api/version/route.js +1 -1
  334. package/app/.next/server/app/api/version/shutdown/route.js +1 -1
  335. package/app/.next/server/app/api/version/shutdown/route.js.nft.json +1 -1
  336. package/app/.next/server/app/api/version/update/route.js +1 -1
  337. package/app/.next/server/app/api/version/update/route.js.nft.json +1 -1
  338. package/app/.next/server/app/callback/page.js +2 -2
  339. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  340. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  341. package/app/.next/server/app/callback.html +1 -1
  342. package/app/.next/server/app/callback.rsc +4 -4
  343. package/app/.next/server/app/callback.segments/_full.segment.rsc +4 -4
  344. package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
  345. package/app/.next/server/app/callback.segments/_index.segment.rsc +4 -4
  346. package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
  347. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  348. package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
  349. package/app/.next/server/app/dashboard/basic-chat.html +1 -1
  350. package/app/.next/server/app/dashboard/basic-chat.rsc +6 -6
  351. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  352. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  353. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  354. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  355. package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  356. package/app/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  357. package/app/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  358. package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  359. package/app/.next/server/app/dashboard/cli-tools.html +1 -1
  360. package/app/.next/server/app/dashboard/cli-tools.rsc +6 -6
  361. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  362. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  363. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  364. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  365. package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  366. package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  367. package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  368. package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  369. package/app/.next/server/app/dashboard/combos.html +1 -1
  370. package/app/.next/server/app/dashboard/combos.rsc +6 -6
  371. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  372. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  373. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  374. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  375. package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  376. package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  377. package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  378. package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  379. package/app/.next/server/app/dashboard/endpoint.html +1 -1
  380. package/app/.next/server/app/dashboard/endpoint.rsc +6 -6
  381. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  382. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  383. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  384. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  385. package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  386. package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  387. package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  388. package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  389. package/app/.next/server/app/dashboard/media-providers/web.html +1 -1
  390. package/app/.next/server/app/dashboard/media-providers/web.rsc +6 -6
  391. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  392. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  393. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  394. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  395. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  396. package/app/.next/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  397. package/app/.next/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  398. package/app/.next/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  399. package/app/.next/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  400. package/app/.next/server/app/dashboard/mitm.html +1 -1
  401. package/app/.next/server/app/dashboard/mitm.rsc +6 -6
  402. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  403. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  404. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  405. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  406. package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  407. package/app/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  408. package/app/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  409. package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  410. package/app/.next/server/app/dashboard/profile.html +1 -1
  411. package/app/.next/server/app/dashboard/profile.rsc +6 -6
  412. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  413. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  414. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  415. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  416. package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  417. package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  418. package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  419. package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  420. package/app/.next/server/app/dashboard/providers/new.html +1 -1
  421. package/app/.next/server/app/dashboard/providers/new.rsc +6 -6
  422. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  423. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  424. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  425. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  426. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  427. package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  428. package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  429. package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  430. package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  431. package/app/.next/server/app/dashboard/providers.html +1 -1
  432. package/app/.next/server/app/dashboard/providers.rsc +6 -6
  433. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  434. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  435. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  436. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  437. package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  438. package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  439. package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  440. package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  441. package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
  442. package/app/.next/server/app/dashboard/proxy-pools.rsc +6 -6
  443. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  444. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  445. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  446. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  447. package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  448. package/app/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  449. package/app/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  450. package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  451. package/app/.next/server/app/dashboard/pxpipe.html +1 -1
  452. package/app/.next/server/app/dashboard/pxpipe.rsc +6 -6
  453. package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  454. package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  455. package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  456. package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  457. package/app/.next/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  458. package/app/.next/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  459. package/app/.next/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
  460. package/app/.next/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  461. package/app/.next/server/app/dashboard/quota.html +2 -2
  462. package/app/.next/server/app/dashboard/quota.rsc +7 -7
  463. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  464. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  465. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  466. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  467. package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  468. package/app/.next/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  469. package/app/.next/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  470. package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  471. package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
  472. package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  473. package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  474. package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
  475. package/app/.next/server/app/dashboard/settings/pricing.rsc +5 -5
  476. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  477. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  478. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  479. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  480. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  481. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  482. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  483. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  484. package/app/.next/server/app/dashboard/skills.html +1 -1
  485. package/app/.next/server/app/dashboard/skills.rsc +6 -6
  486. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  487. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  488. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  489. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  490. package/app/.next/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  491. package/app/.next/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  492. package/app/.next/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  493. package/app/.next/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  494. package/app/.next/server/app/dashboard/token-saver.html +1 -1
  495. package/app/.next/server/app/dashboard/token-saver.rsc +6 -6
  496. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  497. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  498. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  499. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  500. package/app/.next/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  501. package/app/.next/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  502. package/app/.next/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  503. package/app/.next/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  504. package/app/.next/server/app/dashboard/translator.html +1 -1
  505. package/app/.next/server/app/dashboard/translator.rsc +6 -6
  506. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  507. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  508. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  509. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  510. package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  511. package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  512. package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  513. package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  514. package/app/.next/server/app/dashboard/usage.html +1 -1
  515. package/app/.next/server/app/dashboard/usage.rsc +6 -6
  516. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  517. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  518. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  519. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  520. package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  521. package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  522. package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  523. package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  524. package/app/.next/server/app/dashboard.html +1 -1
  525. package/app/.next/server/app/dashboard.rsc +6 -6
  526. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  527. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  528. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  529. package/app/.next/server/app/dashboard.segments/_full.segment.rsc +6 -6
  530. package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
  531. package/app/.next/server/app/dashboard.segments/_index.segment.rsc +4 -4
  532. package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  533. package/app/.next/server/app/favicon.ico/route.js +1 -1
  534. package/app/.next/server/app/index.html +1 -1
  535. package/app/.next/server/app/index.rsc +4 -4
  536. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  537. package/app/.next/server/app/index.segments/_full.segment.rsc +4 -4
  538. package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
  539. package/app/.next/server/app/index.segments/_index.segment.rsc +4 -4
  540. package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  541. package/app/.next/server/app/landing/page.js +2 -2
  542. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  543. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  544. package/app/.next/server/app/landing.html +1 -1
  545. package/app/.next/server/app/landing.rsc +5 -5
  546. package/app/.next/server/app/landing.segments/_full.segment.rsc +5 -5
  547. package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
  548. package/app/.next/server/app/landing.segments/_index.segment.rsc +4 -4
  549. package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
  550. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  551. package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
  552. package/app/.next/server/app/login/page.js +2 -2
  553. package/app/.next/server/app/login/page.js.nft.json +1 -1
  554. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  555. package/app/.next/server/app/login.html +1 -1
  556. package/app/.next/server/app/login.rsc +5 -5
  557. package/app/.next/server/app/login.segments/_full.segment.rsc +5 -5
  558. package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
  559. package/app/.next/server/app/login.segments/_index.segment.rsc +4 -4
  560. package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  561. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  562. package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
  563. package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
  564. package/app/.next/server/app/page.js +2 -2
  565. package/app/.next/server/app/page.js.nft.json +1 -1
  566. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  567. package/app/.next/server/app-paths-manifest.json +30 -24
  568. package/app/.next/server/chunks/112.js +3 -0
  569. package/app/.next/server/chunks/1470.js +1 -1
  570. package/app/.next/server/chunks/2051.js +1 -0
  571. package/app/.next/server/chunks/2251.js +2 -2
  572. package/app/.next/server/chunks/318.js +75 -7
  573. package/app/.next/server/chunks/3225.js +10 -0
  574. package/app/.next/server/chunks/3481.js +71 -0
  575. package/app/.next/server/chunks/3535.js +1 -1
  576. package/app/.next/server/chunks/365.js +1 -0
  577. package/app/.next/server/chunks/3913.js +1 -0
  578. package/app/.next/server/chunks/3943.js +1 -0
  579. package/app/.next/server/chunks/3962.js +1 -0
  580. package/app/.next/server/chunks/4037.js +1 -0
  581. package/app/.next/server/chunks/412.js +5 -5
  582. package/app/.next/server/chunks/4123.js +7 -0
  583. package/app/.next/server/chunks/4125.js +1 -0
  584. package/app/.next/server/chunks/4443.js +1 -0
  585. package/app/.next/server/chunks/4676.js +45 -0
  586. package/app/.next/server/chunks/4705.js +1 -0
  587. package/app/.next/server/chunks/4963.js +1 -0
  588. package/app/.next/server/chunks/4975.js +1 -0
  589. package/app/.next/server/chunks/4989.js +1 -1
  590. package/app/.next/server/chunks/5612.js +1 -1
  591. package/app/.next/server/chunks/5615.js +3 -3
  592. package/app/.next/server/chunks/5619.js +1 -0
  593. package/app/.next/server/chunks/5699.js +1 -1
  594. package/app/.next/server/chunks/6070.js +1 -1
  595. package/app/.next/server/chunks/615.js +1 -1
  596. package/app/.next/server/chunks/63.js +3 -3
  597. package/app/.next/server/chunks/6306.js +1 -1
  598. package/app/.next/server/chunks/6457.js +1 -1
  599. package/app/.next/server/chunks/6671.js +1 -0
  600. package/app/.next/server/chunks/6763.js +1 -1
  601. package/app/.next/server/chunks/6777.js +1 -1
  602. package/app/.next/server/chunks/6818.js +1 -0
  603. package/app/.next/server/chunks/6877.js +1 -0
  604. package/app/.next/server/chunks/7137.js +1 -0
  605. package/app/.next/server/chunks/7211.js +1 -0
  606. package/app/.next/server/chunks/7828.js +1 -1
  607. package/app/.next/server/chunks/8145.js +1 -0
  608. package/app/.next/server/chunks/8301.js +91 -0
  609. package/app/.next/server/chunks/8499.js +71 -0
  610. package/app/.next/server/chunks/869.js +1 -0
  611. package/app/.next/server/chunks/8845.js +1 -0
  612. package/app/.next/server/chunks/8895.js +11 -55
  613. package/app/.next/server/chunks/8910.js +1 -1
  614. package/app/.next/server/chunks/8920.js +1 -1
  615. package/app/.next/server/instrumentation.js +1 -0
  616. package/app/.next/server/middleware-build-manifest.js +1 -1
  617. package/app/.next/server/middleware-react-loadable-manifest.js +1 -1
  618. package/app/.next/server/pages/404.html +1 -1
  619. package/app/.next/server/pages/500.html +1 -1
  620. package/app/.next/server/server-reference-manifest.js +1 -1
  621. package/app/.next/server/server-reference-manifest.json +1 -1
  622. package/app/.next/static/chunks/1321-fbaaa3c33f83ea85.js +1 -0
  623. package/app/.next/static/chunks/1a258343.e25ce4decd2c9ea4.js +1 -0
  624. package/app/.next/static/chunks/3521.a9e2daf685420cc7.js +1 -0
  625. package/app/.next/static/chunks/4028-33d2ebbce3016284.js +91 -0
  626. package/app/.next/static/chunks/5497-dd7adaddb5a1e51d.js +7 -0
  627. package/app/.next/static/chunks/705-10f93cd2550e6494.js +1 -0
  628. package/app/.next/static/chunks/8198-b19a16e6810e84a2.js +1 -0
  629. package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-7fa7d21642523ca3.js → page-0fd819f7f5548f88.js} +1 -1
  630. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-ddcb29448c366123.js +1 -0
  631. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-bc35ad34049d7ff5.js +1 -0
  632. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-d6943540c8897df0.js +1 -0
  633. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-818b1bc14711e0a7.js → page-308fc8a3b8a069fe.js} +10 -10
  634. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-81c185a6977c1eb4.js +4 -0
  635. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/{page-5c73d27e6379f748.js → page-a571e53340e18f91.js} +1 -1
  636. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-2eaaf5721c2e8376.js +14 -0
  637. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-d6c97bcabadb38ca.js +1 -0
  638. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-6916d780a2d54b89.js +1 -0
  639. package/app/.next/static/chunks/app/_global-error/page-c74ff3c527010d28.js +1 -0
  640. package/app/.next/static/chunks/app/api/antigravity-app/route-c74ff3c527010d28.js +1 -0
  641. package/app/.next/static/chunks/app/api/antigravity-app-v2/route-c74ff3c527010d28.js +1 -0
  642. package/app/.next/static/chunks/app/api/antigravity-ide/route-c74ff3c527010d28.js +1 -0
  643. package/app/.next/static/chunks/app/api/antigravity-targets/route-c74ff3c527010d28.js +1 -0
  644. package/app/.next/static/chunks/app/api/antigravity-tools/import/route-c74ff3c527010d28.js +1 -0
  645. package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-c74ff3c527010d28.js +1 -0
  646. package/app/.next/static/chunks/app/api/auth/login/route-c74ff3c527010d28.js +1 -0
  647. package/app/.next/static/chunks/app/api/auth/logout/route-c74ff3c527010d28.js +1 -0
  648. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-c74ff3c527010d28.js +1 -0
  649. package/app/.next/static/chunks/app/api/auth/oidc/start/route-c74ff3c527010d28.js +1 -0
  650. package/app/.next/static/chunks/app/api/auth/oidc/test/route-c74ff3c527010d28.js +1 -0
  651. package/app/.next/static/chunks/app/api/auth/reset-password/route-c74ff3c527010d28.js +1 -0
  652. package/app/.next/static/chunks/app/api/auth/status/route-c74ff3c527010d28.js +1 -0
  653. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-c74ff3c527010d28.js +1 -0
  654. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-c74ff3c527010d28.js +1 -0
  655. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-c74ff3c527010d28.js +1 -0
  656. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-c74ff3c527010d28.js +1 -0
  657. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-c74ff3c527010d28.js +1 -0
  658. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-c74ff3c527010d28.js +1 -0
  659. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-c74ff3c527010d28.js +1 -0
  660. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-c74ff3c527010d28.js +1 -0
  661. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-c74ff3c527010d28.js +1 -0
  662. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-c74ff3c527010d28.js +1 -0
  663. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route-c74ff3c527010d28.js +1 -0
  664. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route-c74ff3c527010d28.js +1 -0
  665. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/route-c74ff3c527010d28.js +1 -0
  666. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/route-c74ff3c527010d28.js +1 -0
  667. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-c74ff3c527010d28.js +1 -0
  668. package/app/.next/static/chunks/app/api/cli-tools/devin-settings/route-c74ff3c527010d28.js +1 -0
  669. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-c74ff3c527010d28.js +1 -0
  670. package/app/.next/static/chunks/app/api/cli-tools/grok-build-settings/route-c74ff3c527010d28.js +1 -0
  671. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-c74ff3c527010d28.js +1 -0
  672. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-c74ff3c527010d28.js +1 -0
  673. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-c74ff3c527010d28.js +1 -0
  674. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-c74ff3c527010d28.js +1 -0
  675. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-c74ff3c527010d28.js +1 -0
  676. package/app/.next/static/chunks/app/api/combos/[id]/route-c74ff3c527010d28.js +1 -0
  677. package/app/.next/static/chunks/app/api/combos/route-c74ff3c527010d28.js +1 -0
  678. package/app/.next/static/chunks/app/api/donate/route-c74ff3c527010d28.js +1 -0
  679. package/app/.next/static/chunks/app/api/headroom/extras/route-c74ff3c527010d28.js +1 -0
  680. package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-c74ff3c527010d28.js +1 -0
  681. package/app/.next/static/chunks/app/api/headroom/restart/route-c74ff3c527010d28.js +1 -0
  682. package/app/.next/static/chunks/app/api/headroom/start/route-c74ff3c527010d28.js +1 -0
  683. package/app/.next/static/chunks/app/api/headroom/status/route-c74ff3c527010d28.js +1 -0
  684. package/app/.next/static/chunks/app/api/headroom/stop/route-c74ff3c527010d28.js +1 -0
  685. package/app/.next/static/chunks/app/api/health/route-c74ff3c527010d28.js +1 -0
  686. package/app/.next/static/chunks/app/api/init/route-c74ff3c527010d28.js +1 -0
  687. package/app/.next/static/chunks/app/api/internal/account-health/route-c74ff3c527010d28.js +1 -0
  688. package/app/.next/static/chunks/app/api/internal/request-detail/route-c74ff3c527010d28.js +1 -0
  689. package/app/.next/static/chunks/app/api/internal/usage/route-c74ff3c527010d28.js +1 -0
  690. package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-c74ff3c527010d28.js +1 -0
  691. package/app/.next/static/chunks/app/api/keys/[id]/route-c74ff3c527010d28.js +1 -0
  692. package/app/.next/static/chunks/app/api/keys/[id]/usage/route-c74ff3c527010d28.js +1 -0
  693. package/app/.next/static/chunks/app/api/keys/route-c74ff3c527010d28.js +1 -0
  694. package/app/.next/static/chunks/app/api/locale/route-c74ff3c527010d28.js +1 -0
  695. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-c74ff3c527010d28.js +1 -0
  696. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-c74ff3c527010d28.js +1 -0
  697. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-c74ff3c527010d28.js +1 -0
  698. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-c74ff3c527010d28.js +1 -0
  699. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-c74ff3c527010d28.js +1 -0
  700. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-c74ff3c527010d28.js +1 -0
  701. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-c74ff3c527010d28.js +1 -0
  702. package/app/.next/static/chunks/app/api/models/alias/route-c74ff3c527010d28.js +1 -0
  703. package/app/.next/static/chunks/app/api/models/availability/route-c74ff3c527010d28.js +1 -0
  704. package/app/.next/static/chunks/app/api/models/custom/route-c74ff3c527010d28.js +1 -0
  705. package/app/.next/static/chunks/app/api/models/disabled/route-c74ff3c527010d28.js +1 -0
  706. package/app/.next/static/chunks/app/api/models/route-c74ff3c527010d28.js +1 -0
  707. package/app/.next/static/chunks/app/api/models/test/route-c74ff3c527010d28.js +1 -0
  708. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-c74ff3c527010d28.js +1 -0
  709. package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-c74ff3c527010d28.js +1 -0
  710. package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-c74ff3c527010d28.js +1 -0
  711. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-c74ff3c527010d28.js +1 -0
  712. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-c74ff3c527010d28.js +1 -0
  713. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-c74ff3c527010d28.js +1 -0
  714. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-c74ff3c527010d28.js +1 -0
  715. package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-c74ff3c527010d28.js +1 -0
  716. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-c74ff3c527010d28.js +1 -0
  717. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-c74ff3c527010d28.js +1 -0
  718. package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-c74ff3c527010d28.js +1 -0
  719. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-c74ff3c527010d28.js +1 -0
  720. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-c74ff3c527010d28.js +1 -0
  721. package/app/.next/static/chunks/app/api/pricing/route-c74ff3c527010d28.js +1 -0
  722. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-c74ff3c527010d28.js +1 -0
  723. package/app/.next/static/chunks/app/api/provider-nodes/route-c74ff3c527010d28.js +1 -0
  724. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-c74ff3c527010d28.js +1 -0
  725. package/app/.next/static/chunks/app/api/providers/[id]/models/route-c74ff3c527010d28.js +1 -0
  726. package/app/.next/static/chunks/app/api/providers/[id]/route-c74ff3c527010d28.js +1 -0
  727. package/app/.next/static/chunks/app/api/providers/[id]/test/route-c74ff3c527010d28.js +1 -0
  728. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-c74ff3c527010d28.js +1 -0
  729. package/app/.next/static/chunks/app/api/providers/client/route-c74ff3c527010d28.js +1 -0
  730. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-c74ff3c527010d28.js +1 -0
  731. package/app/.next/static/chunks/app/api/providers/route-c74ff3c527010d28.js +1 -0
  732. package/app/.next/static/chunks/app/api/providers/suggested-models/route-c74ff3c527010d28.js +1 -0
  733. package/app/.next/static/chunks/app/api/providers/test-batch/route-c74ff3c527010d28.js +1 -0
  734. package/app/.next/static/chunks/app/api/providers/validate/route-c74ff3c527010d28.js +1 -0
  735. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-c74ff3c527010d28.js +1 -0
  736. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-c74ff3c527010d28.js +1 -0
  737. package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-c74ff3c527010d28.js +1 -0
  738. package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-c74ff3c527010d28.js +1 -0
  739. package/app/.next/static/chunks/app/api/proxy-pools/route-c74ff3c527010d28.js +1 -0
  740. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-c74ff3c527010d28.js +1 -0
  741. package/app/.next/static/chunks/app/api/pxpipe/health/route-c74ff3c527010d28.js +1 -0
  742. package/app/.next/static/chunks/app/api/pxpipe/install/route-c74ff3c527010d28.js +1 -0
  743. package/app/.next/static/chunks/app/api/pxpipe/logs/route-c74ff3c527010d28.js +1 -0
  744. package/app/.next/static/chunks/app/api/pxpipe/restart/route-c74ff3c527010d28.js +1 -0
  745. package/app/.next/static/chunks/app/api/pxpipe/start/route-c74ff3c527010d28.js +1 -0
  746. package/app/.next/static/chunks/app/api/pxpipe/stats/route-c74ff3c527010d28.js +1 -0
  747. package/app/.next/static/chunks/app/api/pxpipe/status/route-c74ff3c527010d28.js +1 -0
  748. package/app/.next/static/chunks/app/api/pxpipe/stop/route-c74ff3c527010d28.js +1 -0
  749. package/app/.next/static/chunks/app/api/settings/database/route-c74ff3c527010d28.js +1 -0
  750. package/app/.next/static/chunks/app/api/settings/database/selective/route-c74ff3c527010d28.js +1 -0
  751. package/app/.next/static/chunks/app/api/settings/proxy-test/route-c74ff3c527010d28.js +1 -0
  752. package/app/.next/static/chunks/app/api/settings/require-login/route-c74ff3c527010d28.js +1 -0
  753. package/app/.next/static/chunks/app/api/settings/route-c74ff3c527010d28.js +1 -0
  754. package/app/.next/static/chunks/app/api/shutdown/route-c74ff3c527010d28.js +1 -0
  755. package/app/.next/static/chunks/app/api/tags/route-c74ff3c527010d28.js +1 -0
  756. package/app/.next/static/chunks/app/api/translator/console-logs/route-c74ff3c527010d28.js +1 -0
  757. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-c74ff3c527010d28.js +1 -0
  758. package/app/.next/static/chunks/app/api/translator/load/route-c74ff3c527010d28.js +1 -0
  759. package/app/.next/static/chunks/app/api/translator/save/route-c74ff3c527010d28.js +1 -0
  760. package/app/.next/static/chunks/app/api/translator/send/route-c74ff3c527010d28.js +1 -0
  761. package/app/.next/static/chunks/app/api/translator/translate/route-c74ff3c527010d28.js +1 -0
  762. package/app/.next/static/chunks/app/api/tunnel/disable/route-c74ff3c527010d28.js +1 -0
  763. package/app/.next/static/chunks/app/api/tunnel/enable/route-c74ff3c527010d28.js +1 -0
  764. package/app/.next/static/chunks/app/api/tunnel/status/route-c74ff3c527010d28.js +1 -0
  765. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-c74ff3c527010d28.js +1 -0
  766. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-c74ff3c527010d28.js +1 -0
  767. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-c74ff3c527010d28.js +1 -0
  768. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-c74ff3c527010d28.js +1 -0
  769. package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-c74ff3c527010d28.js +1 -0
  770. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-c74ff3c527010d28.js +1 -0
  771. package/app/.next/static/chunks/app/api/usage/chart/route-c74ff3c527010d28.js +1 -0
  772. package/app/.next/static/chunks/app/api/usage/history/route-c74ff3c527010d28.js +1 -0
  773. package/app/.next/static/chunks/app/api/usage/logs/route-c74ff3c527010d28.js +1 -0
  774. package/app/.next/static/chunks/app/api/usage/providers/route-c74ff3c527010d28.js +1 -0
  775. package/app/.next/static/chunks/app/api/usage/report/route-c74ff3c527010d28.js +1 -0
  776. package/app/.next/static/chunks/app/api/usage/request-details/route-c74ff3c527010d28.js +1 -0
  777. package/app/.next/static/chunks/app/api/usage/request-logs/route-c74ff3c527010d28.js +1 -0
  778. package/app/.next/static/chunks/app/api/usage/stats/route-c74ff3c527010d28.js +1 -0
  779. package/app/.next/static/chunks/app/api/usage/stream/route-c74ff3c527010d28.js +1 -0
  780. package/app/.next/static/chunks/app/api/v1/api/chat/route-c74ff3c527010d28.js +1 -0
  781. package/app/.next/static/chunks/app/api/v1/audio/speech/route-c74ff3c527010d28.js +1 -0
  782. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-c74ff3c527010d28.js +1 -0
  783. package/app/.next/static/chunks/app/api/v1/audio/voices/route-c74ff3c527010d28.js +1 -0
  784. package/app/.next/static/chunks/app/api/v1/chat/completions/route-c74ff3c527010d28.js +1 -0
  785. package/app/.next/static/chunks/app/api/v1/embeddings/route-c74ff3c527010d28.js +1 -0
  786. package/app/.next/static/chunks/app/api/v1/images/generations/route-c74ff3c527010d28.js +1 -0
  787. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-c74ff3c527010d28.js +1 -0
  788. package/app/.next/static/chunks/app/api/v1/messages/route-c74ff3c527010d28.js +1 -0
  789. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-c74ff3c527010d28.js +1 -0
  790. package/app/.next/static/chunks/app/api/v1/models/info/route-c74ff3c527010d28.js +1 -0
  791. package/app/.next/static/chunks/app/api/v1/models/route-c74ff3c527010d28.js +1 -0
  792. package/app/.next/static/chunks/app/api/v1/responses/compact/route-c74ff3c527010d28.js +1 -0
  793. package/app/.next/static/chunks/app/api/v1/responses/route-c74ff3c527010d28.js +1 -0
  794. package/app/.next/static/chunks/app/api/v1/route-c74ff3c527010d28.js +1 -0
  795. package/app/.next/static/chunks/app/api/v1/search/route-c74ff3c527010d28.js +1 -0
  796. package/app/.next/static/chunks/app/api/v1/videos/[id]/route-c74ff3c527010d28.js +1 -0
  797. package/app/.next/static/chunks/app/api/v1/videos/edits/route-c74ff3c527010d28.js +1 -0
  798. package/app/.next/static/chunks/app/api/v1/videos/extensions/route-c74ff3c527010d28.js +1 -0
  799. package/app/.next/static/chunks/app/api/v1/videos/generations/route-c74ff3c527010d28.js +1 -0
  800. package/app/.next/static/chunks/app/api/v1/web/fetch/route-c74ff3c527010d28.js +1 -0
  801. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-c74ff3c527010d28.js +1 -0
  802. package/app/.next/static/chunks/app/api/v1beta/models/route-c74ff3c527010d28.js +1 -0
  803. package/app/.next/static/chunks/app/api/version/route-c74ff3c527010d28.js +1 -0
  804. package/app/.next/static/chunks/app/api/version/shutdown/route-c74ff3c527010d28.js +1 -0
  805. package/app/.next/static/chunks/app/api/version/update/route-c74ff3c527010d28.js +1 -0
  806. package/app/.next/static/chunks/app/landing/page-a438c82535cc676a.js +1 -0
  807. package/app/.next/static/chunks/app/login/page-7b85623bf9ba8d60.js +1 -0
  808. package/app/.next/static/chunks/app/manifest.webmanifest/route-c74ff3c527010d28.js +1 -0
  809. package/app/.next/static/chunks/app/page-c74ff3c527010d28.js +1 -0
  810. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-c74ff3c527010d28.js +1 -0
  811. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-c74ff3c527010d28.js +1 -0
  812. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-c74ff3c527010d28.js +1 -0
  813. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-c74ff3c527010d28.js +1 -0
  814. package/app/.next/static/chunks/{webpack-121fdf903e7acc97.js → webpack-6b46812a5ae291a1.js} +1 -1
  815. package/app/.next/static/css/d16761d8d90e43ab.css +1 -0
  816. package/app/.next/static/zErBl-HUgBtz1iz9LeFt5/_buildManifest.js +1 -0
  817. package/app/open-sse/config/appConstants.js +58 -10
  818. package/app/open-sse/config/grokCli.js +10 -0
  819. package/app/open-sse/config/kiroConstants.js +123 -3
  820. package/app/open-sse/config/providerModels.js +7 -3
  821. package/app/open-sse/config/runtimeConfig.js +2 -0
  822. package/app/open-sse/config/ttsModels.js +23 -0
  823. package/app/open-sse/executors/antigravity.js +5 -1
  824. package/app/open-sse/executors/base.js +3 -2
  825. package/app/open-sse/executors/codebuddy-cn.js +29 -0
  826. package/app/open-sse/executors/codebuddy-intl.js +44 -0
  827. package/app/open-sse/executors/codex.js +9 -4
  828. package/app/open-sse/executors/cursor.js +427 -2
  829. package/app/open-sse/executors/default.js +21 -27
  830. package/app/open-sse/executors/devin-cli.js +847 -0
  831. package/app/open-sse/executors/grok-cli.js +194 -39
  832. package/app/open-sse/executors/index.js +15 -3
  833. package/app/open-sse/executors/qoder.js +82 -41
  834. package/app/open-sse/executors/trae.js +339 -0
  835. package/app/open-sse/executors/windsurf.js +588 -0
  836. package/app/open-sse/executors/zed.js +304 -0
  837. package/app/open-sse/handlers/chatCore/nonStreamingHandler.js +92 -6
  838. package/app/open-sse/handlers/chatCore/sseToJsonHandler.js +131 -11
  839. package/app/open-sse/handlers/chatCore/streamingHandler.js +6 -6
  840. package/app/open-sse/handlers/chatCore.js +84 -31
  841. package/app/open-sse/handlers/embeddingProviders/index.js +7 -0
  842. package/app/open-sse/handlers/embeddingProviders/selfhostedEmbedding.js +46 -0
  843. package/app/open-sse/handlers/embeddingsCore.js +23 -8
  844. package/app/open-sse/handlers/fetch/index.js +11 -5
  845. package/app/open-sse/handlers/search/callers.js +0 -1
  846. package/app/open-sse/handlers/search/normalizers.js +0 -1
  847. package/app/open-sse/handlers/sttCore.js +9 -1
  848. package/app/open-sse/handlers/ttsCore.js +3 -3
  849. package/app/open-sse/handlers/ttsProviders/index.js +4 -0
  850. package/app/open-sse/handlers/ttsProviders/selfhostedTts.js +69 -0
  851. package/app/open-sse/handlers/ttsProviders/xiaomi-mimo.js +65 -0
  852. package/app/open-sse/handlers/videoCore.js +166 -0
  853. package/app/open-sse/index.js +0 -1
  854. package/app/open-sse/providers/capabilities.js +67 -7
  855. package/app/open-sse/providers/pricing.js +132 -1
  856. package/app/open-sse/providers/registry/alicode-intl.js +3 -3
  857. package/app/open-sse/providers/registry/alims-intl.js +32 -0
  858. package/app/open-sse/providers/registry/anthropic.js +1 -3
  859. package/app/open-sse/providers/registry/antigravity.js +7 -3
  860. package/app/open-sse/providers/registry/api-airforce.js +36 -0
  861. package/app/open-sse/providers/registry/baidu.js +33 -0
  862. package/app/open-sse/providers/registry/bazaarlink.js +47 -0
  863. package/app/open-sse/providers/registry/bluesminds.js +38 -0
  864. package/app/open-sse/providers/registry/claude.js +1 -5
  865. package/app/open-sse/providers/registry/cloudflare-ai.js +2 -0
  866. package/app/open-sse/providers/registry/codebuddy-intl.js +77 -0
  867. package/app/open-sse/providers/registry/cursor.js +3 -3
  868. package/app/open-sse/providers/registry/deepseek.js +4 -0
  869. package/app/open-sse/providers/registry/devin-cli.js +63 -0
  870. package/app/open-sse/providers/registry/gemini-cli.js +17 -6
  871. package/app/open-sse/providers/registry/gemini.js +4 -0
  872. package/app/open-sse/providers/registry/grok-cli.js +28 -18
  873. package/app/open-sse/providers/registry/index.js +87 -49
  874. package/app/open-sse/providers/registry/kilo-gateway.js +34 -0
  875. package/app/open-sse/providers/registry/kimchi.js +1 -1
  876. package/app/open-sse/providers/registry/kimi.js +43 -7
  877. package/app/open-sse/providers/registry/kiro.js +16 -1
  878. package/app/open-sse/providers/registry/llm7.js +35 -0
  879. package/app/open-sse/providers/registry/mimo-free.js +3 -0
  880. package/app/open-sse/providers/registry/morph.js +29 -0
  881. package/app/open-sse/providers/registry/nvidia.js +2 -0
  882. package/app/open-sse/providers/registry/ollama.js +3 -0
  883. package/app/open-sse/providers/registry/openrouter.js +2 -0
  884. package/app/open-sse/providers/registry/poolside.js +30 -0
  885. package/app/open-sse/providers/registry/qoder.js +19 -15
  886. package/app/open-sse/providers/registry/sambanova.js +27 -0
  887. package/app/open-sse/providers/registry/selfhosted-embedding.js +73 -0
  888. package/app/open-sse/providers/registry/selfhosted-stt.js +48 -0
  889. package/app/open-sse/providers/registry/selfhosted-tts.js +44 -0
  890. package/app/open-sse/providers/registry/tencent.js +27 -0
  891. package/app/open-sse/providers/registry/tokenrouter.js +162 -0
  892. package/app/open-sse/providers/registry/trae.js +76 -0
  893. package/app/open-sse/providers/registry/windsurf.js +143 -0
  894. package/app/open-sse/providers/registry/xai.js +5 -1
  895. package/app/open-sse/providers/registry/xiaomi-mimo.js +9 -1
  896. package/app/open-sse/providers/registry/zed.js +71 -0
  897. package/app/open-sse/providers/shared.js +21 -1
  898. package/app/open-sse/providers/thinkingLevels.js +10 -3
  899. package/app/open-sse/rtk/headroom.js +12 -1
  900. package/app/open-sse/services/capacityAdapter.js +173 -0
  901. package/app/open-sse/services/combo.js +21 -4
  902. package/app/open-sse/services/cursorModels.js +187 -0
  903. package/app/open-sse/services/grokCliModels.js +127 -0
  904. package/app/open-sse/services/model.js +7 -1
  905. package/app/open-sse/services/projectId.js +13 -10
  906. package/app/open-sse/services/provider.js +14 -8
  907. package/app/open-sse/services/qoderModels.js +146 -7
  908. package/app/open-sse/services/tokenRefresh/providers.js +221 -185
  909. package/app/open-sse/services/tokenRefresh.js +21 -5
  910. package/app/open-sse/services/usage/codebuddy-cn.js +14 -6
  911. package/app/open-sse/services/usage/deepseek.js +112 -0
  912. package/app/open-sse/services/usage/google.js +22 -58
  913. package/app/open-sse/services/usage/grok-cli.js +157 -7
  914. package/app/open-sse/services/usage/grokCliQuotaFrame.js +191 -0
  915. package/app/open-sse/services/usage/kimi.js +211 -0
  916. package/app/open-sse/services/usage/misc.js +78 -32
  917. package/app/open-sse/services/usage.js +14 -5
  918. package/app/open-sse/shared/qoder/constants.js +8 -0
  919. package/app/open-sse/shared/zedAuth.js +415 -0
  920. package/app/open-sse/translator/concerns/kiroConversation.js +435 -0
  921. package/app/open-sse/translator/concerns/thinkingUnified.js +22 -4
  922. package/app/open-sse/translator/formats/claude.js +3 -1
  923. package/app/open-sse/translator/formats/gemini.js +20 -1
  924. package/app/open-sse/translator/index.js +19 -4
  925. package/app/open-sse/translator/request/claude-to-kiro.js +93 -232
  926. package/app/open-sse/translator/request/openai-responses.js +51 -7
  927. package/app/open-sse/translator/request/openai-to-kiro.js +77 -252
  928. package/app/open-sse/translator/response/openai-responses.js +57 -18
  929. package/app/open-sse/translator/schema/blocks.js +3 -0
  930. package/app/open-sse/utils/clientDetector.js +5 -2
  931. package/app/open-sse/utils/cursorChecksum.js +2 -1
  932. package/app/open-sse/utils/kiroSessionReplay.js +144 -0
  933. package/app/open-sse/utils/sessionManager.js +48 -12
  934. package/app/open-sse/utils/stream.js +6 -2
  935. package/app/package.json +1 -1
  936. package/app/public/i18n/literals/ar.json +2 -0
  937. package/app/public/i18n/literals/bn.json +2 -0
  938. package/app/public/i18n/literals/cs.json +2 -0
  939. package/app/public/i18n/literals/da.json +2 -0
  940. package/app/public/i18n/literals/de.json +2 -0
  941. package/app/public/i18n/literals/el.json +2 -0
  942. package/app/public/i18n/literals/es.json +2 -0
  943. package/app/public/i18n/literals/fa.json +1369 -171
  944. package/app/public/i18n/literals/fi.json +2 -0
  945. package/app/public/i18n/literals/fr.json +2 -0
  946. package/app/public/i18n/literals/he.json +2 -0
  947. package/app/public/i18n/literals/hi.json +2 -0
  948. package/app/public/i18n/literals/hu.json +2 -0
  949. package/app/public/i18n/literals/id.json +2 -0
  950. package/app/public/i18n/literals/it.json +2 -0
  951. package/app/public/i18n/literals/ja.json +2 -0
  952. package/app/public/i18n/literals/km.json +1398 -0
  953. package/app/public/i18n/literals/ko.json +2 -0
  954. package/app/public/i18n/literals/nl.json +2 -0
  955. package/app/public/i18n/literals/no.json +2 -0
  956. package/app/public/i18n/literals/pl.json +2 -0
  957. package/app/public/i18n/literals/pt-BR.json +958 -163
  958. package/app/public/i18n/literals/pt-PT.json +2 -0
  959. package/app/public/i18n/literals/ro.json +2 -0
  960. package/app/public/i18n/literals/ru.json +2 -0
  961. package/app/public/i18n/literals/sv.json +2 -0
  962. package/app/public/i18n/literals/th.json +1374 -176
  963. package/app/public/i18n/literals/tl.json +2 -0
  964. package/app/public/i18n/literals/tr.json +2 -0
  965. package/app/public/i18n/literals/uk.json +2 -0
  966. package/app/public/i18n/literals/ur.json +2 -0
  967. package/app/public/i18n/literals/vi.json +2 -0
  968. package/app/public/i18n/literals/zh-CN.json +2 -0
  969. package/app/public/i18n/literals/zh-TW.json +2 -0
  970. package/app/public/providers/agentrouter.png +0 -0
  971. package/app/public/providers/api-airforce.png +0 -0
  972. package/app/public/providers/baidu.png +0 -0
  973. package/app/public/providers/bazaarlink.png +0 -0
  974. package/app/public/providers/bluesminds.png +0 -0
  975. package/app/public/providers/codebuddy-cn.png +0 -0
  976. package/app/public/providers/codebuddy-intl.png +0 -0
  977. package/app/public/providers/commandcode.png +0 -0
  978. package/app/public/providers/devin-cli.png +0 -0
  979. package/app/public/providers/featherless.png +0 -0
  980. package/app/public/providers/gitlab.png +0 -0
  981. package/app/public/providers/kilo-gateway.png +0 -0
  982. package/app/public/providers/llm7.png +0 -0
  983. package/app/public/providers/longcat.png +0 -0
  984. package/app/public/providers/mmf.png +0 -0
  985. package/app/public/providers/morph.png +0 -0
  986. package/app/public/providers/novita.png +0 -0
  987. package/app/public/providers/opendesign.png +0 -0
  988. package/app/public/providers/perplexity-agent.png +0 -0
  989. package/app/public/providers/poolside.png +0 -0
  990. package/app/public/providers/qoder.png +0 -0
  991. package/app/public/providers/reka.png +0 -0
  992. package/app/public/providers/sambanova.png +0 -0
  993. package/app/public/providers/tencent.png +0 -0
  994. package/app/public/providers/tokenrouter.png +0 -0
  995. package/app/public/providers/trae.png +0 -0
  996. package/app/public/providers/venice.png +0 -0
  997. package/app/public/providers/vercel-ai-gateway.png +0 -0
  998. package/app/public/providers/vercel.png +0 -0
  999. package/app/public/providers/windsurf.png +0 -0
  1000. package/app/public/providers/workbuddy.png +0 -0
  1001. package/app/public/providers/zed.png +0 -0
  1002. package/app/src/mitm/config.js +42 -1
  1003. package/app/src/shared/constants/cliTools.js +99 -16
  1004. package/app/src/shared/constants/locales.js +1 -0
  1005. package/app/src/shared/constants/providers.js +1 -1
  1006. package/app/src/shared/constants/ttsProviders.js +12 -0
  1007. package/app/src/shared/services/quotaAutoPing.js +313 -0
  1008. package/app/src/sse/services/backgroundTokenRefresh.js +196 -0
  1009. package/package.json +1 -1
  1010. package/app/.next/server/chunks/1051.js +0 -1
  1011. package/app/.next/server/chunks/1350.js +0 -1
  1012. package/app/.next/server/chunks/1719.js +0 -1
  1013. package/app/.next/server/chunks/2701.js +0 -10
  1014. package/app/.next/server/chunks/3621.js +0 -1
  1015. package/app/.next/server/chunks/4177.js +0 -1
  1016. package/app/.next/server/chunks/4632.js +0 -1
  1017. package/app/.next/server/chunks/6182.js +0 -71
  1018. package/app/.next/server/chunks/6675.js +0 -53
  1019. package/app/.next/server/chunks/7181.js +0 -1
  1020. package/app/.next/server/chunks/7444.js +0 -1
  1021. package/app/.next/server/chunks/7886.js +0 -1
  1022. package/app/.next/server/chunks/8056.js +0 -7
  1023. package/app/.next/server/chunks/8238.js +0 -1
  1024. package/app/.next/server/chunks/8271.js +0 -1
  1025. package/app/.next/server/chunks/8794.js +0 -1
  1026. package/app/.next/server/chunks/8833.js +0 -79
  1027. package/app/.next/server/chunks/9489.js +0 -3
  1028. package/app/.next/static/4eHcO0iL_6PDYZfGNLlqJ/_buildManifest.js +0 -1
  1029. package/app/.next/static/chunks/1321-221797845867fc50.js +0 -1
  1030. package/app/.next/static/chunks/1a258343.5938f676ed376386.js +0 -1
  1031. package/app/.next/static/chunks/3521.8dce45f121472d5c.js +0 -1
  1032. package/app/.next/static/chunks/5396-a003e096a6013f2e.js +0 -53
  1033. package/app/.next/static/chunks/5497-fd6ad8ecc491258d.js +0 -7
  1034. package/app/.next/static/chunks/705-979ff3eb195b9023.js +0 -1
  1035. package/app/.next/static/chunks/8198-34a5f75f939a0642.js +0 -1
  1036. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-199ad55a0a07b99e.js +0 -1
  1037. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-891aa409aec4569e.js +0 -1
  1038. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-064162ae8176ea08.js +0 -1
  1039. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-6079eec94c4ca9a9.js +0 -4
  1040. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-64902d9374382b6c.js +0 -12
  1041. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-541efe7992c8e9d2.js +0 -1
  1042. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-d5dd8461c18931fc.js +0 -1
  1043. package/app/.next/static/chunks/app/_global-error/page-9ed8f7909a84e383.js +0 -1
  1044. package/app/.next/static/chunks/app/api/antigravity-app/route-9ed8f7909a84e383.js +0 -1
  1045. package/app/.next/static/chunks/app/api/antigravity-app-v2/route-9ed8f7909a84e383.js +0 -1
  1046. package/app/.next/static/chunks/app/api/antigravity-ide/route-9ed8f7909a84e383.js +0 -1
  1047. package/app/.next/static/chunks/app/api/antigravity-targets/route-9ed8f7909a84e383.js +0 -1
  1048. package/app/.next/static/chunks/app/api/antigravity-tools/import/route-9ed8f7909a84e383.js +0 -1
  1049. package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-9ed8f7909a84e383.js +0 -1
  1050. package/app/.next/static/chunks/app/api/auth/login/route-9ed8f7909a84e383.js +0 -1
  1051. package/app/.next/static/chunks/app/api/auth/logout/route-9ed8f7909a84e383.js +0 -1
  1052. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-9ed8f7909a84e383.js +0 -1
  1053. package/app/.next/static/chunks/app/api/auth/oidc/start/route-9ed8f7909a84e383.js +0 -1
  1054. package/app/.next/static/chunks/app/api/auth/oidc/test/route-9ed8f7909a84e383.js +0 -1
  1055. package/app/.next/static/chunks/app/api/auth/reset-password/route-9ed8f7909a84e383.js +0 -1
  1056. package/app/.next/static/chunks/app/api/auth/status/route-9ed8f7909a84e383.js +0 -1
  1057. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-9ed8f7909a84e383.js +0 -1
  1058. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-9ed8f7909a84e383.js +0 -1
  1059. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-9ed8f7909a84e383.js +0 -1
  1060. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-9ed8f7909a84e383.js +0 -1
  1061. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-9ed8f7909a84e383.js +0 -1
  1062. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-9ed8f7909a84e383.js +0 -1
  1063. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-9ed8f7909a84e383.js +0 -1
  1064. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-9ed8f7909a84e383.js +0 -1
  1065. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-9ed8f7909a84e383.js +0 -1
  1066. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-9ed8f7909a84e383.js +0 -1
  1067. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route-9ed8f7909a84e383.js +0 -1
  1068. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route-9ed8f7909a84e383.js +0 -1
  1069. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/route-9ed8f7909a84e383.js +0 -1
  1070. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/route-9ed8f7909a84e383.js +0 -1
  1071. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-9ed8f7909a84e383.js +0 -1
  1072. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-9ed8f7909a84e383.js +0 -1
  1073. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-9ed8f7909a84e383.js +0 -1
  1074. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-9ed8f7909a84e383.js +0 -1
  1075. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-9ed8f7909a84e383.js +0 -1
  1076. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-9ed8f7909a84e383.js +0 -1
  1077. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-9ed8f7909a84e383.js +0 -1
  1078. package/app/.next/static/chunks/app/api/combos/[id]/route-9ed8f7909a84e383.js +0 -1
  1079. package/app/.next/static/chunks/app/api/combos/route-9ed8f7909a84e383.js +0 -1
  1080. package/app/.next/static/chunks/app/api/donate/route-9ed8f7909a84e383.js +0 -1
  1081. package/app/.next/static/chunks/app/api/headroom/extras/route-9ed8f7909a84e383.js +0 -1
  1082. package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-9ed8f7909a84e383.js +0 -1
  1083. package/app/.next/static/chunks/app/api/headroom/restart/route-9ed8f7909a84e383.js +0 -1
  1084. package/app/.next/static/chunks/app/api/headroom/start/route-9ed8f7909a84e383.js +0 -1
  1085. package/app/.next/static/chunks/app/api/headroom/status/route-9ed8f7909a84e383.js +0 -1
  1086. package/app/.next/static/chunks/app/api/headroom/stop/route-9ed8f7909a84e383.js +0 -1
  1087. package/app/.next/static/chunks/app/api/health/route-9ed8f7909a84e383.js +0 -1
  1088. package/app/.next/static/chunks/app/api/init/route-9ed8f7909a84e383.js +0 -1
  1089. package/app/.next/static/chunks/app/api/internal/account-health/route-9ed8f7909a84e383.js +0 -1
  1090. package/app/.next/static/chunks/app/api/internal/request-detail/route-9ed8f7909a84e383.js +0 -1
  1091. package/app/.next/static/chunks/app/api/internal/usage/route-9ed8f7909a84e383.js +0 -1
  1092. package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-9ed8f7909a84e383.js +0 -1
  1093. package/app/.next/static/chunks/app/api/keys/[id]/route-9ed8f7909a84e383.js +0 -1
  1094. package/app/.next/static/chunks/app/api/keys/[id]/usage/route-9ed8f7909a84e383.js +0 -1
  1095. package/app/.next/static/chunks/app/api/keys/route-9ed8f7909a84e383.js +0 -1
  1096. package/app/.next/static/chunks/app/api/locale/route-9ed8f7909a84e383.js +0 -1
  1097. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-9ed8f7909a84e383.js +0 -1
  1098. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-9ed8f7909a84e383.js +0 -1
  1099. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-9ed8f7909a84e383.js +0 -1
  1100. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-9ed8f7909a84e383.js +0 -1
  1101. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-9ed8f7909a84e383.js +0 -1
  1102. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-9ed8f7909a84e383.js +0 -1
  1103. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-9ed8f7909a84e383.js +0 -1
  1104. package/app/.next/static/chunks/app/api/models/alias/route-9ed8f7909a84e383.js +0 -1
  1105. package/app/.next/static/chunks/app/api/models/availability/route-9ed8f7909a84e383.js +0 -1
  1106. package/app/.next/static/chunks/app/api/models/custom/route-9ed8f7909a84e383.js +0 -1
  1107. package/app/.next/static/chunks/app/api/models/disabled/route-9ed8f7909a84e383.js +0 -1
  1108. package/app/.next/static/chunks/app/api/models/route-9ed8f7909a84e383.js +0 -1
  1109. package/app/.next/static/chunks/app/api/models/test/route-9ed8f7909a84e383.js +0 -1
  1110. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-9ed8f7909a84e383.js +0 -1
  1111. package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-9ed8f7909a84e383.js +0 -1
  1112. package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-9ed8f7909a84e383.js +0 -1
  1113. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-9ed8f7909a84e383.js +0 -1
  1114. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-9ed8f7909a84e383.js +0 -1
  1115. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-9ed8f7909a84e383.js +0 -1
  1116. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-9ed8f7909a84e383.js +0 -1
  1117. package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-9ed8f7909a84e383.js +0 -1
  1118. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-9ed8f7909a84e383.js +0 -1
  1119. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-9ed8f7909a84e383.js +0 -1
  1120. package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-9ed8f7909a84e383.js +0 -1
  1121. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-9ed8f7909a84e383.js +0 -1
  1122. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-9ed8f7909a84e383.js +0 -1
  1123. package/app/.next/static/chunks/app/api/pricing/route-9ed8f7909a84e383.js +0 -1
  1124. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-9ed8f7909a84e383.js +0 -1
  1125. package/app/.next/static/chunks/app/api/provider-nodes/route-9ed8f7909a84e383.js +0 -1
  1126. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-9ed8f7909a84e383.js +0 -1
  1127. package/app/.next/static/chunks/app/api/providers/[id]/models/route-9ed8f7909a84e383.js +0 -1
  1128. package/app/.next/static/chunks/app/api/providers/[id]/route-9ed8f7909a84e383.js +0 -1
  1129. package/app/.next/static/chunks/app/api/providers/[id]/test/route-9ed8f7909a84e383.js +0 -1
  1130. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-9ed8f7909a84e383.js +0 -1
  1131. package/app/.next/static/chunks/app/api/providers/client/route-9ed8f7909a84e383.js +0 -1
  1132. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-9ed8f7909a84e383.js +0 -1
  1133. package/app/.next/static/chunks/app/api/providers/route-9ed8f7909a84e383.js +0 -1
  1134. package/app/.next/static/chunks/app/api/providers/suggested-models/route-9ed8f7909a84e383.js +0 -1
  1135. package/app/.next/static/chunks/app/api/providers/test-batch/route-9ed8f7909a84e383.js +0 -1
  1136. package/app/.next/static/chunks/app/api/providers/validate/route-9ed8f7909a84e383.js +0 -1
  1137. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-9ed8f7909a84e383.js +0 -1
  1138. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-9ed8f7909a84e383.js +0 -1
  1139. package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-9ed8f7909a84e383.js +0 -1
  1140. package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-9ed8f7909a84e383.js +0 -1
  1141. package/app/.next/static/chunks/app/api/proxy-pools/route-9ed8f7909a84e383.js +0 -1
  1142. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-9ed8f7909a84e383.js +0 -1
  1143. package/app/.next/static/chunks/app/api/pxpipe/health/route-9ed8f7909a84e383.js +0 -1
  1144. package/app/.next/static/chunks/app/api/pxpipe/install/route-9ed8f7909a84e383.js +0 -1
  1145. package/app/.next/static/chunks/app/api/pxpipe/logs/route-9ed8f7909a84e383.js +0 -1
  1146. package/app/.next/static/chunks/app/api/pxpipe/restart/route-9ed8f7909a84e383.js +0 -1
  1147. package/app/.next/static/chunks/app/api/pxpipe/start/route-9ed8f7909a84e383.js +0 -1
  1148. package/app/.next/static/chunks/app/api/pxpipe/stats/route-9ed8f7909a84e383.js +0 -1
  1149. package/app/.next/static/chunks/app/api/pxpipe/status/route-9ed8f7909a84e383.js +0 -1
  1150. package/app/.next/static/chunks/app/api/pxpipe/stop/route-9ed8f7909a84e383.js +0 -1
  1151. package/app/.next/static/chunks/app/api/settings/database/route-9ed8f7909a84e383.js +0 -1
  1152. package/app/.next/static/chunks/app/api/settings/database/selective/route-9ed8f7909a84e383.js +0 -1
  1153. package/app/.next/static/chunks/app/api/settings/proxy-test/route-9ed8f7909a84e383.js +0 -1
  1154. package/app/.next/static/chunks/app/api/settings/require-login/route-9ed8f7909a84e383.js +0 -1
  1155. package/app/.next/static/chunks/app/api/settings/route-9ed8f7909a84e383.js +0 -1
  1156. package/app/.next/static/chunks/app/api/shutdown/route-9ed8f7909a84e383.js +0 -1
  1157. package/app/.next/static/chunks/app/api/tags/route-9ed8f7909a84e383.js +0 -1
  1158. package/app/.next/static/chunks/app/api/translator/console-logs/route-9ed8f7909a84e383.js +0 -1
  1159. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-9ed8f7909a84e383.js +0 -1
  1160. package/app/.next/static/chunks/app/api/translator/load/route-9ed8f7909a84e383.js +0 -1
  1161. package/app/.next/static/chunks/app/api/translator/save/route-9ed8f7909a84e383.js +0 -1
  1162. package/app/.next/static/chunks/app/api/translator/send/route-9ed8f7909a84e383.js +0 -1
  1163. package/app/.next/static/chunks/app/api/translator/translate/route-9ed8f7909a84e383.js +0 -1
  1164. package/app/.next/static/chunks/app/api/tunnel/disable/route-9ed8f7909a84e383.js +0 -1
  1165. package/app/.next/static/chunks/app/api/tunnel/enable/route-9ed8f7909a84e383.js +0 -1
  1166. package/app/.next/static/chunks/app/api/tunnel/status/route-9ed8f7909a84e383.js +0 -1
  1167. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-9ed8f7909a84e383.js +0 -1
  1168. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-9ed8f7909a84e383.js +0 -1
  1169. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-9ed8f7909a84e383.js +0 -1
  1170. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-9ed8f7909a84e383.js +0 -1
  1171. package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-9ed8f7909a84e383.js +0 -1
  1172. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-9ed8f7909a84e383.js +0 -1
  1173. package/app/.next/static/chunks/app/api/usage/chart/route-9ed8f7909a84e383.js +0 -1
  1174. package/app/.next/static/chunks/app/api/usage/history/route-9ed8f7909a84e383.js +0 -1
  1175. package/app/.next/static/chunks/app/api/usage/logs/route-9ed8f7909a84e383.js +0 -1
  1176. package/app/.next/static/chunks/app/api/usage/providers/route-9ed8f7909a84e383.js +0 -1
  1177. package/app/.next/static/chunks/app/api/usage/report/route-9ed8f7909a84e383.js +0 -1
  1178. package/app/.next/static/chunks/app/api/usage/request-details/route-9ed8f7909a84e383.js +0 -1
  1179. package/app/.next/static/chunks/app/api/usage/request-logs/route-9ed8f7909a84e383.js +0 -1
  1180. package/app/.next/static/chunks/app/api/usage/stats/route-9ed8f7909a84e383.js +0 -1
  1181. package/app/.next/static/chunks/app/api/usage/stream/route-9ed8f7909a84e383.js +0 -1
  1182. package/app/.next/static/chunks/app/api/v1/api/chat/route-9ed8f7909a84e383.js +0 -1
  1183. package/app/.next/static/chunks/app/api/v1/audio/speech/route-9ed8f7909a84e383.js +0 -1
  1184. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-9ed8f7909a84e383.js +0 -1
  1185. package/app/.next/static/chunks/app/api/v1/audio/voices/route-9ed8f7909a84e383.js +0 -1
  1186. package/app/.next/static/chunks/app/api/v1/chat/completions/route-9ed8f7909a84e383.js +0 -1
  1187. package/app/.next/static/chunks/app/api/v1/embeddings/route-9ed8f7909a84e383.js +0 -1
  1188. package/app/.next/static/chunks/app/api/v1/images/generations/route-9ed8f7909a84e383.js +0 -1
  1189. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-9ed8f7909a84e383.js +0 -1
  1190. package/app/.next/static/chunks/app/api/v1/messages/route-9ed8f7909a84e383.js +0 -1
  1191. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-9ed8f7909a84e383.js +0 -1
  1192. package/app/.next/static/chunks/app/api/v1/models/info/route-9ed8f7909a84e383.js +0 -1
  1193. package/app/.next/static/chunks/app/api/v1/models/route-9ed8f7909a84e383.js +0 -1
  1194. package/app/.next/static/chunks/app/api/v1/responses/compact/route-9ed8f7909a84e383.js +0 -1
  1195. package/app/.next/static/chunks/app/api/v1/responses/route-9ed8f7909a84e383.js +0 -1
  1196. package/app/.next/static/chunks/app/api/v1/route-9ed8f7909a84e383.js +0 -1
  1197. package/app/.next/static/chunks/app/api/v1/search/route-9ed8f7909a84e383.js +0 -1
  1198. package/app/.next/static/chunks/app/api/v1/web/fetch/route-9ed8f7909a84e383.js +0 -1
  1199. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-9ed8f7909a84e383.js +0 -1
  1200. package/app/.next/static/chunks/app/api/v1beta/models/route-9ed8f7909a84e383.js +0 -1
  1201. package/app/.next/static/chunks/app/api/version/route-9ed8f7909a84e383.js +0 -1
  1202. package/app/.next/static/chunks/app/api/version/shutdown/route-9ed8f7909a84e383.js +0 -1
  1203. package/app/.next/static/chunks/app/api/version/update/route-9ed8f7909a84e383.js +0 -1
  1204. package/app/.next/static/chunks/app/landing/page-cc37244748faf1e0.js +0 -1
  1205. package/app/.next/static/chunks/app/login/page-8c5c8f2f058d5e2f.js +0 -1
  1206. package/app/.next/static/chunks/app/manifest.webmanifest/route-9ed8f7909a84e383.js +0 -1
  1207. package/app/.next/static/chunks/app/page-9ed8f7909a84e383.js +0 -1
  1208. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-9ed8f7909a84e383.js +0 -1
  1209. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-9ed8f7909a84e383.js +0 -1
  1210. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-9ed8f7909a84e383.js +0 -1
  1211. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-9ed8f7909a84e383.js +0 -1
  1212. package/app/.next/static/css/79e49d401b07510e.css +0 -1
  1213. package/app/open-sse/executors/qwen.js +0 -129
  1214. package/app/open-sse/providers/registry/kimi-coding.js +0 -65
  1215. package/app/open-sse/providers/registry/qwen.js +0 -33
  1216. package/app/open-sse/utils/claudeHeaderCache.js +0 -70
  1217. /package/app/.next/static/{4eHcO0iL_6PDYZfGNLlqJ → zErBl-HUgBtz1iz9LeFt5}/_ssgManifest.js +0 -0
@@ -0,0 +1,847 @@
1
+ /**
2
+ * DevinCliExecutor — routes completions through the official Devin CLI binary
3
+ * via the Agent Client Protocol (ACP) JSON-RPC 2.0 over stdio.
4
+ *
5
+ * Protocol flow:
6
+ * 1. Spawn `devin acp` (default agent = full built-in tools: fs/shell/search).
7
+ * Set CLI_DEVIN_AGENT_TYPE=summarizer for a tool-less, text-only mode.
8
+ * 2. Send: initialize → session/new (with model + cwd + mcpServers) → session/prompt.
9
+ * 3. Receive: session/update notifications (agent_message_chunk = reply text,
10
+ * tool_call/tool_call_update = built-in tool invocations, surfaced as text).
11
+ * When devin calls a client-tool from the exposed MCP ("Calling mcp_X from
12
+ * clientTools"), it is bridged to an OpenAI tool_use and the turn ends.
13
+ * 4. Emit deltas as OpenAI-compatible SSE chunks.
14
+ * 5. Kill subprocess on _cognition.ai/agent_stopped or error.
15
+ *
16
+ * Auth: noAuth — the subprocess inherits the parent env and uses credentials
17
+ * stored by `devin auth login` (~/.local/share/devin/credentials.toml).
18
+ *
19
+ * Binary discovery: CLI_DEVIN_BIN env → PATH lookup → platform installer paths.
20
+ */
21
+
22
+ import { spawn } from "node:child_process";
23
+ import path from "node:path";
24
+ import os from "node:os";
25
+ import fs from "node:fs";
26
+ import { BaseExecutor } from "./base.js";
27
+
28
+ // ─── Binary discovery ────────────────────────────────────────────────────────
29
+
30
+ function resolveDevinBin() {
31
+ // 1. Explicit override
32
+ const envBin = process.env.CLI_DEVIN_BIN?.trim();
33
+ if (envBin) return envBin;
34
+
35
+ const isWin = process.platform === "win32";
36
+ const home = os.homedir();
37
+
38
+ // 2. Known installer / package-manager locations. spawn uses shell:false on
39
+ // macOS/Linux, so process.env.PATH alone may miss ~/.local/bin, Homebrew,
40
+ // Scoop, etc. when the server runs detached (tray/daemon/launchd) without
41
+ // a login shell — probe these explicitly before falling back to PATH.
42
+ const candidates = isWin
43
+ ? [
44
+ // Official installer: %LOCALAPPDATA%\devin\cli\bin\devin.exe
45
+ path.join(process.env.LOCALAPPDATA || path.join(home, "AppData", "Local"), "devin", "cli", "bin", "devin.exe"),
46
+ path.join(home, ".local", "bin", "devin.exe"),
47
+ path.join(home, "scoop", "shims", "devin.exe"),
48
+ path.join(process.env.LOCALAPPDATA || path.join(home, "AppData", "Local"), "Programs", "devin", "devin.exe"),
49
+ ]
50
+ : [
51
+ path.join(home, ".local", "share", "devin", "bin", "devin"),
52
+ path.join(home, ".devin", "bin", "devin"),
53
+ path.join(home, ".local", "bin", "devin"), // pipx / user install
54
+ "/opt/homebrew/bin/devin", // Homebrew (Apple Silicon)
55
+ "/usr/local/bin/devin", // Homebrew (Intel) / manual
56
+ "/usr/bin/devin",
57
+ ];
58
+ for (const candidate of candidates) {
59
+ if (fs.existsSync(candidate)) return candidate;
60
+ }
61
+
62
+ // 3. Fallback — rely on process.env.PATH
63
+ return isWin ? "devin.exe" : "devin";
64
+ }
65
+
66
+ // ─── ACP JSON-RPC helper ────────────────────────────────────────────────────
67
+
68
+ function rpc(method, params, id) {
69
+ const msg = { jsonrpc: "2.0", method, params };
70
+ if (id !== undefined) msg.id = id;
71
+ return JSON.stringify(msg) + "\n";
72
+ }
73
+
74
+ // ─── Client-tools → MCP bridge ───────────────────────────────────────────────
75
+ // devin only invokes built-in + MCP tools, not OpenAI function-calling schemas.
76
+ // body.tools are exposed as a stdio MCP server "clientTools" so devin can call
77
+ // them. When devin calls one, we emit OpenAI tool_use and end the turn; the
78
+ // client executes and returns tool_result on the next request. That next request
79
+ // re-spawns with the full history (including tool_calls + tool results) and
80
+ // seeds the MCP server with those results so a re-call gets the real data.
81
+ // Tool schemas via DEVIN_MCP_TOOLS; prior results via DEVIN_MCP_RESULTS.
82
+
83
+ const CLIENT_TOOLS_MCP_SCRIPT = `
84
+ import readline from "node:readline";
85
+ const TOOLS = JSON.parse(process.env.DEVIN_MCP_TOOLS || "[]");
86
+ const RESULTS = JSON.parse(process.env.DEVIN_MCP_RESULTS || "{}");
87
+ const rl = readline.createInterface({ input: process.stdin });
88
+ function send(o){ process.stdout.write(JSON.stringify(o) + "\\n"); }
89
+ rl.on("line", (line) => {
90
+ let m; try { m = JSON.parse(line); } catch { return; }
91
+ if (m.method === "initialize") {
92
+ send({ jsonrpc: "2.0", id: m.id, result: { protocolVersion: "2024-11-05", capabilities: { tools: {} }, serverInfo: { name: "clientTools", version: "1.0" } } });
93
+ } else if (m.method === "tools/list") {
94
+ send({ jsonrpc: "2.0", id: m.id, result: { tools: TOOLS } });
95
+ } else if (m.method === "tools/call") {
96
+ const name = m.params?.name || "";
97
+ const seeded = RESULTS[name];
98
+ const text = seeded !== undefined
99
+ ? String(seeded)
100
+ : "(awaiting client tool_result)";
101
+ process.stderr.write("[client-tools] tool_call name=" + name + " seeded=" + (seeded !== undefined) + "\\n");
102
+ send({ jsonrpc: "2.0", id: m.id, result: { content: [{ type: "text", text }] } });
103
+ }
104
+ });
105
+ `.trimStart();
106
+
107
+ function ensureClientToolsScript() {
108
+ const scriptPath = path.join(os.tmpdir(), "9router-devin-client-tools.mjs");
109
+ // Always rewrite so script upgrades land without a process restart.
110
+ fs.writeFileSync(scriptPath, CLIENT_TOOLS_MCP_SCRIPT);
111
+ return scriptPath;
112
+ }
113
+
114
+ // Map OpenAI tools ([{type:"function",function:{name,description,parameters}}])
115
+ // to MCP tool declarations ([{name,description,inputSchema}]).
116
+ // devin only discovers MCP tools whose name carries the `mcp_` prefix, so we
117
+ // add it here and strip it back when bridging the call to the client.
118
+ const MCP_TOOL_PREFIX = "mcp_";
119
+ function toMcpToolName(name) {
120
+ return name.startsWith(MCP_TOOL_PREFIX) ? name : MCP_TOOL_PREFIX + name;
121
+ }
122
+ function fromMcpToolName(name) {
123
+ return name.startsWith(MCP_TOOL_PREFIX) ? name.slice(MCP_TOOL_PREFIX.length) : name;
124
+ }
125
+
126
+ function buildClientToolsMcp(tools, resultMap) {
127
+ const mcpTools = [];
128
+ for (const t of tools) {
129
+ if (!t) continue;
130
+ const f = t.function || t;
131
+ if (!f?.name) continue;
132
+ mcpTools.push({
133
+ name: toMcpToolName(f.name),
134
+ description: f.description || "",
135
+ inputSchema: f.parameters || f.input_schema || { type: "object", properties: {} },
136
+ });
137
+ }
138
+ if (!mcpTools.length) return null;
139
+ const env = { DEVIN_MCP_TOOLS: JSON.stringify(mcpTools) };
140
+ if (resultMap && Object.keys(resultMap).length) {
141
+ env.DEVIN_MCP_RESULTS = JSON.stringify(resultMap);
142
+ }
143
+ return {
144
+ command: process.execPath,
145
+ args: [ensureClientToolsScript()],
146
+ env,
147
+ };
148
+ }
149
+
150
+ // Extract tool_result content keyed by MCP tool name (mcp_<original>).
151
+ // Walks messages: assistant.tool_calls id→name, role=tool tool_call_id→content.
152
+ function extractClientToolResults(messages) {
153
+ const idToMcpName = new Map();
154
+ const results = {};
155
+ for (const m of messages) {
156
+ if (m?.role === "assistant" && Array.isArray(m.tool_calls)) {
157
+ for (const tc of m.tool_calls) {
158
+ const name = tc?.function?.name || tc?.name;
159
+ if (tc?.id && name) idToMcpName.set(tc.id, toMcpToolName(name));
160
+ }
161
+ }
162
+ // Claude-style tool_use blocks in content
163
+ if (m?.role === "assistant" && Array.isArray(m.content)) {
164
+ for (const b of m.content) {
165
+ if (b?.type === "tool_use" && b.id && b.name) {
166
+ idToMcpName.set(b.id, toMcpToolName(b.name));
167
+ }
168
+ }
169
+ }
170
+ if (m?.role === "tool" && m.tool_call_id) {
171
+ const mcpName = idToMcpName.get(m.tool_call_id);
172
+ if (mcpName) {
173
+ results[mcpName] =
174
+ typeof m.content === "string" ? m.content : JSON.stringify(m.content ?? "");
175
+ }
176
+ }
177
+ // Claude-style tool_result blocks in user content
178
+ if (m?.role === "user" && Array.isArray(m.content)) {
179
+ for (const b of m.content) {
180
+ if (b?.type === "tool_result" && b.tool_use_id) {
181
+ const mcpName = idToMcpName.get(b.tool_use_id);
182
+ if (mcpName) {
183
+ const c = b.content;
184
+ results[mcpName] =
185
+ typeof c === "string" ? c : JSON.stringify(c ?? "");
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ return results;
192
+ }
193
+
194
+ // Resolve workspace cwd from client request (Codex/CLI env context, body fields).
195
+ // Prefer an absolute existing path so agent file tools hit the user's project
196
+ // instead of os.tmpdir() (which made relative create/delete inconsistent).
197
+ function resolveWorkspaceCwd(body) {
198
+ const candidates = [];
199
+ const push = (v) => {
200
+ if (typeof v === "string" && v.trim()) candidates.push(v.trim());
201
+ };
202
+ push(body?.cwd);
203
+ push(body?.working_directory);
204
+ push(body?.workdir);
205
+ push(body?.workspace);
206
+ push(body?.metadata?.cwd);
207
+ push(body?.metadata?.working_directory);
208
+
209
+ const scanText = (text) => {
210
+ if (typeof text !== "string") return;
211
+ for (const m of text.matchAll(/<cwd>\s*([^<]+?)\s*<\/cwd>/gi)) push(m[1]);
212
+ };
213
+ const scanMessages = (msgs) => {
214
+ if (!Array.isArray(msgs)) return;
215
+ for (const msg of msgs) {
216
+ if (!msg) continue;
217
+ if (typeof msg.content === "string") scanText(msg.content);
218
+ else if (Array.isArray(msg.content)) {
219
+ for (const p of msg.content) {
220
+ if (typeof p === "string") scanText(p);
221
+ else if (p && typeof p === "object") {
222
+ scanText(p.text);
223
+ scanText(p.input_text);
224
+ scanText(p.content);
225
+ }
226
+ }
227
+ }
228
+ // Responses API input items
229
+ if (typeof msg === "string") scanText(msg);
230
+ if (msg.type === "message" && Array.isArray(msg.content)) {
231
+ for (const p of msg.content) scanText(p?.text || p?.input_text);
232
+ }
233
+ }
234
+ };
235
+ scanMessages(body?.messages);
236
+ scanMessages(body?.input);
237
+
238
+ for (const c of candidates) {
239
+ try {
240
+ if (path.isAbsolute(c) && fs.existsSync(c) && fs.statSync(c).isDirectory()) {
241
+ return c;
242
+ }
243
+ } catch {
244
+ /* ignore */
245
+ }
246
+ }
247
+ return os.tmpdir();
248
+ }
249
+
250
+ // ─── Multi-turn message → single prompt builder ─────────────────────────────
251
+
252
+ function buildPromptText(messages) {
253
+ // Inline the whole conversation so the model has full context, including
254
+ // prior tool_calls / tool_results so it can continue after a client round-trip.
255
+ const lines = [];
256
+ for (const m of messages) {
257
+ const role = String(m.role || "user");
258
+ let text = "";
259
+ if (typeof m.content === "string") {
260
+ text = m.content;
261
+ } else if (Array.isArray(m.content)) {
262
+ for (const p of m.content) {
263
+ if (!p || typeof p !== "object") continue;
264
+ if (p.type === "text") text += String(p.text || "");
265
+ else if (p.type === "tool_use") {
266
+ text += `\n[Tool call ${p.name} id=${p.id}]\n${JSON.stringify(p.input ?? {})}\n`;
267
+ } else if (p.type === "tool_result") {
268
+ const c =
269
+ typeof p.content === "string" ? p.content : JSON.stringify(p.content ?? "");
270
+ text += `\n[Tool result id=${p.tool_use_id}]\n${c}\n`;
271
+ }
272
+ }
273
+ }
274
+ // OpenAI tool_calls on assistant messages
275
+ if (role === "assistant" && Array.isArray(m.tool_calls) && m.tool_calls.length) {
276
+ const parts = m.tool_calls.map((tc) => {
277
+ const name = tc.function?.name || tc.name || "tool";
278
+ const args = tc.function?.arguments ?? tc.arguments ?? {};
279
+ const argStr = typeof args === "string" ? args : JSON.stringify(args);
280
+ return `[Tool call ${name} id=${tc.id}]\n${argStr}`;
281
+ });
282
+ text = [text, ...parts].filter(Boolean).join("\n\n");
283
+ }
284
+ // OpenAI role=tool messages
285
+ if (role === "tool") {
286
+ const c = typeof m.content === "string" ? m.content : JSON.stringify(m.content ?? "");
287
+ text = `[Tool result id=${m.tool_call_id || ""}]\n${c}`;
288
+ }
289
+ if (!text.trim()) continue;
290
+ if (role === "system") {
291
+ lines.push(`[System]\n${text}`);
292
+ } else if (role === "assistant") {
293
+ lines.push(`[Assistant]\n${text}`);
294
+ } else if (role === "tool") {
295
+ lines.push(`[Tool]\n${text}`);
296
+ } else {
297
+ lines.push(`[User]\n${text}`);
298
+ }
299
+ }
300
+ return lines.join("\n\n") || "(empty)";
301
+ }
302
+
303
+ // ─── DevinCliExecutor ─────────────────────────────────────────────────────────
304
+
305
+ export class DevinCliExecutor extends BaseExecutor {
306
+ constructor() {
307
+ super("devin-cli", { id: "devin-cli", baseUrl: "devin://acp/stdio" });
308
+ }
309
+
310
+ buildUrl() {
311
+ return "devin://acp/stdio";
312
+ }
313
+
314
+ buildHeaders() {
315
+ return {};
316
+ }
317
+
318
+ transformRequest() {
319
+ return null;
320
+ }
321
+
322
+ async execute({ model, body, credentials, signal, log }) {
323
+ const b = body ?? {};
324
+ const messages = Array.isArray(b.messages)
325
+ ? b.messages
326
+ : Array.isArray(b.input)
327
+ ? b.input
328
+ : [];
329
+ const promptText = buildPromptText(messages);
330
+ const workspaceCwd = resolveWorkspaceCwd(b);
331
+ const devinBin = resolveDevinBin();
332
+
333
+ log?.info?.(
334
+ "DEVIN",
335
+ `devin acp → model=${model}, bin=${devinBin}, cwd=${workspaceCwd}`
336
+ );
337
+
338
+ // Optional MCP servers via DEVIN_MCP_SERVERS (JSON object, devin config format):
339
+ // {"echo":{"command":"/abs/node","args":["/srv/echo.js"],"env":{"K":"V"}}}
340
+ // Plus body.tools (OpenAI schema) → exposed as a "clientTools" MCP
341
+ // server so devin can invoke client-defined tools (bridged back in Phase 2).
342
+ // When any are present, a throwaway XDG_CONFIG_HOME holds devin/config.json so
343
+ // the agent auto-connects them (session/new mcpServers alone doesn't spawn
344
+ // them — see ACP mcp/connect, still unstable). Cleaned up on finish.
345
+ // NOTE: this replaces the user's global devin MCP config for the subprocess.
346
+ let mcpConfigDir = null;
347
+ const mcpServers = {};
348
+ const mcpJson = process.env.DEVIN_MCP_SERVERS?.trim();
349
+ if (mcpJson) {
350
+ try {
351
+ Object.assign(mcpServers, JSON.parse(mcpJson));
352
+ } catch (e) {
353
+ log?.info?.("DEVIN", `DEVIN_MCP_SERVERS parse failed: ${e.message}`);
354
+ }
355
+ }
356
+ const clientTools = Array.isArray(b.tools) ? b.tools.filter(Boolean) : [];
357
+ const clientToolResults = extractClientToolResults(messages);
358
+ const clientToolsMcp = buildClientToolsMcp(clientTools, clientToolResults);
359
+ const hasClientTools = !!clientToolsMcp;
360
+ if (clientToolsMcp) {
361
+ mcpServers["clientTools"] = clientToolsMcp;
362
+ const seeded = Object.keys(clientToolResults).length;
363
+ log?.info?.(
364
+ "DEVIN",
365
+ `exposing ${clientTools.length} client tool(s) as MCP` +
366
+ (seeded ? ` (seeded ${seeded} result(s))` : "")
367
+ );
368
+ }
369
+ if (Object.keys(mcpServers).length) {
370
+ try {
371
+ mcpConfigDir = fs.mkdtempSync(path.join(os.tmpdir(), "devin-mcp-"));
372
+ const cfgDev = path.join(mcpConfigDir, "devin");
373
+ fs.mkdirSync(cfgDev, { recursive: true });
374
+ fs.writeFileSync(
375
+ path.join(cfgDev, "config.json"),
376
+ JSON.stringify({ mcpServers })
377
+ );
378
+ log?.info?.("DEVIN", `mcp config written → ${mcpConfigDir}`);
379
+ } catch (e) {
380
+ log?.info?.("DEVIN", `mcp config write failed: ${e.message}`);
381
+ mcpConfigDir = null;
382
+ }
383
+ }
384
+ const cleanupMcp = () => {
385
+ if (!mcpConfigDir) return;
386
+ try {
387
+ fs.rmSync(mcpConfigDir, { recursive: true, force: true });
388
+ } catch {
389
+ /* ignore */
390
+ }
391
+ mcpConfigDir = null;
392
+ };
393
+
394
+ const sseStream = new ReadableStream({
395
+ start(controller) {
396
+ const enc = new TextEncoder();
397
+ const emit = (data) => controller.enqueue(enc.encode(data));
398
+
399
+ // Inherit the parent environment so devin resolves stored CLI credentials
400
+ // (~/.local/share/devin/credentials.toml from `devin auth login`). Do NOT
401
+ // inject WINDSURF_API_KEY: this provider is noAuth, and a bogus/leaked key
402
+ // overrides stored creds and makes devin return -32000 "invalid api key".
403
+ const env = { ...process.env };
404
+ // Auto-approve tool execution so the agent doesn't block waiting for a
405
+ // session/request_permission response we never send (default mode would
406
+ // hang the stream on the first shell/exec tool call). Override via env.
407
+ // WARNING: bypass lets the agent run shell/modify FS unattended — local only.
408
+ env.DEVIN_PERMISSION_MODE = process.env.DEVIN_PERMISSION_MODE || "bypass";
409
+ if (mcpConfigDir) env.XDG_CONFIG_HOME = mcpConfigDir;
410
+
411
+ // Agent type: default (omitted) = full agent with built-in tools
412
+ // (fs/shell/search) so the model can actually perform tasks. Override to
413
+ // `summarizer` (no tools, text-only) via CLI_DEVIN_AGENT_TYPE for a safer,
414
+ // tool-less mode. WARNING: the default agent can run shell commands and
415
+ // modify the filesystem on the host running 9router — only expose locally.
416
+ const agentType = process.env.CLI_DEVIN_AGENT_TYPE?.trim();
417
+ const acpArgs = ["acp"];
418
+ if (agentType) acpArgs.push("--agent-type", agentType);
419
+
420
+ // Spawn in the client workspace cwd (from <cwd> env context) so built-in
421
+ // file tools create/delete relative paths in the user's project.
422
+ // MCP config still comes from XDG_CONFIG_HOME (throwaway), not project .devin/.
423
+ const child = spawn(devinBin, acpArgs, {
424
+ env,
425
+ cwd: workspaceCwd,
426
+ stdio: ["pipe", "pipe", "pipe"],
427
+ // On Windows, devin.exe may need shell resolution
428
+ shell: process.platform === "win32",
429
+ });
430
+
431
+ let spawnError = null;
432
+ let stdinClosed = false;
433
+
434
+ child.on("error", (err) => {
435
+ spawnError = err;
436
+ const msg =
437
+ err.message.includes("ENOENT") || err.message.includes("not found")
438
+ ? `Devin CLI not found: ${devinBin}. Install via https://cli.devin.ai or set CLI_DEVIN_BIN env var.`
439
+ : `Devin CLI spawn error: ${err.message}`;
440
+ emit(
441
+ `data: ${JSON.stringify({ error: { message: msg, type: "devin_cli_error", code: "spawn_failed" } })}\n\n`
442
+ );
443
+ emit("data: [DONE]\n\n");
444
+ controller.close();
445
+ });
446
+
447
+ if (signal) {
448
+ signal.addEventListener("abort", () => {
449
+ if (!child.killed) child.kill("SIGTERM");
450
+ });
451
+ }
452
+
453
+ // ── JSON-RPC state machine ──────────────────────────────────────────
454
+ let idCounter = 1;
455
+ let sessionId = null;
456
+ let initDone = false;
457
+ let sessionCreated = false;
458
+ let promptSent = false;
459
+ const responseId = `chatcmpl-devin-${Date.now()}`;
460
+ const created = Math.floor(Date.now() / 1000);
461
+ let roleEmitted = false;
462
+ let totalText = "";
463
+ let finished = false;
464
+
465
+ const sendRpc = (method, params) => {
466
+ if (stdinClosed || child.stdin.destroyed) return;
467
+ const id = idCounter++;
468
+ try {
469
+ child.stdin.write(rpc(method, params, id));
470
+ } catch {
471
+ /* ignore write errors after close */
472
+ }
473
+ return id;
474
+ };
475
+
476
+ // Emit a content delta as an OpenAI-compatible SSE chunk (handles the
477
+ // leading role chunk once).
478
+ const emitDelta = (delta) => {
479
+ if (!roleEmitted) {
480
+ emit(
481
+ `data: ${JSON.stringify({
482
+ id: responseId,
483
+ object: "chat.completion.chunk",
484
+ created,
485
+ model,
486
+ choices: [{ index: 0, delta: { role: "assistant", content: "" }, finish_reason: null }],
487
+ })}\n\n`
488
+ );
489
+ roleEmitted = true;
490
+ }
491
+ totalText += delta;
492
+ emit(
493
+ `data: ${JSON.stringify({
494
+ id: responseId,
495
+ object: "chat.completion.chunk",
496
+ created,
497
+ model,
498
+ choices: [{ index: 0, delta: { content: delta }, finish_reason: null }],
499
+ })}\n\n`
500
+ );
501
+ };
502
+
503
+ // Emit an OpenAI tool_call delta (function calling). Ends the turn with
504
+ // finish_reason "tool_calls" so the client executes and returns tool_result.
505
+ let toolUseEmitted = false;
506
+ // ACP tool_call is upsert-by-id: the first event has title, a later update
507
+ // may only carry rawInput (title omitted). Track pending client-tool calls.
508
+ const pendingClientTools = new Map(); // toolCallId → original tool name
509
+ const emitToolUse = (toolName, args, toolCallId) => {
510
+ const argsStr = typeof args === "string" ? args : JSON.stringify(args ?? {});
511
+ if (!roleEmitted) {
512
+ emit(
513
+ `data: ${JSON.stringify({
514
+ id: responseId,
515
+ object: "chat.completion.chunk",
516
+ created,
517
+ model,
518
+ choices: [{ index: 0, delta: { role: "assistant", content: null }, finish_reason: null }],
519
+ })}\n\n`
520
+ );
521
+ roleEmitted = true;
522
+ }
523
+ emit(
524
+ `data: ${JSON.stringify({
525
+ id: responseId,
526
+ object: "chat.completion.chunk",
527
+ created,
528
+ model,
529
+ choices: [
530
+ {
531
+ index: 0,
532
+ delta: {
533
+ tool_calls: [
534
+ {
535
+ index: 0,
536
+ id: toolCallId,
537
+ type: "function",
538
+ function: { name: toolName, arguments: argsStr },
539
+ },
540
+ ],
541
+ },
542
+ finish_reason: null,
543
+ },
544
+ ],
545
+ })}\n\n`
546
+ );
547
+ };
548
+
549
+ const finish = (error, finishReason = "stop") => {
550
+ if (finished) return;
551
+ finished = true;
552
+
553
+ if (error) {
554
+ emit(
555
+ `data: ${JSON.stringify({ error: { message: error, type: "devin_cli_error" } })}\n\n`
556
+ );
557
+ } else {
558
+ // Emit finish chunk
559
+ emit(
560
+ `data: ${JSON.stringify({
561
+ id: responseId,
562
+ object: "chat.completion.chunk",
563
+ created,
564
+ model,
565
+ choices: [{ index: 0, delta: {}, finish_reason: finishReason }],
566
+ usage: {
567
+ prompt_tokens: Math.ceil(promptText.length / 4),
568
+ completion_tokens: Math.ceil(totalText.length / 4),
569
+ total_tokens: Math.ceil((promptText.length + totalText.length) / 4),
570
+ estimated: true,
571
+ },
572
+ })}\n\n`
573
+ );
574
+ }
575
+ emit("data: [DONE]\n\n");
576
+
577
+ // Gracefully close stdin → devin will exit
578
+ try {
579
+ if (!stdinClosed) {
580
+ stdinClosed = true;
581
+ child.stdin.end();
582
+ }
583
+ } catch {
584
+ /* ignore */
585
+ }
586
+
587
+ // Give it 2s to exit cleanly, then SIGKILL
588
+ const killTimer = setTimeout(() => {
589
+ if (!child.killed) child.kill("SIGKILL");
590
+ }, 2000);
591
+ killTimer.unref?.();
592
+
593
+ controller.close();
594
+ cleanupMcp();
595
+ };
596
+
597
+ // ── stdout reader (NDJSON) ──────────────────────────────────────────
598
+ let buffer = "";
599
+
600
+ child.stdout.on("data", (chunk) => {
601
+ buffer += chunk.toString("utf8");
602
+ let nl;
603
+ // Each ACP message is a newline-terminated JSON line
604
+ while ((nl = buffer.indexOf("\n")) !== -1) {
605
+ const line = buffer.slice(0, nl).trim();
606
+ buffer = buffer.slice(nl + 1);
607
+ if (!line) continue;
608
+
609
+ let msg;
610
+ try {
611
+ msg = JSON.parse(line);
612
+ } catch {
613
+ continue; // ignore non-JSON lines (banner text, etc.)
614
+ }
615
+
616
+ // ── Initialize response ───────────────────────────────────────
617
+ if (!initDone && msg.result !== undefined && !msg.method) {
618
+ initDone = true;
619
+ // Create session with the client workspace cwd so agent file tools
620
+ // resolve relative paths against the project (not /tmp).
621
+ // `mcpServers` is required by devin 3000.2.x (must be a sequence);
622
+ // omitting it returns -32602 "Invalid params: missing field mcpServers".
623
+ sendRpc("session/new", {
624
+ cwd: workspaceCwd,
625
+ mcpServers: [],
626
+ model: model || undefined,
627
+ });
628
+ continue;
629
+ }
630
+
631
+ // ── session/new response → get sessionId ──────────────────────
632
+ if (initDone && !sessionCreated && msg.result !== undefined && !msg.method) {
633
+ const res = msg.result || {};
634
+ sessionId = res.sessionId || null;
635
+ if (!sessionId) {
636
+ finish("Devin ACP: session/new returned no sessionId");
637
+ return;
638
+ }
639
+ sessionCreated = true;
640
+ // Send the prompt. devin 3000.2.x expects `prompt` (a sequence),
641
+ // not `content` — using `content` returns -32602 "missing field prompt".
642
+ promptSent = true;
643
+ sendRpc("session/prompt", {
644
+ sessionId,
645
+ prompt: [{ type: "text", text: promptText }],
646
+ });
647
+ continue;
648
+ }
649
+
650
+ // ── session/prompt response (ack / final result) ────────────
651
+ if (sessionCreated && promptSent && msg.result !== undefined && !msg.method) {
652
+ // Devin 3000.2.x only resolves session/prompt with the final result
653
+ // (stopReason) after streaming completes. Streaming notifications are
654
+ // handled below; nothing to do here unless we never streamed.
655
+ if (!roleEmitted) {
656
+ const res = msg.result || undefined;
657
+ const content = extractResultText(res);
658
+ if (content) {
659
+ totalText = content;
660
+ emitDelta(content);
661
+ }
662
+ const stopReason = (res && res.stopReason) || "";
663
+ if (stopReason && stopReason !== "cancelled") {
664
+ finish();
665
+ return;
666
+ }
667
+ }
668
+ continue;
669
+ }
670
+
671
+ // ── Permission requests → auto-approve the first allow option ──
672
+ // Devi asks before running shell/exec tools; as a headless proxy we
673
+ // grant once. (DEVIN_PERMISSION_MODE=bypass usually prevents these,
674
+ // but some tool kinds still prompt, so handle them here too.)
675
+ if (msg.method === "session/request_permission" && msg.id !== undefined) {
676
+ const options = msg.params?.options || [];
677
+ const allow =
678
+ options.find((o) => /allow/i.test(String(o.kind || ""))) || options[0];
679
+ if (allow) {
680
+ child.stdin.write(
681
+ JSON.stringify({
682
+ jsonrpc: "2.0",
683
+ id: msg.id,
684
+ result: { outcome: { outcome: "selected", optionId: allow.optionId } },
685
+ }) + "\n"
686
+ );
687
+ }
688
+ continue;
689
+ }
690
+
691
+ // ── Agent stopped notification (devin 3000.2.x stop signal) ───
692
+ if (msg.method === "_cognition.ai/agent_stopped" || msg.method === "$/agent_stopped") {
693
+ const cause = msg.params?.cause;
694
+ if (cause === "error") {
695
+ // devin uses errorMessage on this notification (not message/error).
696
+ const errText =
697
+ msg.params?.errorMessage ||
698
+ msg.params?.message ||
699
+ msg.params?.error ||
700
+ "Devin agent error";
701
+ finish(String(errText));
702
+ } else {
703
+ finish();
704
+ }
705
+ return;
706
+ }
707
+
708
+ // ── Streaming notifications (session/update) ──────────────────
709
+ if (msg.method === "session/update" || msg.method === "$/update") {
710
+ const params = msg.params;
711
+ if (!params) continue;
712
+
713
+ // devin 3000.2.x nests the payload under params.update.sessionUpdate;
714
+ // older devin used a flat params.type.
715
+ const update = params.update || {};
716
+ const type = update.sessionUpdate || params.type;
717
+ const contentField = update.content !== undefined ? update.content : params.content;
718
+ const deltaText =
719
+ typeof contentField === "string"
720
+ ? contentField
721
+ : contentField?.text ?? params.delta ?? params.text ?? "";
722
+
723
+ // ── Client-tool bridge: devin calling a tool from our exposed MCP ──
724
+ // ACP title shape: "Calling mcp_<name> from clientTools".
725
+ // tool_call is upsert-by-id: title may only appear on the first event,
726
+ // rawInput on a later tool_call_update. Track pending ids so we don't
727
+ // require both fields on the same notification.
728
+ if (
729
+ hasClientTools &&
730
+ !toolUseEmitted &&
731
+ (type === "tool_call" || type === "tool_call_update")
732
+ ) {
733
+ const tcId = update.toolCallId;
734
+ if (typeof update.title === "string" && update.title.startsWith("Calling mcp_") && /from clientTools\b/.test(update.title)) {
735
+ const nameMatch = update.title.match(/^Calling (mcp_\S+)\b/);
736
+ const mcpName = nameMatch ? nameMatch[1] : "";
737
+ const origName = fromMcpToolName(mcpName);
738
+ if (tcId && origName) pendingClientTools.set(tcId, origName);
739
+ }
740
+ const origName = tcId ? pendingClientTools.get(tcId) : null;
741
+ if (origName && update.rawInput) {
742
+ toolUseEmitted = true;
743
+ pendingClientTools.delete(tcId);
744
+ emitToolUse(origName, update.rawInput, tcId || `call_${Date.now()}`);
745
+ finish(null, "tool_calls");
746
+ return;
747
+ }
748
+ continue;
749
+ }
750
+
751
+ if (type === "agent_message_chunk" || type === "message_delta" || type === "text_delta" || type === "content_delta") {
752
+ if (deltaText) emitDelta(deltaText);
753
+ } else if (type === "agent_thought_chunk") {
754
+ // Internal reasoning — not surfaced to the client.
755
+ } else if (type === "message_stop" || type === "stop" || type === "done") {
756
+ finish();
757
+ return;
758
+ } else if (type === "error") {
759
+ finish(String(params.message || params.error || "Devin ACP error"));
760
+ return;
761
+ }
762
+ continue;
763
+ }
764
+
765
+ // ── Error responses ───────────────────────────────────────────
766
+ if (msg.error) {
767
+ finish(`Devin ACP error ${msg.error.code}: ${msg.error.message}`);
768
+ return;
769
+ }
770
+ }
771
+ });
772
+
773
+ child.stderr.on("data", (chunk) => {
774
+ log?.debug?.("DEVIN", `stderr: ${chunk.toString("utf8").slice(0, 200)}`);
775
+ });
776
+
777
+ child.on("close", (code) => {
778
+ if (!finished) {
779
+ if (code !== 0 && !spawnError) {
780
+ finish(roleEmitted ? undefined : `Devin CLI exited with code ${code}`);
781
+ } else {
782
+ finish();
783
+ }
784
+ } else {
785
+ cleanupMcp();
786
+ }
787
+ });
788
+
789
+ // ── Send initialize ───────────────────────────────────────────────
790
+ sendRpc("initialize", {
791
+ protocolVersion: "0.3",
792
+ clientInfo: { name: "9router", version: "1.0" },
793
+ capabilities: {},
794
+ });
795
+ },
796
+ });
797
+
798
+ return {
799
+ response: new Response(sseStream, {
800
+ status: 200,
801
+ headers: {
802
+ "Content-Type": "text/event-stream",
803
+ "Cache-Control": "no-cache",
804
+ Connection: "keep-alive",
805
+ },
806
+ }),
807
+ url: "devin://acp/stdio",
808
+ headers: {},
809
+ transformedBody: {
810
+ model,
811
+ cwd: workspaceCwd,
812
+ clientTools: clientTools.map((t) => t?.function?.name || t?.name).filter(Boolean),
813
+ clientToolResults: Object.keys(clientToolResults),
814
+ mcpServers: Object.keys(mcpServers),
815
+ promptLength: Array.isArray(body?.messages)
816
+ ? body.messages.length
817
+ : Array.isArray(body?.input)
818
+ ? body.input.length
819
+ : 0,
820
+ },
821
+ };
822
+ }
823
+ }
824
+
825
+ // ─── Helpers ─────────────────────────────────────────────────────────────────
826
+
827
+ // Extract text from a final ACP session/prompt result object across common shapes.
828
+ function extractResultText(result) {
829
+ // { message: { content: "..." } }
830
+ // { messages: [{ content: "..." }] }
831
+ // { content: "..." }
832
+ // { text: "..." }
833
+ if (typeof result.content === "string") return result.content;
834
+ if (typeof result.text === "string") return result.text;
835
+ const msg = result.message;
836
+ if (msg && typeof msg.content === "string") return msg.content;
837
+ const msgs = result.messages;
838
+ if (Array.isArray(msgs)) {
839
+ return msgs
840
+ .filter((m) => m.role === "assistant")
841
+ .map((m) => String(m.content || ""))
842
+ .join("\n");
843
+ }
844
+ return "";
845
+ }
846
+
847
+ export default DevinCliExecutor;