n9router 0.4.59 → 0.4.61

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 (1063) hide show
  1. package/app/.next/BUILD_ID +1 -1
  2. package/app/.next/app-path-routes-manifest.json +15 -13
  3. package/app/.next/build-manifest.json +2 -2
  4. package/app/.next/prerender-manifest.json +3 -3
  5. package/app/.next/routes-manifest.json +12 -0
  6. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  7. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  8. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  10. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  13. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  16. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  17. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  18. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  19. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  20. package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  21. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  22. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  23. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  24. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  25. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  26. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  27. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  28. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  29. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  30. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  31. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  32. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  33. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  34. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  35. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  36. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  37. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  38. package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  39. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  40. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  41. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  42. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  43. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  44. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  45. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  46. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  47. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  48. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  49. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  50. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  51. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  52. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  53. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  54. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  55. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  56. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  57. package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  58. package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  59. package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  60. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  61. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  62. package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  63. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  64. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  65. package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  66. package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  67. package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  68. package/app/.next/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  69. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  70. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  71. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  72. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +3 -3
  73. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  74. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  75. package/app/.next/server/app/_global-error/page.js +3 -3
  76. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  77. package/app/.next/server/app/_global-error.html +1 -1
  78. package/app/.next/server/app/_global-error.rsc +1 -1
  79. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  80. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  81. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  82. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  83. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  84. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  85. package/app/.next/server/app/_not-found/page.js +2 -2
  86. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  87. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  88. package/app/.next/server/app/_not-found.html +1 -1
  89. package/app/.next/server/app/_not-found.rsc +3 -3
  90. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  91. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  92. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  93. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  94. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  95. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  96. package/app/.next/server/app/api/antigravity-app/route.js +1 -1
  97. package/app/.next/server/app/api/antigravity-app-v2/route.js +1 -1
  98. package/app/.next/server/app/api/antigravity-ide/route.js +1 -1
  99. package/app/.next/server/app/api/antigravity-targets/route.js +1 -1
  100. package/app/.next/server/app/api/antigravity-tools/import/route.js +1 -1
  101. package/app/.next/server/app/api/antigravity-tools/import/route.js.nft.json +1 -1
  102. package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js +1 -1
  103. package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js.nft.json +1 -1
  104. package/app/.next/server/app/api/auth/login/route.js +1 -1
  105. package/app/.next/server/app/api/auth/logout/route.js +1 -1
  106. package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
  107. package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
  108. package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
  109. package/app/.next/server/app/api/auth/reset-password/route.js +1 -1
  110. package/app/.next/server/app/api/auth/saml/acs/route.js +1 -1
  111. package/app/.next/server/app/api/auth/saml/metadata/route.js +1 -1
  112. package/app/.next/server/app/api/auth/saml/start/route.js +1 -1
  113. package/app/.next/server/app/api/auth/saml/test/route.js +2 -2
  114. package/app/.next/server/app/api/auth/status/route.js +1 -1
  115. package/app/.next/server/app/api/cli-tools/all-statuses/route.js +6 -6
  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/route.js +1 -1
  118. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
  119. package/app/.next/server/app/api/cli-tools/cline-settings/route.js +2 -2
  120. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
  121. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  122. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  123. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  124. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  125. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  126. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route.js +2 -2
  127. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route.js +1 -1
  128. package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/route.js +1 -1
  129. package/app/.next/server/app/api/cli-tools/cursor-byok/route.js +1 -1
  130. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  131. package/app/.next/server/app/api/cli-tools/devin-settings/route.js +2 -2
  132. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +2 -2
  133. package/app/.next/server/app/api/cli-tools/grok-build-settings/route.js +3 -3
  134. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +3 -3
  135. package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  136. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  137. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  138. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  139. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  140. package/app/.next/server/app/api/combos/route.js +1 -1
  141. package/app/.next/server/app/api/donate/route.js +1 -1
  142. package/app/.next/server/app/api/headroom/extras/route.js +1 -1
  143. package/app/.next/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  144. package/app/.next/server/app/api/headroom/restart/route.js +1 -1
  145. package/app/.next/server/app/api/headroom/start/route.js +1 -1
  146. package/app/.next/server/app/api/headroom/status/route.js +1 -1
  147. package/app/.next/server/app/api/headroom/stop/route.js +1 -1
  148. package/app/.next/server/app/api/health/route.js +1 -1
  149. package/app/.next/server/app/api/init/route.js +1 -1
  150. package/app/.next/server/app/api/internal/account-health/route.js +1 -1
  151. package/app/.next/server/app/api/internal/request-detail/route.js +1 -1
  152. package/app/.next/server/app/api/internal/usage/route.js +1 -1
  153. package/app/.next/server/app/api/keys/[id]/reset-usage/route.js +1 -1
  154. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  155. package/app/.next/server/app/api/keys/[id]/usage/route.js +1 -1
  156. package/app/.next/server/app/api/keys/route.js +1 -1
  157. package/app/.next/server/app/api/locale/route.js +1 -1
  158. package/app/.next/server/app/api/mcp/[plugin]/message/route.js +1 -1
  159. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  160. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  161. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  162. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  163. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  164. package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
  165. package/app/.next/server/app/api/models/alias/route.js +1 -1
  166. package/app/.next/server/app/api/models/availability/route.js +1 -1
  167. package/app/.next/server/app/api/models/catalog-sync/route.js +1 -1
  168. package/app/.next/server/app/api/models/custom/route.js +1 -1
  169. package/app/.next/server/app/api/models/disabled/route.js +1 -1
  170. package/app/.next/server/app/api/models/route.js +1 -1
  171. package/app/.next/server/app/api/models/test/route.js +1 -1
  172. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  173. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  174. package/app/.next/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  175. package/app/.next/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  176. package/app/.next/server/app/api/oauth/codex/import-token/route.js +1 -1
  177. package/app/.next/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  178. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  179. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  180. package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
  181. package/app/.next/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  182. package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
  183. package/app/.next/server/app/api/oauth/kiro/api-key/route.js +1 -1
  184. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  185. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  186. package/app/.next/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  187. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  188. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  189. package/app/.next/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -0
  190. package/app/.next/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -0
  191. package/app/.next/server/app/api/oauth/xiaomi-mimo/api-key/route_client-reference-manifest.js +1 -0
  192. package/app/.next/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +4 -0
  193. package/app/.next/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -0
  194. package/app/.next/server/app/api/oauth/xiaomi-mimo/auto-import/route_client-reference-manifest.js +1 -0
  195. package/app/.next/server/app/api/pricing/route.js +1 -1
  196. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  197. package/app/.next/server/app/api/provider-nodes/route.js +1 -1
  198. package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
  199. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  200. package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  201. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  202. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  203. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  204. package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
  205. package/app/.next/server/app/api/providers/client/route.js +1 -1
  206. package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
  207. package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
  208. package/app/.next/server/app/api/providers/route.js +1 -1
  209. package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
  210. package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
  211. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  212. package/app/.next/server/app/api/providers/validate/route.js +1 -1
  213. package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
  214. package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
  215. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  216. package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  217. package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  218. package/app/.next/server/app/api/proxy-pools/route.js +1 -1
  219. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  220. package/app/.next/server/app/api/pxpipe/health/route.js +2 -2
  221. package/app/.next/server/app/api/pxpipe/install/route.js +2 -2
  222. package/app/.next/server/app/api/pxpipe/logs/route.js +2 -2
  223. package/app/.next/server/app/api/pxpipe/restart/route.js +2 -2
  224. package/app/.next/server/app/api/pxpipe/start/route.js +2 -2
  225. package/app/.next/server/app/api/pxpipe/stats/route.js +2 -2
  226. package/app/.next/server/app/api/pxpipe/status/route.js +2 -2
  227. package/app/.next/server/app/api/pxpipe/stop/route.js +2 -2
  228. package/app/.next/server/app/api/settings/database/route.js +1 -1
  229. package/app/.next/server/app/api/settings/database/selective/route.js +1 -1
  230. package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
  231. package/app/.next/server/app/api/settings/require-login/route.js +1 -1
  232. package/app/.next/server/app/api/settings/route.js +1 -1
  233. package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
  234. package/app/.next/server/app/api/shutdown/route.js +1 -1
  235. package/app/.next/server/app/api/tags/route.js +1 -1
  236. package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
  237. package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
  238. package/app/.next/server/app/api/translator/load/route.js +1 -1
  239. package/app/.next/server/app/api/translator/save/route.js +1 -1
  240. package/app/.next/server/app/api/translator/send/route.js +1 -1
  241. package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
  242. package/app/.next/server/app/api/translator/translate/route.js +1 -1
  243. package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
  244. package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
  245. package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  246. package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
  247. package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  248. package/app/.next/server/app/api/tunnel/status/route.js +1 -1
  249. package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
  250. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  251. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  252. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  253. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  254. package/app/.next/server/app/api/tunnel/tailscale-install/route.js +3 -3
  255. package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  256. package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  257. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  258. package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  259. package/app/.next/server/app/api/usage/chart/route.js +1 -1
  260. package/app/.next/server/app/api/usage/history/route.js +1 -1
  261. package/app/.next/server/app/api/usage/logs/route.js +1 -1
  262. package/app/.next/server/app/api/usage/providers/route.js +1 -1
  263. package/app/.next/server/app/api/usage/report/route.js +1 -1
  264. package/app/.next/server/app/api/usage/request-details/route.js +1 -1
  265. package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
  266. package/app/.next/server/app/api/usage/stats/route.js +1 -1
  267. package/app/.next/server/app/api/usage/stream/route.js +2 -2
  268. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  269. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  270. package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
  271. package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  272. package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
  273. package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  274. package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
  275. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  276. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  277. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  278. package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  279. package/app/.next/server/app/api/v1/images/generations/route.js +2 -2
  280. package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  281. package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
  282. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  283. package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  284. package/app/.next/server/app/api/v1/models/[...model]/route.js +1 -1
  285. package/app/.next/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  286. package/app/.next/server/app/api/v1/models/info/route.js +1 -1
  287. package/app/.next/server/app/api/v1/models/route.js +1 -1
  288. package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
  289. package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
  290. package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  291. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  292. package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  293. package/app/.next/server/app/api/v1/route.js +1 -1
  294. package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
  295. package/app/.next/server/app/api/v1/search/route.js +1 -1
  296. package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
  297. package/app/.next/server/app/api/v1/videos/[id]/route.js +1 -1
  298. package/app/.next/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  299. package/app/.next/server/app/api/v1/videos/edits/route.js +1 -1
  300. package/app/.next/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  301. package/app/.next/server/app/api/v1/videos/extensions/route.js +1 -1
  302. package/app/.next/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  303. package/app/.next/server/app/api/v1/videos/generations/route.js +1 -1
  304. package/app/.next/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  305. package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
  306. package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  307. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  308. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  309. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  310. package/app/.next/server/app/api/version/route.js +1 -1
  311. package/app/.next/server/app/api/version/shutdown/route.js +1 -1
  312. package/app/.next/server/app/api/version/update/route.js +1 -1
  313. package/app/.next/server/app/callback/page.js +2 -2
  314. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  315. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  316. package/app/.next/server/app/callback.html +1 -1
  317. package/app/.next/server/app/callback.rsc +3 -3
  318. package/app/.next/server/app/callback.segments/_full.segment.rsc +3 -3
  319. package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
  320. package/app/.next/server/app/callback.segments/_index.segment.rsc +3 -3
  321. package/app/.next/server/app/callback.segments/_tree.segment.rsc +1 -1
  322. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  323. package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
  324. package/app/.next/server/app/dashboard/basic-chat.html +1 -1
  325. package/app/.next/server/app/dashboard/basic-chat.rsc +5 -5
  326. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  327. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  328. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  329. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  330. package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  331. package/app/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  332. package/app/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +3 -3
  333. package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  334. package/app/.next/server/app/dashboard/cli-tools.html +1 -1
  335. package/app/.next/server/app/dashboard/cli-tools.rsc +5 -5
  336. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  337. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  338. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  339. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  340. package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  341. package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  342. package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +3 -3
  343. package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  344. package/app/.next/server/app/dashboard/combos.html +1 -1
  345. package/app/.next/server/app/dashboard/combos.rsc +5 -5
  346. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  347. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  348. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  349. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  350. package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  351. package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  352. package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +3 -3
  353. package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  354. package/app/.next/server/app/dashboard/endpoint.html +1 -1
  355. package/app/.next/server/app/dashboard/endpoint.rsc +5 -5
  356. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  357. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  358. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  359. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  360. package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  361. package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  362. package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +3 -3
  363. package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  364. package/app/.next/server/app/dashboard/media-providers/web.html +1 -1
  365. package/app/.next/server/app/dashboard/media-providers/web.rsc +5 -5
  366. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  367. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  368. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  369. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  370. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  371. package/app/.next/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  372. package/app/.next/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  373. package/app/.next/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +3 -3
  374. package/app/.next/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  375. package/app/.next/server/app/dashboard/mitm.html +1 -1
  376. package/app/.next/server/app/dashboard/mitm.rsc +5 -5
  377. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  378. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  379. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  380. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  381. package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  382. package/app/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  383. package/app/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +3 -3
  384. package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  385. package/app/.next/server/app/dashboard/profile.html +1 -1
  386. package/app/.next/server/app/dashboard/profile.rsc +5 -5
  387. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  388. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  389. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  390. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  391. package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  392. package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  393. package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +3 -3
  394. package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  395. package/app/.next/server/app/dashboard/providers/new.html +1 -1
  396. package/app/.next/server/app/dashboard/providers/new.rsc +5 -5
  397. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  398. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  399. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  400. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  401. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  402. package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  403. package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  404. package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +3 -3
  405. package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  406. package/app/.next/server/app/dashboard/providers.html +1 -1
  407. package/app/.next/server/app/dashboard/providers.rsc +5 -5
  408. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  409. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  410. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  411. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  412. package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  413. package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  414. package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +3 -3
  415. package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  416. package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
  417. package/app/.next/server/app/dashboard/proxy-pools.rsc +5 -5
  418. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  419. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  420. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  421. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  422. package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  423. package/app/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  424. package/app/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +3 -3
  425. package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  426. package/app/.next/server/app/dashboard/pxpipe.html +1 -1
  427. package/app/.next/server/app/dashboard/pxpipe.rsc +5 -5
  428. package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  429. package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  430. package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  431. package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  432. package/app/.next/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
  433. package/app/.next/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  434. package/app/.next/server/app/dashboard/pxpipe.segments/_index.segment.rsc +3 -3
  435. package/app/.next/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  436. package/app/.next/server/app/dashboard/quota.html +2 -2
  437. package/app/.next/server/app/dashboard/quota.rsc +6 -6
  438. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  439. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  440. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  441. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  442. package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
  443. package/app/.next/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  444. package/app/.next/server/app/dashboard/quota.segments/_index.segment.rsc +3 -3
  445. package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  446. package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
  447. package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  448. package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  449. package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
  450. package/app/.next/server/app/dashboard/settings/pricing.rsc +3 -3
  451. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  452. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  453. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +3 -3
  454. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  455. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  456. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  457. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  458. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  459. package/app/.next/server/app/dashboard/skills.html +1 -1
  460. package/app/.next/server/app/dashboard/skills.rsc +5 -5
  461. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  462. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  463. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  464. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  465. package/app/.next/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
  466. package/app/.next/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  467. package/app/.next/server/app/dashboard/skills.segments/_index.segment.rsc +3 -3
  468. package/app/.next/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  469. package/app/.next/server/app/dashboard/token-saver.html +1 -1
  470. package/app/.next/server/app/dashboard/token-saver.rsc +5 -5
  471. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  472. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  473. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  474. package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  475. package/app/.next/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
  476. package/app/.next/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  477. package/app/.next/server/app/dashboard/token-saver.segments/_index.segment.rsc +3 -3
  478. package/app/.next/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  479. package/app/.next/server/app/dashboard/translator.html +1 -1
  480. package/app/.next/server/app/dashboard/translator.rsc +5 -5
  481. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  482. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  483. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  484. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  485. package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  486. package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  487. package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +3 -3
  488. package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  489. package/app/.next/server/app/dashboard/usage.html +1 -1
  490. package/app/.next/server/app/dashboard/usage.rsc +5 -5
  491. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  492. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  493. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  494. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  495. package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  496. package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  497. package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +3 -3
  498. package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  499. package/app/.next/server/app/dashboard.html +1 -1
  500. package/app/.next/server/app/dashboard.rsc +5 -5
  501. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  502. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  503. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  504. package/app/.next/server/app/dashboard.segments/_full.segment.rsc +5 -5
  505. package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
  506. package/app/.next/server/app/dashboard.segments/_index.segment.rsc +3 -3
  507. package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  508. package/app/.next/server/app/favicon.ico/route.js +1 -1
  509. package/app/.next/server/app/index.html +1 -1
  510. package/app/.next/server/app/index.rsc +3 -3
  511. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  512. package/app/.next/server/app/index.segments/_full.segment.rsc +3 -3
  513. package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
  514. package/app/.next/server/app/index.segments/_index.segment.rsc +3 -3
  515. package/app/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  516. package/app/.next/server/app/landing/page.js +2 -2
  517. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  518. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  519. package/app/.next/server/app/landing.html +1 -1
  520. package/app/.next/server/app/landing.rsc +3 -3
  521. package/app/.next/server/app/landing.segments/_full.segment.rsc +3 -3
  522. package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
  523. package/app/.next/server/app/landing.segments/_index.segment.rsc +3 -3
  524. package/app/.next/server/app/landing.segments/_tree.segment.rsc +1 -1
  525. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  526. package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
  527. package/app/.next/server/app/login/page.js +2 -2
  528. package/app/.next/server/app/login/page.js.nft.json +1 -1
  529. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  530. package/app/.next/server/app/login.html +1 -1
  531. package/app/.next/server/app/login.rsc +4 -4
  532. package/app/.next/server/app/login.segments/_full.segment.rsc +4 -4
  533. package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
  534. package/app/.next/server/app/login.segments/_index.segment.rsc +3 -3
  535. package/app/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  536. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  537. package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
  538. package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
  539. package/app/.next/server/app/page.js +2 -2
  540. package/app/.next/server/app/page.js.nft.json +1 -1
  541. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  542. package/app/.next/server/app-paths-manifest.json +15 -13
  543. package/app/.next/server/chunks/1470.js +1 -1
  544. package/app/.next/server/chunks/1975.js +1 -1
  545. package/app/.next/server/chunks/1998.js +1 -1
  546. package/app/.next/server/chunks/2251.js +2 -2
  547. package/app/.next/server/chunks/24.js +1 -1
  548. package/app/.next/server/chunks/2732.js +1 -1
  549. package/app/.next/server/chunks/318.js +23 -15
  550. package/app/.next/server/chunks/3225.js +1 -1
  551. package/app/.next/server/chunks/3481.js +5 -5
  552. package/app/.next/server/chunks/3490.js +1 -0
  553. package/app/.next/server/chunks/3535.js +1 -1
  554. package/app/.next/server/chunks/3676.js +1 -0
  555. package/app/.next/server/chunks/3726.js +1 -1
  556. package/app/.next/server/chunks/3753.js +1 -1
  557. package/app/.next/server/chunks/3913.js +1 -1
  558. package/app/.next/server/chunks/3943.js +1 -1
  559. package/app/.next/server/chunks/3962.js +1 -1
  560. package/app/.next/server/chunks/3998.js +1 -0
  561. package/app/.next/server/chunks/4037.js +1 -1
  562. package/app/.next/server/chunks/412.js +5 -5
  563. package/app/.next/server/chunks/4123.js +1 -1
  564. package/app/.next/server/chunks/4152.js +1 -0
  565. package/app/.next/server/chunks/436.js +1 -1
  566. package/app/.next/server/chunks/5615.js +21 -2
  567. package/app/.next/server/chunks/5729.js +1 -1
  568. package/app/.next/server/chunks/6630.js +1 -1
  569. package/app/.next/server/chunks/6763.js +1 -1
  570. package/app/.next/server/chunks/6922.js +1 -1
  571. package/app/.next/server/chunks/7137.js +1 -1
  572. package/app/.next/server/chunks/7211.js +1 -1
  573. package/app/.next/server/chunks/7220.js +1 -0
  574. package/app/.next/server/chunks/7247.js +1 -1
  575. package/app/.next/server/chunks/7716.js +1 -1
  576. package/app/.next/server/chunks/7828.js +1 -1
  577. package/app/.next/server/chunks/8145.js +1 -1
  578. package/app/.next/server/chunks/8236.js +1 -1
  579. package/app/.next/server/chunks/8351.js +95 -0
  580. package/app/.next/server/chunks/8402.js +1 -1
  581. package/app/.next/server/chunks/8416.js +1 -0
  582. package/app/.next/server/chunks/8499.js +8 -8
  583. package/app/.next/server/chunks/8635.js +1 -1
  584. package/app/.next/server/chunks/869.js +1 -1
  585. package/app/.next/server/chunks/8895.js +10 -16
  586. package/app/.next/server/chunks/8920.js +1 -1
  587. package/app/.next/server/chunks/8965.js +1 -0
  588. package/app/.next/server/chunks/9927.js +1 -1
  589. package/app/.next/server/middleware-build-manifest.js +1 -1
  590. package/app/.next/server/middleware.js +1 -1
  591. package/app/.next/server/pages/404.html +1 -1
  592. package/app/.next/server/pages/500.html +1 -1
  593. package/app/.next/server/server-reference-manifest.js +1 -1
  594. package/app/.next/server/server-reference-manifest.json +1 -1
  595. package/app/.next/static/60FwY0jMQtwHUBO9ot3jD/_buildManifest.js +1 -0
  596. package/app/.next/static/chunks/1321-d1c556cbac9e0b13.js +1 -0
  597. package/app/.next/static/chunks/{5497-378030367985bec2.js → 5497-885ce51ad3573289.js} +5 -5
  598. package/app/.next/static/chunks/7391-9a41b212ce16a288.js +95 -0
  599. package/app/.next/static/chunks/8198-022f6b876963a14e.js +1 -0
  600. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-fbd0e639f6248423.js → page-3ac201b4c0d2f9aa.js} +1 -1
  601. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-de0a6e91c2d4eedd.js +1 -0
  602. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/{page-c8943c6168a7bc3f.js → page-37c7894b246793c9.js} +1 -1
  603. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-07e99971e712f435.js +1 -0
  604. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-731ec27cfa6d662d.js +27 -0
  605. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-ae6574b656f3faf2.js +1 -0
  606. package/app/.next/static/chunks/app/(dashboard)/layout-29965adee8720b71.js +1 -0
  607. package/app/.next/static/chunks/app/_global-error/page-bec89eeae5edc8d0.js +1 -0
  608. package/app/.next/static/chunks/app/api/antigravity-app/route-bec89eeae5edc8d0.js +1 -0
  609. package/app/.next/static/chunks/app/api/antigravity-app-v2/route-bec89eeae5edc8d0.js +1 -0
  610. package/app/.next/static/chunks/app/api/antigravity-ide/route-bec89eeae5edc8d0.js +1 -0
  611. package/app/.next/static/chunks/app/api/antigravity-targets/route-bec89eeae5edc8d0.js +1 -0
  612. package/app/.next/static/chunks/app/api/antigravity-tools/import/route-bec89eeae5edc8d0.js +1 -0
  613. package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-bec89eeae5edc8d0.js +1 -0
  614. package/app/.next/static/chunks/app/api/auth/login/route-bec89eeae5edc8d0.js +1 -0
  615. package/app/.next/static/chunks/app/api/auth/logout/route-bec89eeae5edc8d0.js +1 -0
  616. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-bec89eeae5edc8d0.js +1 -0
  617. package/app/.next/static/chunks/app/api/auth/oidc/start/route-bec89eeae5edc8d0.js +1 -0
  618. package/app/.next/static/chunks/app/api/auth/oidc/test/route-bec89eeae5edc8d0.js +1 -0
  619. package/app/.next/static/chunks/app/api/auth/reset-password/route-bec89eeae5edc8d0.js +1 -0
  620. package/app/.next/static/chunks/app/api/auth/saml/acs/route-bec89eeae5edc8d0.js +1 -0
  621. package/app/.next/static/chunks/app/api/auth/saml/metadata/route-bec89eeae5edc8d0.js +1 -0
  622. package/app/.next/static/chunks/app/api/auth/saml/start/route-bec89eeae5edc8d0.js +1 -0
  623. package/app/.next/static/chunks/app/api/auth/saml/test/route-bec89eeae5edc8d0.js +1 -0
  624. package/app/.next/static/chunks/app/api/auth/status/route-bec89eeae5edc8d0.js +1 -0
  625. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-bec89eeae5edc8d0.js +1 -0
  626. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-bec89eeae5edc8d0.js +1 -0
  627. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-bec89eeae5edc8d0.js +1 -0
  628. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-bec89eeae5edc8d0.js +1 -0
  629. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-bec89eeae5edc8d0.js +1 -0
  630. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-bec89eeae5edc8d0.js +1 -0
  631. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-bec89eeae5edc8d0.js +1 -0
  632. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-bec89eeae5edc8d0.js +1 -0
  633. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-bec89eeae5edc8d0.js +1 -0
  634. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-bec89eeae5edc8d0.js +1 -0
  635. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route-bec89eeae5edc8d0.js +1 -0
  636. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route-bec89eeae5edc8d0.js +1 -0
  637. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/route-bec89eeae5edc8d0.js +1 -0
  638. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/route-bec89eeae5edc8d0.js +1 -0
  639. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-bec89eeae5edc8d0.js +1 -0
  640. package/app/.next/static/chunks/app/api/cli-tools/devin-settings/route-bec89eeae5edc8d0.js +1 -0
  641. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-bec89eeae5edc8d0.js +1 -0
  642. package/app/.next/static/chunks/app/api/cli-tools/grok-build-settings/route-bec89eeae5edc8d0.js +1 -0
  643. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-bec89eeae5edc8d0.js +1 -0
  644. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-bec89eeae5edc8d0.js +1 -0
  645. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-bec89eeae5edc8d0.js +1 -0
  646. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-bec89eeae5edc8d0.js +1 -0
  647. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-bec89eeae5edc8d0.js +1 -0
  648. package/app/.next/static/chunks/app/api/combos/[id]/route-bec89eeae5edc8d0.js +1 -0
  649. package/app/.next/static/chunks/app/api/combos/route-bec89eeae5edc8d0.js +1 -0
  650. package/app/.next/static/chunks/app/api/donate/route-bec89eeae5edc8d0.js +1 -0
  651. package/app/.next/static/chunks/app/api/headroom/extras/route-bec89eeae5edc8d0.js +1 -0
  652. package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-bec89eeae5edc8d0.js +1 -0
  653. package/app/.next/static/chunks/app/api/headroom/restart/route-bec89eeae5edc8d0.js +1 -0
  654. package/app/.next/static/chunks/app/api/headroom/start/route-bec89eeae5edc8d0.js +1 -0
  655. package/app/.next/static/chunks/app/api/headroom/status/route-bec89eeae5edc8d0.js +1 -0
  656. package/app/.next/static/chunks/app/api/headroom/stop/route-bec89eeae5edc8d0.js +1 -0
  657. package/app/.next/static/chunks/app/api/health/route-bec89eeae5edc8d0.js +1 -0
  658. package/app/.next/static/chunks/app/api/init/route-bec89eeae5edc8d0.js +1 -0
  659. package/app/.next/static/chunks/app/api/internal/account-health/route-bec89eeae5edc8d0.js +1 -0
  660. package/app/.next/static/chunks/app/api/internal/request-detail/route-bec89eeae5edc8d0.js +1 -0
  661. package/app/.next/static/chunks/app/api/internal/usage/route-bec89eeae5edc8d0.js +1 -0
  662. package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-bec89eeae5edc8d0.js +1 -0
  663. package/app/.next/static/chunks/app/api/keys/[id]/route-bec89eeae5edc8d0.js +1 -0
  664. package/app/.next/static/chunks/app/api/keys/[id]/usage/route-bec89eeae5edc8d0.js +1 -0
  665. package/app/.next/static/chunks/app/api/keys/route-bec89eeae5edc8d0.js +1 -0
  666. package/app/.next/static/chunks/app/api/locale/route-bec89eeae5edc8d0.js +1 -0
  667. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-bec89eeae5edc8d0.js +1 -0
  668. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-bec89eeae5edc8d0.js +1 -0
  669. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-bec89eeae5edc8d0.js +1 -0
  670. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-bec89eeae5edc8d0.js +1 -0
  671. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-bec89eeae5edc8d0.js +1 -0
  672. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-bec89eeae5edc8d0.js +1 -0
  673. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-bec89eeae5edc8d0.js +1 -0
  674. package/app/.next/static/chunks/app/api/models/alias/route-bec89eeae5edc8d0.js +1 -0
  675. package/app/.next/static/chunks/app/api/models/availability/route-bec89eeae5edc8d0.js +1 -0
  676. package/app/.next/static/chunks/app/api/models/catalog-sync/route-bec89eeae5edc8d0.js +1 -0
  677. package/app/.next/static/chunks/app/api/models/custom/route-bec89eeae5edc8d0.js +1 -0
  678. package/app/.next/static/chunks/app/api/models/disabled/route-bec89eeae5edc8d0.js +1 -0
  679. package/app/.next/static/chunks/app/api/models/route-bec89eeae5edc8d0.js +1 -0
  680. package/app/.next/static/chunks/app/api/models/test/route-bec89eeae5edc8d0.js +1 -0
  681. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-bec89eeae5edc8d0.js +1 -0
  682. package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-bec89eeae5edc8d0.js +1 -0
  683. package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-bec89eeae5edc8d0.js +1 -0
  684. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-bec89eeae5edc8d0.js +1 -0
  685. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-bec89eeae5edc8d0.js +1 -0
  686. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-bec89eeae5edc8d0.js +1 -0
  687. package/app/.next/static/chunks/app/api/oauth/grok-cli/bulk-import/route-bec89eeae5edc8d0.js +1 -0
  688. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-bec89eeae5edc8d0.js +1 -0
  689. package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-bec89eeae5edc8d0.js +1 -0
  690. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-bec89eeae5edc8d0.js +1 -0
  691. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-bec89eeae5edc8d0.js +1 -0
  692. package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-bec89eeae5edc8d0.js +1 -0
  693. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-bec89eeae5edc8d0.js +1 -0
  694. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-bec89eeae5edc8d0.js +1 -0
  695. package/app/.next/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-bec89eeae5edc8d0.js +1 -0
  696. package/app/.next/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-bec89eeae5edc8d0.js +1 -0
  697. package/app/.next/static/chunks/app/api/pricing/route-bec89eeae5edc8d0.js +1 -0
  698. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-bec89eeae5edc8d0.js +1 -0
  699. package/app/.next/static/chunks/app/api/provider-nodes/route-bec89eeae5edc8d0.js +1 -0
  700. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-bec89eeae5edc8d0.js +1 -0
  701. package/app/.next/static/chunks/app/api/providers/[id]/models/route-bec89eeae5edc8d0.js +1 -0
  702. package/app/.next/static/chunks/app/api/providers/[id]/route-bec89eeae5edc8d0.js +1 -0
  703. package/app/.next/static/chunks/app/api/providers/[id]/test/route-bec89eeae5edc8d0.js +1 -0
  704. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-bec89eeae5edc8d0.js +1 -0
  705. package/app/.next/static/chunks/app/api/providers/client/route-bec89eeae5edc8d0.js +1 -0
  706. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-bec89eeae5edc8d0.js +1 -0
  707. package/app/.next/static/chunks/app/api/providers/route-bec89eeae5edc8d0.js +1 -0
  708. package/app/.next/static/chunks/app/api/providers/suggested-models/route-bec89eeae5edc8d0.js +1 -0
  709. package/app/.next/static/chunks/app/api/providers/test-batch/route-bec89eeae5edc8d0.js +1 -0
  710. package/app/.next/static/chunks/app/api/providers/validate/route-bec89eeae5edc8d0.js +1 -0
  711. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-bec89eeae5edc8d0.js +1 -0
  712. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-bec89eeae5edc8d0.js +1 -0
  713. package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-bec89eeae5edc8d0.js +1 -0
  714. package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-bec89eeae5edc8d0.js +1 -0
  715. package/app/.next/static/chunks/app/api/proxy-pools/route-bec89eeae5edc8d0.js +1 -0
  716. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-bec89eeae5edc8d0.js +1 -0
  717. package/app/.next/static/chunks/app/api/pxpipe/health/route-bec89eeae5edc8d0.js +1 -0
  718. package/app/.next/static/chunks/app/api/pxpipe/install/route-bec89eeae5edc8d0.js +1 -0
  719. package/app/.next/static/chunks/app/api/pxpipe/logs/route-bec89eeae5edc8d0.js +1 -0
  720. package/app/.next/static/chunks/app/api/pxpipe/restart/route-bec89eeae5edc8d0.js +1 -0
  721. package/app/.next/static/chunks/app/api/pxpipe/start/route-bec89eeae5edc8d0.js +1 -0
  722. package/app/.next/static/chunks/app/api/pxpipe/stats/route-bec89eeae5edc8d0.js +1 -0
  723. package/app/.next/static/chunks/app/api/pxpipe/status/route-bec89eeae5edc8d0.js +1 -0
  724. package/app/.next/static/chunks/app/api/pxpipe/stop/route-bec89eeae5edc8d0.js +1 -0
  725. package/app/.next/static/chunks/app/api/settings/database/route-bec89eeae5edc8d0.js +1 -0
  726. package/app/.next/static/chunks/app/api/settings/database/selective/route-bec89eeae5edc8d0.js +1 -0
  727. package/app/.next/static/chunks/app/api/settings/proxy-test/route-bec89eeae5edc8d0.js +1 -0
  728. package/app/.next/static/chunks/app/api/settings/require-login/route-bec89eeae5edc8d0.js +1 -0
  729. package/app/.next/static/chunks/app/api/settings/route-bec89eeae5edc8d0.js +1 -0
  730. package/app/.next/static/chunks/app/api/shutdown/route-bec89eeae5edc8d0.js +1 -0
  731. package/app/.next/static/chunks/app/api/tags/route-bec89eeae5edc8d0.js +1 -0
  732. package/app/.next/static/chunks/app/api/translator/console-logs/route-bec89eeae5edc8d0.js +1 -0
  733. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-bec89eeae5edc8d0.js +1 -0
  734. package/app/.next/static/chunks/app/api/translator/load/route-bec89eeae5edc8d0.js +1 -0
  735. package/app/.next/static/chunks/app/api/translator/save/route-bec89eeae5edc8d0.js +1 -0
  736. package/app/.next/static/chunks/app/api/translator/send/route-bec89eeae5edc8d0.js +1 -0
  737. package/app/.next/static/chunks/app/api/translator/translate/route-bec89eeae5edc8d0.js +1 -0
  738. package/app/.next/static/chunks/app/api/tunnel/disable/route-bec89eeae5edc8d0.js +1 -0
  739. package/app/.next/static/chunks/app/api/tunnel/enable/route-bec89eeae5edc8d0.js +1 -0
  740. package/app/.next/static/chunks/app/api/tunnel/status/route-bec89eeae5edc8d0.js +1 -0
  741. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-bec89eeae5edc8d0.js +1 -0
  742. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-bec89eeae5edc8d0.js +1 -0
  743. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-bec89eeae5edc8d0.js +1 -0
  744. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-bec89eeae5edc8d0.js +1 -0
  745. package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-bec89eeae5edc8d0.js +1 -0
  746. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-bec89eeae5edc8d0.js +1 -0
  747. package/app/.next/static/chunks/app/api/usage/chart/route-bec89eeae5edc8d0.js +1 -0
  748. package/app/.next/static/chunks/app/api/usage/history/route-bec89eeae5edc8d0.js +1 -0
  749. package/app/.next/static/chunks/app/api/usage/logs/route-bec89eeae5edc8d0.js +1 -0
  750. package/app/.next/static/chunks/app/api/usage/providers/route-bec89eeae5edc8d0.js +1 -0
  751. package/app/.next/static/chunks/app/api/usage/report/route-bec89eeae5edc8d0.js +1 -0
  752. package/app/.next/static/chunks/app/api/usage/request-details/route-bec89eeae5edc8d0.js +1 -0
  753. package/app/.next/static/chunks/app/api/usage/request-logs/route-bec89eeae5edc8d0.js +1 -0
  754. package/app/.next/static/chunks/app/api/usage/stats/route-bec89eeae5edc8d0.js +1 -0
  755. package/app/.next/static/chunks/app/api/usage/stream/route-bec89eeae5edc8d0.js +1 -0
  756. package/app/.next/static/chunks/app/api/v1/api/chat/route-bec89eeae5edc8d0.js +1 -0
  757. package/app/.next/static/chunks/app/api/v1/audio/speech/route-bec89eeae5edc8d0.js +1 -0
  758. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-bec89eeae5edc8d0.js +1 -0
  759. package/app/.next/static/chunks/app/api/v1/audio/voices/route-bec89eeae5edc8d0.js +1 -0
  760. package/app/.next/static/chunks/app/api/v1/chat/completions/route-bec89eeae5edc8d0.js +1 -0
  761. package/app/.next/static/chunks/app/api/v1/embeddings/route-bec89eeae5edc8d0.js +1 -0
  762. package/app/.next/static/chunks/app/api/v1/images/generations/route-bec89eeae5edc8d0.js +1 -0
  763. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-bec89eeae5edc8d0.js +1 -0
  764. package/app/.next/static/chunks/app/api/v1/messages/route-bec89eeae5edc8d0.js +1 -0
  765. package/app/.next/static/chunks/app/api/v1/models/[...model]/route-bec89eeae5edc8d0.js +1 -0
  766. package/app/.next/static/chunks/app/api/v1/models/info/route-bec89eeae5edc8d0.js +1 -0
  767. package/app/.next/static/chunks/app/api/v1/models/route-bec89eeae5edc8d0.js +1 -0
  768. package/app/.next/static/chunks/app/api/v1/responses/compact/route-bec89eeae5edc8d0.js +1 -0
  769. package/app/.next/static/chunks/app/api/v1/responses/route-bec89eeae5edc8d0.js +1 -0
  770. package/app/.next/static/chunks/app/api/v1/route-bec89eeae5edc8d0.js +1 -0
  771. package/app/.next/static/chunks/app/api/v1/search/route-bec89eeae5edc8d0.js +1 -0
  772. package/app/.next/static/chunks/app/api/v1/videos/[id]/route-bec89eeae5edc8d0.js +1 -0
  773. package/app/.next/static/chunks/app/api/v1/videos/edits/route-bec89eeae5edc8d0.js +1 -0
  774. package/app/.next/static/chunks/app/api/v1/videos/extensions/route-bec89eeae5edc8d0.js +1 -0
  775. package/app/.next/static/chunks/app/api/v1/videos/generations/route-bec89eeae5edc8d0.js +1 -0
  776. package/app/.next/static/chunks/app/api/v1/web/fetch/route-bec89eeae5edc8d0.js +1 -0
  777. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-bec89eeae5edc8d0.js +1 -0
  778. package/app/.next/static/chunks/app/api/v1beta/models/route-bec89eeae5edc8d0.js +1 -0
  779. package/app/.next/static/chunks/app/api/version/route-bec89eeae5edc8d0.js +1 -0
  780. package/app/.next/static/chunks/app/api/version/shutdown/route-bec89eeae5edc8d0.js +1 -0
  781. package/app/.next/static/chunks/app/api/version/update/route-bec89eeae5edc8d0.js +1 -0
  782. package/app/.next/static/chunks/app/manifest.webmanifest/route-bec89eeae5edc8d0.js +1 -0
  783. package/app/.next/static/chunks/app/page-bec89eeae5edc8d0.js +1 -0
  784. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-bec89eeae5edc8d0.js +1 -0
  785. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-bec89eeae5edc8d0.js +1 -0
  786. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-bec89eeae5edc8d0.js +1 -0
  787. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-bec89eeae5edc8d0.js +1 -0
  788. package/app/open-sse/config/appConstants.js +3 -0
  789. package/app/open-sse/config/providerModels.js +1 -1
  790. package/app/open-sse/executors/antigravity.js +35 -19
  791. package/app/open-sse/executors/codex.js +11 -1
  792. package/app/open-sse/executors/default.js +12 -1
  793. package/app/open-sse/executors/index.js +6 -0
  794. package/app/open-sse/executors/kiro.js +36 -16
  795. package/app/open-sse/executors/opencode-go.js +182 -0
  796. package/app/open-sse/executors/qoder.js +150 -31
  797. package/app/open-sse/executors/xiaomi-mimo.js +99 -0
  798. package/app/open-sse/handlers/chatCore/nonStreamingHandler.js +6 -11
  799. package/app/open-sse/handlers/chatCore/streamingHandler.js +5 -5
  800. package/app/open-sse/handlers/chatCore.js +31 -5
  801. package/app/open-sse/handlers/imageProviders/codex.js +26 -6
  802. package/app/open-sse/handlers/videoCore.js +55 -12
  803. package/app/open-sse/handlers/videoProviders/index.js +13 -0
  804. package/app/open-sse/handlers/videoProviders/openrouter.js +39 -0
  805. package/app/open-sse/handlers/videoProviders/vertex.js +159 -0
  806. package/app/open-sse/providers/capabilities.js +63 -20
  807. package/app/open-sse/providers/pricing.js +1 -0
  808. package/app/open-sse/providers/registry/antigravity.js +1 -0
  809. package/app/open-sse/providers/registry/api-airforce.js +6 -3
  810. package/app/open-sse/providers/registry/cline.js +4 -0
  811. package/app/open-sse/providers/registry/clinepass.js +6 -1
  812. package/app/open-sse/providers/registry/codebuddy-cn.js +12 -11
  813. package/app/open-sse/providers/registry/codex.js +15 -1
  814. package/app/open-sse/providers/registry/deepseek.js +15 -0
  815. package/app/open-sse/providers/registry/glm-cn.js +1 -0
  816. package/app/open-sse/providers/registry/glm.js +1 -0
  817. package/app/open-sse/providers/registry/index.js +0 -1
  818. package/app/open-sse/providers/registry/minimax-cn.js +1 -0
  819. package/app/open-sse/providers/registry/minimax.js +1 -0
  820. package/app/open-sse/providers/registry/openai.js +3 -0
  821. package/app/open-sse/providers/registry/opencode-go.js +22 -0
  822. package/app/open-sse/providers/registry/openrouter.js +10 -1
  823. package/app/open-sse/providers/registry/qoder.js +5 -2
  824. package/app/open-sse/providers/registry/vertex.js +8 -1
  825. package/app/open-sse/providers/registry/xiaomi-mimo.js +31 -1
  826. package/app/open-sse/providers/thinkingLevels.js +9 -3
  827. package/app/open-sse/rtk/systemInject.js +28 -72
  828. package/app/open-sse/services/clinepassModels.js +47 -15
  829. package/app/open-sse/services/projectId.js +8 -5
  830. package/app/open-sse/services/qoderModels.js +24 -0
  831. package/app/open-sse/services/thoughtSignatureStore.js +170 -0
  832. package/app/open-sse/services/tokenRefresh.js +2 -0
  833. package/app/open-sse/services/usage/antigravity-weekly.js +150 -0
  834. package/app/open-sse/services/usage/claude.js +16 -0
  835. package/app/open-sse/services/usage/codex.js +8 -1
  836. package/app/open-sse/services/usage/google.js +60 -2
  837. package/app/open-sse/services/usage/opencode-go.js +107 -0
  838. package/app/open-sse/services/usage/xiaomi-mimo.js +125 -0
  839. package/app/open-sse/services/usage.js +4 -0
  840. package/app/open-sse/shared/clineAuth.js +8 -1
  841. package/app/open-sse/shared/clineEnvelope.js +19 -0
  842. package/app/open-sse/shared/mimoAccount.js +264 -0
  843. package/app/open-sse/shared/qoder/attachments.js +341 -0
  844. package/app/open-sse/shared/qoder/constants.js +37 -1
  845. package/app/open-sse/shared/qoder/contextTier.js +160 -0
  846. package/app/open-sse/shared/qoder/sse.js +208 -0
  847. package/app/open-sse/translator/concerns/paramSupport.js +3 -0
  848. package/app/open-sse/translator/concerns/thinkingUnified.js +1 -1
  849. package/app/open-sse/translator/concerns/toolCall.js +15 -0
  850. package/app/open-sse/translator/formats/claude.js +122 -6
  851. package/app/open-sse/translator/formats/gemini.js +18 -0
  852. package/app/open-sse/translator/formats/responsesApi.js +53 -0
  853. package/app/open-sse/translator/request/claude-to-kiro.js +3 -6
  854. package/app/open-sse/translator/request/claude-to-openai.js +7 -0
  855. package/app/open-sse/translator/request/openai-responses.js +38 -17
  856. package/app/open-sse/translator/request/openai-to-gemini.js +36 -27
  857. package/app/open-sse/translator/request/openai-to-kiro.js +3 -6
  858. package/app/open-sse/translator/response/gemini-to-openai.js +23 -7
  859. package/app/open-sse/translator/response/openai-responses.js +45 -6
  860. package/app/open-sse/utils/codexToolSchema.js +80 -0
  861. package/app/open-sse/utils/stream.js +6 -4
  862. package/app/package.json +1 -1
  863. package/app/src/lib/oauth/providers/xiaomi-mimo.js +123 -0
  864. package/app/src/mitm/manager.js +3 -1
  865. package/app/src/mitm/paths.js +18 -3
  866. package/app/src/shared/constants/cliTools.js +29 -27
  867. package/app/src/sse/services/backgroundTokenRefresh.js +35 -46
  868. package/package.json +1 -1
  869. package/app/.next/server/chunks/2051.js +0 -1
  870. package/app/.next/server/chunks/4940.js +0 -95
  871. package/app/.next/server/chunks/5612.js +0 -1
  872. package/app/.next/server/chunks/7637.js +0 -1
  873. package/app/.next/server/chunks/9441.js +0 -1
  874. package/app/.next/server/chunks/9896.js +0 -1
  875. package/app/.next/static/4aSob9BYLKkmEZKpVTTCD/_buildManifest.js +0 -1
  876. package/app/.next/static/chunks/1321-c56f714b48ec75b1.js +0 -1
  877. package/app/.next/static/chunks/511-12d7a4aee984e083.js +0 -95
  878. package/app/.next/static/chunks/8198-2f2b63f52e0d44f9.js +0 -1
  879. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-9dd5b20bf0221838.js +0 -1
  880. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-0d1269add49cb3e2.js +0 -1
  881. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-e6ee66418932601a.js +0 -27
  882. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-c48d4a86c94ab13a.js +0 -1
  883. package/app/.next/static/chunks/app/(dashboard)/layout-a0e61866894b6cee.js +0 -1
  884. package/app/.next/static/chunks/app/_global-error/page-b3fe65cd692af32a.js +0 -1
  885. package/app/.next/static/chunks/app/api/antigravity-app/route-b3fe65cd692af32a.js +0 -1
  886. package/app/.next/static/chunks/app/api/antigravity-app-v2/route-b3fe65cd692af32a.js +0 -1
  887. package/app/.next/static/chunks/app/api/antigravity-ide/route-b3fe65cd692af32a.js +0 -1
  888. package/app/.next/static/chunks/app/api/antigravity-targets/route-b3fe65cd692af32a.js +0 -1
  889. package/app/.next/static/chunks/app/api/antigravity-tools/import/route-b3fe65cd692af32a.js +0 -1
  890. package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-b3fe65cd692af32a.js +0 -1
  891. package/app/.next/static/chunks/app/api/auth/login/route-b3fe65cd692af32a.js +0 -1
  892. package/app/.next/static/chunks/app/api/auth/logout/route-b3fe65cd692af32a.js +0 -1
  893. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-b3fe65cd692af32a.js +0 -1
  894. package/app/.next/static/chunks/app/api/auth/oidc/start/route-b3fe65cd692af32a.js +0 -1
  895. package/app/.next/static/chunks/app/api/auth/oidc/test/route-b3fe65cd692af32a.js +0 -1
  896. package/app/.next/static/chunks/app/api/auth/reset-password/route-b3fe65cd692af32a.js +0 -1
  897. package/app/.next/static/chunks/app/api/auth/saml/acs/route-b3fe65cd692af32a.js +0 -1
  898. package/app/.next/static/chunks/app/api/auth/saml/metadata/route-b3fe65cd692af32a.js +0 -1
  899. package/app/.next/static/chunks/app/api/auth/saml/start/route-b3fe65cd692af32a.js +0 -1
  900. package/app/.next/static/chunks/app/api/auth/saml/test/route-b3fe65cd692af32a.js +0 -1
  901. package/app/.next/static/chunks/app/api/auth/status/route-b3fe65cd692af32a.js +0 -1
  902. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-b3fe65cd692af32a.js +0 -1
  903. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-b3fe65cd692af32a.js +0 -1
  904. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-b3fe65cd692af32a.js +0 -1
  905. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-b3fe65cd692af32a.js +0 -1
  906. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-b3fe65cd692af32a.js +0 -1
  907. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-b3fe65cd692af32a.js +0 -1
  908. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-b3fe65cd692af32a.js +0 -1
  909. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-b3fe65cd692af32a.js +0 -1
  910. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-b3fe65cd692af32a.js +0 -1
  911. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-b3fe65cd692af32a.js +0 -1
  912. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route-b3fe65cd692af32a.js +0 -1
  913. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route-b3fe65cd692af32a.js +0 -1
  914. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/route-b3fe65cd692af32a.js +0 -1
  915. package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/route-b3fe65cd692af32a.js +0 -1
  916. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-b3fe65cd692af32a.js +0 -1
  917. package/app/.next/static/chunks/app/api/cli-tools/devin-settings/route-b3fe65cd692af32a.js +0 -1
  918. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-b3fe65cd692af32a.js +0 -1
  919. package/app/.next/static/chunks/app/api/cli-tools/grok-build-settings/route-b3fe65cd692af32a.js +0 -1
  920. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-b3fe65cd692af32a.js +0 -1
  921. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-b3fe65cd692af32a.js +0 -1
  922. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-b3fe65cd692af32a.js +0 -1
  923. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-b3fe65cd692af32a.js +0 -1
  924. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-b3fe65cd692af32a.js +0 -1
  925. package/app/.next/static/chunks/app/api/combos/[id]/route-b3fe65cd692af32a.js +0 -1
  926. package/app/.next/static/chunks/app/api/combos/route-b3fe65cd692af32a.js +0 -1
  927. package/app/.next/static/chunks/app/api/donate/route-b3fe65cd692af32a.js +0 -1
  928. package/app/.next/static/chunks/app/api/headroom/extras/route-b3fe65cd692af32a.js +0 -1
  929. package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-b3fe65cd692af32a.js +0 -1
  930. package/app/.next/static/chunks/app/api/headroom/restart/route-b3fe65cd692af32a.js +0 -1
  931. package/app/.next/static/chunks/app/api/headroom/start/route-b3fe65cd692af32a.js +0 -1
  932. package/app/.next/static/chunks/app/api/headroom/status/route-b3fe65cd692af32a.js +0 -1
  933. package/app/.next/static/chunks/app/api/headroom/stop/route-b3fe65cd692af32a.js +0 -1
  934. package/app/.next/static/chunks/app/api/health/route-b3fe65cd692af32a.js +0 -1
  935. package/app/.next/static/chunks/app/api/init/route-b3fe65cd692af32a.js +0 -1
  936. package/app/.next/static/chunks/app/api/internal/account-health/route-b3fe65cd692af32a.js +0 -1
  937. package/app/.next/static/chunks/app/api/internal/request-detail/route-b3fe65cd692af32a.js +0 -1
  938. package/app/.next/static/chunks/app/api/internal/usage/route-b3fe65cd692af32a.js +0 -1
  939. package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-b3fe65cd692af32a.js +0 -1
  940. package/app/.next/static/chunks/app/api/keys/[id]/route-b3fe65cd692af32a.js +0 -1
  941. package/app/.next/static/chunks/app/api/keys/[id]/usage/route-b3fe65cd692af32a.js +0 -1
  942. package/app/.next/static/chunks/app/api/keys/route-b3fe65cd692af32a.js +0 -1
  943. package/app/.next/static/chunks/app/api/locale/route-b3fe65cd692af32a.js +0 -1
  944. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-b3fe65cd692af32a.js +0 -1
  945. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-b3fe65cd692af32a.js +0 -1
  946. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-b3fe65cd692af32a.js +0 -1
  947. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-b3fe65cd692af32a.js +0 -1
  948. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-b3fe65cd692af32a.js +0 -1
  949. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-b3fe65cd692af32a.js +0 -1
  950. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-b3fe65cd692af32a.js +0 -1
  951. package/app/.next/static/chunks/app/api/models/alias/route-b3fe65cd692af32a.js +0 -1
  952. package/app/.next/static/chunks/app/api/models/availability/route-b3fe65cd692af32a.js +0 -1
  953. package/app/.next/static/chunks/app/api/models/catalog-sync/route-b3fe65cd692af32a.js +0 -1
  954. package/app/.next/static/chunks/app/api/models/custom/route-b3fe65cd692af32a.js +0 -1
  955. package/app/.next/static/chunks/app/api/models/disabled/route-b3fe65cd692af32a.js +0 -1
  956. package/app/.next/static/chunks/app/api/models/route-b3fe65cd692af32a.js +0 -1
  957. package/app/.next/static/chunks/app/api/models/test/route-b3fe65cd692af32a.js +0 -1
  958. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-b3fe65cd692af32a.js +0 -1
  959. package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-b3fe65cd692af32a.js +0 -1
  960. package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-b3fe65cd692af32a.js +0 -1
  961. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-b3fe65cd692af32a.js +0 -1
  962. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-b3fe65cd692af32a.js +0 -1
  963. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-b3fe65cd692af32a.js +0 -1
  964. package/app/.next/static/chunks/app/api/oauth/grok-cli/bulk-import/route-b3fe65cd692af32a.js +0 -1
  965. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-b3fe65cd692af32a.js +0 -1
  966. package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-b3fe65cd692af32a.js +0 -1
  967. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-b3fe65cd692af32a.js +0 -1
  968. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-b3fe65cd692af32a.js +0 -1
  969. package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-b3fe65cd692af32a.js +0 -1
  970. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-b3fe65cd692af32a.js +0 -1
  971. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-b3fe65cd692af32a.js +0 -1
  972. package/app/.next/static/chunks/app/api/pricing/route-b3fe65cd692af32a.js +0 -1
  973. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-b3fe65cd692af32a.js +0 -1
  974. package/app/.next/static/chunks/app/api/provider-nodes/route-b3fe65cd692af32a.js +0 -1
  975. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-b3fe65cd692af32a.js +0 -1
  976. package/app/.next/static/chunks/app/api/providers/[id]/models/route-b3fe65cd692af32a.js +0 -1
  977. package/app/.next/static/chunks/app/api/providers/[id]/route-b3fe65cd692af32a.js +0 -1
  978. package/app/.next/static/chunks/app/api/providers/[id]/test/route-b3fe65cd692af32a.js +0 -1
  979. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-b3fe65cd692af32a.js +0 -1
  980. package/app/.next/static/chunks/app/api/providers/client/route-b3fe65cd692af32a.js +0 -1
  981. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-b3fe65cd692af32a.js +0 -1
  982. package/app/.next/static/chunks/app/api/providers/route-b3fe65cd692af32a.js +0 -1
  983. package/app/.next/static/chunks/app/api/providers/suggested-models/route-b3fe65cd692af32a.js +0 -1
  984. package/app/.next/static/chunks/app/api/providers/test-batch/route-b3fe65cd692af32a.js +0 -1
  985. package/app/.next/static/chunks/app/api/providers/validate/route-b3fe65cd692af32a.js +0 -1
  986. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-b3fe65cd692af32a.js +0 -1
  987. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-b3fe65cd692af32a.js +0 -1
  988. package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-b3fe65cd692af32a.js +0 -1
  989. package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-b3fe65cd692af32a.js +0 -1
  990. package/app/.next/static/chunks/app/api/proxy-pools/route-b3fe65cd692af32a.js +0 -1
  991. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-b3fe65cd692af32a.js +0 -1
  992. package/app/.next/static/chunks/app/api/pxpipe/health/route-b3fe65cd692af32a.js +0 -1
  993. package/app/.next/static/chunks/app/api/pxpipe/install/route-b3fe65cd692af32a.js +0 -1
  994. package/app/.next/static/chunks/app/api/pxpipe/logs/route-b3fe65cd692af32a.js +0 -1
  995. package/app/.next/static/chunks/app/api/pxpipe/restart/route-b3fe65cd692af32a.js +0 -1
  996. package/app/.next/static/chunks/app/api/pxpipe/start/route-b3fe65cd692af32a.js +0 -1
  997. package/app/.next/static/chunks/app/api/pxpipe/stats/route-b3fe65cd692af32a.js +0 -1
  998. package/app/.next/static/chunks/app/api/pxpipe/status/route-b3fe65cd692af32a.js +0 -1
  999. package/app/.next/static/chunks/app/api/pxpipe/stop/route-b3fe65cd692af32a.js +0 -1
  1000. package/app/.next/static/chunks/app/api/settings/database/route-b3fe65cd692af32a.js +0 -1
  1001. package/app/.next/static/chunks/app/api/settings/database/selective/route-b3fe65cd692af32a.js +0 -1
  1002. package/app/.next/static/chunks/app/api/settings/proxy-test/route-b3fe65cd692af32a.js +0 -1
  1003. package/app/.next/static/chunks/app/api/settings/require-login/route-b3fe65cd692af32a.js +0 -1
  1004. package/app/.next/static/chunks/app/api/settings/route-b3fe65cd692af32a.js +0 -1
  1005. package/app/.next/static/chunks/app/api/shutdown/route-b3fe65cd692af32a.js +0 -1
  1006. package/app/.next/static/chunks/app/api/tags/route-b3fe65cd692af32a.js +0 -1
  1007. package/app/.next/static/chunks/app/api/translator/console-logs/route-b3fe65cd692af32a.js +0 -1
  1008. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-b3fe65cd692af32a.js +0 -1
  1009. package/app/.next/static/chunks/app/api/translator/load/route-b3fe65cd692af32a.js +0 -1
  1010. package/app/.next/static/chunks/app/api/translator/save/route-b3fe65cd692af32a.js +0 -1
  1011. package/app/.next/static/chunks/app/api/translator/send/route-b3fe65cd692af32a.js +0 -1
  1012. package/app/.next/static/chunks/app/api/translator/translate/route-b3fe65cd692af32a.js +0 -1
  1013. package/app/.next/static/chunks/app/api/tunnel/disable/route-b3fe65cd692af32a.js +0 -1
  1014. package/app/.next/static/chunks/app/api/tunnel/enable/route-b3fe65cd692af32a.js +0 -1
  1015. package/app/.next/static/chunks/app/api/tunnel/status/route-b3fe65cd692af32a.js +0 -1
  1016. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-b3fe65cd692af32a.js +0 -1
  1017. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-b3fe65cd692af32a.js +0 -1
  1018. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-b3fe65cd692af32a.js +0 -1
  1019. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-b3fe65cd692af32a.js +0 -1
  1020. package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-b3fe65cd692af32a.js +0 -1
  1021. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-b3fe65cd692af32a.js +0 -1
  1022. package/app/.next/static/chunks/app/api/usage/chart/route-b3fe65cd692af32a.js +0 -1
  1023. package/app/.next/static/chunks/app/api/usage/history/route-b3fe65cd692af32a.js +0 -1
  1024. package/app/.next/static/chunks/app/api/usage/logs/route-b3fe65cd692af32a.js +0 -1
  1025. package/app/.next/static/chunks/app/api/usage/providers/route-b3fe65cd692af32a.js +0 -1
  1026. package/app/.next/static/chunks/app/api/usage/report/route-b3fe65cd692af32a.js +0 -1
  1027. package/app/.next/static/chunks/app/api/usage/request-details/route-b3fe65cd692af32a.js +0 -1
  1028. package/app/.next/static/chunks/app/api/usage/request-logs/route-b3fe65cd692af32a.js +0 -1
  1029. package/app/.next/static/chunks/app/api/usage/stats/route-b3fe65cd692af32a.js +0 -1
  1030. package/app/.next/static/chunks/app/api/usage/stream/route-b3fe65cd692af32a.js +0 -1
  1031. package/app/.next/static/chunks/app/api/v1/api/chat/route-b3fe65cd692af32a.js +0 -1
  1032. package/app/.next/static/chunks/app/api/v1/audio/speech/route-b3fe65cd692af32a.js +0 -1
  1033. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-b3fe65cd692af32a.js +0 -1
  1034. package/app/.next/static/chunks/app/api/v1/audio/voices/route-b3fe65cd692af32a.js +0 -1
  1035. package/app/.next/static/chunks/app/api/v1/chat/completions/route-b3fe65cd692af32a.js +0 -1
  1036. package/app/.next/static/chunks/app/api/v1/embeddings/route-b3fe65cd692af32a.js +0 -1
  1037. package/app/.next/static/chunks/app/api/v1/images/generations/route-b3fe65cd692af32a.js +0 -1
  1038. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-b3fe65cd692af32a.js +0 -1
  1039. package/app/.next/static/chunks/app/api/v1/messages/route-b3fe65cd692af32a.js +0 -1
  1040. package/app/.next/static/chunks/app/api/v1/models/[...model]/route-b3fe65cd692af32a.js +0 -1
  1041. package/app/.next/static/chunks/app/api/v1/models/info/route-b3fe65cd692af32a.js +0 -1
  1042. package/app/.next/static/chunks/app/api/v1/models/route-b3fe65cd692af32a.js +0 -1
  1043. package/app/.next/static/chunks/app/api/v1/responses/compact/route-b3fe65cd692af32a.js +0 -1
  1044. package/app/.next/static/chunks/app/api/v1/responses/route-b3fe65cd692af32a.js +0 -1
  1045. package/app/.next/static/chunks/app/api/v1/route-b3fe65cd692af32a.js +0 -1
  1046. package/app/.next/static/chunks/app/api/v1/search/route-b3fe65cd692af32a.js +0 -1
  1047. package/app/.next/static/chunks/app/api/v1/videos/[id]/route-b3fe65cd692af32a.js +0 -1
  1048. package/app/.next/static/chunks/app/api/v1/videos/edits/route-b3fe65cd692af32a.js +0 -1
  1049. package/app/.next/static/chunks/app/api/v1/videos/extensions/route-b3fe65cd692af32a.js +0 -1
  1050. package/app/.next/static/chunks/app/api/v1/videos/generations/route-b3fe65cd692af32a.js +0 -1
  1051. package/app/.next/static/chunks/app/api/v1/web/fetch/route-b3fe65cd692af32a.js +0 -1
  1052. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-b3fe65cd692af32a.js +0 -1
  1053. package/app/.next/static/chunks/app/api/v1beta/models/route-b3fe65cd692af32a.js +0 -1
  1054. package/app/.next/static/chunks/app/api/version/route-b3fe65cd692af32a.js +0 -1
  1055. package/app/.next/static/chunks/app/api/version/shutdown/route-b3fe65cd692af32a.js +0 -1
  1056. package/app/.next/static/chunks/app/api/version/update/route-b3fe65cd692af32a.js +0 -1
  1057. package/app/.next/static/chunks/app/manifest.webmanifest/route-b3fe65cd692af32a.js +0 -1
  1058. package/app/.next/static/chunks/app/page-b3fe65cd692af32a.js +0 -1
  1059. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-b3fe65cd692af32a.js +0 -1
  1060. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-b3fe65cd692af32a.js +0 -1
  1061. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-b3fe65cd692af32a.js +0 -1
  1062. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-b3fe65cd692af32a.js +0 -1
  1063. /package/app/.next/static/{4aSob9BYLKkmEZKpVTTCD → 60FwY0jMQtwHUBO9ot3jD}/_ssgManifest.js +0 -0
@@ -2,7 +2,7 @@
2
2
  ${l}
3
3
  ${n}
4
4
  ${k.toString("latin1")}
5
- ${q}`,s=h(Buffer.from(r,"latin1")),t=c.machineId||(0,f.A)(),u=h(k),v=String(k.length);return{Authorization:`Bearer COSY.${p}.${s}`,"Cosy-Key":l,"Cosy-User":c.userId,"Cosy-Date":n,"Cosy-Version":g.cT,"Cosy-Machineid":t,"Cosy-Machinetoken":t,"Cosy-Machinetype":g.RB,"Cosy-Machineos":g.pM,"Cosy-Clienttype":g.Ty,"Cosy-Clientip":"127.0.0.1","Cosy-Bodyhash":u,"Cosy-Bodylength":v,"Cosy-Sigpath":q,"Cosy-Data-Policy":g.qk,"Cosy-Organization-Id":"","Cosy-Organization-Tags":"","Login-Version":g.xG,"X-Request-Id":(0,f.A)()}}},53225:(a,b,c)=>{c.d(b,{EV:()=>r,X5:()=>q,_M:()=>o,zh:()=>h});var d=c(55511),e=c(39609),f=c(30015),g=c(69704);function h(a){return"string"==typeof a&&a.startsWith("pt-")}let i=new Map,j=new Map,k=new Map;async function l(a,b=null,c=null){let d=await (0,e.proxyAwareFetch)(g.OQ,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"qodercli/1.0.0","Cosy-Version":g.cT,"Cosy-ClientType":g.Ty},body:JSON.stringify({personal_token:a}),signal:c},b);if(!d.ok){let a=await d.text().catch(()=>"");throw Error(`qoder PAT exchange failed: ${d.status} ${a.slice(0,200)}`)}let f=await d.json();if(!f.token)throw Error("qoder PAT exchange returned no job token");let h=Date.now()+864e5;if(f.expires_at){let a=Date.parse(f.expires_at);Number.isNaN(a)||(h=a)}else"number"==typeof f.expires_in&&f.expires_in>0&&(h=Date.now()+f.expires_in);return{jobToken:f.token,jobRefreshToken:f.refresh_token||"",expiresAt:h}}async function m(a,b=null,c=null){try{let d=await (0,e.proxyAwareFetch)(g._G,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":"qodercli/1.0.0"},signal:c},b);if(!d.ok)return"";let f=await d.json().catch(()=>({}));return f.id||f.userId||f.user_id||""}catch{return""}}async function n(a,b=null,c=null){let d=i.get(a);if(d&&d.expiresAt-Date.now()>3e5)return d;let{jobToken:e,expiresAt:f}=await l(a,b,c),g=await m(e,b,c),h={accessToken:e,userId:g,expiresAt:f};return i.set(a,h),h}async function o(a,b=null,c=null){let d=a?.apiKey||a?.accessToken;if(h(d)){let e=await n(d,b,c);return{...a,accessToken:e.accessToken,apiKey:void 0,providerSpecificData:{authMethod:"pat",...a?.providerSpecificData||{},userId:e.userId||a?.providerSpecificData?.userId||"",machineId:a?.providerSpecificData?.machineId||""}}}return a}async function p(a,b,c=null){let d,h,i={userId:(h=a?.providerSpecificData||{}).userId,authToken:a.accessToken,name:a.displayName||"",email:a.email||"",machineId:h.machineId||""};if(!i.userId||!i.authToken)return null;let j=String(i.authToken).startsWith("jt-")?`${g.j9}/algo/api/v2/model/list`:g.t6,k={Accept:"application/json","Accept-Encoding":"identity",...(0,f.d)(Buffer.alloc(0),j,i)},l=new AbortController,m=null,n=null;try{m=setTimeout(()=>l.abort("timeout"),15e3),b&&"function"==typeof b.addEventListener&&(b.aborted?l.abort(b.reason):(n=()=>l.abort(b.reason),b.addEventListener("abort",n))),d=await (0,e.proxyAwareFetch)(j,{method:"GET",headers:k,signal:l.signal},c)}finally{m&&clearTimeout(m),b&&n&&b.removeEventListener("abort",n)}if(!d.ok)return null;let o=await d.json().catch(()=>null);if(!o||!Array.isArray(o.chat))return null;let q=[],r=new Map;for(let a of o.chat){if(!a||"object"!=typeof a)continue;let b=a.key;if(!b||(r.set(b,a),!1===a.enable))continue;let c=a.display_name||b,d=Number(a.max_input_tokens)||131072;q.push({id:b,name:`${c}`,contextLength:d,isVL:!!a.is_vl,isReasoning:!!a.is_reasoning,maxOutputTokens:Number(a.max_output_tokens)||0,description:a.description||""})}return{models:q,rawConfigs:r}}async function q(a,b,c={}){let d=await r(a,c);if(!d)return null;let e=d.rawConfigs.get(b);return e?{...e,key:b}:null}async function r(a,b={}){var c;let e,f;try{e=await o(a,b.proxyOptions,b.signal)}catch(a){return b.log?.warn?.("QODER",`PAT exchange failed: ${a.message}`),null}if(!e?.accessToken||!(e.providerSpecificData||{}).userId)return null;let g=(c=e,f=(c?.providerSpecificData||{}).userId||c?.refreshToken||c?.accessToken||"anonymous",(0,d.createHash)("sha256").update(`qoder:${f}`).digest("hex")),h=Date.now();if(!b.forceRefresh){let a=j.get(g);if(a&&a.expiresAt>h)return a}let i=k.get(g);if(i&&!b.forceRefresh)return i;let l=(async()=>{let a=await p(e,b.signal,b.proxyOptions);if(!a)return null;let c={expiresAt:Date.now()+36e5,models:a.models,rawConfigs:a.rawConfigs,fetched:!0};return j.set(g,c),c})();k.set(g,l);try{return await l}finally{k.get(g)===l&&k.delete(g)}}},69704:(a,b,c)=>{c.d(b,{F8:()=>k,KC:()=>m,OQ:()=>j,RB:()=>t,Ty:()=>p,_G:()=>i,bg:()=>h,cT:()=>o,j9:()=>f,pM:()=>s,pr:()=>u,qk:()=>q,rf:()=>g,t6:()=>n,xG:()=>r});let d="https://openapi.qoder.sh",e="https://api3.qoder.sh",f="https://api2.qoder.sh",g="https://qoder.com/device/selectAccounts",h=`${d}/api/v1/deviceToken/poll`,i=`${d}/api/v1/userinfo`,j=`${d}/api/v1/jobToken/exchange`,k="/api/v2/service/pro/sse/agent_chat_generation",l=`${e}/algo${k}?FetchKeys=llm_model_result&AgentId=agent_common`,m=`${l}&Encode=1`,n=`${e}/algo/api/v2/model/list`,o="1.0.0",p="5",q="disagree",r="v2",s="x86_64_windows",t="5",u=`-----BEGIN PUBLIC KEY-----
5
+ ${q}`,s=h(Buffer.from(r,"latin1")),t=c.machineId||(0,f.A)(),u=h(k),v=String(k.length);return{Authorization:`Bearer COSY.${p}.${s}`,"Cosy-Key":l,"Cosy-User":c.userId,"Cosy-Date":n,"Cosy-Version":g.cT,"Cosy-Machineid":t,"Cosy-Machinetoken":t,"Cosy-Machinetype":g.RB,"Cosy-Machineos":g.pM,"Cosy-Clienttype":g.Ty,"Cosy-Clientip":"127.0.0.1","Cosy-Bodyhash":u,"Cosy-Bodylength":v,"Cosy-Sigpath":q,"Cosy-Data-Policy":g.qk,"Cosy-Organization-Id":"","Cosy-Organization-Tags":"","Login-Version":g.xG,"X-Request-Id":(0,f.A)()}}},53225:(a,b,c)=>{c.d(b,{EV:()=>r,So:()=>s,X5:()=>q,_M:()=>o,zh:()=>h});var d=c(55511),e=c(39609),f=c(30015),g=c(69704);function h(a){return"string"==typeof a&&a.startsWith("pt-")}let i=new Map,j=new Map,k=new Map;async function l(a,b=null,c=null){let d=await (0,e.proxyAwareFetch)(g.OQ,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"qodercli/1.0.0","Cosy-Version":g.cT,"Cosy-ClientType":g.Ty},body:JSON.stringify({personal_token:a}),signal:c},b);if(!d.ok){let a=await d.text().catch(()=>"");throw Error(`qoder PAT exchange failed: ${d.status} ${a.slice(0,200)}`)}let f=await d.json();if(!f.token)throw Error("qoder PAT exchange returned no job token");let h=Date.now()+864e5;if(f.expires_at){let a=Date.parse(f.expires_at);Number.isNaN(a)||(h=a)}else"number"==typeof f.expires_in&&f.expires_in>0&&(h=Date.now()+f.expires_in);return{jobToken:f.token,jobRefreshToken:f.refresh_token||"",expiresAt:h}}async function m(a,b=null,c=null){try{let d=await (0,e.proxyAwareFetch)(g._G,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":"qodercli/1.0.0"},signal:c},b);if(!d.ok)return"";let f=await d.json().catch(()=>({}));return f.id||f.userId||f.user_id||""}catch{return""}}async function n(a,b=null,c=null){let d=i.get(a);if(d&&d.expiresAt-Date.now()>3e5)return d;let{jobToken:e,expiresAt:f}=await l(a,b,c),g=await m(e,b,c),h={accessToken:e,userId:g,expiresAt:f};return i.set(a,h),h}async function o(a,b=null,c=null){let d=a?.apiKey||a?.accessToken;if(h(d)){let e=await n(d,b,c);return{...a,accessToken:e.accessToken,apiKey:void 0,providerSpecificData:{authMethod:"pat",...a?.providerSpecificData||{},userId:e.userId||a?.providerSpecificData?.userId||"",machineId:a?.providerSpecificData?.machineId||""}}}return a}async function p(a,b,c=null){let d,h,i={userId:(h=a?.providerSpecificData||{}).userId,authToken:a.accessToken,name:a.displayName||"",email:a.email||"",machineId:h.machineId||""};if(!i.userId||!i.authToken)return null;let j=String(i.authToken).startsWith("jt-")?`${g.j9}/algo/api/v2/model/list`:g.t6,k={Accept:"application/json","Accept-Encoding":"identity",...(0,f.d)(Buffer.alloc(0),j,i)},l=new AbortController,m=null,n=null;try{m=setTimeout(()=>l.abort("timeout"),15e3),b&&"function"==typeof b.addEventListener&&(b.aborted?l.abort(b.reason):(n=()=>l.abort(b.reason),b.addEventListener("abort",n))),d=await (0,e.proxyAwareFetch)(j,{method:"GET",headers:k,signal:l.signal},c)}finally{m&&clearTimeout(m),b&&n&&b.removeEventListener("abort",n)}if(!d.ok)return null;let o=await d.json().catch(()=>null);if(!o||!Array.isArray(o.chat))return null;let q=[],r=new Map;for(let a of o.chat){if(!a||"object"!=typeof a)continue;let b=a.key;if(!b||(r.set(b,a),!1===a.enable))continue;let c=a.display_name||b,d=Number(a.max_input_tokens)||131072;q.push({id:b,name:`${c}`,contextLength:d,isVL:!!a.is_vl,isReasoning:!!a.is_reasoning,maxOutputTokens:Number(a.max_output_tokens)||0,description:a.description||""})}return{models:q,rawConfigs:r}}async function q(a,b,c={}){let d=await r(a,c);if(!d)return null;let e=d.rawConfigs.get(b);return e?{...e,key:b}:null}async function r(a,b={}){var c;let e,f;try{e=await o(a,b.proxyOptions,b.signal)}catch(a){return b.log?.warn?.("QODER",`PAT exchange failed: ${a.message}`),null}if(!e?.accessToken||!(e.providerSpecificData||{}).userId)return null;let g=(c=e,f=(c?.providerSpecificData||{}).userId||c?.refreshToken||c?.accessToken||"anonymous",(0,d.createHash)("sha256").update(`qoder:${f}`).digest("hex")),h=Date.now();if(!b.forceRefresh){let a=j.get(g);if(a&&a.expiresAt>h)return a}let i=k.get(g);if(i&&!b.forceRefresh)return i;let l=(async()=>{let a=await p(e,b.signal,b.proxyOptions);if(!a)return null;let c={expiresAt:Date.now()+36e5,models:a.models,rawConfigs:a.rawConfigs,fetched:!0};return j.set(g,c),c})();k.set(g,l);try{return await l}finally{k.get(g)===l&&k.delete(g)}}function s(a){if(!a)return[];let b=[],c=new Set;for(let d of a.models||[])!d?.id||c.has(d.id)||(c.add(d.id),b.push({id:d.id,name:d.name||d.id,hidden:!1}));for(let[d,e]of a.rawConfigs||[])!d||c.has(d)||(c.add(d),b.push({id:d,name:e?.display_name||d,hidden:!0}));return b}},69704:(a,b,c)=>{c.d(b,{EM:()=>r,F8:()=>k,NH:()=>p,OQ:()=>j,RB:()=>y,Ty:()=>u,Y6:()=>o,_G:()=>i,bg:()=>h,cT:()=>t,d2:()=>q,e9:()=>s,iu:()=>n,j9:()=>f,o8:()=>m,pM:()=>x,pr:()=>z,qk:()=>v,rf:()=>g,t6:()=>l,xG:()=>w});let d="https://openapi.qoder.sh",e="https://api3.qoder.sh",f="https://api2.qoder.sh",g="https://qoder.com/device/selectAccounts",h=`${d}/api/v1/deviceToken/poll`,i=`${d}/api/v1/userinfo`,j=`${d}/api/v1/jobToken/exchange`,k="/api/v2/service/pro/sse/agent_chat_generation",l=`${e}/algo/api/v2/model/list`,m="/api/v2/image/upload",n=6291456,o=524288,p=.15,q="QODER_CONTEXT_TIER",r=Object.freeze({AUTO:"auto",MAX:"max",DEFAULT:"default"});function s(a){let b=a?.apiKey||a?.accessToken;return"string"==typeof b&&!b.startsWith("pt-")&&(b.startsWith("jt-")||(a?.accessToken||"").startsWith("jt-"))?f:e}let t="1.0.0",u="5",v="disagree",w="v2",x="x86_64_windows",y="5",z=`-----BEGIN PUBLIC KEY-----
6
6
  MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA8iMH5c02LilrsERw9t6Pv5Nc
7
7
  4k6Pz1EaDicBMpdpxKduSZu5OANqUq8er4GM95omAGIOPOh+Nx0spthYA2BqGz+l
8
8
  6HRkPJ7S236FZz73In/KVuLnwI8JJ2CbuJap8kvheCCZpmAWpb/cPx/3Vr/J6I17
@@ -36,7 +36,7 @@ exports.id=3481,exports.ids=[3481],exports.modules={8578:(a,b,c)=>{"use strict";
36
36
  fi
37
37
  fi
38
38
  done
39
- `;return new Promise(a=>{f(d,{shell:"/bin/bash"},()=>a())})}async function y(a,b){if(!h()){k(`🔐 Cert: cannot install to system store without sudo — trust this file on clients: ${b}`),await x(b,"add");return}let c=p(),d=`${c.dir}/9router-root-ca.crt`,e=`cp "${b}" "${d}" && (${c.cmd} 2>/dev/null || true)`;try{await g(e,a),await x(b,"add"),k(`🔐 Cert: ✅ installed to Linux trust store (${c.dir}) and user browser databases`)}catch(a){throw Error(`Certificate install failed: ${a.message}`)}}async function z(a){if(await x(null,"delete"),!h())return;let b=p(),c=`${b.dir}/9router-root-ca.crt`,d=`rm -f "${c}" && (${b.cmd} 2>/dev/null || true)`;try{await g(d,a),k("\uD83D\uDD10 Cert: ✅ uninstalled from Linux trust store and user browser databases")}catch(a){throw Error("Failed to uninstall certificate")}}a.exports={installCert:async function a(a,b){if(!d.existsSync(b))throw Error(`Certificate file not found: ${b}`);await s(b)?k("\uD83D\uDD10 Cert: already trusted ✅"):m?await u(b):n?await t(a,b):await y(a,b)},uninstallCert:async function a(a,b){await s(b)?m?await w():n?await v(a,b):await z(a):k("\uD83D\uDD10 Cert: not found in system store")},checkCertInstalled:s}},17511:(a,b,c)=>{"use strict";let d=c(29021),e=(()=>{if("win32"===process.platform)return null;for(let a of["/usr/sbin/lsof","/usr/bin/lsof","/sbin/lsof"])try{return d.accessSync(a,d.constants.X_OK),a}catch{}return"lsof"})(),f={antigravity:[":generateContent",":streamGenerateContent"],copilot:["/chat/completions","/v1/messages","/responses"],kiro:["/generateAssistantResponse"],cursor:["/BidiAppend","/RunSSE","/RunPoll","/Run"]};a.exports={IS_DEV:!1,LSOF_BIN:e,TARGET_HOSTS:["daily-cloudcode-pa.googleapis.com","cloudcode-pa.googleapis.com","api.individual.githubcopilot.com","q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com","runtime.us-east-1.kiro.dev","api2.cursor.sh"],URL_PATTERNS:f,MODEL_SYNONYMS:{antigravity:{"gemini-default":"gemini-3.5-flash-low","gemini-3.5-flash-high":"gemini-3-flash-agent","gemini-3.5-flash-medium":"gemini-3.5-flash-low","gemini-3.5-flash-extra-low":"gemini-3.5-flash-extra-low","gemini-3.8-flash":"gemini-3.8-flash-medium","gemini-3.8-flash-high":"gemini-3.8-flash-high","gemini-3.8-flash-medium":"gemini-3.8-flash-medium","gemini-3.8-flash-low":"gemini-3.8-flash-low","gemini-3.7-flash-high":"gemini-3.7-flash-high","gemini-3.7-flash-medium":"gemini-3.7-flash-medium","gemini-3.7-flash-low":"gemini-3.7-flash-low","gemini-3.1-pro-high":"gemini-pro-agent","gemini-3-pro-high":"gemini-pro-agent","gemini-3-pro-low":"gemini-3.1-pro-low"}},MODEL_PATTERNS:{antigravity:[{match:/flash.*extra.*low|extra.*low.*flash|flash.*low|low.*flash/i,alias:"gemini-3.5-flash-extra-low"},{match:/flash.*medium|medium.*flash/i,alias:"gemini-3.5-flash-low"},{match:/flash.*agent|agent.*flash|flash/i,alias:"gemini-3-flash-agent"},{match:/pro.*low|low.*pro/i,alias:"gemini-3.1-pro-low"},{match:/gemini.*pro|pro.*gemini/i,alias:"gemini-pro-agent"},{match:/opus/i,alias:"claude-opus-4-6-thinking"},{match:/sonnet|claude/i,alias:"claude-sonnet-4-6"},{match:/gpt.*oss|oss/i,alias:"gpt-oss-120b-medium"}]},MODEL_NO_MAP:{antigravity:[/^tab[_-]/i]},LOG_BLACKLIST_URL_PARTS:["recordCodeAssistMetrics","recordTrajectoryAnalytics","fetchAdminControls","listExperiments","fetchUserInfo"],getToolForHost:function(a){let b=(a||"").split(":")[0];return"api.individual.githubcopilot.com"===b?"copilot":"daily-cloudcode-pa.googleapis.com"===b||"cloudcode-pa.googleapis.com"===b?"antigravity":"q.us-east-1.amazonaws.com"===b||"codewhisperer.us-east-1.amazonaws.com"===b||"runtime.us-east-1.kiro.dev"===b?"kiro":"api2.cursor.sh"===b?"cursor":null},isChatRequest:function(a,b){return!!(f[a]||[]).some(a=>(b.url||"").includes(a))||"kiro"===a&&String(b.headers?.["x-amz-target"]||"").includes("GenerateAssistantResponse")},extractModel:function(a,b){let c=a.match(/\/models\/([^/:]+)/),d=c?.[1]||null;if(function(a){if(!a||0===a.length)return!1;let b=a.slice(0,Math.min(100,a.length)),c=0;for(let a=0;a<b.length;a++){let d=b[a];d<32&&9!==d&&10!==d&&13!==d&&c++,d>126&&c++}return c/b.length>.3}(b))return d;try{let a=JSON.parse(b.toString());if(a.conversationState)return a.conversationState.currentMessage?.userInputMessage?.modelId||null;let c=d||a.model||null,e=String(c).replace(/^models\//,"");if("gemini-3.6-flash-tiered"===e||"gemini-3.7-flash-tiered"===e||"gemini-3.8-flash-tiered"===e){let b=e.includes("3.8")?"3.8":e.includes("3.7")?"3.7":"3.6",c=a.request?.generationConfig?.thinkingConfig?.thinkingLevel||a.generationConfig?.thinkingConfig?.thinkingLevel,d=["high","medium","low"].includes(String(c).toLowerCase())?String(c).toLowerCase():"medium";return`gemini-${b}-flash-${d}`}return c}catch{return d}}}},26033:(a,b,c)=>{"use strict";c(33873),c(29021);let{MITM_DIR:d}=c(82193),{generateRootCA:e,loadRootCA:f,generateLeafCert:g}=c(8578);a.exports={generateCert:function(){return e()},getCertForDomain:function(a){try{let b=f(),c=g(a,b);return{key:c.key,cert:c.cert}}catch(b){return console.error(`Failed to generate cert for ${a}:`,b.message),null}}}},49120:(a,b,c)=>{"use strict";c.d(b,{n:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="n9router";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}let l=function(){let a=process.env.DATA_DIR;if(!a)return k();if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),k();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}()},64809:(a,b,c)=>{"use strict";let{exec:d,execSync:e}=c(79646),f="win32"===process.platform;function g(){if(f)try{return e("net session >nul 2>&1",{windowsHide:!0,stdio:"ignore"}),!0}catch{return!1}return"function"==typeof process.getuid&&0===process.getuid()}function h(a){return`'${String(a).replace(/'/g,"''")}'`}a.exports={isAdmin:g,runElevatedPowerShell:function(a){if(!f)return Promise.reject(Error("Windows-only"));let b=Buffer.from(a,"utf16le").toString("base64");if(g())return new Promise((a,c)=>{d(`powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -EncodedCommand ${b}`,{windowsHide:!0},(b,d,e)=>{b?c(Error(e||b.message)):a(d)})});let c=`
39
+ `;return new Promise(a=>{f(d,{shell:"/bin/bash"},()=>a())})}async function y(a,b){if(!h()){k(`🔐 Cert: cannot install to system store without sudo — trust this file on clients: ${b}`),await x(b,"add");return}let c=p(),d=`${c.dir}/9router-root-ca.crt`,e=`cp "${b}" "${d}" && (${c.cmd} 2>/dev/null || true)`;try{await g(e,a),await x(b,"add"),k(`🔐 Cert: ✅ installed to Linux trust store (${c.dir}) and user browser databases`)}catch(a){throw Error(`Certificate install failed: ${a.message}`)}}async function z(a){if(await x(null,"delete"),!h())return;let b=p(),c=`${b.dir}/9router-root-ca.crt`,d=`rm -f "${c}" && (${b.cmd} 2>/dev/null || true)`;try{await g(d,a),k("\uD83D\uDD10 Cert: ✅ uninstalled from Linux trust store and user browser databases")}catch(a){throw Error("Failed to uninstall certificate")}}a.exports={installCert:async function a(a,b){if(!d.existsSync(b))throw Error(`Certificate file not found: ${b}`);await s(b)?k("\uD83D\uDD10 Cert: already trusted ✅"):m?await u(b):n?await t(a,b):await y(a,b)},uninstallCert:async function a(a,b){await s(b)?m?await w():n?await v(a,b):await z(a):k("\uD83D\uDD10 Cert: not found in system store")},checkCertInstalled:s}},17511:(a,b,c)=>{"use strict";let d=c(29021),e=(()=>{if("win32"===process.platform)return null;for(let a of["/usr/sbin/lsof","/usr/bin/lsof","/sbin/lsof"])try{return d.accessSync(a,d.constants.X_OK),a}catch{}return"lsof"})(),f={antigravity:[":generateContent",":streamGenerateContent"],copilot:["/chat/completions","/v1/messages","/responses"],kiro:["/generateAssistantResponse"],cursor:["/BidiAppend","/RunSSE","/RunPoll","/Run"]};a.exports={IS_DEV:!1,LSOF_BIN:e,TARGET_HOSTS:["daily-cloudcode-pa.googleapis.com","cloudcode-pa.googleapis.com","api.individual.githubcopilot.com","q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com","runtime.us-east-1.kiro.dev","api2.cursor.sh"],URL_PATTERNS:f,MODEL_SYNONYMS:{antigravity:{"gemini-default":"gemini-3.5-flash-low","gemini-3.5-flash-high":"gemini-3-flash-agent","gemini-3.5-flash-medium":"gemini-3.5-flash-low","gemini-3.5-flash-extra-low":"gemini-3.5-flash-extra-low","gemini-3.8-flash":"gemini-3.8-flash-medium","gemini-3.8-flash-high":"gemini-3.8-flash-high","gemini-3.8-flash-medium":"gemini-3.8-flash-medium","gemini-3.8-flash-low":"gemini-3.8-flash-low","gemini-3.7-flash-high":"gemini-3.7-flash-high","gemini-3.7-flash-medium":"gemini-3.7-flash-medium","gemini-3.7-flash-low":"gemini-3.7-flash-low","gemini-3.1-pro-high":"gemini-pro-agent","gemini-3-pro-high":"gemini-pro-agent","gemini-3-pro-low":"gemini-3.1-pro-low"}},MODEL_PATTERNS:{antigravity:[{match:/flash.*extra.*low|extra.*low.*flash|flash.*low|low.*flash/i,alias:"gemini-3.5-flash-extra-low"},{match:/flash.*medium|medium.*flash/i,alias:"gemini-3.5-flash-low"},{match:/flash.*agent|agent.*flash|flash/i,alias:"gemini-3-flash-agent"},{match:/pro.*low|low.*pro/i,alias:"gemini-3.1-pro-low"},{match:/gemini.*pro|pro.*gemini/i,alias:"gemini-pro-agent"},{match:/opus/i,alias:"claude-opus-4-6-thinking"},{match:/sonnet|claude/i,alias:"claude-sonnet-4-6"},{match:/gpt.*oss|oss/i,alias:"gpt-oss-120b-medium"}]},MODEL_NO_MAP:{antigravity:[/^tab[_-]/i]},LOG_BLACKLIST_URL_PARTS:["recordCodeAssistMetrics","recordTrajectoryAnalytics","fetchAdminControls","listExperiments","fetchUserInfo"],getToolForHost:function(a){let b=(a||"").split(":")[0];return"api.individual.githubcopilot.com"===b?"copilot":"daily-cloudcode-pa.googleapis.com"===b||"cloudcode-pa.googleapis.com"===b?"antigravity":"q.us-east-1.amazonaws.com"===b||"codewhisperer.us-east-1.amazonaws.com"===b||"runtime.us-east-1.kiro.dev"===b?"kiro":"api2.cursor.sh"===b?"cursor":null},isChatRequest:function(a,b){return!!(f[a]||[]).some(a=>(b.url||"").includes(a))||"kiro"===a&&String(b.headers?.["x-amz-target"]||"").includes("GenerateAssistantResponse")},extractModel:function(a,b){let c=a.match(/\/models\/([^/:]+)/),d=c?.[1]||null;if(function(a){if(!a||0===a.length)return!1;let b=a.slice(0,Math.min(100,a.length)),c=0;for(let a=0;a<b.length;a++){let d=b[a];d<32&&9!==d&&10!==d&&13!==d&&c++,d>126&&c++}return c/b.length>.3}(b))return d;try{let a=JSON.parse(b.toString());if(a.conversationState)return a.conversationState.currentMessage?.userInputMessage?.modelId||null;let c=d||a.model||null,e=String(c).replace(/^models\//,"");if("gemini-3.6-flash-tiered"===e||"gemini-3.7-flash-tiered"===e||"gemini-3.8-flash-tiered"===e){let b=e.includes("3.8")?"3.8":e.includes("3.7")?"3.7":"3.6",c=a.request?.generationConfig?.thinkingConfig?.thinkingLevel||a.generationConfig?.thinkingConfig?.thinkingLevel,d=["high","medium","low"].includes(String(c).toLowerCase())?String(c).toLowerCase():"medium";return`gemini-${b}-flash-${d}`}return c}catch{return d}}}},26033:(a,b,c)=>{"use strict";c(33873),c(29021);let{MITM_DIR:d}=c(82193),{generateRootCA:e,loadRootCA:f,generateLeafCert:g}=c(8578);a.exports={generateCert:function(){return e()},getCertForDomain:function(a){try{let b=f(),c=g(a,b);return{key:c.key,cert:c.cert}}catch(b){return console.error(`Failed to generate cert for ${a}:`,b.message),null}}}},49120:(a,b,c)=>{"use strict";c.d(b,{n:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="n9router";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}let l=function(){let a=process.env.DATA_DIR;if(!a)return k();if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),k();try{return e().mkdirSync(a,{recursive:!0}),e().accessSync(a,e().constants.W_OK),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}()},64809:(a,b,c)=>{"use strict";let{exec:d,execSync:e}=c(79646),f="win32"===process.platform;function g(){if(f)try{return e("net session >nul 2>&1",{windowsHide:!0,stdio:"ignore"}),!0}catch{return!1}return"function"==typeof process.getuid&&0===process.getuid()}function h(a){return`'${String(a).replace(/'/g,"''")}'`}a.exports={isAdmin:g,runElevatedPowerShell:function(a){if(!f)return Promise.reject(Error("Windows-only"));let b=Buffer.from(a,"utf16le").toString("base64");if(g())return new Promise((a,c)=>{d(`powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -EncodedCommand ${b}`,{windowsHide:!0},(b,d,e)=>{b?c(Error(e||b.message)):a(d)})});let c=`
40
40
  $proc = Start-Process powershell -ArgumentList @(
41
41
  '-NoProfile','-NonInteractive','-ExecutionPolicy','Bypass',
42
42
  '-WindowStyle','Hidden','-EncodedCommand','${b}'
@@ -55,11 +55,11 @@ exports.id=3481,exports.ids=[3481],exports.modules={8578:(a,b,c)=>{"use strict";
55
55
  }
56
56
  Set-Content -LiteralPath ${m(p)} -Value $filtered
57
57
  ipconfig /flushdns | Out-Null
58
- `;await l(c),u(a,!1)}else{for(let a of d){let c=o?`sed -i '' '/${a}/d' ${p}`:`sed -i '/${a}/d' ${p}`;await w(c,b)}await x(b)}i(`🌐 DNS ${a}: ✅ removed ${d.join(", ")} (hosts=${p})`)}catch(c){let b=c.message?.includes("incorrect password")?"Wrong sudo password":t(c,{action:"Failed to remove DNS entry",tool:a,hostsFile:p,hosts:d});throw j(`DNS ${a}: remove failed — ${b}`),Error(b)}}async function B(a){for(let b of Object.keys(k))try{await A(b,a)}catch(a){j(`DNS ${b}: failed to remove — ${a.message}`)}}a.exports={TOOL_HOSTS:k,addDNSEntry:z,removeDNSEntry:A,removeAllDNSEntries:B,removeAllDNSEntriesSync:function(){try{if(!g.existsSync(p))return;let a=Object.values(k).flat(),b=g.readFileSync(p,"utf8"),c=b.split(/\r?\n/).filter(b=>!a.some(a=>b.includes(a))).join(n?"\r\n":"\n");if(c===b)return;if(g.writeFileSync(p,c,"utf8"),n)try{f("ipconfig /flushdns",{windowsHide:!0,stdio:"ignore"})}catch{}else if(o)try{f("dscacheutil -flushcache && killall -HUP mDNSResponder",{stdio:"ignore"})}catch{}else try{f("resolvectl flush-caches 2>/dev/null || true",{stdio:"ignore"})}catch{}}catch{}},execWithPassword:w,isSudoAvailable:v,checkDNSEntry:y,checkAllDNSStatus:function(){try{let a=g.readFileSync(p,"utf8"),b={};for(let[c,d]of Object.entries(k))b[c]=d.every(b=>a.includes(b));return b}catch{return Object.fromEntries(Object.keys(k).map(a=>[a,!1]))}},buildWindowsAdminHint:s,buildDnsOperationError:t,describeDnsError:r,isWindowsAdmin:function(){if(!n)return!1;try{return f("net session >nul 2>&1",{windowsHide:!0,stdio:"ignore"}),!0}catch{return!1}}}},78335:()=>{},82193:(a,b,c)=>{"use strict";let d=c(33873),e=c(21820),f=c(29021),g=process.env.DATA_DIR?process.env.DATA_DIR:"win32"===process.platform?d.join(process.env.APPDATA||d.join(e.homedir(),"AppData","Roaming"),"n9router"):d.join(e.homedir(),".n9router"),h=d.join(g,"mitm");if("win32"===process.platform)try{let a=d.join(e.homedir(),".n9router","mitm"),b=d.join(h,"rootCA.key"),c=d.join(a,"rootCA.key");!f.existsSync(b)&&f.existsSync(c)&&(f.mkdirSync(h,{recursive:!0}),f.cpSync(a,h,{recursive:!0}))}catch(a){console.error("[n9router mitm] Could not sync MITM from ~/.n9router/mitm:",a.message)}a.exports={DATA_DIR:g,MITM_DIR:h}},85341:a=>{"use strict";a.exports={TOOL_HOSTS:{antigravity:["daily-cloudcode-pa.googleapis.com","cloudcode-pa.googleapis.com"],copilot:["api.individual.githubcopilot.com"],kiro:["runtime.us-east-1.kiro.dev","q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com"],cursor:["api2.cursor.sh"]}}},87777:(a,b,c)=>{"use strict";let d=c(29021),e=c(33873),f=c(74075),{DATA_DIR:g}=c(82193),{LOG_BLACKLIST_URL_PARTS:h}=c(17511);function i(){return new Date().toLocaleTimeString("en-US",{hour12:!1})}let j=e.join(g,"logs","mitm");d.existsSync(j)||d.mkdirSync(j,{recursive:!0});let k=/^\s*(\{\s*\}|\[\s*\]|null)?\s*$/;function l(a,b=80){return String(a).replace(/[^a-zA-Z0-9]/g,"_").substring(0,b)}function m(a){return!!a&&h.some(b=>a.includes(b))}a.exports={log:a=>console.log(`[${i()}] [MITM] ${a}`),err:a=>console.error(`[${i()}] ❌ [MITM] ${a}`),dumpRequest:function(a,b,c="raw"){if(m(a.url))return null;try{let f=new Date().toISOString().replace(/[:.]/g,"-"),g=l((a.headers.host||"")+a.url),h=e.join(j,`${f}_${c}_${g}.req.json`),i=null;try{i=JSON.parse(b.toString())}catch{}return d.writeFileSync(h,JSON.stringify({method:a.method,url:a.url,host:a.headers.host,headers:a.headers,body:i??b.toString("utf8")},null,2)),h}catch{return null}},createResponseDumper:function(a,b="raw"){if(m(a.url))return null;let c=new Date().toISOString().replace(/[:.]/g,"-"),g=l((a.headers.host||"")+a.url),h=e.join(j,`${c}_${b}_${g}.res.txt`),i=0,n={},o=[];return{writeHeader:(a,b)=>{i=a,n=b||{}},writeChunk:a=>{null!=a&&o.push(Buffer.isBuffer(a)?a:Buffer.from(a))},end:()=>{try{let a=Buffer.concat(o),b=n["content-encoding"]||n["Content-Encoding"],c=(function(a,b){if(!a||0===a.length)return a;try{let c=(b||"").toLowerCase();if(c.includes("gzip"))return f.gunzipSync(a);if(c.includes("br"))return f.brotliDecompressSync(a);if(c.includes("deflate"))return f.inflateSync(a)}catch{}return a})(a,b).toString("utf8");if(k.test(c))return;let e={...n};delete e["content-encoding"],delete e["Content-Encoding"];let g=`STATUS: ${i}
58
+ `;await l(c),u(a,!1)}else{for(let a of d){let c=o?`sed -i '' '/${a}/d' ${p}`:`sed -i '/${a}/d' ${p}`;await w(c,b)}await x(b)}i(`🌐 DNS ${a}: ✅ removed ${d.join(", ")} (hosts=${p})`)}catch(c){let b=c.message?.includes("incorrect password")?"Wrong sudo password":t(c,{action:"Failed to remove DNS entry",tool:a,hostsFile:p,hosts:d});throw j(`DNS ${a}: remove failed — ${b}`),Error(b)}}async function B(a){for(let b of Object.keys(k))try{await A(b,a)}catch(a){j(`DNS ${b}: failed to remove — ${a.message}`)}}a.exports={TOOL_HOSTS:k,addDNSEntry:z,removeDNSEntry:A,removeAllDNSEntries:B,removeAllDNSEntriesSync:function(){try{if(!g.existsSync(p))return;let a=Object.values(k).flat(),b=g.readFileSync(p,"utf8"),c=b.split(/\r?\n/).filter(b=>!a.some(a=>b.includes(a))).join(n?"\r\n":"\n");if(c===b)return;if(g.writeFileSync(p,c,"utf8"),n)try{f("ipconfig /flushdns",{windowsHide:!0,stdio:"ignore"})}catch{}else if(o)try{f("dscacheutil -flushcache && killall -HUP mDNSResponder",{stdio:"ignore"})}catch{}else try{f("resolvectl flush-caches 2>/dev/null || true",{stdio:"ignore"})}catch{}}catch{}},execWithPassword:w,isSudoAvailable:v,checkDNSEntry:y,checkAllDNSStatus:function(){try{let a=g.readFileSync(p,"utf8"),b={};for(let[c,d]of Object.entries(k))b[c]=d.every(b=>a.includes(b));return b}catch{return Object.fromEntries(Object.keys(k).map(a=>[a,!1]))}},buildWindowsAdminHint:s,buildDnsOperationError:t,describeDnsError:r,isWindowsAdmin:function(){if(!n)return!1;try{return f("net session >nul 2>&1",{windowsHide:!0,stdio:"ignore"}),!0}catch{return!1}}}},78335:()=>{},82193:(a,b,c)=>{"use strict";let d=c(33873),e=c(21820),f=c(29021);function g(){return"win32"===process.platform?d.join(process.env.APPDATA||d.join(e.homedir(),"AppData","Roaming"),"n9router"):d.join(e.homedir(),".n9router")}let h=function(){let a=process.env.DATA_DIR;if(!a||"win32"===process.platform&&/^\//.test(a))return g();try{return f.mkdirSync(a,{recursive:!0}),f.accessSync(a,f.constants.W_OK),a}catch(a){if(a?.code==="EACCES"||a?.code==="EPERM")return g();throw a}}(),i=d.join(h,"mitm");if("win32"===process.platform)try{let a=d.join(e.homedir(),".n9router","mitm"),b=d.join(i,"rootCA.key"),c=d.join(a,"rootCA.key");!f.existsSync(b)&&f.existsSync(c)&&(f.mkdirSync(i,{recursive:!0}),f.cpSync(a,i,{recursive:!0}))}catch(a){console.error("[n9router mitm] Could not sync MITM from ~/.n9router/mitm:",a.message)}a.exports={DATA_DIR:h,MITM_DIR:i}},85341:a=>{"use strict";a.exports={TOOL_HOSTS:{antigravity:["daily-cloudcode-pa.googleapis.com","cloudcode-pa.googleapis.com"],copilot:["api.individual.githubcopilot.com"],kiro:["runtime.us-east-1.kiro.dev","q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com"],cursor:["api2.cursor.sh"]}}},87777:(a,b,c)=>{"use strict";let d=c(29021),e=c(33873),f=c(74075),{DATA_DIR:g}=c(82193),{LOG_BLACKLIST_URL_PARTS:h}=c(17511);function i(){return new Date().toLocaleTimeString("en-US",{hour12:!1})}let j=e.join(g,"logs","mitm");d.existsSync(j)||d.mkdirSync(j,{recursive:!0});let k=/^\s*(\{\s*\}|\[\s*\]|null)?\s*$/;function l(a,b=80){return String(a).replace(/[^a-zA-Z0-9]/g,"_").substring(0,b)}function m(a){return!!a&&h.some(b=>a.includes(b))}a.exports={log:a=>console.log(`[${i()}] [MITM] ${a}`),err:a=>console.error(`[${i()}] ❌ [MITM] ${a}`),dumpRequest:function(a,b,c="raw"){if(m(a.url))return null;try{let f=new Date().toISOString().replace(/[:.]/g,"-"),g=l((a.headers.host||"")+a.url),h=e.join(j,`${f}_${c}_${g}.req.json`),i=null;try{i=JSON.parse(b.toString())}catch{}return d.writeFileSync(h,JSON.stringify({method:a.method,url:a.url,host:a.headers.host,headers:a.headers,body:i??b.toString("utf8")},null,2)),h}catch{return null}},createResponseDumper:function(a,b="raw"){if(m(a.url))return null;let c=new Date().toISOString().replace(/[:.]/g,"-"),g=l((a.headers.host||"")+a.url),h=e.join(j,`${c}_${b}_${g}.res.txt`),i=0,n={},o=[];return{writeHeader:(a,b)=>{i=a,n=b||{}},writeChunk:a=>{null!=a&&o.push(Buffer.isBuffer(a)?a:Buffer.from(a))},end:()=>{try{let a=Buffer.concat(o),b=n["content-encoding"]||n["Content-Encoding"],c=(function(a,b){if(!a||0===a.length)return a;try{let c=(b||"").toLowerCase();if(c.includes("gzip"))return f.gunzipSync(a);if(c.includes("br"))return f.brotliDecompressSync(a);if(c.includes("deflate"))return f.inflateSync(a)}catch{}return a})(a,b).toString("utf8");if(k.test(c))return;let e={...n};delete e["content-encoding"],delete e["Content-Encoding"];let g=`STATUS: ${i}
59
59
  HEADERS: ${JSON.stringify(e,null,2)}
60
60
  ---BODY---
61
- ${c}`;d.writeFileSync(h,g)}catch{}},file:h}},clearDumpDir:function(){try{if(!d.existsSync(j))return;for(let a of d.readdirSync(j))try{d.rmSync(e.join(j,a),{recursive:!0,force:!0})}catch{}}catch{}}}},96182:(a,b,c)=>{"use strict";let{exec:d,spawn:e,execSync:f}=c(79646),g=c(33873),h=c(29021),i=c(21820),j=c(91645),k=c(55591),l=c(55511),{addDNSEntry:m,removeDNSEntry:n,removeAllDNSEntries:o,removeAllDNSEntriesSync:p,checkAllDNSStatus:q,TOOL_HOSTS:r,isSudoAvailable:s}=c(66936),t="win32"===process.platform,u="darwin"===process.platform,{generateCert:v}=c(26033),{installCert:w,uninstallCert:x,checkCertInstalled:y,isWSL:z}=c(9631),{isCertExpired:A}=c(8578),{MITM_DIR:B}=c(82193),{log:C,err:D}=c(87777),E="http://localhost:20128";function F(a){return null==a||""===a?"''":`'${String(a).replace(/'/g,"'\\''")}'`}async function G(){if(!W)return E;try{let a=await W(),b=a&&null!=a.mitmRouterBaseUrl?String(a.mitmRouterBaseUrl).trim():"";if(!b)return E;let c=new URL(b);if("http:"!==c.protocol&&"https:"!==c.protocol)return E;return b.replace(/\/+$/,"")}catch{return E}}let H=g.join(B,".mitm.pid"),I=[5e3,1e4,2e4,3e4,6e4],J=0,K=0,L=!1,M=function(){if(process.env.MITM_SERVER_PATH)return process.env.MITM_SERVER_PATH;let a=g.join(__dirname,"server.js");if(h.existsSync(a))return a;let b=g.join(process.cwd(),"src","mitm","server.js");if(h.existsSync(b))return b;let c=g.join(process.cwd(),"..","src","mitm","server.js");return h.existsSync(c)?c:b}(),N="aes-256-gcm",O="9router-mitm-pwd",P=null,Q=null;function R(){return globalThis.__mitmSudoPassword||null}function S(a){globalThis.__mitmSudoPassword=a}function T(a){try{return process.kill(a,0),!0}catch(a){return"EACCES"===a.code}}function U(a,b=!1,e=null){if(t)d(`taskkill ${b?"/F ":""}/PID ${a}`,{windowsHide:!0},()=>{});else{let f=b?"SIGKILL":"SIGTERM",g=`pkill -${f} -P ${a} 2>/dev/null; kill -${f} ${a} 2>/dev/null`;if(e){let{execWithPassword:a}=c(66936);a(g,e).catch(()=>d(g,{windowsHide:!0},()=>{}))}else d(g,{windowsHide:!0},()=>{})}}function V(){try{let{machineIdSync:a}=c(19713),b=a();return l.createHash("sha256").update(b+O).digest()}catch{return l.createHash("sha256").update(O).digest()}}let W=null,X=null;async function Y(a,b){if(X)try{let c,d,e,f,g,h={mitmEnabled:a};b&&(c=V(),d=l.randomBytes(12),e=l.createCipheriv(N,c,d),f=Buffer.concat([e.update(b,"utf8"),e.final()]),g=e.getAuthTag(),h.mitmSudoEncrypted=`${d.toString("hex")}:${g.toString("hex")}:${f.toString("hex")}`),await X(h)}catch(a){D(`Failed to save settings: ${a.message}`)}}async function Z(){if(X)try{await X({mitmSudoEncrypted:null})}catch(a){D(`Failed to clear encrypted password: ${a.message}`)}}async function $(){if(!W)return null;try{let a=await W();if(!a.mitmSudoEncrypted)return null;return function(a){try{let[b,c,d]=a.split(":");if(!b||!c||!d)return null;let e=V(),f=l.createDecipheriv(N,e,Buffer.from(b,"hex"));return f.setAuthTag(Buffer.from(c,"hex")),f.update(Buffer.from(d,"hex"))+f.final("utf8")}catch{return null}}(a.mitmSudoEncrypted)}catch{return null}}async function _(a){if(P&&!P.killed){try{P.kill("SIGKILL")}catch{}P=null,Q=null}try{if(h.existsSync(H)){let b=parseInt(h.readFileSync(H,"utf-8").trim(),10);b&&T(b)&&(U(b,!0,a),await new Promise(a=>setTimeout(a,500))),h.unlinkSync(H)}}catch{}if(!t&&M)try{let b=M.replace(/'/g,"'\\''");if(a){let{execWithPassword:d}=c(66936);await d(`pkill -SIGKILL -f "${b}" 2>/dev/null || true`,a).catch(()=>{})}else d(`pkill -SIGKILL -f "${b}" 2>/dev/null || true`,{windowsHide:!0},()=>{});await new Promise(a=>setTimeout(a,500))}catch{}}async function aa(){let a=null!==P&&!P.killed,b=Q;if(!a)try{if(h.existsSync(H)){let c=parseInt(h.readFileSync(H,"utf-8").trim(),10);c&&T(c)?(a=!0,b=c):h.unlinkSync(H)}}catch{}let c=q(),d=g.join(B,"rootCA.crt"),e=h.existsSync(d),f=!!e&&await y(d);return{running:a,pid:b,certExists:e,certTrusted:f,dnsStatus:c}}async function ab(a){if(L)return;if(L=!0,Date.now()-K>=6e4&&(J=0),J>=5){D("Max restart attempts reached. Giving up."),L=!1;return}let b=I[Math.min(J,I.length-1)];J++,C(`Restarting in ${b/1e3}s... (${J}/5)`),await new Promise(a=>setTimeout(a,b));try{let b=W?await W():null;if(b&&!b.mitmEnabled){C("MITM disabled, skipping restart"),L=!1;return}let c=R()||await $();if(!c&&!t){D("No cached password, cannot auto-restart"),L=!1;return}await ac(a,c),C("\uD83D\uDD04 Restarted successfully"),J=0,L=!1}catch(b){D(`Restart attempt ${J}/5 failed: ${b.message}`),L=!1,ab(a)}}async function ac(a,b){if(!P||P.killed)try{if(h.existsSync(H)){let a=parseInt(h.readFileSync(H,"utf-8").trim(),10);if(a&&T(a))return Q=a,C(`♻️ Reusing existing process (PID: ${a})`),await Y(!0,b),b&&S(b),{running:!0,pid:a};h.unlinkSync(H)}}catch{}if(P&&!P.killed)throw Error("MITM server is already running");if(await _(b),!t){let a=await new Promise(a=>{let b=j.createServer();b.once("error",b=>{"EADDRINUSE"===b.code?a("in-use"):a("no-permission")}),b.once("listening",()=>{b.close(()=>a("free"))}),b.listen(443,"127.0.0.1")});if("in-use"===a||"no-permission"===a){let a=await new Promise(a=>{t?d('powershell -NonInteractive -WindowStyle Hidden -Command "$c = Get-NetTCPConnection -LocalPort 443 -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1; if ($c) { $c.OwningProcess } else { 0 }"',{windowsHide:!0},(b,c)=>{if(b)return a(null);let e=parseInt(c.trim(),10);if(!e||e<=4)return a(null);d(`tasklist /FI "PID eq ${e}" /FO CSV /NH`,{windowsHide:!0},(b,c)=>{let d=c?.match(/"([^"]+)"/);a({pid:e,name:d?d[1]:"unknown"})})}):d("lsof -nP -iTCP:443 -sTCP:LISTEN -t",{windowsHide:!0},(b,c)=>{if(b||!c?.trim())return a(null);let e=parseInt(c.trim().split("\n")[0],10);if(!e||isNaN(e))return a(null);d(`ps -p ${e} -o comm=`,{windowsHide:!0},(b,c)=>{a({pid:e,name:c?.trim()||"unknown"})})})});if(a&&("node"===a.name||a.name.includes("node"))){C(`Killing orphan node process on port 443 (PID ${a.pid}, name=${a.name})...`);try{let{execWithPassword:d}=c(66936);await d(`kill -9 ${a.pid}`,b),await new Promise(a=>setTimeout(a,800))}catch{}}else if(a){let b=a.name.includes("/")?a.name.split("/").filter(Boolean).pop():a.name;throw Error(`Port 443 is already in use by "${b}" (PID ${a.pid}). Stop that process first.`)}}}let l=g.join(B,"rootCA.crt"),m=g.join(B,"rootCA.key"),n=h.existsSync(l)&&h.existsSync(m);if(!n||A(l)){if(n){C("\uD83D\uDD10 Cert expired — uninstalling old cert...");let a=b||R()||await $();try{await x(a,l)}catch{}}C("\uD83D\uDD10 Generating Root CA..."),await v()}let o=await y(l),p=!t&&!u&&!s()&&!z();if(o)C("\uD83D\uDD10 Cert: already trusted ✅");else{C("\uD83D\uDD10 Cert: not trusted → installing...");let a=b||R()||await $();if(p)C(`🔐 Cert: skipping system trust (no sudo). Install ${l} as a trusted CA on machines that use this proxy.`);else{if(!a&&!t&&!z())throw Error("Sudo password required to install Root CA certificate");try{await w(a,l),C("\uD83D\uDD10 Cert: ✅ trusted")}catch(a){throw Error(`Failed to trust certificate: ${a.message}`)}}}let r=await G();if(C(`🚀 Starting server... (router: ${r})`),t){try{f('powershell -NonInteractive -WindowStyle Hidden -Command "$c = Get-NetTCPConnection -LocalPort 443 -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1; if ($c -and $c.OwningProcess -gt 4) { Stop-Process -Id $c.OwningProcess -Force -ErrorAction SilentlyContinue }"',{windowsHide:!0}),await new Promise(a=>setTimeout(a,500))}catch{}P=e(process.execPath,[M],{detached:!1,windowsHide:!0,stdio:["ignore","pipe","pipe"],env:{...process.env,ROUTER_API_KEY:a,NODE_ENV:"production",MITM_ROUTER_BASE:r}}),X&&await X({mitmCertInstalled:!0}).catch(()=>{})}else s()?((P=e("sudo",["-S","-E","sh","-c",[`HOME=${F(i.homedir())}`,`ROUTER_API_KEY=${F(a)}`,`MITM_ROUTER_BASE=${F(r)}`,"NODE_ENV=production",F(process.execPath),F(M)].join(" ")],{detached:!1,windowsHide:!0,stdio:["pipe","pipe","pipe"]})).stdin.write(`${b}
62
- `),P.stdin.end()):P=e(process.execPath,[M],{detached:!1,windowsHide:!0,stdio:["ignore","pipe","pipe"],env:{...process.env,ROUTER_API_KEY:a,NODE_ENV:"production",MITM_ROUTER_BASE:r}});if(P&&(Q=P.pid,h.writeFileSync(H,String(Q)),K=Date.now()),u){let a=g.join(B,"rootCA.crt");h.existsSync(a)&&d(`launchctl setenv NODE_EXTRA_CA_CERTS "${a}"`,{windowsHide:!0},b=>{b?C(`[launchctl] Failed to set NODE_EXTRA_CA_CERTS: ${b.message}`):C(`[launchctl] NODE_EXTRA_CA_CERTS set to ${a}`)})}else if(t){let a=g.join(B,"rootCA.crt");h.existsSync(a)&&d(`setx NODE_EXTRA_CA_CERTS "${a}"`,{windowsHide:!0},a=>{a?C(`[setx] Failed to set NODE_EXTRA_CA_CERTS: ${a.message}`):C("[setx] NODE_EXTRA_CA_CERTS set for current user")})}let E=null;P&&(P.stdout.on("data",a=>{process.stdout.write(a)}),P.stderr.on("data",a=>{let b=a.toString().trim();b&&(t||!b.includes("Password:")&&!b.includes("password for"))&&(D(b),E=b),!t&&(b.includes("incorrect password")||b.includes("no password was provided"))&&(S(null),Z(),L=!0)}),P.on("exit",b=>{C(`Server exited (code: ${b})`),P=null,Q=null;try{h.unlinkSync(H)}catch{}0===b||L||ab(a)}));let I=await function(a=443){return new Promise(b=>{let c=Date.now()+8e3,d=()=>{let e=k.request({hostname:"127.0.0.1",port:a,path:"/_mitm_health",method:"GET",rejectUnauthorized:!1},a=>{let c="";a.on("data",a=>{c+=a}),a.on("end",()=>{try{let a=JSON.parse(c);b(!0===a.ok?{ok:!0,pid:a.pid||null}:null)}catch{b(null)}})});e.on("error",()=>{Date.now()<c?setTimeout(d,500):b(null)}),e.end()};d()})}(443);if(!I){if(P&&!P.killed){try{P.kill()}catch{}P=null}let a=function(){try{if(t){let a=f('powershell -NonInteractive -WindowStyle Hidden -Command "$c = Get-NetTCPConnection -LocalPort 443 -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1; if ($c) { $c.OwningProcess } else { 0 }"',{encoding:"utf8",windowsHide:!0}).trim(),b=parseInt(a,10);if(b&&b>4){let a=f(`tasklist /FI "PID eq ${b}" /FO CSV /NH`,{encoding:"utf8",windowsHide:!0}).match(/"([^"]+)"/);if(a)return a[1].replace(".exe","")}}else{let a=f("lsof -i :443",{encoding:"utf8",windowsHide:!0}).trim().split("\n");if(a.length>1)return a[1].split(/\s+/)[0]}}catch{}return null}(),b=a?` Port 443 already in use by ${a}.`:"",c=E||`Check sudo password or port 443 access.${b}`;throw Error(`MITM server failed to start. ${c}`)}for(let[a,b]of(X&&await X({mitmCertInstalled:!0}).catch(()=>{}),C(`✅ Server healthy (PID: ${Q||I.pid})`),Object.entries(q())))C(`🌐 DNS ${a}: ${b?"✅ active":"❌ inactive"}`);return await Y(!0,b),b&&S(b),{running:!0,pid:Q}}async function ad(a){L=!0,J=0,C("⏹ Stopping server...");let b=P,e=b&&!b.killed?b.pid:(()=>{try{return parseInt(h.readFileSync(H,"utf-8").trim(),10)}catch{return null}})();if(e&&T(e)&&(C(`Killing server (PID: ${e})...`),U(e,!1,a),await new Promise(a=>setTimeout(a,1e3)),T(e)&&U(e,!0,a)),P=null,Q=null,t){let a=g.join(process.env.SystemRoot||"C:\\Windows","System32","drivers","etc","hosts"),b=Object.values(r).flat();try{let{isAdmin:d,runElevatedPowerShell:e,quotePs:f}=c(64809);if(d()){let d=h.readFileSync(a,"utf8"),e=d.split(/\r?\n/).filter(a=>!b.some(b=>a.includes(b))).join("\r\n");e!==d&&h.writeFileSync(a,e,"utf8");try{c(79646).execSync("ipconfig /flushdns",{windowsHide:!0,stdio:"ignore"})}catch{}C("\uD83C\uDF10 DNS: ✅ all tool hosts removed")}else{let c=b.map(f).join(","),d=`
61
+ ${c}`;d.writeFileSync(h,g)}catch{}},file:h}},clearDumpDir:function(){try{if(!d.existsSync(j))return;for(let a of d.readdirSync(j))try{d.rmSync(e.join(j,a),{recursive:!0,force:!0})}catch{}}catch{}}}},96182:(a,b,c)=>{"use strict";let{exec:d,spawn:e,execSync:f}=c(79646),g=c(33873),h=c(29021),i=c(21820),j=c(91645),k=c(55591),l=c(55511),{addDNSEntry:m,removeDNSEntry:n,removeAllDNSEntries:o,removeAllDNSEntriesSync:p,checkAllDNSStatus:q,TOOL_HOSTS:r,isSudoAvailable:s}=c(66936),t="win32"===process.platform,u="darwin"===process.platform,{generateCert:v}=c(26033),{installCert:w,uninstallCert:x,checkCertInstalled:y,isWSL:z}=c(9631),{isCertExpired:A}=c(8578),{DATA_DIR:B,MITM_DIR:C}=c(82193),{log:D,err:E}=c(87777),F="http://localhost:20128";function G(a){return null==a||""===a?"''":`'${String(a).replace(/'/g,"'\\''")}'`}async function H(){if(!X)return F;try{let a=await X(),b=a&&null!=a.mitmRouterBaseUrl?String(a.mitmRouterBaseUrl).trim():"";if(!b)return F;let c=new URL(b);if("http:"!==c.protocol&&"https:"!==c.protocol)return F;return b.replace(/\/+$/,"")}catch{return F}}let I=g.join(C,".mitm.pid"),J=[5e3,1e4,2e4,3e4,6e4],K=0,L=0,M=!1,N=function(){if(process.env.MITM_SERVER_PATH)return process.env.MITM_SERVER_PATH;let a=g.join(__dirname,"server.js");if(h.existsSync(a))return a;let b=g.join(process.cwd(),"src","mitm","server.js");if(h.existsSync(b))return b;let c=g.join(process.cwd(),"..","src","mitm","server.js");return h.existsSync(c)?c:b}(),O="aes-256-gcm",P="9router-mitm-pwd",Q=null,R=null;function S(){return globalThis.__mitmSudoPassword||null}function T(a){globalThis.__mitmSudoPassword=a}function U(a){try{return process.kill(a,0),!0}catch(a){return"EACCES"===a.code}}function V(a,b=!1,e=null){if(t)d(`taskkill ${b?"/F ":""}/PID ${a}`,{windowsHide:!0},()=>{});else{let f=b?"SIGKILL":"SIGTERM",g=`pkill -${f} -P ${a} 2>/dev/null; kill -${f} ${a} 2>/dev/null`;if(e){let{execWithPassword:a}=c(66936);a(g,e).catch(()=>d(g,{windowsHide:!0},()=>{}))}else d(g,{windowsHide:!0},()=>{})}}function W(){try{let{machineIdSync:a}=c(19713),b=a();return l.createHash("sha256").update(b+P).digest()}catch{return l.createHash("sha256").update(P).digest()}}let X=null,Y=null;async function Z(a,b){if(Y)try{let c,d,e,f,g,h={mitmEnabled:a};b&&(c=W(),d=l.randomBytes(12),e=l.createCipheriv(O,c,d),f=Buffer.concat([e.update(b,"utf8"),e.final()]),g=e.getAuthTag(),h.mitmSudoEncrypted=`${d.toString("hex")}:${g.toString("hex")}:${f.toString("hex")}`),await Y(h)}catch(a){E(`Failed to save settings: ${a.message}`)}}async function $(){if(Y)try{await Y({mitmSudoEncrypted:null})}catch(a){E(`Failed to clear encrypted password: ${a.message}`)}}async function _(){if(!X)return null;try{let a=await X();if(!a.mitmSudoEncrypted)return null;return function(a){try{let[b,c,d]=a.split(":");if(!b||!c||!d)return null;let e=W(),f=l.createDecipheriv(O,e,Buffer.from(b,"hex"));return f.setAuthTag(Buffer.from(c,"hex")),f.update(Buffer.from(d,"hex"))+f.final("utf8")}catch{return null}}(a.mitmSudoEncrypted)}catch{return null}}async function aa(a){if(Q&&!Q.killed){try{Q.kill("SIGKILL")}catch{}Q=null,R=null}try{if(h.existsSync(I)){let b=parseInt(h.readFileSync(I,"utf-8").trim(),10);b&&U(b)&&(V(b,!0,a),await new Promise(a=>setTimeout(a,500))),h.unlinkSync(I)}}catch{}if(!t&&N)try{let b=N.replace(/'/g,"'\\''");if(a){let{execWithPassword:d}=c(66936);await d(`pkill -SIGKILL -f "${b}" 2>/dev/null || true`,a).catch(()=>{})}else d(`pkill -SIGKILL -f "${b}" 2>/dev/null || true`,{windowsHide:!0},()=>{});await new Promise(a=>setTimeout(a,500))}catch{}}async function ab(){let a=null!==Q&&!Q.killed,b=R;if(!a)try{if(h.existsSync(I)){let c=parseInt(h.readFileSync(I,"utf-8").trim(),10);c&&U(c)?(a=!0,b=c):h.unlinkSync(I)}}catch{}let c=q(),d=g.join(C,"rootCA.crt"),e=h.existsSync(d),f=!!e&&await y(d);return{running:a,pid:b,certExists:e,certTrusted:f,dnsStatus:c}}async function ac(a){if(M)return;if(M=!0,Date.now()-L>=6e4&&(K=0),K>=5){E("Max restart attempts reached. Giving up."),M=!1;return}let b=J[Math.min(K,J.length-1)];K++,D(`Restarting in ${b/1e3}s... (${K}/5)`),await new Promise(a=>setTimeout(a,b));try{let b=X?await X():null;if(b&&!b.mitmEnabled){D("MITM disabled, skipping restart"),M=!1;return}let c=S()||await _();if(!c&&!t){E("No cached password, cannot auto-restart"),M=!1;return}await ad(a,c),D("\uD83D\uDD04 Restarted successfully"),K=0,M=!1}catch(b){E(`Restart attempt ${K}/5 failed: ${b.message}`),M=!1,ac(a)}}async function ad(a,b){if(!Q||Q.killed)try{if(h.existsSync(I)){let a=parseInt(h.readFileSync(I,"utf-8").trim(),10);if(a&&U(a))return R=a,D(`♻️ Reusing existing process (PID: ${a})`),await Z(!0,b),b&&T(b),{running:!0,pid:a};h.unlinkSync(I)}}catch{}if(Q&&!Q.killed)throw Error("MITM server is already running");if(await aa(b),!t){let a=await new Promise(a=>{let b=j.createServer();b.once("error",b=>{"EADDRINUSE"===b.code?a("in-use"):a("no-permission")}),b.once("listening",()=>{b.close(()=>a("free"))}),b.listen(443,"127.0.0.1")});if("in-use"===a||"no-permission"===a){let a=await new Promise(a=>{t?d('powershell -NonInteractive -WindowStyle Hidden -Command "$c = Get-NetTCPConnection -LocalPort 443 -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1; if ($c) { $c.OwningProcess } else { 0 }"',{windowsHide:!0},(b,c)=>{if(b)return a(null);let e=parseInt(c.trim(),10);if(!e||e<=4)return a(null);d(`tasklist /FI "PID eq ${e}" /FO CSV /NH`,{windowsHide:!0},(b,c)=>{let d=c?.match(/"([^"]+)"/);a({pid:e,name:d?d[1]:"unknown"})})}):d("lsof -nP -iTCP:443 -sTCP:LISTEN -t",{windowsHide:!0},(b,c)=>{if(b||!c?.trim())return a(null);let e=parseInt(c.trim().split("\n")[0],10);if(!e||isNaN(e))return a(null);d(`ps -p ${e} -o comm=`,{windowsHide:!0},(b,c)=>{a({pid:e,name:c?.trim()||"unknown"})})})});if(a&&("node"===a.name||a.name.includes("node"))){D(`Killing orphan node process on port 443 (PID ${a.pid}, name=${a.name})...`);try{let{execWithPassword:d}=c(66936);await d(`kill -9 ${a.pid}`,b),await new Promise(a=>setTimeout(a,800))}catch{}}else if(a){let b=a.name.includes("/")?a.name.split("/").filter(Boolean).pop():a.name;throw Error(`Port 443 is already in use by "${b}" (PID ${a.pid}). Stop that process first.`)}}}let l=g.join(C,"rootCA.crt"),m=g.join(C,"rootCA.key"),n=h.existsSync(l)&&h.existsSync(m);if(!n||A(l)){if(n){D("\uD83D\uDD10 Cert expired — uninstalling old cert...");let a=b||S()||await _();try{await x(a,l)}catch{}}D("\uD83D\uDD10 Generating Root CA..."),await v()}let o=await y(l),p=!t&&!u&&!s()&&!z();if(o)D("\uD83D\uDD10 Cert: already trusted ✅");else{D("\uD83D\uDD10 Cert: not trusted → installing...");let a=b||S()||await _();if(p)D(`🔐 Cert: skipping system trust (no sudo). Install ${l} as a trusted CA on machines that use this proxy.`);else{if(!a&&!t&&!z())throw Error("Sudo password required to install Root CA certificate");try{await w(a,l),D("\uD83D\uDD10 Cert: ✅ trusted")}catch(a){throw Error(`Failed to trust certificate: ${a.message}`)}}}let r=await H();if(D(`🚀 Starting server... (router: ${r})`),t){try{f('powershell -NonInteractive -WindowStyle Hidden -Command "$c = Get-NetTCPConnection -LocalPort 443 -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1; if ($c -and $c.OwningProcess -gt 4) { Stop-Process -Id $c.OwningProcess -Force -ErrorAction SilentlyContinue }"',{windowsHide:!0}),await new Promise(a=>setTimeout(a,500))}catch{}Q=e(process.execPath,[N],{detached:!1,windowsHide:!0,stdio:["ignore","pipe","pipe"],env:{...process.env,ROUTER_API_KEY:a,NODE_ENV:"production",MITM_ROUTER_BASE:r}}),Y&&await Y({mitmCertInstalled:!0}).catch(()=>{})}else s()?((Q=e("sudo",["-S","-E","sh","-c",[`HOME=${G(i.homedir())}`,`DATA_DIR=${G(B)}`,`ROUTER_API_KEY=${G(a)}`,`MITM_ROUTER_BASE=${G(r)}`,"NODE_ENV=production",G(process.execPath),G(N)].join(" ")],{detached:!1,windowsHide:!0,stdio:["pipe","pipe","pipe"]})).stdin.write(`${b}
62
+ `),Q.stdin.end()):Q=e(process.execPath,[N],{detached:!1,windowsHide:!0,stdio:["ignore","pipe","pipe"],env:{...process.env,DATA_DIR:B,ROUTER_API_KEY:a,NODE_ENV:"production",MITM_ROUTER_BASE:r}});if(Q&&(R=Q.pid,h.writeFileSync(I,String(R)),L=Date.now()),u){let a=g.join(C,"rootCA.crt");h.existsSync(a)&&d(`launchctl setenv NODE_EXTRA_CA_CERTS "${a}"`,{windowsHide:!0},b=>{b?D(`[launchctl] Failed to set NODE_EXTRA_CA_CERTS: ${b.message}`):D(`[launchctl] NODE_EXTRA_CA_CERTS set to ${a}`)})}else if(t){let a=g.join(C,"rootCA.crt");h.existsSync(a)&&d(`setx NODE_EXTRA_CA_CERTS "${a}"`,{windowsHide:!0},a=>{a?D(`[setx] Failed to set NODE_EXTRA_CA_CERTS: ${a.message}`):D("[setx] NODE_EXTRA_CA_CERTS set for current user")})}let F=null;Q&&(Q.stdout.on("data",a=>{process.stdout.write(a)}),Q.stderr.on("data",a=>{let b=a.toString().trim();b&&(t||!b.includes("Password:")&&!b.includes("password for"))&&(E(b),F=b),!t&&(b.includes("incorrect password")||b.includes("no password was provided"))&&(T(null),$(),M=!0)}),Q.on("exit",b=>{D(`Server exited (code: ${b})`),Q=null,R=null;try{h.unlinkSync(I)}catch{}0===b||M||ac(a)}));let J=await function(a=443){return new Promise(b=>{let c=Date.now()+8e3,d=()=>{let e=k.request({hostname:"127.0.0.1",port:a,path:"/_mitm_health",method:"GET",rejectUnauthorized:!1},a=>{let c="";a.on("data",a=>{c+=a}),a.on("end",()=>{try{let a=JSON.parse(c);b(!0===a.ok?{ok:!0,pid:a.pid||null}:null)}catch{b(null)}})});e.on("error",()=>{Date.now()<c?setTimeout(d,500):b(null)}),e.end()};d()})}(443);if(!J){if(Q&&!Q.killed){try{Q.kill()}catch{}Q=null}let a=function(){try{if(t){let a=f('powershell -NonInteractive -WindowStyle Hidden -Command "$c = Get-NetTCPConnection -LocalPort 443 -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1; if ($c) { $c.OwningProcess } else { 0 }"',{encoding:"utf8",windowsHide:!0}).trim(),b=parseInt(a,10);if(b&&b>4){let a=f(`tasklist /FI "PID eq ${b}" /FO CSV /NH`,{encoding:"utf8",windowsHide:!0}).match(/"([^"]+)"/);if(a)return a[1].replace(".exe","")}}else{let a=f("lsof -i :443",{encoding:"utf8",windowsHide:!0}).trim().split("\n");if(a.length>1)return a[1].split(/\s+/)[0]}}catch{}return null}(),b=a?` Port 443 already in use by ${a}.`:"",c=F||`Check sudo password or port 443 access.${b}`;throw Error(`MITM server failed to start. ${c}`)}for(let[a,b]of(Y&&await Y({mitmCertInstalled:!0}).catch(()=>{}),D(`✅ Server healthy (PID: ${R||J.pid})`),Object.entries(q())))D(`🌐 DNS ${a}: ${b?"✅ active":"❌ inactive"}`);return await Z(!0,b),b&&T(b),{running:!0,pid:R}}async function ae(a){M=!0,K=0,D("⏹ Stopping server...");let b=Q,e=b&&!b.killed?b.pid:(()=>{try{return parseInt(h.readFileSync(I,"utf-8").trim(),10)}catch{return null}})();if(e&&U(e)&&(D(`Killing server (PID: ${e})...`),V(e,!1,a),await new Promise(a=>setTimeout(a,1e3)),U(e)&&V(e,!0,a)),Q=null,R=null,t){let a=g.join(process.env.SystemRoot||"C:\\Windows","System32","drivers","etc","hosts"),b=Object.values(r).flat();try{let{isAdmin:d,runElevatedPowerShell:e,quotePs:f}=c(64809);if(d()){let d=h.readFileSync(a,"utf8"),e=d.split(/\r?\n/).filter(a=>!b.some(b=>a.includes(b))).join("\r\n");e!==d&&h.writeFileSync(a,e,"utf8");try{c(79646).execSync("ipconfig /flushdns",{windowsHide:!0,stdio:"ignore"})}catch{}D("\uD83C\uDF10 DNS: ✅ all tool hosts removed")}else{let c=b.map(f).join(","),d=`
63
63
  $hosts = @(${c})
64
64
  $lines = Get-Content -LiteralPath ${f(a)}
65
65
  $filtered = $lines | Where-Object {
@@ -68,4 +68,4 @@ ${c}`;d.writeFileSync(h,g)}catch{}},file:h}},clearDumpDir:function(){try{if(!d.e
68
68
  }
69
69
  Set-Content -LiteralPath ${f(a)} -Value $filtered
70
70
  ipconfig /flushdns | Out-Null
71
- `;await e(d)}}catch(a){D(`Failed to clean hosts: ${a.message}`)}}else await o(a);try{h.unlinkSync(H)}catch{}u?d("launchctl unsetenv NODE_EXTRA_CA_CERTS",{windowsHide:!0},a=>{a?C(`[launchctl] Failed to unset NODE_EXTRA_CA_CERTS: ${a.message}`):C("[launchctl] NODE_EXTRA_CA_CERTS unset")}):t&&d('setx NODE_EXTRA_CA_CERTS ""',{windowsHide:!0},a=>{a?C(`[setx] Failed to unset NODE_EXTRA_CA_CERTS: ${a.message}`):C("[setx] NODE_EXTRA_CA_CERTS unset for current user")});try{h.unlinkSync(H)}catch{}return await Y(!1,null),L=!1,{running:!1,pid:null}}async function ae(a,b){C(`🌐 DNS ${a}: enable requested (platform=${process.platform})`);let c=await aa();if(!c.running)throw Error("MITM server is not running. Start the server first.");C(`🌐 DNS ${a}: pre-check running=${c.running} active=${!!c.dnsStatus?.[a]}`);let d=b||R()||await $();try{await m(a,d)}catch(b){throw D(`DNS ${a}: enable failed in manager — ${b?.message||String(b)}`),b}let e=q();return C(`🌐 DNS ${a}: post-check active=${!!e[a]}`),{success:!0,dnsStatus:e}}a.exports={getMitmStatus:aa,startServer:ac,stopServer:ad,enableToolDNS:ae,disableToolDNS:async function a(a,b){C(`🌐 DNS ${a}: disable requested (platform=${process.platform})`);let c=b||R()||await $();try{await n(a,c)}catch(b){throw D(`DNS ${a}: disable failed in manager — ${b?.message||String(b)}`),b}let d=q();return C(`🌐 DNS ${a}: post-check active=${!!d[a]}`),{success:!0,dnsStatus:d}},restoreToolDNS:async function a(){return{success:!0,dnsStatus:q()}},removeAllDNSEntriesSync:p,trustCert:async function a(a){let b=g.join(B,"rootCA.crt");if(!h.existsSync(b))throw Error("Root CA not found. Start server first to generate it.");if(!t&&!u&&!s()&&!z())return void C(`🔐 Cert: system trust unavailable (no sudo). Use file: ${b}`);let c=a||R()||await $();if(!c&&!t&&!z())throw Error("Sudo password required to trust certificate");await w(c,b),c&&S(c)},startMitm:ac,stopMitm:ad,getCachedPassword:R,setCachedPassword:S,loadEncryptedPassword:$,clearEncryptedPassword:Z,initDbHooks:function(a,b){W=a,X=b}}},96487:()=>{}};
71
+ `;await e(d)}}catch(a){E(`Failed to clean hosts: ${a.message}`)}}else await o(a);try{h.unlinkSync(I)}catch{}u?d("launchctl unsetenv NODE_EXTRA_CA_CERTS",{windowsHide:!0},a=>{a?D(`[launchctl] Failed to unset NODE_EXTRA_CA_CERTS: ${a.message}`):D("[launchctl] NODE_EXTRA_CA_CERTS unset")}):t&&d('setx NODE_EXTRA_CA_CERTS ""',{windowsHide:!0},a=>{a?D(`[setx] Failed to unset NODE_EXTRA_CA_CERTS: ${a.message}`):D("[setx] NODE_EXTRA_CA_CERTS unset for current user")});try{h.unlinkSync(I)}catch{}return await Z(!1,null),M=!1,{running:!1,pid:null}}async function af(a,b){D(`🌐 DNS ${a}: enable requested (platform=${process.platform})`);let c=await ab();if(!c.running)throw Error("MITM server is not running. Start the server first.");D(`🌐 DNS ${a}: pre-check running=${c.running} active=${!!c.dnsStatus?.[a]}`);let d=b||S()||await _();try{await m(a,d)}catch(b){throw E(`DNS ${a}: enable failed in manager — ${b?.message||String(b)}`),b}let e=q();return D(`🌐 DNS ${a}: post-check active=${!!e[a]}`),{success:!0,dnsStatus:e}}a.exports={getMitmStatus:ab,startServer:ad,stopServer:ae,enableToolDNS:af,disableToolDNS:async function a(a,b){D(`🌐 DNS ${a}: disable requested (platform=${process.platform})`);let c=b||S()||await _();try{await n(a,c)}catch(b){throw E(`DNS ${a}: disable failed in manager — ${b?.message||String(b)}`),b}let d=q();return D(`🌐 DNS ${a}: post-check active=${!!d[a]}`),{success:!0,dnsStatus:d}},restoreToolDNS:async function a(){return{success:!0,dnsStatus:q()}},removeAllDNSEntriesSync:p,trustCert:async function a(a){let b=g.join(C,"rootCA.crt");if(!h.existsSync(b))throw Error("Root CA not found. Start server first to generate it.");if(!t&&!u&&!s()&&!z())return void D(`🔐 Cert: system trust unavailable (no sudo). Use file: ${b}`);let c=a||S()||await _();if(!c&&!t&&!z())throw Error("Sudo password required to trust certificate");await w(c,b),c&&T(c)},startMitm:ad,stopMitm:ae,getCachedPassword:S,setCachedPassword:T,loadEncryptedPassword:_,clearEncryptedPassword:$,initDbHooks:function(a,b){X=a,Y=b}}},96487:()=>{}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=3490,exports.ids=[3490],exports.modules={52007:(a,b,c)=>{c.d(b,{av:()=>o,gK:()=>m});var d=c(55511),e=c(39609);let f="https://llm.kimchi.dev",g=new Set([429,500,502,503,504]),h=new Map,i=new Map;function j(a){return(("string"==typeof a?a.trim():"")||f).replace(/\/+$/,"")}function k(a){return a?.accessToken||a?.apiKey||a?.providerSpecificData?.apiKey||null}function l(a){if(!a||"object"!=typeof a)return null;let b=a.slug||a.id||a.model||a.name;if("string"!=typeof b||""===b.trim())return null;let c=Array.isArray(a.input_modalities)?a.input_modalities.filter(a=>"text"===a||"image"===a):[],d=a.limits&&"object"==typeof a.limits?a.limits:{},e=Number(d.context_window||a.contextLength||a.context_length)||void 0,f=Number(d.max_output_tokens||a.maxOutputTokens||a.max_output_tokens)||void 0,g="string"==typeof a.provider?a.provider:"",h=!0===a.reasoning,i=Array.isArray(c)&&c.includes("image")?"imageToText":"llm",j={...a,id:b.trim(),name:String(a.display_name||a.displayName||a.name||b).trim(),provider:g,upstreamProvider:g,reasoning:h,inputModalities:c,kind:i,type:i,capabilities:{vision:c.includes("image"),reasoning:h,...e?{contextWindow:e}:{},...f?{maxOutput:f}:{},...g?{upstreamProvider:g}:{}},...e?{contextLength:e}:{},...f?{maxOutputTokens:f}:{}};return"anthropic"===g&&(j.compat={supportsReasoningEffort:!1,cacheControlFormat:"anthropic"}),j}function m(a){if("string"!=typeof a||""===a.trim())return null;let b=a.includes("/")?a.split("/").pop():a;return i.get(b)||i.get(b.toLowerCase())||null}async function n(a,b,c={}){let d=`${j(b)}/v1/models/metadata?include_in_cli=true`,f=new AbortController,h=setTimeout(()=>f.abort(Error("Kimchi models fetch timeout")),2e4),i=c.signal?AbortSignal.any([c.signal,f.signal]):f.signal;try{let b=await (0,e.proxyAwareFetch)(d,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${a}`,"User-Agent":"kimchi/0.1.40"},cache:"no-store",signal:i},c.proxyOptions||null);if(!b.ok){let a=Error(`Kimchi models ${b.status}: ${b.statusText}`);throw a.status=b.status,a.retryable=g.has(b.status),a}let f=await b.json();return Array.isArray(f?.models)?f.models:[]}finally{clearTimeout(h)}}async function o(a,b={}){let c,e,g,m=k(a);if(!m)return null;let p=a?.providerSpecificData?.kimchiEndpoint||b.endpoint||f,q=(g=(e=a?.providerSpecificData||{}).userId||e.username||a?.refreshToken||k(a)||"anonymous",(0,d.createHash)("sha256").update(`kimchi:${j(p)}:${g}`).digest("hex")),r=Date.now();if(!b.forceRefresh){let a=h.get(q);if(a&&a.expiresAt>r)return a}try{c=await n(m,p,b)}catch(a){return b.log?.warn?.("KIMCHI_MODELS",a.message),null}let s=c.map(l).filter(Boolean);if(0===s.length)return null;for(let a of s||[])a?.id&&(i.set(a.id,a),i.set(a.id.toLowerCase(),a));let t={expiresAt:Date.now()+3e5,models:s,rawModels:c};return h.set(q,t),t}},52284:(a,b,c)=>{c.d(b,{w$:()=>e});let d=c(39006).rE||"0.0.0";function e(a,b={}){let c,f=(c=function(a){if("string"!=typeof a)return"";let b=a.trim();return b?b.toLowerCase().startsWith("workos:")?b:/^eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/.test(b)?`workos:${b}`:b:""}(a))?`Bearer ${c}`:"",g={"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`9Router/${d}`,"X-PLATFORM":process.platform||"unknown","X-PLATFORM-VERSION":process.version||"unknown","X-CLIENT-TYPE":"9router","X-CLIENT-VERSION":d,"X-CORE-VERSION":d,"X-IS-MULTIROOT":"false",...b};return f&&(g.Authorization=f),g}},55456:(a,b,c)=>{c.d(b,{CP:()=>r,Xh:()=>l,Y8:()=>q,tM:()=>n,yI:()=>o});var d=c(94755),e=c(74075),f=c.n(e);let g="1"===process.env.CURSOR_PROTOBUF_DEBUG,h=(a,...b)=>g&&console.log(`[PROTOBUF:${a}]`,...b);new TextDecoder;let i="1.1.3",j=new Set([1,2,3,9,10,11,27,1,25]);function k(a){let b=[];for(;a>=128;)b.push(127&a|128),a>>>=7;return b.push(127&a),new Uint8Array(b)}function l(a,b,c){let d=k(a<<3|b);if(0===b)return m(d,k(c));if(2===b){let a="string"==typeof c?new TextEncoder().encode(c):c instanceof Uint8Array?c:Buffer.isBuffer(c)?new Uint8Array(c):new Uint8Array(0);return m(d,k(a.length),a)}return new Uint8Array(0)}function m(...a){let b=new Uint8Array(a.reduce((a,b)=>a+b.length,0)),c=0;for(let d of a)b.set(d,c),c+=d.length;return b}function n(a,b=!1){let c=a,d=0;b&&(c=new Uint8Array(f().gzipSync(Buffer.from(a))),d=1);let e=new Uint8Array(5+c.length);return e[0]=d,e[1]=c.length>>24&255,e[2]=c.length>>16&255,e[3]=c.length>>8&255,e[4]=255&c.length,e.set(c,5),e}function o(a,b,c=[],e=null,f=!1){h("BODY",`Generating: ${a.length} msgs, model=${b}, tools=${c.length}, reasoning=${e||"none"}, forceAgentMode=${f}`);let g=function(a,b,c=[],e=null,f=!1){return l(1,2,function(a,b,c=[],e=null,f=!1){let g,i=c?.length>0,j=i||f,n=[],o=[],p=[];for(let b=0;b<a.length;b++){let c=a[b],d=Array.isArray(c?.tool_calls)&&c.tool_calls.length>0,e=Array.isArray(c?.tool_results)&&c.tool_results.length>0;if(c?.role==="assistant"&&d&&e){h("ENCODE",`normalizing mixed assistant tool payload at msg[${b}] (calls=${c.tool_calls.length}, results=${c.tool_results.length})`),p.push({...c,tool_results:[]});let d=a[b+1],e=d?.role==="assistant"&&Array.isArray(d?.tool_results)&&d.tool_results.length>0,f=new Set(c.tool_results.map(a=>a?.tool_call_id).filter(a=>"string"==typeof a)),g=new Set((d?.tool_results||[]).map(a=>a?.tool_call_id).filter(a=>"string"==typeof a)),i=f.size>0&&f.size===g.size;if(i){for(let a of f)if(!g.has(a)){i=!1;break}}e&&i||p.push({role:"assistant",content:"",tool_results:c.tool_results});continue}p.push(c)}for(let a=0;a<p.length;a++){let b=p[a],c="user"===b.role?1:2,e=(0,d.A)(),f=a===p.length-1;n.push({content:b.content,role:c,messageId:e,isLast:f,hasTools:i,toolResults:b.tool_results||[]}),o.push({messageId:e,role:c})}let q=0;return"medium"===e?q=1:"high"===e&&(q=2),m(...n.map(a=>l(1,2,function(a,b,c,d=null,e=!1,f=!1,g=[],h=null){let i=g.length>0;return m(l(1,2,a),l(2,0,b),l(13,2,c),...h?[l(32,2,h)]:[],...i?g.map(a=>l(18,2,function(a){var b;let c,d,e=function(a){let b="string"==typeof a&&a.length>0?a:"tool";if(b.startsWith("mcp__")){let a=b.slice(5),c=a.indexOf("__");if(c>=0){let b=a.slice(0,c)||"custom",d=a.slice(c+2)||"tool";return`mcp_${b}_${d}`}return`mcp_custom_${a||"tool"}`}return b.startsWith("mcp_")?b:`mcp_custom_${b}`}(a.tool_name||a.name||""),f=a.raw_args||"{}",g=a.result_content||a.result||"",{toolCallId:h,modelCallId:i}=(b=a.tool_call_id||"",c="\nmc_",(d=b.indexOf(c))>=0?{toolCallId:b.slice(0,d),modelCallId:b.slice(d+c.length)}:{toolCallId:b,modelCallId:null}),j=a.tool_index||a.index||1,{serverName:k,selectedTool:n}=function(a){if("string"!=typeof a||!a.startsWith("mcp_"))return{serverName:"custom",selectedTool:a||"tool"};let b=a.slice(4),c=b.indexOf("_");return c<0?{serverName:"custom",selectedTool:b||"tool"}:{serverName:b.slice(0,c)||"custom",selectedTool:b.slice(c+1)||"tool"}}(e);return m(l(1,2,h),l(2,2,e),l(3,0,j>0?j:1),...i?[l(12,2,i)]:[],l(5,2,f),l(8,2,function(a,b,c,d,e=1){return m(l(1,0,19),l(28,2,m(l(1,2,c),l(2,2,d))),l(35,2,a),...b?[l(48,2,b)]:[],l(49,0,e>0?e:1))}(h,i,n,g,j)),l(11,2,function(a,b,c,d,e,f,g=1){let h;return m(l(1,0,19),l(27,2,(h=m(l(1,2,c),l(3,2,e),l(4,2,d)),l(1,2,h))),l(3,2,a),l(9,2,b),l(10,2,e),l(48,0,g>0?g:1),...f?[l(49,2,f)]:[])}(h,e,n,k,f,i,j)))}(a))):[],l(29,0,+!!f),l(47,0,f?2:1),...e&&f?[l(51,2,k(1))]:[])}(a.content,a.role,a.messageId,null,a.isLast,a.hasTools,a.toolResults))),l(2,0,1),l(3,2,new Uint8Array(0)),l(4,0,1),l(5,2,m(l(1,2,b),l(4,2,new Uint8Array(0)))),l(8,2,""),l(13,0,1),l(15,2,(g=m(l(1,2,new Uint8Array(0)),l(2,2,new Uint8Array(0))),m(l(1,2,"cursor\\aisettings"),l(3,2,new Uint8Array(0)),l(6,2,g),l(8,0,1),l(9,0,1)))),l(19,0,1),l(23,2,(0,d.A)()),l(26,2,m(l(1,2,process.platform||"linux"),l(2,2,process.arch||"x64"),l(3,2,process.version||"v20.0.0"),l(4,2,process.cwd?.()||"/"),l(5,2,new Date().toISOString()))),l(27,0,+!!j),...j?[l(29,2,k(1))]:[],...o.map(a=>l(30,2,function(a,b,c=null){return m(l(1,2,a),...c?[l(2,2,c)]:[],l(3,0,b))}(a.messageId,a.role))),...c?.length>0?c.map(a=>{let b,c,d;return l(34,2,(b=a.function?.name||a.name||"",c=a.function?.description||a.description||"",d=a.function?.parameters||a.input_schema||{},m(...b?[l(1,2,b)]:[],...c?[l(2,2,c)]:[],...Object.keys(d).length>0?[l(3,2,JSON.stringify(d))]:[],l(4,2,"custom"))))}):[],l(35,0,0),l(38,0,0),l(46,0,j?2:1),l(47,2,""),l(48,0,+!j),l(49,0,q),l(51,0,0),l(53,0,1),l(54,2,j?"Agent":"Ask"))}(a,b,c,e,f))}(a,b,c,e,f),i=n(g,!1);return h("BODY",`Protobuf=${g.length}B, Framed=${i.length}B`),i}function p(a,b){let c=0,d=0,e=b;for(;e<a.length;){let b=a[e];if(c|=(127&b)<<d,e++,!(128&b))break;d+=7}return[c,e]}function q(a){let b=new Map,c=0;for(;c<a.length;){let[d,e,f,g]=function(a,b){let c;if(b>=a.length)return[null,null,null,b];let[d,e]=p(a,b),f=7&d,g=e;if(0===f)[c,g]=p(a,g);else if(2===f){let[b,d]=p(a,g);c=a.slice(d,d+b),g=d+b}else 1===f?(c=a.slice(g,g+8),g+=8):5===f?(c=a.slice(g,g+4),g+=4):c=null;return[d>>3,f,c,g]}(a,c);if(null===d)break;b.has(d)||b.set(d,[]),b.get(d).push({wireType:e,value:f}),c=g}return b}function r(a){try{let b=q(a);for(let a of b.keys())j.has(a)||h("SCHEMA",`Unknown response field #${a} detected. Schema v${i} may be outdated.`);if(b.has(1)){let a=function(a){let b=q(a),c="",d="",e="",f=!1;if(b.has(3)&&(c=new TextDecoder().decode(b.get(3)[0].value).split("\n")[0]),b.has(9)&&(d=new TextDecoder().decode(b.get(9)[0].value)),b.has(11)&&(f=0!==b.get(11)[0].value),b.has(27))try{let a=q(b.get(27)[0].value);if(a.has(1)){let b=q(a.get(1)[0].value);b.has(1)&&(d=new TextDecoder().decode(b.get(1)[0].value)),b.has(3)&&(e=new TextDecoder().decode(b.get(3)[0].value))}}catch(a){h("EXTRACT",`MCP parse error: ${a.message}`)}return(!e&&b.has(10)&&(e=new TextDecoder().decode(b.get(10)[0].value)),c&&d)?{id:c,type:"function",function:{name:d,arguments:e||"{}"},isLast:f}:null}(b.get(1)[0].value);if(a)return h("EXTRACT",`Tool call: ${a.function.name}`),{text:null,error:null,toolCall:a,thinking:null}}if(b.has(2)){let{text:a,thinking:c}=function(a){let b=q(a),c=null,d=null;if(b.has(1)&&(c=new TextDecoder().decode(b.get(1)[0].value)),b.has(25))try{let a=q(b.get(25)[0].value);a.has(1)&&(d=new TextDecoder().decode(a.get(1)[0].value))}catch(a){h("EXTRACT",`Thinking parse error: ${a.message}`)}return{text:c,thinking:d}}(b.get(2)[0].value);if(a||c)return{text:a,error:null,toolCall:null,thinking:c}}return{text:null,error:null,toolCall:null,thinking:null}}catch(b){return h("EXTRACT",`Decode failed (schema v${i}): ${b.message}`),{text:null,error:null,toolCall:null,thinking:null,raw:Buffer.from(a).toString("base64"),decodeError:b.message}}}},81756:(a,b,c)=>{c.d(b,{JA:()=>h});var d=c(55511),e=c.n(d),f=c(85081);function g(a,b=""){return e().createHash("sha256").update(a+b).digest("hex")}function h(a,b=null,c=!0){let d=a.includes("::")?a.split("::")[1]:a,i=b||g(d,"machineId"),j=(0,f.Ay)(d,f.Ay.DNS),k=g(d),l=function(a){let b=Math.floor(Date.now()/1e6),c=new Uint8Array([b>>40&255,b>>32&255,b>>24&255,b>>16&255,b>>8&255,255&b]),d=165;for(let a=0;a<c.length;a++)c[a]=(c[a]^d)+a%256&255,d=c[a];let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",f="";for(let a=0;a<c.length;a+=3){let b=c[a],d=a+1<c.length?c[a+1]:0,g=a+2<c.length?c[a+2]:0;f+=e[b>>2],f+=e[(3&b)<<4|d>>4],a+1<c.length&&(f+=e[(15&d)<<2|g>>6]),a+2<c.length&&(f+=e[63&g])}return`${f}${a}`}(i),m="linux";"u">typeof process&&("win32"===process.platform?m="windows":"darwin"===process.platform&&(m="macos"));let n="x64";return"u">typeof process&&"arm64"===process.arch&&(n="aarch64"),{authorization:`Bearer ${d}`,"connect-accept-encoding":"gzip","connect-protocol-version":"1","content-type":"application/connect+proto","user-agent":"connect-es/1.6.1","x-amzn-trace-id":`Root=${e().randomUUID()}`,"x-client-key":k,"x-cursor-checksum":l,"x-cursor-client-version":"3.12.17","x-cursor-client-commit":"0fb762053c34788bb7760d5673f8a6d4c8589d50","x-cursor-client-type":"ide","x-cursor-client-os":m,"x-cursor-client-arch":n,"x-cursor-client-device-type":"desktop","x-cursor-config-version":e().randomUUID(),"x-cursor-timezone":Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC","x-ghost-mode":c?"true":"false","x-request-id":e().randomUUID(),"x-session-id":j}}}};
@@ -1 +1 @@
1
- "use strict";exports.id=3535,exports.ids=[3535],exports.modules={13808:(a,b,c)=>{c.d(b,{$N:()=>f,OK:()=>g,Zl:()=>h,lz:()=>i});var d=c(55511),e=c.n(d);function f(a=32){return e().randomBytes(a).toString("base64url")}function g(a){return e().createHash("sha256").update(a).digest("base64url")}function h(){return e().randomBytes(32).toString("base64url")}function i(a=32){let b=f(a),c=g(b);return{codeVerifier:b,codeChallenge:c,state:h()}}},73159:(a,b,c)=>{c.d(b,{Ue:()=>k,oT:()=>l});var d=c(26070);let e=d.xq.xai?.clientId,f="https://auth.x.ai",g="/oauth2/authorize",h="/oauth2/token",i="/.well-known/openid-configuration",j="/callback",k=96,l={clientId:e,issuer:f,authEndpointPath:g,tokenEndpointPath:h,discoveryPath:i,authorizeUrl:`${f}${g}`,tokenUrl:`${f}${h}`,discoveryUrl:`${f}${i}`,scope:"openid profile email offline_access grok-cli:access api:access",apiBaseUrl:"https://api.x.ai/v1",redirectUri:`http://127.0.0.1:56121${j}`,loopbackPort:56121,callbackPath:j,pkceVerifierBytes:96,refreshLeadSeconds:300,userAgent:"grok-cli/9router",codeChallengeMethod:"S256"}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>z,LT:()=>j,MZ:()=>u,Nl:()=>y,Nu:()=>o,OV:()=>h,RY:()=>E,S6:()=>r,SK:()=>C,Td:()=>A,Tx:()=>p,WN:()=>s,Ww:()=>F,YT:()=>m,ZL:()=>l,aV:()=>t,cD:()=>n,eD:()=>D,f7:()=>x,hF:()=>k,lB:()=>v,qp:()=>B,w1:()=>w});var d=c(21820),e=c(74129),f=c(26070);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]},k={...f.sr.qoder},l={...f.sr.iflow},m={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function n(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let o={...f.sr.github},p={...f.sr.kiro},q=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function r(a){if("string"!=typeof a||!q.test(a))throw Error("Invalid region");return a}let s={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},t={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},u={...f.sr.kilocode},v={...f.sr.cline},w={...f.sr.clinepass},x={...f.sr.gitlab},y={...f.sr["codebuddy-cn"]},z={...f.sr["codebuddy-intl"]},A={...f.sr.kimchi},B={...f.sr["grok-cli"]},C={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},D={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},E={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},F=3e5}};
1
+ "use strict";exports.id=3535,exports.ids=[3535],exports.modules={13808:(a,b,c)=>{c.d(b,{$N:()=>f,OK:()=>g,Zl:()=>h,lz:()=>i});var d=c(55511),e=c.n(d);function f(a=32){return e().randomBytes(a).toString("base64url")}function g(a){return e().createHash("sha256").update(a).digest("base64url")}function h(){return e().randomBytes(32).toString("base64url")}function i(a=32){let b=f(a),c=g(b);return{codeVerifier:b,codeChallenge:c,state:h()}}},73159:(a,b,c)=>{c.d(b,{Ue:()=>k,oT:()=>l});var d=c(26070);let e=d.xq.xai?.clientId,f="https://auth.x.ai",g="/oauth2/authorize",h="/oauth2/token",i="/.well-known/openid-configuration",j="/callback",k=96,l={clientId:e,issuer:f,authEndpointPath:g,tokenEndpointPath:h,discoveryPath:i,authorizeUrl:`${f}${g}`,tokenUrl:`${f}${h}`,discoveryUrl:`${f}${i}`,scope:"openid profile email offline_access grok-cli:access api:access",apiBaseUrl:"https://api.x.ai/v1",redirectUri:`http://127.0.0.1:56121${j}`,loopbackPort:56121,callbackPath:j,pkceVerifierBytes:96,refreshLeadSeconds:300,userAgent:"grok-cli/9router",codeChallengeMethod:"S256"}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>z,LT:()=>j,MZ:()=>u,Nl:()=>y,Nu:()=>o,OV:()=>h,RY:()=>F,S6:()=>r,SK:()=>D,Td:()=>A,Tx:()=>p,WN:()=>s,Ww:()=>G,YT:()=>m,ZL:()=>l,aV:()=>t,cD:()=>n,eD:()=>E,f7:()=>x,hF:()=>k,lB:()=>v,oe:()=>C,qp:()=>B,w1:()=>w});var d=c(21820),e=c(74129),f=c(26070);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]},k={...f.sr.qoder},l={...f.sr.iflow},m={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function n(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let o={...f.sr.github},p={...f.sr.kiro},q=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function r(a){if("string"!=typeof a||!q.test(a))throw Error("Invalid region");return a}let s={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},t={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},u={...f.sr.kilocode},v={...f.sr.cline},w={...f.sr.clinepass},x={...f.sr.gitlab},y={...f.sr["codebuddy-cn"]},z={...f.sr["codebuddy-intl"]},A={...f.sr.kimchi},B={...f.sr["grok-cli"]},C={platformUrl:process.env.MIMO_PLATFORM_URL||"https://platform.xiaomimimo.com",defaultBaseUrl:"https://api.xiaomimimo.com/v1",kn:"mimocode",callbackPath:"/",timeoutMs:3e5},D={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},E={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},F={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},G=3e5}};
@@ -0,0 +1 @@
1
+ exports.id=3676,exports.ids=[3676],exports.modules={962:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/McpMarketplaceModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/McpMarketplaceModal.js","default")},2417:(a,b,c)=>{Promise.resolve().then(c.bind(c,18200)),Promise.resolve().then(c.bind(c,8952)),Promise.resolve().then(c.bind(c,70061)),Promise.resolve().then(c.bind(c,33893)),Promise.resolve().then(c.bind(c,45512)),Promise.resolve().then(c.bind(c,4996)),Promise.resolve().then(c.bind(c,7290)),Promise.resolve().then(c.bind(c,33811)),Promise.resolve().then(c.bind(c,20493)),Promise.resolve().then(c.bind(c,40167)),Promise.resolve().then(c.bind(c,70139)),Promise.resolve().then(c.bind(c,49123)),Promise.resolve().then(c.bind(c,64148)),Promise.resolve().then(c.bind(c,92669)),Promise.resolve().then(c.bind(c,29354)),Promise.resolve().then(c.bind(c,80342)),Promise.resolve().then(c.bind(c,71230)),Promise.resolve().then(c.bind(c,82448)),Promise.resolve().then(c.bind(c,14285)),Promise.resolve().then(c.bind(c,87228)),Promise.resolve().then(c.bind(c,45205)),Promise.resolve().then(c.bind(c,64420)),Promise.resolve().then(c.bind(c,61780)),Promise.resolve().then(c.bind(c,92082)),Promise.resolve().then(c.bind(c,70603)),Promise.resolve().then(c.bind(c,962)),Promise.resolve().then(c.bind(c,10079)),Promise.resolve().then(c.bind(c,94582)),Promise.resolve().then(c.bind(c,29674)),Promise.resolve().then(c.bind(c,5843)),Promise.resolve().then(c.bind(c,3080)),Promise.resolve().then(c.bind(c,81923)),Promise.resolve().then(c.bind(c,19083)),Promise.resolve().then(c.bind(c,54065)),Promise.resolve().then(c.bind(c,83784)),Promise.resolve().then(c.bind(c,26866)),Promise.resolve().then(c.bind(c,89886)),Promise.resolve().then(c.bind(c,40515)),Promise.resolve().then(c.bind(c,70092)),Promise.resolve().then(c.bind(c,18421)),Promise.resolve().then(c.bind(c,2422)),Promise.resolve().then(c.bind(c,18060))},2422:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/UsageStats.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/UsageStats.js","default")},3080:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/OAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/OAuthModal.js","default")},4996:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/CapacityBadges.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/CapacityBadges.js","default")},5843:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/NoAuthProxyCard.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/NoAuthProxyCard.js","default")},7290:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Card.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Card.js","default")},8952:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/AgentKitPromo.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/AgentKitPromo.js","default")},10079:(a,b,c)=>{"use strict";c.d(b,{ConfirmModal:()=>f,default:()=>e});var d=c(77943);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Modal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Modal.js","default"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call ConfirmModal() from the server but ConfirmModal is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Modal.js","ConfirmModal")},14285:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/KiroOAuthWrapper.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/KiroOAuthWrapper.js","default")},18060:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/XiaomiMimoAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/XiaomiMimoAuthModal.js","default")},18200:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/AddCustomEmbeddingModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/AddCustomEmbeddingModal.js","default")},18421:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Tooltip.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Tooltip.js","default")},19083:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/RequestLogger.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/RequestLogger.js","default")},20493:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ComboFormModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ComboFormModal.js","default")},26866:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Sidebar.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Sidebar.js","default")},29354:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/HeaderMenu.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/HeaderMenu.js","default")},29674:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/NineRemoteButton.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/NineRemoteButton.js","default")},30508:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(5735);c(45512),c(71230),c(83784),c(7290),c(10079),c(92082),c(70061),c(33893),c(70092),c(40515),c(89886),c(26866),c(92669),c(49123),c(3080),c(94582),c(70603),c(20493),c(962),c(2422),c(45205),c(29674),c(29354),c(33811),c(19083),c(82448),c(14285),c(87228),c(40167),c(18060),c(80342),c(64148),c(70139),c(18200),c(5843),c(54065),c(18421),c(81923),c(4996),c(8952);var e=c(61780);function f({children:a}){return(0,d.jsx)(e.default,{children:a})}c(64420)},33811:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ChangelogModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ChangelogModal.js","default")},33893:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Badge.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Badge.js","default")},40167:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/CursorAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/CursorAuthModal.js","default")},40515:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ThemeToggle.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ThemeToggle.js","default")},45205:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/LanguageSwitcher.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/LanguageSwitcher.js","default")},45512:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Button.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Button.js","default")},49123:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Footer.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Footer.js","default")},54065:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/SegmentedControl.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/SegmentedControl.js","default")},61780:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/layouts/DashboardLayout.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/layouts/DashboardLayout.js","default")},64148:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/GitLabAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/GitLabAuthModal.js","default")},64420:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/layouts/AuthLayout.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/layouts/AuthLayout.js","default")},70061:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Avatar.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Avatar.js","default")},70092:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Toggle.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Toggle.js","default")},70139:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/EditConnectionModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/EditConnectionModal.js","default")},70603:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ManualConfigModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ManualConfigModal.js","default")},71230:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Input.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Input.js","default")},80342:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/IFlowCookieModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/IFlowCookieModal.js","default")},81923:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ProviderInfoCard.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ProviderInfoCard.js","default")},82448:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/KiroAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/KiroAuthModal.js","default")},83784:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Select.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Select.js","default")},87228:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/KiroSocialOAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/KiroSocialOAuthModal.js","default")},92082:(a,b,c)=>{"use strict";c.d(b,{CardSkeleton:()=>h,PageLoading:()=>f,Skeleton:()=>g,Spinner:()=>e,default:()=>i});var d=c(77943);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call Spinner() from the server but Spinner is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Loading.js","Spinner"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call PageLoading() from the server but PageLoading is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Loading.js","PageLoading"),g=(0,d.registerClientReference)(function(){throw Error("Attempted to call Skeleton() from the server but Skeleton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Loading.js","Skeleton"),h=(0,d.registerClientReference)(function(){throw Error("Attempted to call CardSkeleton() from the server but CardSkeleton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Loading.js","CardSkeleton"),i=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Loading.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Loading.js","default")},92669:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Header.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/Header.js","default")},92689:(a,b,c)=>{Promise.resolve().then(c.bind(c,67738)),Promise.resolve().then(c.bind(c,20158)),Promise.resolve().then(c.bind(c,25919)),Promise.resolve().then(c.bind(c,75171)),Promise.resolve().then(c.bind(c,99070)),Promise.resolve().then(c.bind(c,38930)),Promise.resolve().then(c.bind(c,17660)),Promise.resolve().then(c.bind(c,54510)),Promise.resolve().then(c.bind(c,62727)),Promise.resolve().then(c.bind(c,51109)),Promise.resolve().then(c.bind(c,51585)),Promise.resolve().then(c.bind(c,48781)),Promise.resolve().then(c.bind(c,43182)),Promise.resolve().then(c.bind(c,47036)),Promise.resolve().then(c.bind(c,3236)),Promise.resolve().then(c.bind(c,79488)),Promise.resolve().then(c.bind(c,83552)),Promise.resolve().then(c.bind(c,8590)),Promise.resolve().then(c.bind(c,5291)),Promise.resolve().then(c.bind(c,56110)),Promise.resolve().then(c.bind(c,267)),Promise.resolve().then(c.bind(c,53838)),Promise.resolve().then(c.bind(c,85306)),Promise.resolve().then(c.bind(c,74812)),Promise.resolve().then(c.bind(c,39645)),Promise.resolve().then(c.bind(c,20084)),Promise.resolve().then(c.bind(c,95145)),Promise.resolve().then(c.bind(c,83352)),Promise.resolve().then(c.bind(c,23048)),Promise.resolve().then(c.bind(c,50585)),Promise.resolve().then(c.bind(c,79346)),Promise.resolve().then(c.bind(c,11633)),Promise.resolve().then(c.bind(c,91809)),Promise.resolve().then(c.bind(c,91099)),Promise.resolve().then(c.bind(c,4770)),Promise.resolve().then(c.bind(c,42196)),Promise.resolve().then(c.bind(c,19308)),Promise.resolve().then(c.bind(c,53845)),Promise.resolve().then(c.bind(c,95514)),Promise.resolve().then(c.bind(c,32971)),Promise.resolve().then(c.bind(c,59026)),Promise.resolve().then(c.bind(c,24622))},94582:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ModelSelectModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/cuongquach/projects/vibe/n9router/src/shared/components/ModelSelectModal.js","default")}};
@@ -1 +1 @@
1
- "use strict";exports.id=3726,exports.ids=[3726],exports.modules={53726:(a,b,c)=>{c.d(b,{l9:()=>o,Ah:()=>p,installCatalogSource:()=>y,Pg:()=>x});var d=c(73024),e=c.n(d),f=c(76760),g=c.n(f),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j);let l="n9router";function m(){return"win32"===process.platform?i().join(process.env.APPDATA||i().join(k().homedir(),"AppData","Roaming"),l):i().join(k().homedir(),`.${l}`)}let n=function(){let a=process.env.DATA_DIR;if(!a)return m();if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),m();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${l}`),m();throw b}}(),o=g().join(n,"model-catalog.json"),p=g().join(n,"model-catalog-raw.json"),q={models:{},providers:{}},r=q,s=-1;function t(a){return a?(a.includes("/")?a.split("/").pop():a).toLowerCase().split(":")[0]:""}function u(){let a;try{a=e().statSync(o).mtimeMs}catch{return s=-1,r=q}if(a===s)return r;s=a;try{let a=JSON.parse(e().readFileSync(o,"utf8"));r={models:a?.models||{},providers:a?.providers||{}}}catch{r=q}return r}function v(a){return u().models[t(a)]||null}function w(a,b){let c=a&&u().providers[a];return c&&(c[b]||c[t(b)])||null}function x(){s=-1}async function y(){let{setCatalogSource:a}=await c.e(8402).then(c.bind(c,38402));a({getModalities:v,getLimits:w})}}};
1
+ "use strict";exports.id=3726,exports.ids=[3726],exports.modules={53726:(a,b,c)=>{c.d(b,{l9:()=>o,Ah:()=>p,installCatalogSource:()=>y,Pg:()=>x});var d=c(73024),e=c.n(d),f=c(76760),g=c.n(f),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j);let l="n9router";function m(){return"win32"===process.platform?i().join(process.env.APPDATA||i().join(k().homedir(),"AppData","Roaming"),l):i().join(k().homedir(),`.${l}`)}let n=function(){let a=process.env.DATA_DIR;if(!a)return m();if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),m();try{return e().mkdirSync(a,{recursive:!0}),e().accessSync(a,e().constants.W_OK),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${l}`),m();throw b}}(),o=g().join(n,"model-catalog.json"),p=g().join(n,"model-catalog-raw.json"),q={models:{},providers:{}},r=q,s=-1;function t(a){return a?(a.includes("/")?a.split("/").pop():a).toLowerCase().split(":")[0]:""}function u(){let a;try{a=e().statSync(o).mtimeMs}catch{return s=-1,r=q}if(a===s)return r;s=a;try{let a=JSON.parse(e().readFileSync(o,"utf8"));r={models:a?.models||{},providers:a?.providers||{}}}catch{r=q}return r}function v(a){return u().models[t(a)]||null}function w(a,b){let c=a&&u().providers[a];return c&&(c[b]||c[t(b)])||null}function x(){s=-1}async function y(){let{setCatalogSource:a}=await c.e(8402).then(c.bind(c,38402));a({getModalities:v,getLimits:w})}}};