9router 0.3.16 → 0.3.19

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 (532) hide show
  1. package/app/.next/BUILD_ID +1 -1
  2. package/app/.next/app-path-routes-manifest.json +45 -43
  3. package/app/.next/build-manifest.json +2 -2
  4. package/app/.next/routes-manifest.json +12 -0
  5. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  6. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  7. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  8. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  9. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  10. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  11. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  12. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  13. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  14. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  15. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  16. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  17. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  18. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  19. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  20. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  21. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  22. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  23. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  24. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  26. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  27. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  28. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  29. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  30. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  32. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  33. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  34. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  35. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  36. package/app/.next/server/app/_global-error.html +2 -2
  37. package/app/.next/server/app/_global-error.rsc +1 -1
  38. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  39. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  40. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  41. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  42. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  43. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  44. package/app/.next/server/app/_not-found/page.js +2 -2
  45. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  46. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  47. package/app/.next/server/app/_not-found.html +1 -1
  48. package/app/.next/server/app/_not-found.rsc +3 -3
  49. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  50. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  51. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  52. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  53. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  54. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  55. package/app/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  56. package/app/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  57. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  58. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +1 -1
  59. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
  60. package/app/.next/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
  61. package/app/.next/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
  62. package/app/.next/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
  63. package/app/.next/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
  64. package/app/.next/server/app/api/cloud/auth/route.js +1 -1
  65. package/app/.next/server/app/api/cloud/auth/route_client-reference-manifest.js +1 -1
  66. package/app/.next/server/app/api/cloud/credentials/update/route.js +1 -1
  67. package/app/.next/server/app/api/cloud/credentials/update/route_client-reference-manifest.js +1 -1
  68. package/app/.next/server/app/api/cloud/model/resolve/route.js +1 -1
  69. package/app/.next/server/app/api/cloud/model/resolve/route_client-reference-manifest.js +1 -1
  70. package/app/.next/server/app/api/cloud/models/alias/route.js +1 -1
  71. package/app/.next/server/app/api/cloud/models/alias/route_client-reference-manifest.js +1 -1
  72. package/app/.next/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
  73. package/app/.next/server/app/api/combos/route_client-reference-manifest.js +1 -1
  74. package/app/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
  75. package/app/.next/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
  76. package/app/.next/server/app/api/keys/route_client-reference-manifest.js +1 -1
  77. package/app/.next/server/app/api/models/alias/route.js +1 -1
  78. package/app/.next/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
  79. package/app/.next/server/app/api/models/route.js +1 -1
  80. package/app/.next/server/app/api/models/route.js.nft.json +1 -1
  81. package/app/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
  82. package/app/.next/server/app/api/models/test/route.js +1 -0
  83. package/app/.next/server/app/api/models/test/route.js.nft.json +1 -0
  84. package/app/.next/server/app/api/models/test/route_client-reference-manifest.js +1 -0
  85. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  86. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  87. package/app/.next/server/app/api/oauth/[provider]/[action]/route_client-reference-manifest.js +1 -1
  88. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +3 -6
  89. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  90. package/app/.next/server/app/api/oauth/cursor/auto-import/route_client-reference-manifest.js +1 -1
  91. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  92. package/app/.next/server/app/api/oauth/cursor/import/route_client-reference-manifest.js +1 -1
  93. package/app/.next/server/app/api/oauth/kiro/auto-import/route_client-reference-manifest.js +1 -1
  94. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  95. package/app/.next/server/app/api/oauth/kiro/import/route_client-reference-manifest.js +1 -1
  96. package/app/.next/server/app/api/oauth/kiro/social-authorize/route_client-reference-manifest.js +1 -1
  97. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  98. package/app/.next/server/app/api/oauth/kiro/social-exchange/route_client-reference-manifest.js +1 -1
  99. package/app/.next/server/app/api/pricing/route_client-reference-manifest.js +1 -1
  100. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  101. package/app/.next/server/app/api/provider-nodes/[id]/route_client-reference-manifest.js +1 -1
  102. package/app/.next/server/app/api/provider-nodes/route.js +1 -1
  103. package/app/.next/server/app/api/provider-nodes/route_client-reference-manifest.js +1 -1
  104. package/app/.next/server/app/api/provider-nodes/validate/route_client-reference-manifest.js +1 -1
  105. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  106. package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  107. package/app/.next/server/app/api/providers/[id]/models/route_client-reference-manifest.js +1 -1
  108. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  109. package/app/.next/server/app/api/providers/[id]/route_client-reference-manifest.js +1 -1
  110. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  111. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  112. package/app/.next/server/app/api/providers/[id]/test/route_client-reference-manifest.js +1 -1
  113. package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
  114. package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  115. package/app/.next/server/app/api/providers/[id]/test-models/route_client-reference-manifest.js +1 -1
  116. package/app/.next/server/app/api/providers/client/route_client-reference-manifest.js +1 -1
  117. package/app/.next/server/app/api/providers/route.js +1 -1
  118. package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
  119. package/app/.next/server/app/api/providers/route_client-reference-manifest.js +1 -1
  120. package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
  121. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  122. package/app/.next/server/app/api/providers/test-batch/route_client-reference-manifest.js +1 -1
  123. package/app/.next/server/app/api/providers/validate/route.js +1 -1
  124. package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
  125. package/app/.next/server/app/api/providers/validate/route_client-reference-manifest.js +1 -1
  126. package/app/.next/server/app/api/settings/database/route.js +1 -1
  127. package/app/.next/server/app/api/settings/database/route_client-reference-manifest.js +1 -1
  128. package/app/.next/server/app/api/settings/proxy-test/route.js +1 -0
  129. package/app/.next/server/app/api/settings/proxy-test/route.js.nft.json +1 -0
  130. package/app/.next/server/app/api/settings/proxy-test/route_client-reference-manifest.js +1 -0
  131. package/app/.next/server/app/api/settings/require-login/route_client-reference-manifest.js +1 -1
  132. package/app/.next/server/app/api/settings/route.js +1 -1
  133. package/app/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  134. package/app/.next/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
  135. package/app/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  136. package/app/.next/server/app/api/translator/load/route_client-reference-manifest.js +1 -1
  137. package/app/.next/server/app/api/translator/save/route_client-reference-manifest.js +1 -1
  138. package/app/.next/server/app/api/translator/send/route_client-reference-manifest.js +1 -1
  139. package/app/.next/server/app/api/translator/translate/route_client-reference-manifest.js +1 -1
  140. package/app/.next/server/app/api/tunnel/disable/route_client-reference-manifest.js +1 -1
  141. package/app/.next/server/app/api/tunnel/enable/route_client-reference-manifest.js +1 -1
  142. package/app/.next/server/app/api/tunnel/status/route_client-reference-manifest.js +1 -1
  143. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  144. package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  145. package/app/.next/server/app/api/usage/[connectionId]/route_client-reference-manifest.js +1 -1
  146. package/app/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
  147. package/app/.next/server/app/api/usage/chart/route_client-reference-manifest.js +1 -1
  148. package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
  149. package/app/.next/server/app/api/usage/history/route_client-reference-manifest.js +1 -1
  150. package/app/.next/server/app/api/usage/providers/route.js +1 -1
  151. package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
  152. package/app/.next/server/app/api/usage/providers/route_client-reference-manifest.js +1 -1
  153. package/app/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
  154. package/app/.next/server/app/api/usage/request-details/route_client-reference-manifest.js +1 -1
  155. package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  156. package/app/.next/server/app/api/usage/request-logs/route_client-reference-manifest.js +1 -1
  157. package/app/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
  158. package/app/.next/server/app/api/usage/stream/route_client-reference-manifest.js +1 -1
  159. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  160. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  161. package/app/.next/server/app/api/v1/api/chat/route_client-reference-manifest.js +1 -1
  162. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  163. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  164. package/app/.next/server/app/api/v1/chat/completions/route_client-reference-manifest.js +1 -1
  165. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  166. package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  167. package/app/.next/server/app/api/v1/embeddings/route_client-reference-manifest.js +1 -1
  168. package/app/.next/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.js +1 -1
  169. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  170. package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  171. package/app/.next/server/app/api/v1/messages/route_client-reference-manifest.js +1 -1
  172. package/app/.next/server/app/api/v1/models/route.js +1 -1
  173. package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
  174. package/app/.next/server/app/api/v1/models/route_client-reference-manifest.js +1 -1
  175. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  176. package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  177. package/app/.next/server/app/api/v1/responses/route_client-reference-manifest.js +1 -1
  178. package/app/.next/server/app/api/v1/route_client-reference-manifest.js +1 -1
  179. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  180. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  181. package/app/.next/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
  182. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  183. package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
  184. package/app/.next/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
  185. package/app/.next/server/app/callback/page.js +2 -2
  186. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  187. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  188. package/app/.next/server/app/callback.html +1 -1
  189. package/app/.next/server/app/callback.rsc +3 -3
  190. package/app/.next/server/app/callback.segments/_full.segment.rsc +3 -3
  191. package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
  192. package/app/.next/server/app/callback.segments/_index.segment.rsc +3 -3
  193. package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
  194. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  195. package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
  196. package/app/.next/server/app/dashboard/cli-tools.html +1 -1
  197. package/app/.next/server/app/dashboard/cli-tools.rsc +5 -5
  198. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  199. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  200. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  201. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  202. package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  203. package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  204. package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +3 -3
  205. package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  206. package/app/.next/server/app/dashboard/combos.html +1 -1
  207. package/app/.next/server/app/dashboard/combos.rsc +5 -5
  208. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  209. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  210. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  211. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  212. package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  213. package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  214. package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +3 -3
  215. package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  216. package/app/.next/server/app/dashboard/endpoint.html +1 -1
  217. package/app/.next/server/app/dashboard/endpoint.rsc +5 -5
  218. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  219. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  220. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  221. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  222. package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  223. package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  224. package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +3 -3
  225. package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  226. package/app/.next/server/app/dashboard/profile.html +1 -1
  227. package/app/.next/server/app/dashboard/profile.rsc +5 -5
  228. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  229. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  230. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  231. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  232. package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  233. package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  234. package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +3 -3
  235. package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  236. package/app/.next/server/app/dashboard/providers/new.html +1 -1
  237. package/app/.next/server/app/dashboard/providers/new.rsc +5 -5
  238. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  239. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  240. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  241. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  242. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  243. package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  244. package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  245. package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +3 -3
  246. package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  247. package/app/.next/server/app/dashboard/providers.html +1 -1
  248. package/app/.next/server/app/dashboard/providers.rsc +5 -5
  249. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  250. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  251. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  252. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  253. package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  254. package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  255. package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +3 -3
  256. package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  257. package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
  258. package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  259. package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  260. package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
  261. package/app/.next/server/app/dashboard/settings/pricing.rsc +3 -3
  262. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  263. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  264. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +3 -3
  265. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  266. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  267. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  268. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  269. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  270. package/app/.next/server/app/dashboard/translator.html +1 -1
  271. package/app/.next/server/app/dashboard/translator.rsc +5 -5
  272. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  273. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  274. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  275. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  276. package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  277. package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  278. package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +3 -3
  279. package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  280. package/app/.next/server/app/dashboard/usage.html +1 -1
  281. package/app/.next/server/app/dashboard/usage.rsc +5 -5
  282. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  283. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  284. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  285. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  286. package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  287. package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  288. package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +3 -3
  289. package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  290. package/app/.next/server/app/dashboard.html +1 -1
  291. package/app/.next/server/app/dashboard.rsc +5 -5
  292. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  293. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  294. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  295. package/app/.next/server/app/dashboard.segments/_full.segment.rsc +5 -5
  296. package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
  297. package/app/.next/server/app/dashboard.segments/_index.segment.rsc +3 -3
  298. package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  299. package/app/.next/server/app/index.html +1 -1
  300. package/app/.next/server/app/index.rsc +3 -3
  301. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  302. package/app/.next/server/app/index.segments/_full.segment.rsc +3 -3
  303. package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
  304. package/app/.next/server/app/index.segments/_index.segment.rsc +3 -3
  305. package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  306. package/app/.next/server/app/landing/page.js +2 -2
  307. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  308. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  309. package/app/.next/server/app/landing.html +1 -1
  310. package/app/.next/server/app/landing.rsc +3 -3
  311. package/app/.next/server/app/landing.segments/_full.segment.rsc +3 -3
  312. package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
  313. package/app/.next/server/app/landing.segments/_index.segment.rsc +3 -3
  314. package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
  315. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  316. package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
  317. package/app/.next/server/app/login/page.js +2 -2
  318. package/app/.next/server/app/login/page.js.nft.json +1 -1
  319. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  320. package/app/.next/server/app/login.html +1 -1
  321. package/app/.next/server/app/login.rsc +4 -4
  322. package/app/.next/server/app/login.segments/_full.segment.rsc +4 -4
  323. package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
  324. package/app/.next/server/app/login.segments/_index.segment.rsc +3 -3
  325. package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  326. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  327. package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
  328. package/app/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  329. package/app/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  330. package/app/.next/server/app/page.js +2 -2
  331. package/app/.next/server/app/page.js.nft.json +1 -1
  332. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  333. package/app/.next/server/app-paths-manifest.json +45 -43
  334. package/app/.next/server/chunks/{7189.js → 1238.js} +4 -4
  335. package/app/.next/server/chunks/1424.js +1 -1
  336. package/app/.next/server/chunks/2280.js +1 -0
  337. package/app/.next/server/chunks/3832.js +1 -0
  338. package/app/.next/server/chunks/412.js +2 -2
  339. package/app/.next/server/chunks/4989.js +1 -1
  340. package/app/.next/server/chunks/6186.js +2 -2
  341. package/app/.next/server/chunks/7647.js +1 -1
  342. package/app/.next/server/chunks/7774.js +120 -0
  343. package/app/.next/server/chunks/8031.js +1 -0
  344. package/app/.next/server/chunks/{7828.js → 8756.js} +1 -1
  345. package/app/.next/server/chunks/8895.js +4 -0
  346. package/app/.next/server/chunks/9339.js +1 -0
  347. package/app/.next/server/chunks/9718.js +1 -1
  348. package/app/.next/server/chunks/9862.js +2 -2
  349. package/app/.next/server/functions-config-manifest.json +1 -15
  350. package/app/.next/server/pages/404.html +1 -1
  351. package/app/.next/server/pages/500.html +2 -2
  352. package/app/.next/server/server-reference-manifest.js +1 -1
  353. package/app/.next/server/server-reference-manifest.json +1 -1
  354. package/app/.next/server/webpack-runtime.js +1 -1
  355. package/app/.next/static/-_Irq39v9CB-dPYr7_mn4/_buildManifest.js +1 -0
  356. package/app/.next/static/chunks/1393-e69ed48131bf4769.js +3 -0
  357. package/app/.next/static/chunks/{1672-4ed8fbaefe011b6e.js → 1672-d590b9c20d6fa792.js} +1 -1
  358. package/app/.next/static/chunks/5497-e681cf6236e03a6c.js +7 -0
  359. package/app/.next/static/chunks/{8729-471fb7f4b574781f.js → 8729-c69495625405223d.js} +1 -1
  360. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-0b44731dc56d8ebd.js +1 -0
  361. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-340ac73f534fc285.js +1 -0
  362. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-8bde1753972175fd.js +1 -0
  363. package/app/.next/static/chunks/app/_global-error/page-c53f8629b3d600b9.js +1 -0
  364. package/app/.next/static/chunks/app/api/auth/login/route-c53f8629b3d600b9.js +1 -0
  365. package/app/.next/static/chunks/app/api/auth/logout/route-c53f8629b3d600b9.js +1 -0
  366. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-c53f8629b3d600b9.js +1 -0
  367. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-c53f8629b3d600b9.js +1 -0
  368. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-c53f8629b3d600b9.js +1 -0
  369. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-c53f8629b3d600b9.js +1 -0
  370. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-c53f8629b3d600b9.js +1 -0
  371. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-c53f8629b3d600b9.js +1 -0
  372. package/app/.next/static/chunks/app/api/cloud/auth/route-c53f8629b3d600b9.js +1 -0
  373. package/app/.next/static/chunks/app/api/cloud/credentials/update/route-c53f8629b3d600b9.js +1 -0
  374. package/app/.next/static/chunks/app/api/cloud/model/resolve/route-c53f8629b3d600b9.js +1 -0
  375. package/app/.next/static/chunks/app/api/cloud/models/alias/route-c53f8629b3d600b9.js +1 -0
  376. package/app/.next/static/chunks/app/api/combos/[id]/route-c53f8629b3d600b9.js +1 -0
  377. package/app/.next/static/chunks/app/api/combos/route-c53f8629b3d600b9.js +1 -0
  378. package/app/.next/static/chunks/app/api/init/route-c53f8629b3d600b9.js +1 -0
  379. package/app/.next/static/chunks/app/api/keys/[id]/route-c53f8629b3d600b9.js +1 -0
  380. package/app/.next/static/chunks/app/api/keys/route-c53f8629b3d600b9.js +1 -0
  381. package/app/.next/static/chunks/app/api/models/alias/route-c53f8629b3d600b9.js +1 -0
  382. package/app/.next/static/chunks/app/api/models/route-c53f8629b3d600b9.js +1 -0
  383. package/app/.next/static/chunks/app/api/models/test/route-c53f8629b3d600b9.js +1 -0
  384. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-c53f8629b3d600b9.js +1 -0
  385. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-c53f8629b3d600b9.js +1 -0
  386. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-c53f8629b3d600b9.js +1 -0
  387. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-c53f8629b3d600b9.js +1 -0
  388. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-c53f8629b3d600b9.js +1 -0
  389. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-c53f8629b3d600b9.js +1 -0
  390. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-c53f8629b3d600b9.js +1 -0
  391. package/app/.next/static/chunks/app/api/pricing/route-c53f8629b3d600b9.js +1 -0
  392. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-c53f8629b3d600b9.js +1 -0
  393. package/app/.next/static/chunks/app/api/provider-nodes/route-c53f8629b3d600b9.js +1 -0
  394. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-c53f8629b3d600b9.js +1 -0
  395. package/app/.next/static/chunks/app/api/providers/[id]/models/route-c53f8629b3d600b9.js +1 -0
  396. package/app/.next/static/chunks/app/api/providers/[id]/route-c53f8629b3d600b9.js +1 -0
  397. package/app/.next/static/chunks/app/api/providers/[id]/test/route-c53f8629b3d600b9.js +1 -0
  398. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-c53f8629b3d600b9.js +1 -0
  399. package/app/.next/static/chunks/app/api/providers/client/route-c53f8629b3d600b9.js +1 -0
  400. package/app/.next/static/chunks/app/api/providers/route-c53f8629b3d600b9.js +1 -0
  401. package/app/.next/static/chunks/app/api/providers/test-batch/route-c53f8629b3d600b9.js +1 -0
  402. package/app/.next/static/chunks/app/api/providers/validate/route-c53f8629b3d600b9.js +1 -0
  403. package/app/.next/static/chunks/app/api/settings/database/route-c53f8629b3d600b9.js +1 -0
  404. package/app/.next/static/chunks/app/api/settings/proxy-test/route-c53f8629b3d600b9.js +1 -0
  405. package/app/.next/static/chunks/app/api/settings/require-login/route-c53f8629b3d600b9.js +1 -0
  406. package/app/.next/static/chunks/app/api/settings/route-c53f8629b3d600b9.js +1 -0
  407. package/app/.next/static/chunks/app/api/shutdown/route-c53f8629b3d600b9.js +1 -0
  408. package/app/.next/static/chunks/app/api/tags/route-c53f8629b3d600b9.js +1 -0
  409. package/app/.next/static/chunks/app/api/translator/load/route-c53f8629b3d600b9.js +1 -0
  410. package/app/.next/static/chunks/app/api/translator/save/route-c53f8629b3d600b9.js +1 -0
  411. package/app/.next/static/chunks/app/api/translator/send/route-c53f8629b3d600b9.js +1 -0
  412. package/app/.next/static/chunks/app/api/translator/translate/route-c53f8629b3d600b9.js +1 -0
  413. package/app/.next/static/chunks/app/api/tunnel/disable/route-c53f8629b3d600b9.js +1 -0
  414. package/app/.next/static/chunks/app/api/tunnel/enable/route-c53f8629b3d600b9.js +1 -0
  415. package/app/.next/static/chunks/app/api/tunnel/status/route-c53f8629b3d600b9.js +1 -0
  416. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-c53f8629b3d600b9.js +1 -0
  417. package/app/.next/static/chunks/app/api/usage/chart/route-c53f8629b3d600b9.js +1 -0
  418. package/app/.next/static/chunks/app/api/usage/history/route-c53f8629b3d600b9.js +1 -0
  419. package/app/.next/static/chunks/app/api/usage/providers/route-c53f8629b3d600b9.js +1 -0
  420. package/app/.next/static/chunks/app/api/usage/request-details/route-c53f8629b3d600b9.js +1 -0
  421. package/app/.next/static/chunks/app/api/usage/request-logs/route-c53f8629b3d600b9.js +1 -0
  422. package/app/.next/static/chunks/app/api/usage/stream/route-c53f8629b3d600b9.js +1 -0
  423. package/app/.next/static/chunks/app/api/v1/api/chat/route-c53f8629b3d600b9.js +1 -0
  424. package/app/.next/static/chunks/app/api/v1/chat/completions/route-c53f8629b3d600b9.js +1 -0
  425. package/app/.next/static/chunks/app/api/v1/embeddings/route-c53f8629b3d600b9.js +1 -0
  426. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-c53f8629b3d600b9.js +1 -0
  427. package/app/.next/static/chunks/app/api/v1/messages/route-c53f8629b3d600b9.js +1 -0
  428. package/app/.next/static/chunks/app/api/v1/models/route-c53f8629b3d600b9.js +1 -0
  429. package/app/.next/static/chunks/app/api/v1/responses/route-c53f8629b3d600b9.js +1 -0
  430. package/app/.next/static/chunks/app/api/v1/route-c53f8629b3d600b9.js +1 -0
  431. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-c53f8629b3d600b9.js +1 -0
  432. package/app/.next/static/chunks/app/api/v1beta/models/route-c53f8629b3d600b9.js +1 -0
  433. package/app/.next/static/chunks/app/manifest.webmanifest/route-c53f8629b3d600b9.js +1 -0
  434. package/app/.next/static/chunks/app/page-c53f8629b3d600b9.js +1 -0
  435. package/app/.next/static/chunks/{main-aab9e1b069a77e0f.js → main-d7c65caed43cf6c9.js} +3 -3
  436. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-c53f8629b3d600b9.js +1 -0
  437. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-c53f8629b3d600b9.js +1 -0
  438. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-c53f8629b3d600b9.js +1 -0
  439. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-c53f8629b3d600b9.js +1 -0
  440. package/app/.next/static/css/d26e7ae043e8a9fa.css +3 -0
  441. package/app/package.json +1 -2
  442. package/app/src/mitm/manager.js +2 -2
  443. package/app/src/mitm/server.js +1 -4
  444. package/cli.js +8 -9
  445. package/package.json +1 -1
  446. package/app/.next/server/chunks/1304.js +0 -1
  447. package/app/.next/server/chunks/175.js +0 -1
  448. package/app/.next/server/chunks/8694.js +0 -1
  449. package/app/.next/server/chunks/9489.js +0 -4
  450. package/app/.next/server/middleware.js +0 -15
  451. package/app/.next/static/FObXBaKcD_rJx56ghpAAb/_buildManifest.js +0 -1
  452. package/app/.next/static/chunks/1393-1761cc0c24573e2e.js +0 -3
  453. package/app/.next/static/chunks/5497-b0d3bb86e5099a7b.js +0 -7
  454. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-84b3e7d276d0bc02.js +0 -1
  455. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-c5601085e32c3f3d.js +0 -1
  456. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-fe2b4cd225a8a444.js +0 -1
  457. package/app/.next/static/chunks/app/_global-error/page-262198f19d98c2a2.js +0 -1
  458. package/app/.next/static/chunks/app/api/auth/login/route-262198f19d98c2a2.js +0 -1
  459. package/app/.next/static/chunks/app/api/auth/logout/route-262198f19d98c2a2.js +0 -1
  460. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-262198f19d98c2a2.js +0 -1
  461. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-262198f19d98c2a2.js +0 -1
  462. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-262198f19d98c2a2.js +0 -1
  463. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-262198f19d98c2a2.js +0 -1
  464. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-262198f19d98c2a2.js +0 -1
  465. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-262198f19d98c2a2.js +0 -1
  466. package/app/.next/static/chunks/app/api/cloud/auth/route-262198f19d98c2a2.js +0 -1
  467. package/app/.next/static/chunks/app/api/cloud/credentials/update/route-262198f19d98c2a2.js +0 -1
  468. package/app/.next/static/chunks/app/api/cloud/model/resolve/route-262198f19d98c2a2.js +0 -1
  469. package/app/.next/static/chunks/app/api/cloud/models/alias/route-262198f19d98c2a2.js +0 -1
  470. package/app/.next/static/chunks/app/api/combos/[id]/route-262198f19d98c2a2.js +0 -1
  471. package/app/.next/static/chunks/app/api/combos/route-262198f19d98c2a2.js +0 -1
  472. package/app/.next/static/chunks/app/api/init/route-262198f19d98c2a2.js +0 -1
  473. package/app/.next/static/chunks/app/api/keys/[id]/route-262198f19d98c2a2.js +0 -1
  474. package/app/.next/static/chunks/app/api/keys/route-262198f19d98c2a2.js +0 -1
  475. package/app/.next/static/chunks/app/api/models/alias/route-262198f19d98c2a2.js +0 -1
  476. package/app/.next/static/chunks/app/api/models/route-262198f19d98c2a2.js +0 -1
  477. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-262198f19d98c2a2.js +0 -1
  478. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-262198f19d98c2a2.js +0 -1
  479. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-262198f19d98c2a2.js +0 -1
  480. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-262198f19d98c2a2.js +0 -1
  481. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-262198f19d98c2a2.js +0 -1
  482. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-262198f19d98c2a2.js +0 -1
  483. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-262198f19d98c2a2.js +0 -1
  484. package/app/.next/static/chunks/app/api/pricing/route-262198f19d98c2a2.js +0 -1
  485. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-262198f19d98c2a2.js +0 -1
  486. package/app/.next/static/chunks/app/api/provider-nodes/route-262198f19d98c2a2.js +0 -1
  487. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-262198f19d98c2a2.js +0 -1
  488. package/app/.next/static/chunks/app/api/providers/[id]/models/route-262198f19d98c2a2.js +0 -1
  489. package/app/.next/static/chunks/app/api/providers/[id]/route-262198f19d98c2a2.js +0 -1
  490. package/app/.next/static/chunks/app/api/providers/[id]/test/route-262198f19d98c2a2.js +0 -1
  491. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-262198f19d98c2a2.js +0 -1
  492. package/app/.next/static/chunks/app/api/providers/client/route-262198f19d98c2a2.js +0 -1
  493. package/app/.next/static/chunks/app/api/providers/route-262198f19d98c2a2.js +0 -1
  494. package/app/.next/static/chunks/app/api/providers/test-batch/route-262198f19d98c2a2.js +0 -1
  495. package/app/.next/static/chunks/app/api/providers/validate/route-262198f19d98c2a2.js +0 -1
  496. package/app/.next/static/chunks/app/api/settings/database/route-262198f19d98c2a2.js +0 -1
  497. package/app/.next/static/chunks/app/api/settings/require-login/route-262198f19d98c2a2.js +0 -1
  498. package/app/.next/static/chunks/app/api/settings/route-262198f19d98c2a2.js +0 -1
  499. package/app/.next/static/chunks/app/api/shutdown/route-262198f19d98c2a2.js +0 -1
  500. package/app/.next/static/chunks/app/api/tags/route-262198f19d98c2a2.js +0 -1
  501. package/app/.next/static/chunks/app/api/translator/load/route-262198f19d98c2a2.js +0 -1
  502. package/app/.next/static/chunks/app/api/translator/save/route-262198f19d98c2a2.js +0 -1
  503. package/app/.next/static/chunks/app/api/translator/send/route-262198f19d98c2a2.js +0 -1
  504. package/app/.next/static/chunks/app/api/translator/translate/route-262198f19d98c2a2.js +0 -1
  505. package/app/.next/static/chunks/app/api/tunnel/disable/route-262198f19d98c2a2.js +0 -1
  506. package/app/.next/static/chunks/app/api/tunnel/enable/route-262198f19d98c2a2.js +0 -1
  507. package/app/.next/static/chunks/app/api/tunnel/status/route-262198f19d98c2a2.js +0 -1
  508. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-262198f19d98c2a2.js +0 -1
  509. package/app/.next/static/chunks/app/api/usage/chart/route-262198f19d98c2a2.js +0 -1
  510. package/app/.next/static/chunks/app/api/usage/history/route-262198f19d98c2a2.js +0 -1
  511. package/app/.next/static/chunks/app/api/usage/providers/route-262198f19d98c2a2.js +0 -1
  512. package/app/.next/static/chunks/app/api/usage/request-details/route-262198f19d98c2a2.js +0 -1
  513. package/app/.next/static/chunks/app/api/usage/request-logs/route-262198f19d98c2a2.js +0 -1
  514. package/app/.next/static/chunks/app/api/usage/stream/route-262198f19d98c2a2.js +0 -1
  515. package/app/.next/static/chunks/app/api/v1/api/chat/route-262198f19d98c2a2.js +0 -1
  516. package/app/.next/static/chunks/app/api/v1/chat/completions/route-262198f19d98c2a2.js +0 -1
  517. package/app/.next/static/chunks/app/api/v1/embeddings/route-262198f19d98c2a2.js +0 -1
  518. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-262198f19d98c2a2.js +0 -1
  519. package/app/.next/static/chunks/app/api/v1/messages/route-262198f19d98c2a2.js +0 -1
  520. package/app/.next/static/chunks/app/api/v1/models/route-262198f19d98c2a2.js +0 -1
  521. package/app/.next/static/chunks/app/api/v1/responses/route-262198f19d98c2a2.js +0 -1
  522. package/app/.next/static/chunks/app/api/v1/route-262198f19d98c2a2.js +0 -1
  523. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-262198f19d98c2a2.js +0 -1
  524. package/app/.next/static/chunks/app/api/v1beta/models/route-262198f19d98c2a2.js +0 -1
  525. package/app/.next/static/chunks/app/manifest.webmanifest/route-262198f19d98c2a2.js +0 -1
  526. package/app/.next/static/chunks/app/page-262198f19d98c2a2.js +0 -1
  527. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-262198f19d98c2a2.js +0 -1
  528. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-262198f19d98c2a2.js +0 -1
  529. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-262198f19d98c2a2.js +0 -1
  530. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-262198f19d98c2a2.js +0 -1
  531. package/app/.next/static/css/dea1b76199f0e2d2.css +0 -3
  532. /package/app/.next/static/{FObXBaKcD_rJx56ghpAAb → -_Irq39v9CB-dPYr7_mn4}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- FObXBaKcD_rJx56ghpAAb
1
+ -_Irq39v9CB-dPYr7_mn4
@@ -3,87 +3,89 @@
3
3
  "/_global-error/page": "/_global-error",
4
4
  "/api/auth/login/route": "/api/auth/login",
5
5
  "/api/auth/logout/route": "/api/auth/logout",
6
- "/api/cli-tools/claude-settings/route": "/api/cli-tools/claude-settings",
7
- "/api/cli-tools/droid-settings/route": "/api/cli-tools/droid-settings",
8
6
  "/api/cli-tools/antigravity-mitm/alias/route": "/api/cli-tools/antigravity-mitm/alias",
7
+ "/api/cli-tools/claude-settings/route": "/api/cli-tools/claude-settings",
9
8
  "/api/cli-tools/codex-settings/route": "/api/cli-tools/codex-settings",
9
+ "/api/cli-tools/droid-settings/route": "/api/cli-tools/droid-settings",
10
10
  "/api/cli-tools/openclaw-settings/route": "/api/cli-tools/openclaw-settings",
11
11
  "/api/cloud/auth/route": "/api/cloud/auth",
12
- "/api/cloud/credentials/update/route": "/api/cloud/credentials/update",
13
- "/api/combos/[id]/route": "/api/combos/[id]",
14
- "/api/combos/route": "/api/combos",
15
12
  "/api/cloud/model/resolve/route": "/api/cloud/model/resolve",
16
13
  "/api/cloud/models/alias/route": "/api/cloud/models/alias",
14
+ "/api/cloud/credentials/update/route": "/api/cloud/credentials/update",
15
+ "/api/combos/route": "/api/combos",
16
+ "/api/keys/route": "/api/keys",
17
+ "/api/models/alias/route": "/api/models/alias",
18
+ "/api/models/test/route": "/api/models/test",
17
19
  "/api/keys/[id]/route": "/api/keys/[id]",
18
- "/api/init/route": "/api/init",
19
20
  "/api/oauth/[provider]/[action]/route": "/api/oauth/[provider]/[action]",
20
- "/api/keys/route": "/api/keys",
21
+ "/api/oauth/cursor/auto-import/route": "/api/oauth/cursor/auto-import",
21
22
  "/api/models/route": "/api/models",
22
23
  "/api/oauth/cursor/import/route": "/api/oauth/cursor/import",
23
- "/api/models/alias/route": "/api/models/alias",
24
- "/api/oauth/cursor/auto-import/route": "/api/oauth/cursor/auto-import",
25
24
  "/api/oauth/kiro/auto-import/route": "/api/oauth/kiro/auto-import",
26
- "/api/oauth/kiro/import/route": "/api/oauth/kiro/import",
27
- "/api/oauth/kiro/social-authorize/route": "/api/oauth/kiro/social-authorize",
28
25
  "/api/oauth/kiro/social-exchange/route": "/api/oauth/kiro/social-exchange",
26
+ "/api/oauth/kiro/social-authorize/route": "/api/oauth/kiro/social-authorize",
27
+ "/api/oauth/kiro/import/route": "/api/oauth/kiro/import",
29
28
  "/api/pricing/route": "/api/pricing",
30
- "/api/provider-nodes/validate/route": "/api/provider-nodes/validate",
29
+ "/api/combos/[id]/route": "/api/combos/[id]",
31
30
  "/api/provider-nodes/[id]/route": "/api/provider-nodes/[id]",
32
- "/api/providers/[id]/test-models/route": "/api/providers/[id]/test-models",
31
+ "/api/provider-nodes/validate/route": "/api/provider-nodes/validate",
33
32
  "/api/providers/[id]/models/route": "/api/providers/[id]/models",
34
- "/api/providers/[id]/route": "/api/providers/[id]",
35
- "/api/providers/route": "/api/providers",
36
33
  "/api/providers/[id]/test/route": "/api/providers/[id]/test",
34
+ "/api/providers/[id]/test-models/route": "/api/providers/[id]/test-models",
35
+ "/api/providers/[id]/route": "/api/providers/[id]",
37
36
  "/api/providers/client/route": "/api/providers/client",
38
- "/api/settings/database/route": "/api/settings/database",
37
+ "/api/providers/route": "/api/providers",
38
+ "/api/providers/test-batch/route": "/api/providers/test-batch",
39
+ "/api/providers/validate/route": "/api/providers/validate",
40
+ "/api/init/route": "/api/init",
39
41
  "/api/settings/require-login/route": "/api/settings/require-login",
40
42
  "/api/shutdown/route": "/api/shutdown",
41
- "/api/translator/load/route": "/api/translator/load",
42
- "/api/settings/route": "/api/settings",
43
+ "/api/translator/translate/route": "/api/translator/translate",
43
44
  "/api/tags/route": "/api/tags",
44
45
  "/api/translator/save/route": "/api/translator/save",
45
- "/api/translator/send/route": "/api/translator/send",
46
- "/api/translator/translate/route": "/api/translator/translate",
47
- "/api/providers/validate/route": "/api/providers/validate",
46
+ "/api/translator/load/route": "/api/translator/load",
48
47
  "/api/tunnel/disable/route": "/api/tunnel/disable",
49
- "/api/usage/[connectionId]/route": "/api/usage/[connectionId]",
50
- "/api/tunnel/status/route": "/api/tunnel/status",
51
- "/api/providers/test-batch/route": "/api/providers/test-batch",
48
+ "/api/tunnel/enable/route": "/api/tunnel/enable",
52
49
  "/api/usage/chart/route": "/api/usage/chart",
53
- "/api/usage/logs/route": "/api/usage/logs",
54
50
  "/api/usage/history/route": "/api/usage/history",
55
- "/api/tunnel/enable/route": "/api/tunnel/enable",
51
+ "/api/usage/providers/route": "/api/usage/providers",
52
+ "/api/usage/logs/route": "/api/usage/logs",
53
+ "/api/tunnel/status/route": "/api/tunnel/status",
54
+ "/api/translator/send/route": "/api/translator/send",
56
55
  "/api/usage/request-details/route": "/api/usage/request-details",
57
- "/api/usage/request-logs/route": "/api/usage/request-logs",
58
- "/api/v1/api/chat/route": "/api/v1/api/chat",
59
56
  "/api/v1/chat/completions/route": "/api/v1/chat/completions",
60
- "/api/v1/embeddings/route": "/api/v1/embeddings",
57
+ "/api/v1/api/chat/route": "/api/v1/api/chat",
58
+ "/api/usage/request-logs/route": "/api/usage/request-logs",
61
59
  "/api/v1/messages/count_tokens/route": "/api/v1/messages/count_tokens",
62
- "/api/v1/messages/route": "/api/v1/messages",
63
- "/api/v1/models/route": "/api/v1/models",
64
- "/api/v1/responses/route": "/api/v1/responses",
65
- "/api/v1beta/models/[...path]/route": "/api/v1beta/models/[...path]",
60
+ "/api/v1/route": "/api/v1",
66
61
  "/api/v1beta/models/route": "/api/v1beta/models",
67
- "/manifest.webmanifest/route": "/manifest.webmanifest",
62
+ "/api/v1/embeddings/route": "/api/v1/embeddings",
63
+ "/api/v1beta/models/[...path]/route": "/api/v1beta/models/[...path]",
64
+ "/api/v1/responses/route": "/api/v1/responses",
68
65
  "/favicon.ico/route": "/favicon.ico",
69
- "/api/v1/route": "/api/v1",
66
+ "/manifest.webmanifest/route": "/manifest.webmanifest",
67
+ "/api/v1/models/route": "/api/v1/models",
70
68
  "/api/cli-tools/antigravity-mitm/route": "/api/cli-tools/antigravity-mitm",
69
+ "/api/v1/messages/route": "/api/v1/messages",
71
70
  "/api/provider-nodes/route": "/api/provider-nodes",
72
- "/api/usage/providers/route": "/api/usage/providers",
71
+ "/api/settings/database/route": "/api/settings/database",
72
+ "/api/settings/proxy-test/route": "/api/settings/proxy-test",
73
+ "/api/settings/route": "/api/settings",
74
+ "/api/usage/[connectionId]/route": "/api/usage/[connectionId]",
73
75
  "/api/usage/stream/route": "/api/usage/stream",
74
- "/callback/page": "/callback",
75
76
  "/dashboard/settings/pricing/page": "/dashboard/settings/pricing",
76
- "/landing/page": "/landing",
77
- "/login/page": "/login",
77
+ "/callback/page": "/callback",
78
78
  "/page": "/",
79
- "/(dashboard)/dashboard/page": "/dashboard",
79
+ "/login/page": "/login",
80
+ "/landing/page": "/landing",
80
81
  "/(dashboard)/dashboard/combos/page": "/dashboard/combos",
82
+ "/(dashboard)/dashboard/endpoint/page": "/dashboard/endpoint",
81
83
  "/(dashboard)/dashboard/cli-tools/page": "/dashboard/cli-tools",
82
- "/(dashboard)/dashboard/providers/[id]/page": "/dashboard/providers/[id]",
83
84
  "/(dashboard)/dashboard/translator/page": "/dashboard/translator",
84
- "/(dashboard)/dashboard/endpoint/page": "/dashboard/endpoint",
85
- "/(dashboard)/dashboard/usage/page": "/dashboard/usage",
86
85
  "/(dashboard)/dashboard/providers/new/page": "/dashboard/providers/new",
86
+ "/(dashboard)/dashboard/usage/page": "/dashboard/usage",
87
+ "/(dashboard)/dashboard/page": "/dashboard",
88
+ "/(dashboard)/dashboard/providers/[id]/page": "/dashboard/providers/[id]",
87
89
  "/(dashboard)/dashboard/profile/page": "/dashboard/profile",
88
90
  "/(dashboard)/dashboard/providers/page": "/dashboard/providers"
89
91
  }
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "devFiles": [],
6
6
  "lowPriorityFiles": [
7
- "static/FObXBaKcD_rJx56ghpAAb/_buildManifest.js",
8
- "static/FObXBaKcD_rJx56ghpAAb/_ssgManifest.js"
7
+ "static/-_Irq39v9CB-dPYr7_mn4/_buildManifest.js",
8
+ "static/-_Irq39v9CB-dPYr7_mn4/_ssgManifest.js"
9
9
  ],
10
10
  "rootMainFiles": [
11
11
  "static/chunks/webpack-25c43999146c934e.js",
@@ -258,6 +258,12 @@
258
258
  "routeKeys": {},
259
259
  "namedRegex": "^/api/models/alias(?:/)?$"
260
260
  },
261
+ {
262
+ "page": "/api/models/test",
263
+ "regex": "^/api/models/test(?:/)?$",
264
+ "routeKeys": {},
265
+ "namedRegex": "^/api/models/test(?:/)?$"
266
+ },
261
267
  {
262
268
  "page": "/api/oauth/cursor/auto-import",
263
269
  "regex": "^/api/oauth/cursor/auto\\-import(?:/)?$",
@@ -348,6 +354,12 @@
348
354
  "routeKeys": {},
349
355
  "namedRegex": "^/api/settings/database(?:/)?$"
350
356
  },
357
+ {
358
+ "page": "/api/settings/proxy-test",
359
+ "regex": "^/api/settings/proxy\\-test(?:/)?$",
360
+ "routeKeys": {},
361
+ "namedRegex": "^/api/settings/proxy\\-test(?:/)?$"
362
+ },
351
363
  {
352
364
  "page": "/api/settings/require-login",
353
365
  "regex": "^/api/settings/require\\-login(?:/)?$",
@@ -1,4 +1,4 @@
1
- (()=>{var a={};a.id=2326,a.ids=[2326],a.modules={244:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g});var d=c(5735),e=c(87250),f=c(79518);async function g(){let a=await (0,e.D1)();return(0,d.jsx)(f.default,{machineId:a})}},261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},15608:(a,b,c)=>{Promise.resolve().then(c.bind(c,79518))},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},25336:(a,b,c)=>{Promise.resolve().then(c.bind(c,89890))},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>e});var d=c(19713);async function e(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt";try{let a=(0,d.machineIdSync)();return(await Promise.resolve().then(c.t.bind(c,55511,23))).createHash("sha256").update(a+b).digest("hex").substring(0,16)}catch(a){return console.log("Error getting machine ID:",a),crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){let b=16*Math.random()|0;return("x"==a?b:3&b|8).toString(16)})}}},55268:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>L,handler:()=>N,routeModule:()=>M});var d=c(7553),e=c(84006),f=c(67798),g=c(34775),h=c(99373),i=c(73461),j=c(1020),k=c(26349),l=c(54365),m=c(16023),n=c(63747),o=c(24235),p=c(23938),q=c(261),r=c(66758),s=c(77243),t=c(26713),u=c(37527),v=c(22820),w=c(88216),x=c(47929),y=c(79551),z=c(89125),A=c(86439),B=c(77068),C=c(95547),D=c.n(C),E=c(61287),F=c(81494),G=c(70722),H=c(70753),I=c(43954),J={};for(let a in E)0>["default","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(J[a]=()=>E[a]);c.d(b,J);let K={children:["",{children:["(dashboard)",{children:["dashboard",{children:["cli-tools",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,244)),"/Users/Working/router4/app/src/app/(dashboard)/dashboard/cli-tools/page.js"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,30508)),"/Users/Working/router4/app/src/app/(dashboard)/layout.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,55091,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}}]},{layout:[()=>Promise.resolve().then(c.bind(c,50385)),"/Users/Working/router4/app/src/app/layout.js"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,55091,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}}]}.children,L={require:c,loadChunk:()=>Promise.resolve()},M=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/(dashboard)/dashboard/cli-tools/page",pathname:"/dashboard/cli-tools",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:K},distDir:".next",relativeProjectDir:""});async function N(a,b,d){var C;M.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let J=!!(0,h.getRequestMeta)(a,"minimalMode"),O="/(dashboard)/dashboard/cli-tools/page";"/index"===O&&(O="/");let P=await M.prepare(a,b,{srcPage:O,multiZoneDraftMode:!1});if(!P)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:Q,query:R,params:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,parsedUrl:ae,interceptionRoutePatterns:af,deploymentId:ag}=P,ah=(0,q.normalizeAppPath)(O),{isOnDemandRevalidate:ai}=P,aj=ad.experimental.ppr&&!ad.cacheComponents&&(0,I.isInterceptionRouteAppPath)(aa)?null:M.match(aa,$),ak=!!$.routes[aa],al=a.headers["user-agent"]||"",am=(0,t.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[s.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[s.RSC_HEADER],aq=(0,r.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr);if(!(0,h.getRequestMeta)(a,"postponed")&&ar&&"1"===a.headers[x.NEXT_RESUME_HEADER]&&"POST"===a.method){let b=[];for await(let c of a)b.push(c);let c=Buffer.concat(b).toString("utf8");(0,h.addRequestMeta)(a,"postponed",c)}let as=ar&&(null==(C=$.routes[ah]??$.dynamicRoutes[ah])?void 0:C.renderingMode)==="PARTIALLY_STATIC",at=!1,au=!1,av=as?(0,h.getRequestMeta)(a,"postponed"):void 0,aw=as&&ap&&!ao;J&&(aw=aw&&!!av);let ax=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ay=(!an||!as)&&(!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots)),az=!!((aj||ak||$.routes[ah])&&!(an&&as)),aA=as&&!0===ad.cacheComponents,aB=!0===M.isDev||!az||"string"==typeof av||(aA&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?aw&&!J:aw),aC=an&&as,aD=null;_||!az||aB||aq||av||aw||(aD=aa);let aE=aD;!aE&&M.isDev&&(aE=aa),M.isDev||_||!az||!ap||aw||(0,k.d)(a.headers);let aF={...E,tree:K,GlobalError:D(),handler:N,routeModule:M,__next_app__:L};X&&Y&&(0,o.setManifestsSingleton)({page:O,clientReferenceManifest:Y,serverActionsManifest:X});let aG=a.method||"GET",aH=(0,g.getTracer)(),aI=aH.getActiveScopeSpan(),aJ=async()=>((null==ac?void 0:ac.render404)?await ac.render404(a,b,ae,!1):b.end("This page could not be found"),null);try{let f=M.getVaryHeader(aa,af);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return M.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aH.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aG} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aG} ${O}`)})},m=(0,h.getRequestMeta)(a,"incrementalCache"),o=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let l={query:R,params:S,page:ah,sharedContext:{buildId:Q},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aF,Component:(0,j.T)(aF),params:S,routeModule:M,page:O,postponed:f,shouldWaitOnAllReady:aC,serveStreamingMetadata:ay,supportsDynamicResponse:"string"==typeof f||aB,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,setCacheStatus:null==ac?void 0:ac.setCacheStatus,setIsrStatus:null==ac?void 0:ac.setIsrStatus,setReactDebugChannel:null==ac?void 0:ac.setReactDebugChannel,sendErrorsToBrowser:null==ac?void 0:ac.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),M.relativeProjectDir),isDraftMode:_,botType:am,isOnDemandRevalidate:ai,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,images:ad.images,previewProps:$.preview,deploymentId:ag,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:m,cacheLifeProfiles:ad.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...at||au?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:at}:{},cacheComponents:!!ad.cacheComponents,experimental:{isRoutePPREnabled:as,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[],clientParamParsingOrigins:ad.experimental.clientParamParsingOrigins,maxPostponedStateSizeBytes:(0,B.parseMaxPostponedStateSize)(ad.experimental.maxPostponedStateSize)},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>M.onRequestError(a,b,d,e,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:M.isDev}};at&&(l.renderOpts.nextExport=!0,l.renderOpts.supportsDynamicResponse=!1,l.renderOpts.isDebugDynamicAccesses=at),i&&(l.renderOpts.supportsDynamicResponse=!1);let n=await k(e,l),{metadata:o}=n,{cacheControl:p,headers:q={},fetchTags:r,fetchMetrics:s}=o;if(r&&(q[x.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,az&&(null==p?void 0:p.revalidate)===0&&!M.isDev&&!as){let a=o.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
1
+ (()=>{var a={};a.id=2326,a.ids=[2326],a.modules={244:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g});var d=c(5735),e=c(87250),f=c(79518);async function g(){let a=await (0,e.D1)();return(0,d.jsx)(f.default,{machineId:a})}},261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},15608:(a,b,c)=>{Promise.resolve().then(c.bind(c,79518))},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},25336:(a,b,c)=>{Promise.resolve().then(c.bind(c,89890))},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>e});var d=c(19713);async function e(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt";try{let a=(0,d.machineIdSync)();return(await Promise.resolve().then(c.t.bind(c,55511,23))).createHash("sha256").update(a+b).digest("hex").substring(0,16)}catch(a){return console.log("Error getting machine ID:",a),crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){let b=16*Math.random()|0;return("x"==a?b:3&b|8).toString(16)})}}},55268:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>L,handler:()=>N,routeModule:()=>M});var d=c(7553),e=c(84006),f=c(67798),g=c(34775),h=c(99373),i=c(73461),j=c(1020),k=c(26349),l=c(54365),m=c(16023),n=c(63747),o=c(24235),p=c(23938),q=c(261),r=c(66758),s=c(77243),t=c(26713),u=c(37527),v=c(22820),w=c(88216),x=c(47929),y=c(79551),z=c(89125),A=c(86439),B=c(77068),C=c(95547),D=c.n(C),E=c(61287),F=c(81494),G=c(70722),H=c(70753),I=c(43954),J={};for(let a in E)0>["default","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(J[a]=()=>E[a]);c.d(b,J);let K={children:["",{children:["(dashboard)",{children:["dashboard",{children:["cli-tools",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,244)),"/Users/Working/router4/app/src/app/(dashboard)/dashboard/cli-tools/page.js"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,30508)),"/Users/Working/router4/app/src/app/(dashboard)/layout.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,55091,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}}]},{layout:[()=>Promise.resolve().then(c.bind(c,32059)),"/Users/Working/router4/app/src/app/layout.js"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,55091,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}}]}.children,L={require:c,loadChunk:()=>Promise.resolve()},M=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/(dashboard)/dashboard/cli-tools/page",pathname:"/dashboard/cli-tools",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:K},distDir:".next",relativeProjectDir:""});async function N(a,b,d){var C;M.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let J=!!(0,h.getRequestMeta)(a,"minimalMode"),O="/(dashboard)/dashboard/cli-tools/page";"/index"===O&&(O="/");let P=await M.prepare(a,b,{srcPage:O,multiZoneDraftMode:!1});if(!P)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:Q,query:R,params:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,parsedUrl:ae,interceptionRoutePatterns:af,deploymentId:ag}=P,ah=(0,q.normalizeAppPath)(O),{isOnDemandRevalidate:ai}=P,aj=ad.experimental.ppr&&!ad.cacheComponents&&(0,I.isInterceptionRouteAppPath)(aa)?null:M.match(aa,$),ak=!!$.routes[aa],al=a.headers["user-agent"]||"",am=(0,t.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[s.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[s.RSC_HEADER],aq=(0,r.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr);if(!(0,h.getRequestMeta)(a,"postponed")&&ar&&"1"===a.headers[x.NEXT_RESUME_HEADER]&&"POST"===a.method){let b=[];for await(let c of a)b.push(c);let c=Buffer.concat(b).toString("utf8");(0,h.addRequestMeta)(a,"postponed",c)}let as=ar&&(null==(C=$.routes[ah]??$.dynamicRoutes[ah])?void 0:C.renderingMode)==="PARTIALLY_STATIC",at=!1,au=!1,av=as?(0,h.getRequestMeta)(a,"postponed"):void 0,aw=as&&ap&&!ao;J&&(aw=aw&&!!av);let ax=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ay=(!an||!as)&&(!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots)),az=!!((aj||ak||$.routes[ah])&&!(an&&as)),aA=as&&!0===ad.cacheComponents,aB=!0===M.isDev||!az||"string"==typeof av||(aA&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?aw&&!J:aw),aC=an&&as,aD=null;_||!az||aB||aq||av||aw||(aD=aa);let aE=aD;!aE&&M.isDev&&(aE=aa),M.isDev||_||!az||!ap||aw||(0,k.d)(a.headers);let aF={...E,tree:K,GlobalError:D(),handler:N,routeModule:M,__next_app__:L};X&&Y&&(0,o.setManifestsSingleton)({page:O,clientReferenceManifest:Y,serverActionsManifest:X});let aG=a.method||"GET",aH=(0,g.getTracer)(),aI=aH.getActiveScopeSpan(),aJ=async()=>((null==ac?void 0:ac.render404)?await ac.render404(a,b,ae,!1):b.end("This page could not be found"),null);try{let f=M.getVaryHeader(aa,af);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return M.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aH.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aG} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aG} ${O}`)})},m=(0,h.getRequestMeta)(a,"incrementalCache"),o=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let l={query:R,params:S,page:ah,sharedContext:{buildId:Q},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aF,Component:(0,j.T)(aF),params:S,routeModule:M,page:O,postponed:f,shouldWaitOnAllReady:aC,serveStreamingMetadata:ay,supportsDynamicResponse:"string"==typeof f||aB,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,setCacheStatus:null==ac?void 0:ac.setCacheStatus,setIsrStatus:null==ac?void 0:ac.setIsrStatus,setReactDebugChannel:null==ac?void 0:ac.setReactDebugChannel,sendErrorsToBrowser:null==ac?void 0:ac.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),M.relativeProjectDir),isDraftMode:_,botType:am,isOnDemandRevalidate:ai,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,images:ad.images,previewProps:$.preview,deploymentId:ag,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:m,cacheLifeProfiles:ad.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...at||au?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:at}:{},cacheComponents:!!ad.cacheComponents,experimental:{isRoutePPREnabled:as,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[],clientParamParsingOrigins:ad.experimental.clientParamParsingOrigins,maxPostponedStateSizeBytes:(0,B.parseMaxPostponedStateSize)(ad.experimental.maxPostponedStateSize)},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>M.onRequestError(a,b,d,e,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:M.isDev}};at&&(l.renderOpts.nextExport=!0,l.renderOpts.supportsDynamicResponse=!1,l.renderOpts.isDebugDynamicAccesses=at),i&&(l.renderOpts.supportsDynamicResponse=!1);let n=await k(e,l),{metadata:o}=n,{cacheControl:p,headers:q={},fetchTags:r,fetchMetrics:s}=o;if(r&&(q[x.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,az&&(null==p?void 0:p.revalidate)===0&&!M.isDev&&!as){let a=o.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
2
2
  see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:u.CachedRouteKind.APP_PAGE,html:n,headers:q,rscData:o.flightData,postponed:o.postponed,status:o.statusCode,segmentData:o.segmentData},cacheControl:p}},p=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i,forceStaticRender:j=!1})=>{let k,l=!1===M.isDev,q=c||b.writableEnded;if(ai&&ab&&!f&&!J)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(aj&&(k=(0,v.parseFallbackField)(aj.fallback)),k===v.FallbackMode.PRERENDER&&(0,t.isBot)(al)&&(!as||an)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ai=!0),ai&&(k!==v.FallbackMode.NOT_FOUND||f)&&(k=v.FallbackMode.BLOCKING_STATIC_RENDER),!J&&k!==v.FallbackMode.BLOCKING_STATIC_RENDER&&aE&&!q&&!_&&T&&(l||!ak)){if((l||aj)&&k===v.FallbackMode.NOT_FOUND){if(ad.experimental.adapterPath)return await aJ();throw new A.NoFallbackError}if(as&&(ad.cacheComponents?!aw:!ap)){let b=l&&"string"==typeof(null==aj?void 0:aj.fallback)?aj.fallback:ah,c=l&&(null==aj?void 0:aj.fallbackRouteParams)?(0,n.createOpaqueFallbackRouteParams)(aj.fallbackRouteParams):au?(0,n.getFallbackRouteParams)(ah,M):null,f=await M.handleResponse({cacheKey:b,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:as,responseGenerator:async()=>o({span:i,postponed:void 0,fallbackRouteParams:c,forceStaticRender:!1}),waitUntil:d.waitUntil,isMinimalMode:J});if(null===f)return null;if(f)return delete f.cacheControl,f}}let r=ai||g||!av?void 0:av;if(aA&&!J&&m&&aw&&!j){let b=await m.get(aa,{kind:u.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===u.CachedRouteKind.APP_PAGE&&(r=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,H.scheduleOnNextTick)(async()=>{let b=M.getResponseCache(a);try{await b.revalidate(aa,m,as,!1,a=>p({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if(at&&void 0!==r)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:u.CachedRouteKind.PAGES,html:w.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let s=l&&(null==aj?void 0:aj.fallbackRouteParams)&&(0,h.getRequestMeta)(a,"renderFallbackShell")?(0,n.createOpaqueFallbackRouteParams)(aj.fallbackRouteParams):au?(0,n.getFallbackRouteParams)(ah,M):null;return o({span:i,postponed:r,fallbackRouteParams:s,forceStaticRender:j})},q=async c=>{var f,g,i,j,k;let l,m=await M.handleResponse({cacheKey:aD,responseGenerator:a=>p({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ai,isRoutePPREnabled:as,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil,isMinimalMode:J});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),M.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!m){if(aD)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=m.value)?void 0:f.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=m.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let n="string"==typeof m.value.postponed;az&&!aw&&(!n||ao)&&(J||b.setHeader("x-nextjs-cache",ai?"REVALIDATED":m.isMiss?"MISS":m.isStale?"STALE":"HIT"),b.setHeader(s.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=m;if(av)l={revalidate:0,expire:void 0};else if(aw)l={revalidate:0,expire:void 0};else if(!M.isDev)if(_)l={revalidate:0,expire:void 0};else if(az){if(m.cacheControl)if("number"==typeof m.cacheControl.revalidate){if(m.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${m.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:m.cacheControl.revalidate,expire:(null==(j=m.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:x.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(m.cacheControl=l,"string"==typeof ax&&(null==q?void 0:q.kind)===u.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[x.NEXT_CACHE_TAGS_HEADER];J&&az&&c&&"string"==typeof c&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(ax);return void 0!==d?(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.fromStatic(d,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl}):(b.statusCode=204,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl}))}let r=aA?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r(m,{url:(0,h.getRequestMeta)(a,"initURL")??a.url}))return null;if(q.headers){let a={...q.headers};for(let[c,d]of(J&&az||delete a[x.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let t=null==(g=q.headers)?void 0:g[x.NEXT_CACHE_TAGS_HEADER];if(J&&az&&t&&"string"==typeof t&&b.setHeader(x.NEXT_CACHE_TAGS_HEADER,t),!q.status||ap&&as||(b.statusCode=q.status),!J&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),n&&!aw&&b.setHeader(s.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.html.contentType!==s.RSC_CONTENT_TYPE_HEADER)if(ad.cacheComponents)return b.statusCode=404,(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.EMPTY,cacheControl:m.cacheControl});else throw Object.defineProperty(new G.InvariantError(`Expected RSC response, got ${q.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:m.cacheControl})}return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:w.default.fromStatic(q.rscData,s.RSC_CONTENT_TYPE_HEADER),cacheControl:m.cacheControl})}let v=q.html;if(!n||J||ap)return(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:m.cacheControl});if(at)return v.push(new ReadableStream({start(a){a.enqueue(y.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}});let A=new TransformStream;return v.push(A.readable),o({span:c,postponed:q.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==u.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(A.writable)}).catch(a=>{A.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,z.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:v,cacheControl:{revalidate:0,expire:void 0}})};if(!aI)return await aH.withPropagatedContext(a.headers,()=>aH.trace(i.BaseServerSpan.handleRequest,{spanName:`${aG} ${O}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aG,"http.target":a.url}},q));await q(aI)}catch(b){throw b instanceof A.NoFallbackError||await M.onRequestError(a,b,{routerKind:"App Router",routePath:O,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:az,isOnDemandRevalidate:ai})},!1,ac),b}}},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77068:a=>{"use strict";a.exports=require("next/dist/shared/lib/size-limit")},77598:a=>{"use strict";a.exports=require("node:crypto")},79518:(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/Working/router4/app/src/app/(dashboard)/dashboard/cli-tools/CLIToolsPageClient.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/Working/router4/app/src/app/(dashboard)/dashboard/cli-tools/CLIToolsPageClient.js","default")},79646:a=>{"use strict";a.exports=require("child_process")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87250:(a,b,c)=>{"use strict";c.d(b,{D1:()=>e});var d=c(54603);async function e(){return await (0,d.Xj)()}},89890:(a,b,c)=>{"use strict";c.d(b,{default:()=>s});var d=c(48249),e=c(67484),f=c(50412);let g={claude:{id:"claude",name:"Claude Code",icon:"terminal",color:"#D97757",description:"Anthropic Claude Code CLI",configType:"env",envVars:{baseUrl:"ANTHROPIC_BASE_URL",model:"ANTHROPIC_MODEL",opusModel:"ANTHROPIC_DEFAULT_OPUS_MODEL",sonnetModel:"ANTHROPIC_DEFAULT_SONNET_MODEL",haikuModel:"ANTHROPIC_DEFAULT_HAIKU_MODEL"},modelAliases:["default","sonnet","opus","haiku","opusplan"],settingsFile:"~/.claude/settings.json",defaultModels:[{id:"opus",name:"Claude Opus",alias:"opus",envKey:"ANTHROPIC_DEFAULT_OPUS_MODEL",defaultValue:"cc/claude-opus-4-5-20251101"},{id:"sonnet",name:"Claude Sonnet",alias:"sonnet",envKey:"ANTHROPIC_DEFAULT_SONNET_MODEL",defaultValue:"cc/claude-sonnet-4-5-20250929"},{id:"haiku",name:"Claude Haiku",alias:"haiku",envKey:"ANTHROPIC_DEFAULT_HAIKU_MODEL",defaultValue:"cc/claude-haiku-4-5-20251001"}]},codex:{id:"codex",name:"OpenAI Codex CLI",image:"/providers/codex.png",color:"#10A37F",description:"OpenAI Codex CLI",configType:"custom"},droid:{id:"droid",name:"Factory Droid",image:"/providers/droid.png",color:"#00D4FF",description:"Factory Droid AI Assistant",configType:"custom"},openclaw:{id:"openclaw",name:"Open Claw",image:"/providers/openclaw.png",color:"#FF6B35",description:"Open Claw AI Assistant",configType:"custom"},cursor:{id:"cursor",name:"Cursor",image:"/providers/cursor.png",color:"#000000",description:"Cursor AI Code Editor",configType:"guide",requiresCloud:!0,notes:[{type:"warning",text:"Requires Cursor Pro account to use this feature."},{type:"cloudCheck",text:"Cursor routes requests through its own server, so local endpoint is not supported. Please enable Cloud Endpoint in Settings."}],guideSteps:[{step:1,title:"Open Settings",desc:"Go to Settings → Models"},{step:2,title:"Enable OpenAI API",desc:'Enable "OpenAI API key" option'},{step:3,title:"Base URL",value:"{{baseUrl}}",copyable:!0},{step:4,title:"API Key",type:"apiKeySelector"},{step:5,title:"Add Custom Model",desc:'Click "View All Model" → "Add Custom Model"'},{step:6,title:"Select Model",type:"modelSelector"}]},cline:{id:"cline",name:"Cline",image:"/providers/cline.png",color:"#00D1B2",description:"CLINE AI Assistant",configType:"guide",guideSteps:[{step:1,title:"Open Settings",desc:"Go to CLINE Settings panel"},{step:2,title:"Select Provider",desc:"Choose API Provider → Ollama"},{step:3,title:"Base URL",value:"{{baseUrl}}",copyable:!0},{step:4,title:"API Key",type:"apiKeySelector"},{step:5,title:"Select Model",type:"modelSelector"}]},roo:{id:"roo",name:"Roo",image:"/providers/roo.png",color:"#FF6B6B",description:"Roo AI Assistant",configType:"guide",guideSteps:[{step:1,title:"Open Settings",desc:"Go to Roo Settings panel"},{step:2,title:"Select Provider",desc:"Choose API Provider → Ollama"},{step:3,title:"Base URL",value:"{{baseUrl}}",copyable:!0},{step:4,title:"API Key",type:"apiKeySelector"},{step:5,title:"Select Model",type:"modelSelector"}]},continue:{id:"continue",name:"Continue",image:"/providers/continue.png",color:"#7C3AED",description:"Continue AI Assistant",configType:"guide",guideSteps:[{step:1,title:"Open Config",desc:"Open Continue configuration file"},{step:2,title:"API Key",type:"apiKeySelector"},{step:3,title:"Select Model",type:"modelSelector"},{step:4,title:"Add Model Config",desc:"Add the following configuration to your models array:"}],codeBlock:{language:"json",code:`{
3
3
  "apiBase": "{{baseUrl}}",
4
4
  "title": "{{model}}",
@@ -13,4 +13,4 @@ model_provider = "9router"
13
13
  name = "9Router"
14
14
  base_url = "${O()}"
15
15
  wire_api = "responses"
16
- `},{filename:"~/.codex/auth.json",content:JSON.stringify({OPENAI_API_KEY:o},null,2)}])})]})}let m=process.env.NEXT_PUBLIC_CLOUD_URL;function n({tool:a,isExpanded:b,onToggle:c,baseUrl:g,hasActiveProviders:h,apiKeys:j,activeProviders:k,cloudEnabled:l,initialStatus:n}){let o,p,q,r,[s,t]=(0,e.useState)(n||null),[u,v]=(0,e.useState)(!1),[w,x]=(0,e.useState)(!1),[y,z]=(0,e.useState)(!1),[A,B]=(0,e.useState)(null),[C,D]=(0,e.useState)(""),[E,F]=(0,e.useState)(""),[G,H]=(0,e.useState)(!1),[I,J]=(0,e.useState)({}),[K,L]=(0,e.useState)(!1),[M,N]=(0,e.useState)("");(0,e.useRef)(!1);let O=(()=>{if(!s?.installed)return null;let a=s.settings?.customModels?.find(a=>"custom:9Router-0"===a.id);if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1"),c=l&&m&&a.baseUrl?.startsWith(m),d=g&&a.baseUrl?.startsWith(g);return b||c||d?"configured":"other"})(),P=async()=>{v(!0);try{let a=await fetch("/api/cli-tools/droid-settings"),b=await a.json();t(b)}catch(a){t({installed:!1,error:a.message})}finally{v(!1)}},Q=()=>{let a=M||g;return a.endsWith("/v1")?a:`${a}/v1`},R=async()=>{x(!0),B(null);try{let a=C?.trim()||(j?.length>0?j[0].key:null)||(l?null:"sk_9router"),b=await fetch("/api/cli-tools/droid-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:Q(),apiKey:a,model:E})}),c=await b.json();b.ok?(B({type:"success",text:"Settings applied successfully!"}),P()):B({type:"error",text:c.error||"Failed to apply settings"})}catch(a){B({type:"error",text:a.message})}finally{x(!1)}},S=async()=>{z(!0),B(null);try{let a=await fetch("/api/cli-tools/droid-settings",{method:"DELETE"}),b=await a.json();a.ok?(B({type:"success",text:"Settings reset successfully!"}),F(""),D(""),P()):B({type:"error",text:b.error||"Failed to reset settings"})}catch(a){B({type:"error",text:a.message})}finally{z(!1)}};return(0,d.jsxs)(f.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(i.default,{src:"/providers/droid.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[u&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,d.jsx)("span",{children:"Checking Factory Droid CLI..."})]}),!u&&s&&!s.installed&&(0,d.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"Factory Droid CLI not installed"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Please install Factory Droid CLI to use this feature."})]})]}),!u&&s?.installed&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[s?.settings?.customModels?.find(a=>"custom:9Router-0"===a.id)?.baseUrl&&(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Current"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:s.settings.customModels.find(a=>"custom:9Router-0"===a.id).baseUrl})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Base URL"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:(o=M||g).endsWith("/v1")?o:`${o}/v1`,onChange:a=>N(a.target.value),placeholder:"https://.../v1",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),M&&M!==g&&(0,d.jsx)("button",{onClick:()=>N(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:"Reset to default",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),j.length>0?(0,d.jsx)("select",{value:C,onChange:a=>D(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:j.map(a=>(0,d.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,d.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:l?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Model"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:E,onChange:a=>F(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,d.jsx)("button",{onClick:()=>H(!0),disabled:!h,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${h?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),E&&(0,d.jsx)("button",{onClick:()=>F(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),A&&(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===A.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===A.type?"check_circle":"error"}),(0,d.jsx)("span",{children:A.text})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(f.$n,{variant:"primary",size:"sm",onClick:R,disabled:!E,loading:w,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Apply"]}),(0,d.jsxs)(f.$n,{variant:"outline",size:"sm",onClick:S,disabled:!s?.has9Router,loading:y,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),"Reset"]}),(0,d.jsxs)(f.$n,{variant:"ghost",size:"sm",onClick:()=>L(!0),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),"Manual Config"]})]})]})]}),(0,d.jsx)(f.rq,{isOpen:G,onClose:()=>H(!1),onSelect:a=>{F(a.value),H(!1)},selectedModel:E,activeProviders:k,modelAliases:I,title:"Select Model for Factory Droid"}),(0,d.jsx)(f.uR,{isOpen:K,onClose:()=>L(!1),title:"Factory Droid - Manual Configuration",configs:(p=C&&C.trim()?C:l?"<API_KEY_FROM_DASHBOARD>":"sk_9router",q={customModels:[{model:E||"provider/model-id",id:"custom:9Router-0",index:0,baseUrl:Q(),apiKey:p,displayName:E||"provider/model-id",maxOutputTokens:131072,noImageSupport:!1,provider:"openai"}]},r="u">typeof navigator&&navigator.platform,[{filename:r?.toLowerCase().includes("win")?"%USERPROFILE%\\.factory\\settings.json":"~/.factory/settings.json",content:JSON.stringify(q,null,2)}])})]})}function o({tool:a,isExpanded:b,onToggle:c,baseUrl:g,hasActiveProviders:h,apiKeys:j,activeProviders:k,cloudEnabled:l,initialStatus:m}){let n,o,[p,q]=(0,e.useState)(m||null),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(!1),[v,w]=(0,e.useState)(!1),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(""),[B,C]=(0,e.useState)(""),[D,E]=(0,e.useState)(!1),[F,G]=(0,e.useState)({}),[H,I]=(0,e.useState)(!1),[J,K]=(0,e.useState)("");(0,e.useRef)(!1);let L=(()=>{if(!p?.installed)return null;let a=p.settings?.models?.providers?.["9router"];if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1")||a.baseUrl?.includes("0.0.0.0"),c=g&&a.baseUrl?.startsWith(g);return b||c?"configured":"other"})(),M=async()=>{s(!0);try{let a=await fetch("/api/cli-tools/openclaw-settings"),b=await a.json();q(b)}catch(a){q({installed:!1,error:a.message})}finally{s(!1)}},N=()=>{let a=J||"http://127.0.0.1:20128";return a.endsWith("/v1")?a:`${a}/v1`},O=async()=>{u(!0),y(null);try{let a=z?.trim()||(j?.length>0?j[0].key:null)||(l?null:"sk_9router"),b=await fetch("/api/cli-tools/openclaw-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:N(),apiKey:a,model:B})}),c=await b.json();b.ok?(y({type:"success",text:"Settings applied successfully!"}),M()):y({type:"error",text:c.error||"Failed to apply settings"})}catch(a){y({type:"error",text:a.message})}finally{u(!1)}},P=async()=>{w(!0),y(null);try{let a=await fetch("/api/cli-tools/openclaw-settings",{method:"DELETE"}),b=await a.json();a.ok?(y({type:"success",text:"Settings reset successfully!"}),C(""),A(""),M()):y({type:"error",text:b.error||"Failed to reset settings"})}catch(a){y({type:"error",text:a.message})}finally{w(!1)}};return(0,d.jsxs)(f.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(i.default,{src:"/providers/openclaw.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===L&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===L&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===L&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[r&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,d.jsx)("span",{children:"Checking Open Claw CLI..."})]}),!r&&p&&!p.installed&&(0,d.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"Open Claw CLI not installed"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Please install Open Claw CLI to use this feature."})]})]}),!r&&p?.installed&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[p?.settings?.models?.providers?.["9router"]?.baseUrl&&(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Current"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:p.settings.models.providers["9router"].baseUrl})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Base URL"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:(n=J||"http://127.0.0.1:20128").endsWith("/v1")?n:`${n}/v1`,onChange:a=>K(a.target.value),placeholder:"https://.../v1",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),J&&J!==g&&(0,d.jsx)("button",{onClick:()=>K(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:"Reset to default",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),j.length>0?(0,d.jsx)("select",{value:z,onChange:a=>A(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:j.map(a=>(0,d.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,d.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:l?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Model"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:B,onChange:a=>C(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,d.jsx)("button",{onClick:()=>E(!0),disabled:!h,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${h?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),B&&(0,d.jsx)("button",{onClick:()=>C(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),x&&(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===x.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===x.type?"check_circle":"error"}),(0,d.jsx)("span",{children:x.text})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(f.$n,{variant:"primary",size:"sm",onClick:O,disabled:!B,loading:t,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Apply"]}),(0,d.jsxs)(f.$n,{variant:"outline",size:"sm",onClick:P,disabled:!p?.has9Router,loading:v,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),"Reset"]}),(0,d.jsxs)(f.$n,{variant:"ghost",size:"sm",onClick:()=>I(!0),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),"Manual Config"]})]})]})]}),(0,d.jsx)(f.rq,{isOpen:D,onClose:()=>E(!1),onSelect:a=>{C(a.value),E(!1)},selectedModel:B,activeProviders:k,modelAliases:F,title:"Select Model for Open Claw"}),(0,d.jsx)(f.uR,{isOpen:H,onClose:()=>I(!1),title:"Open Claw - Manual Configuration",configs:(o=z&&z.trim()?z:l?"<API_KEY_FROM_DASHBOARD>":"sk_9router",[{filename:"~/.openclaw/openclaw.json",content:JSON.stringify({agents:{defaults:{model:{primary:`9router/${B||"provider/model-id"}`}}},models:{providers:{"9router":{baseUrl:N(),apiKey:o,api:"openai-completions",models:[{id:B||"provider/model-id",name:(B||"provider/model-id").split("/").pop()}]}}}},null,2)}])})]})}function p({toolId:a,tool:b,isExpanded:c,onToggle:g,baseUrl:h,apiKeys:j,activeProviders:k=[],cloudEnabled:l=!1}){let[m,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),[q,r]=(0,e.useState)(""),[s,t]=(0,e.useState)(()=>j?.length>0?j[0].key:""),u=a=>{let b=s&&s.trim()?s:l?"your-api-key":"sk_9router",c=h||"http://localhost:20128",d=c.endsWith("/v1")?c:`${c}/v1`;return a.replace(/\{\{baseUrl\}\}/g,d).replace(/\{\{apiKey\}\}/g,b).replace(/\{\{model\}\}/g,q||"provider/model-id")},v=async(a,b)=>{await navigator.clipboard.writeText(u(a)),n(b),setTimeout(()=>n(null),2e3)},w=k.length>0,x=()=>!b.requiresCloud||!!l;return(0,d.jsxs)(f.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:g,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",children:b.image?(0,d.jsx)(i.default,{src:b.image,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}}):b.icon?(0,d.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:b.color},children:b.icon}):(0,d.jsx)(i.default,{src:`/providers/${a}.png`,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:b.name}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:b.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${c?"rotate-180":""}`,children:"expand_more"})]}),c&&(0,d.jsx)("div",{className:"mt-6 pt-6 border-t border-border",children:b.guideSteps?(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[b.notes&&0!==b.notes.length?(0,d.jsx)("div",{className:"flex flex-col gap-2 mb-4",children:b.notes.map((a,b)=>{if("cloudCheck"===a.type&&l)return null;let c="warning"===a.type,e="cloudCheck"===a.type&&!l,f="bg-blue-500/10 border-blue-500/30",g="text-blue-600 dark:text-blue-400",h="text-blue-500",i="info";return c?(f="bg-yellow-500/10 border-yellow-500/30",g="text-yellow-600 dark:text-yellow-400",h="text-yellow-500",i="warning"):e&&(f="bg-red-500/10 border-red-500/30",g="text-red-600 dark:text-red-400",h="text-red-500",i="error"),(0,d.jsxs)("div",{className:`flex items-start gap-3 p-3 rounded-lg border ${f}`,children:[(0,d.jsx)("span",{className:`material-symbols-outlined text-lg ${h}`,children:i}),(0,d.jsx)("p",{className:`text-sm ${g}`,children:a.text})]},b)})}):null,x()&&b.guideSteps.map(a=>(0,d.jsxs)("div",{className:"flex items-start gap-4",children:[(0,d.jsx)("div",{className:"size-8 rounded-full flex items-center justify-center shrink-0 text-sm font-semibold text-white",style:{backgroundColor:b.color},children:a.step}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"font-medium text-text",children:a.title}),a.desc&&(0,d.jsx)("p",{className:"text-sm text-text-muted mt-0.5",children:a.desc}),"apiKeySelector"===a.type&&(0,d.jsx)("div",{className:"mt-2 flex items-center gap-2",children:j&&j.length>0?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("select",{value:s,onChange:a=>t(a.target.value),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:j.map(a=>(0,d.jsx)("option",{value:a.key,children:a.key},a.id))}),(0,d.jsx)("button",{onClick:()=>v(s,"apiKey"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"apiKey"===m?"check":"content_copy"})})]}):(0,d.jsx)("span",{className:"text-sm text-text-muted",children:l?"No API keys - Create one in Keys page":"sk_9router"})}),"modelSelector"===a.type&&(0,d.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,d.jsx)("input",{type:"text",value:q,onChange:a=>r(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,d.jsx)("button",{onClick:()=>p(!0),disabled:!w,className:`shrink-0 px-3 py-2 rounded-lg border text-sm transition-colors ${w?"bg-bg-secondary border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),q&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{onClick:()=>v(q,"model"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"model"===m?"check":"content_copy"})}),(0,d.jsx)("button",{onClick:()=>r(""),className:"p-2 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]})]}),a.value&&(0,d.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,d.jsx)("code",{className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm font-mono border border-border truncate",children:u(a.value)}),a.copyable&&(0,d.jsx)("button",{onClick:()=>v(a.value,`${a.step}-${a.title}`),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:m===`${a.step}-${a.title}`?"check":"content_copy"})})]})]})]},a.step)),x()&&b.codeBlock&&(0,d.jsxs)("div",{className:"mt-2",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wide",children:b.codeBlock.language}),(0,d.jsxs)("button",{onClick:()=>v(b.codeBlock.code,"codeblock"),className:"flex items-center gap-1 px-2 py-1 text-xs bg-bg-secondary hover:bg-bg-tertiary rounded border border-border transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"codeblock"===m?"check":"content_copy"}),"codeblock"===m?"Copied!":"Copy"]})]}),(0,d.jsx)("pre",{className:"p-4 bg-bg-secondary rounded-lg border border-border overflow-x-auto",children:(0,d.jsx)("code",{className:"text-sm font-mono whitespace-pre",children:u(b.codeBlock.code)})})]})]}):(0,d.jsx)("p",{className:"text-text-muted text-sm",children:"Coming soon..."})}),(0,d.jsx)(f.rq,{isOpen:o,onClose:()=>p(!1),onSelect:a=>{r(a.value)},selectedModel:q,activeProviders:k,title:"Select Model"})]})}function q({tool:a,isExpanded:b,onToggle:c,baseUrl:g,apiKeys:h,activeProviders:j,hasActiveProviders:k,cloudEnabled:l,initialStatus:m}){let[n,o]=(0,e.useState)(m||null),[p,q]=(0,e.useState)(!1),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(""),[v,w]=(0,e.useState)(""),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)({}),[B,C]=(0,e.useState)(!1),[D,E]=(0,e.useState)(null),F=async()=>{try{let a=await fetch("/api/cli-tools/antigravity-mitm");if(a.ok){let b=await a.json();o(b)}}catch(a){console.log("Error fetching status:",a),o({running:!1})}},G="u">typeof navigator&&navigator.userAgent?.includes("Windows"),H=async a=>{q(!0),y(null);try{let b=v?.trim()||(h?.length>0?h[0].key:null)||(l?null:"sk_9router"),c=await fetch("/api/cli-tools/antigravity-mitm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:b,sudoPassword:a})}),d=await c.json();c.ok?(y({type:"success",text:"MITM started"}),s(!1),u(""),F()):y({type:"error",text:d.error||"Failed to start"})}catch(a){y({type:"error",text:a.message})}finally{q(!1)}},I=async a=>{q(!0),y(null);try{let b=await fetch("/api/cli-tools/antigravity-mitm",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:a})}),c=await b.json();b.ok?(y({type:"success",text:"MITM stopped"}),s(!1),u(""),F()):y({type:"error",text:c.error||"Failed to stop"})}catch(a){y({type:"error",text:a.message})}finally{q(!1)}},J=()=>{t.trim()?n?.running?I(t):H(t):y({type:"error",text:"Sudo password is required"})},K=(a,b)=>{A(c=>({...c,[a]:b}))},L=async()=>{q(!0),y(null);try{let a=await fetch("/api/cli-tools/antigravity-mitm/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"antigravity",mappings:z})});if(!a.ok){let b=await a.json();throw Error(b.error||"Failed to save mappings")}y({type:"success",text:"Mappings saved!"})}catch(a){y({type:"error",text:a.message})}finally{q(!1)}},M=n?.running;return(0,d.jsxs)(f.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(i.default,{src:"/providers/antigravity.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),M?(0,d.jsx)(f.Ex,{variant:"success",size:"sm",children:"Active"}):(0,d.jsx)(f.Ex,{variant:"default",size:"sm",children:"Inactive"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[(0,d.jsx)("div",{className:"flex items-center gap-3",children:[{label:"DNS",ok:n?.dnsConfigured},{label:"Cert",ok:n?.certExists},{label:"Server",ok:n?.running}].map(({label:a,ok:b})=>(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)("span",{className:`material-symbols-outlined text-[14px] ${b?"text-green-500":"text-text-muted"}`,children:b?"check_circle":"radio_button_unchecked"}),(0,d.jsx)("span",{className:`text-xs ${b?"text-green-500":"text-text-muted"}`,children:a})]},a))}),(0,d.jsx)("div",{className:"flex items-center gap-2",children:M?(0,d.jsxs)("button",{onClick:()=>{G||n?.hasCachedPassword?I(""):(s(!0),y(null))},disabled:p,className:"px-4 py-2 rounded-lg bg-red-500/10 border border-red-500/30 text-red-500 font-medium text-sm flex items-center gap-2 hover:bg-red-500/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"stop_circle"}),"Stop MITM"]}):(0,d.jsxs)("button",{onClick:()=>{G||n?.hasCachedPassword?H(""):(s(!0),y(null))},disabled:p||!k,className:"px-4 py-2 rounded-lg bg-primary/10 border border-primary/30 text-primary font-medium text-sm flex items-center gap-2 hover:bg-primary/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"play_circle"}),"Start MITM"]})}),x?.type==="error"&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:x.text})]}),M&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),h.length>0?(0,d.jsx)("select",{value:v,onChange:a=>w(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:h.map(a=>(0,d.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,d.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:l?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),a.defaultModels.map(a=>(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:a.name}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:z[a.alias]||"",onChange:b=>K(a.alias,b.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,d.jsx)("button",{onClick:()=>{E(a.alias),C(!0)},disabled:!k,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${k?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select"}),z[a.alias]&&(0,d.jsx)("button",{onClick:()=>K(a.alias,""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]},a.alias)),(0,d.jsx)("div",{className:"flex items-center gap-2",children:(0,d.jsxs)(f.$n,{variant:"primary",size:"sm",onClick:L,disabled:p||0===Object.keys(z).length,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Save Mappings"]})})]}),!M&&(0,d.jsxs)("div",{className:"flex flex-col gap-1.5 px-1",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:[(0,d.jsx)("span",{className:"font-medium text-text-main",children:"How it works:"})," Intercepts Antigravity traffic via DNS redirect, letting you reroute models through 9Router."]}),(0,d.jsxs)("div",{className:"flex flex-col gap-0.5 text-[11px] text-text-muted",children:[(0,d.jsx)("span",{children:"1. Generates SSL cert & adds to system keychain"}),(0,d.jsxs)("span",{children:["2. Redirects ",(0,d.jsx)("code",{className:"text-[10px] bg-surface px-1 rounded",children:"daily-cloudcode-pa.googleapis.com"})," → localhost"]}),(0,d.jsx)("span",{children:"3. Maps Antigravity models to any provider via 9Router"})]})]})]}),(0,d.jsx)(f.aF,{isOpen:r,onClose:()=>{s(!1),u(""),y(null)},title:"Sudo Password Required",size:"sm",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Required for SSL certificate and DNS configuration"})]}),(0,d.jsx)(f.pd,{type:"password",placeholder:"Enter sudo password",value:t,onChange:a=>u(a.target.value),onKeyDown:a=>{"Enter"!==a.key||p||J()}}),x&&(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===x.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===x.type?"check_circle":"error"}),(0,d.jsx)("span",{children:x.text})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",size:"sm",onClick:()=>{s(!1),u(""),y(null)},disabled:p,children:"Cancel"}),(0,d.jsx)(f.$n,{variant:"primary",size:"sm",onClick:J,loading:p,children:"Confirm"})]})]})}),(0,d.jsx)(f.rq,{isOpen:B,onClose:()=>C(!1),onSelect:a=>{D&&A(b=>({...b,[D]:a.value}))},selectedModel:D?z[D]:null,activeProviders:j,title:`Select model for ${D}`})]})}let r=process.env.NEXT_PUBLIC_CLOUD_URL;function s({machineId:a}){let b,c,i,[j,m]=(0,e.useState)([]),[s,t]=(0,e.useState)(!0),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)({}),[y,z]=(0,e.useState)(!1),[A,B]=(0,e.useState)(!1),[C,D]=(0,e.useState)(""),[E,F]=(0,e.useState)([]),[G,H]=(0,e.useState)({}),I=()=>j.filter(a=>!1!==a.isActive),J=(0,e.useCallback)((a,b,c)=>{x(d=>d[a]?.[b]===c?d:{...d,[a]:{...d[a],[b]:c}})},[]);if(s)return(0,d.jsx)("div",{className:"flex flex-col gap-6",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(f.Qv,{}),(0,d.jsx)(f.Qv,{}),(0,d.jsx)(f.Qv,{})]})});let K=(b=I(),c=[],i=new Set,b.forEach(a=>{let b=h.Xg[a.provider]||a.provider;(0,h.KC)(a.provider).forEach(d=>{let e=`${b}/${d.id}`;i.has(e)||(i.add(e),c.push({value:e,label:`${b}/${d.id}`,provider:a.provider,alias:b,connectionName:a.name,modelId:d.id}))})}),c).length>0;return(0,d.jsxs)("div",{className:"flex flex-col gap-6",children:[!K&&(0,d.jsx)(f.Zp,{className:"border-yellow-500/50 bg-yellow-500/5",children:(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"No active providers"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Please add and connect providers first to configure CLI tools."})]})]})}),(0,d.jsx)("div",{className:"flex flex-col gap-4",children:Object.entries(g).map(([a,b])=>((a,b)=>{let c={tool:b,isExpanded:u===a,onToggle:()=>v(u===a?null:a),baseUrl:A&&C?C:y&&r?r:"http://localhost:20128",apiKeys:E};switch(a){case"claude":return(0,d.jsx)(k,{...c,activeProviders:I(),modelMappings:w[a]||{},onModelMappingChange:(b,c)=>J(a,b,c),hasActiveProviders:K,cloudEnabled:y,initialStatus:G.claude},a);case"codex":return(0,d.jsx)(l,{...c,activeProviders:I(),cloudEnabled:y,initialStatus:G.codex},a);case"droid":return(0,d.jsx)(n,{...c,activeProviders:I(),hasActiveProviders:K,cloudEnabled:y,initialStatus:G.droid},a);case"openclaw":return(0,d.jsx)(o,{...c,activeProviders:I(),hasActiveProviders:K,cloudEnabled:y,initialStatus:G.openclaw},a);case"antigravity":return(0,d.jsx)(q,{...c,activeProviders:I(),hasActiveProviders:K,cloudEnabled:y,initialStatus:G.antigravity},a);default:return(0,d.jsx)(p,{toolId:a,...c,activeProviders:I(),cloudEnabled:y},a)}})(a,b))})]})}},91645:a=>{"use strict";a.exports=require("net")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,5270,2044,7471,3919,4822,6943,9718,6186,9201,8694,412,1164],()=>b(b.s=55268));module.exports=c})();
16
+ `},{filename:"~/.codex/auth.json",content:JSON.stringify({OPENAI_API_KEY:o},null,2)}])})]})}let m=process.env.NEXT_PUBLIC_CLOUD_URL;function n({tool:a,isExpanded:b,onToggle:c,baseUrl:g,hasActiveProviders:h,apiKeys:j,activeProviders:k,cloudEnabled:l,initialStatus:n}){let o,p,q,r,[s,t]=(0,e.useState)(n||null),[u,v]=(0,e.useState)(!1),[w,x]=(0,e.useState)(!1),[y,z]=(0,e.useState)(!1),[A,B]=(0,e.useState)(null),[C,D]=(0,e.useState)(""),[E,F]=(0,e.useState)(""),[G,H]=(0,e.useState)(!1),[I,J]=(0,e.useState)({}),[K,L]=(0,e.useState)(!1),[M,N]=(0,e.useState)("");(0,e.useRef)(!1);let O=(()=>{if(!s?.installed)return null;let a=s.settings?.customModels?.find(a=>"custom:9Router-0"===a.id);if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1"),c=l&&m&&a.baseUrl?.startsWith(m),d=g&&a.baseUrl?.startsWith(g);return b||c||d?"configured":"other"})(),P=async()=>{v(!0);try{let a=await fetch("/api/cli-tools/droid-settings"),b=await a.json();t(b)}catch(a){t({installed:!1,error:a.message})}finally{v(!1)}},Q=()=>{let a=M||g;return a.endsWith("/v1")?a:`${a}/v1`},R=async()=>{x(!0),B(null);try{let a=C?.trim()||(j?.length>0?j[0].key:null)||(l?null:"sk_9router"),b=await fetch("/api/cli-tools/droid-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:Q(),apiKey:a,model:E})}),c=await b.json();b.ok?(B({type:"success",text:"Settings applied successfully!"}),P()):B({type:"error",text:c.error||"Failed to apply settings"})}catch(a){B({type:"error",text:a.message})}finally{x(!1)}},S=async()=>{z(!0),B(null);try{let a=await fetch("/api/cli-tools/droid-settings",{method:"DELETE"}),b=await a.json();a.ok?(B({type:"success",text:"Settings reset successfully!"}),F(""),D(""),P()):B({type:"error",text:b.error||"Failed to reset settings"})}catch(a){B({type:"error",text:a.message})}finally{z(!1)}};return(0,d.jsxs)(f.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(i.default,{src:"/providers/droid.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[u&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,d.jsx)("span",{children:"Checking Factory Droid CLI..."})]}),!u&&s&&!s.installed&&(0,d.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"Factory Droid CLI not installed"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Please install Factory Droid CLI to use this feature."})]})]}),!u&&s?.installed&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[s?.settings?.customModels?.find(a=>"custom:9Router-0"===a.id)?.baseUrl&&(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Current"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:s.settings.customModels.find(a=>"custom:9Router-0"===a.id).baseUrl})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Base URL"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:(o=M||g).endsWith("/v1")?o:`${o}/v1`,onChange:a=>N(a.target.value),placeholder:"https://.../v1",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),M&&M!==g&&(0,d.jsx)("button",{onClick:()=>N(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:"Reset to default",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),j.length>0?(0,d.jsx)("select",{value:C,onChange:a=>D(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:j.map(a=>(0,d.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,d.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:l?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Model"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:E,onChange:a=>F(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,d.jsx)("button",{onClick:()=>H(!0),disabled:!h,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${h?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),E&&(0,d.jsx)("button",{onClick:()=>F(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),A&&(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===A.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===A.type?"check_circle":"error"}),(0,d.jsx)("span",{children:A.text})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(f.$n,{variant:"primary",size:"sm",onClick:R,disabled:!E,loading:w,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Apply"]}),(0,d.jsxs)(f.$n,{variant:"outline",size:"sm",onClick:S,disabled:!s?.has9Router,loading:y,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),"Reset"]}),(0,d.jsxs)(f.$n,{variant:"ghost",size:"sm",onClick:()=>L(!0),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),"Manual Config"]})]})]})]}),(0,d.jsx)(f.rq,{isOpen:G,onClose:()=>H(!1),onSelect:a=>{F(a.value),H(!1)},selectedModel:E,activeProviders:k,modelAliases:I,title:"Select Model for Factory Droid"}),(0,d.jsx)(f.uR,{isOpen:K,onClose:()=>L(!1),title:"Factory Droid - Manual Configuration",configs:(p=C&&C.trim()?C:l?"<API_KEY_FROM_DASHBOARD>":"sk_9router",q={customModels:[{model:E||"provider/model-id",id:"custom:9Router-0",index:0,baseUrl:Q(),apiKey:p,displayName:E||"provider/model-id",maxOutputTokens:131072,noImageSupport:!1,provider:"openai"}]},r="u">typeof navigator&&navigator.platform,[{filename:r?.toLowerCase().includes("win")?"%USERPROFILE%\\.factory\\settings.json":"~/.factory/settings.json",content:JSON.stringify(q,null,2)}])})]})}function o({tool:a,isExpanded:b,onToggle:c,baseUrl:g,hasActiveProviders:h,apiKeys:j,activeProviders:k,cloudEnabled:l,initialStatus:m}){let n,o,[p,q]=(0,e.useState)(m||null),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(!1),[v,w]=(0,e.useState)(!1),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(""),[B,C]=(0,e.useState)(""),[D,E]=(0,e.useState)(!1),[F,G]=(0,e.useState)({}),[H,I]=(0,e.useState)(!1),[J,K]=(0,e.useState)("");(0,e.useRef)(!1);let L=(()=>{if(!p?.installed)return null;let a=p.settings?.models?.providers?.["9router"];if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1")||a.baseUrl?.includes("0.0.0.0"),c=g&&a.baseUrl?.startsWith(g);return b||c?"configured":"other"})(),M=async()=>{s(!0);try{let a=await fetch("/api/cli-tools/openclaw-settings"),b=await a.json();q(b)}catch(a){q({installed:!1,error:a.message})}finally{s(!1)}},N=()=>{let a=J||"http://127.0.0.1:20128";return a.endsWith("/v1")?a:`${a}/v1`},O=async()=>{u(!0),y(null);try{let a=z?.trim()||(j?.length>0?j[0].key:null)||(l?null:"sk_9router"),b=await fetch("/api/cli-tools/openclaw-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:N(),apiKey:a,model:B})}),c=await b.json();b.ok?(y({type:"success",text:"Settings applied successfully!"}),M()):y({type:"error",text:c.error||"Failed to apply settings"})}catch(a){y({type:"error",text:a.message})}finally{u(!1)}},P=async()=>{w(!0),y(null);try{let a=await fetch("/api/cli-tools/openclaw-settings",{method:"DELETE"}),b=await a.json();a.ok?(y({type:"success",text:"Settings reset successfully!"}),C(""),A(""),M()):y({type:"error",text:b.error||"Failed to reset settings"})}catch(a){y({type:"error",text:a.message})}finally{w(!1)}};return(0,d.jsxs)(f.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(i.default,{src:"/providers/openclaw.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===L&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===L&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===L&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[r&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,d.jsx)("span",{children:"Checking Open Claw CLI..."})]}),!r&&p&&!p.installed&&(0,d.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"Open Claw CLI not installed"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Please install Open Claw CLI to use this feature."})]})]}),!r&&p?.installed&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[p?.settings?.models?.providers?.["9router"]?.baseUrl&&(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Current"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:p.settings.models.providers["9router"].baseUrl})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Base URL"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:(n=J||"http://127.0.0.1:20128").endsWith("/v1")?n:`${n}/v1`,onChange:a=>K(a.target.value),placeholder:"https://.../v1",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),J&&J!==g&&(0,d.jsx)("button",{onClick:()=>K(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:"Reset to default",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),j.length>0?(0,d.jsx)("select",{value:z,onChange:a=>A(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:j.map(a=>(0,d.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,d.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:l?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Model"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:B,onChange:a=>C(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,d.jsx)("button",{onClick:()=>E(!0),disabled:!h,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${h?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),B&&(0,d.jsx)("button",{onClick:()=>C(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),x&&(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===x.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===x.type?"check_circle":"error"}),(0,d.jsx)("span",{children:x.text})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(f.$n,{variant:"primary",size:"sm",onClick:O,disabled:!B,loading:t,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Apply"]}),(0,d.jsxs)(f.$n,{variant:"outline",size:"sm",onClick:P,disabled:!p?.has9Router,loading:v,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),"Reset"]}),(0,d.jsxs)(f.$n,{variant:"ghost",size:"sm",onClick:()=>I(!0),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),"Manual Config"]})]})]})]}),(0,d.jsx)(f.rq,{isOpen:D,onClose:()=>E(!1),onSelect:a=>{C(a.value),E(!1)},selectedModel:B,activeProviders:k,modelAliases:F,title:"Select Model for Open Claw"}),(0,d.jsx)(f.uR,{isOpen:H,onClose:()=>I(!1),title:"Open Claw - Manual Configuration",configs:(o=z&&z.trim()?z:l?"<API_KEY_FROM_DASHBOARD>":"sk_9router",[{filename:"~/.openclaw/openclaw.json",content:JSON.stringify({agents:{defaults:{model:{primary:`9router/${B||"provider/model-id"}`}}},models:{providers:{"9router":{baseUrl:N(),apiKey:o,api:"openai-completions",models:[{id:B||"provider/model-id",name:(B||"provider/model-id").split("/").pop()}]}}}},null,2)}])})]})}function p({toolId:a,tool:b,isExpanded:c,onToggle:g,baseUrl:h,apiKeys:j,activeProviders:k=[],cloudEnabled:l=!1}){let[m,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),[q,r]=(0,e.useState)(""),[s,t]=(0,e.useState)(()=>j?.length>0?j[0].key:""),u=a=>{let b=s&&s.trim()?s:l?"your-api-key":"sk_9router",c=h||"http://localhost:20128",d=c.endsWith("/v1")?c:`${c}/v1`;return a.replace(/\{\{baseUrl\}\}/g,d).replace(/\{\{apiKey\}\}/g,b).replace(/\{\{model\}\}/g,q||"provider/model-id")},v=async(a,b)=>{await navigator.clipboard.writeText(u(a)),n(b),setTimeout(()=>n(null),2e3)},w=k.length>0,x=()=>!b.requiresCloud||!!l;return(0,d.jsxs)(f.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:g,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",children:b.image?(0,d.jsx)(i.default,{src:b.image,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}}):b.icon?(0,d.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:b.color},children:b.icon}):(0,d.jsx)(i.default,{src:`/providers/${a}.png`,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:b.name}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:b.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${c?"rotate-180":""}`,children:"expand_more"})]}),c&&(0,d.jsx)("div",{className:"mt-6 pt-6 border-t border-border",children:b.guideSteps?(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[b.notes&&0!==b.notes.length?(0,d.jsx)("div",{className:"flex flex-col gap-2 mb-4",children:b.notes.map((a,b)=>{if("cloudCheck"===a.type&&l)return null;let c="warning"===a.type,e="cloudCheck"===a.type&&!l,f="bg-blue-500/10 border-blue-500/30",g="text-blue-600 dark:text-blue-400",h="text-blue-500",i="info";return c?(f="bg-yellow-500/10 border-yellow-500/30",g="text-yellow-600 dark:text-yellow-400",h="text-yellow-500",i="warning"):e&&(f="bg-red-500/10 border-red-500/30",g="text-red-600 dark:text-red-400",h="text-red-500",i="error"),(0,d.jsxs)("div",{className:`flex items-start gap-3 p-3 rounded-lg border ${f}`,children:[(0,d.jsx)("span",{className:`material-symbols-outlined text-lg ${h}`,children:i}),(0,d.jsx)("p",{className:`text-sm ${g}`,children:a.text})]},b)})}):null,x()&&b.guideSteps.map(a=>(0,d.jsxs)("div",{className:"flex items-start gap-4",children:[(0,d.jsx)("div",{className:"size-8 rounded-full flex items-center justify-center shrink-0 text-sm font-semibold text-white",style:{backgroundColor:b.color},children:a.step}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"font-medium text-text",children:a.title}),a.desc&&(0,d.jsx)("p",{className:"text-sm text-text-muted mt-0.5",children:a.desc}),"apiKeySelector"===a.type&&(0,d.jsx)("div",{className:"mt-2 flex items-center gap-2",children:j&&j.length>0?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("select",{value:s,onChange:a=>t(a.target.value),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:j.map(a=>(0,d.jsx)("option",{value:a.key,children:a.key},a.id))}),(0,d.jsx)("button",{onClick:()=>v(s,"apiKey"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"apiKey"===m?"check":"content_copy"})})]}):(0,d.jsx)("span",{className:"text-sm text-text-muted",children:l?"No API keys - Create one in Keys page":"sk_9router"})}),"modelSelector"===a.type&&(0,d.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,d.jsx)("input",{type:"text",value:q,onChange:a=>r(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,d.jsx)("button",{onClick:()=>p(!0),disabled:!w,className:`shrink-0 px-3 py-2 rounded-lg border text-sm transition-colors ${w?"bg-bg-secondary border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),q&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{onClick:()=>v(q,"model"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"model"===m?"check":"content_copy"})}),(0,d.jsx)("button",{onClick:()=>r(""),className:"p-2 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]})]}),a.value&&(0,d.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,d.jsx)("code",{className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm font-mono border border-border truncate",children:u(a.value)}),a.copyable&&(0,d.jsx)("button",{onClick:()=>v(a.value,`${a.step}-${a.title}`),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:m===`${a.step}-${a.title}`?"check":"content_copy"})})]})]})]},a.step)),x()&&b.codeBlock&&(0,d.jsxs)("div",{className:"mt-2",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wide",children:b.codeBlock.language}),(0,d.jsxs)("button",{onClick:()=>v(b.codeBlock.code,"codeblock"),className:"flex items-center gap-1 px-2 py-1 text-xs bg-bg-secondary hover:bg-bg-tertiary rounded border border-border transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"codeblock"===m?"check":"content_copy"}),"codeblock"===m?"Copied!":"Copy"]})]}),(0,d.jsx)("pre",{className:"p-4 bg-bg-secondary rounded-lg border border-border overflow-x-auto",children:(0,d.jsx)("code",{className:"text-sm font-mono whitespace-pre",children:u(b.codeBlock.code)})})]})]}):(0,d.jsx)("p",{className:"text-text-muted text-sm",children:"Coming soon..."})}),(0,d.jsx)(f.rq,{isOpen:o,onClose:()=>p(!1),onSelect:a=>{r(a.value)},selectedModel:q,activeProviders:k,title:"Select Model"})]})}function q({tool:a,isExpanded:b,onToggle:c,baseUrl:g,apiKeys:h,activeProviders:j,hasActiveProviders:k,cloudEnabled:l,initialStatus:m}){let[n,o]=(0,e.useState)(m||null),[p,q]=(0,e.useState)(!1),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(""),[v,w]=(0,e.useState)(""),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)({}),[B,C]=(0,e.useState)(!1),[D,E]=(0,e.useState)(null),F=async()=>{try{let a=await fetch("/api/cli-tools/antigravity-mitm");if(a.ok){let b=await a.json();o(b)}}catch(a){console.log("Error fetching status:",a),o({running:!1})}},G="u">typeof navigator&&navigator.userAgent?.includes("Windows"),H=async a=>{q(!0),y(null);try{let b=v?.trim()||(h?.length>0?h[0].key:null)||(l?null:"sk_9router"),c=await fetch("/api/cli-tools/antigravity-mitm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:b,sudoPassword:a})}),d=await c.json();c.ok?(y({type:"success",text:"MITM started"}),s(!1),u(""),F()):y({type:"error",text:d.error||"Failed to start"})}catch(a){y({type:"error",text:a.message})}finally{q(!1)}},I=async a=>{q(!0),y(null);try{let b=await fetch("/api/cli-tools/antigravity-mitm",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:a})}),c=await b.json();b.ok?(y({type:"success",text:"MITM stopped"}),s(!1),u(""),F()):y({type:"error",text:c.error||"Failed to stop"})}catch(a){y({type:"error",text:a.message})}finally{q(!1)}},J=()=>{t.trim()?n?.running?I(t):H(t):y({type:"error",text:"Sudo password is required"})},K=(a,b)=>{A(c=>({...c,[a]:b}))},L=async()=>{q(!0),y(null);try{let a=await fetch("/api/cli-tools/antigravity-mitm/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:"antigravity",mappings:z})});if(!a.ok){let b=await a.json();throw Error(b.error||"Failed to save mappings")}y({type:"success",text:"Mappings saved!"})}catch(a){y({type:"error",text:a.message})}finally{q(!1)}},M=n?.running;return(0,d.jsxs)(f.Zp,{padding:"sm",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(i.default,{src:"/providers/antigravity.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),M?(0,d.jsx)(f.Ex,{variant:"success",size:"sm",children:"Active"}):(0,d.jsx)(f.Ex,{variant:"default",size:"sm",children:"Inactive"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[(0,d.jsx)("div",{className:"flex items-center gap-3",children:[{label:"DNS",ok:n?.dnsConfigured},{label:"Cert",ok:n?.certExists},{label:"Server",ok:n?.running}].map(({label:a,ok:b})=>(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)("span",{className:`material-symbols-outlined text-[14px] ${b?"text-green-500":"text-text-muted"}`,children:b?"check_circle":"radio_button_unchecked"}),(0,d.jsx)("span",{className:`text-xs ${b?"text-green-500":"text-text-muted"}`,children:a})]},a))}),(0,d.jsx)("div",{className:"flex items-center gap-2",children:M?(0,d.jsxs)("button",{onClick:()=>{G||n?.hasCachedPassword?I(""):(s(!0),y(null))},disabled:p,className:"px-4 py-2 rounded-lg bg-red-500/10 border border-red-500/30 text-red-500 font-medium text-sm flex items-center gap-2 hover:bg-red-500/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"stop_circle"}),"Stop MITM"]}):(0,d.jsxs)("button",{onClick:()=>{G||n?.hasCachedPassword?H(""):(s(!0),y(null))},disabled:p||!k,className:"px-4 py-2 rounded-lg bg-primary/10 border border-primary/30 text-primary font-medium text-sm flex items-center gap-2 hover:bg-primary/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"play_circle"}),"Start MITM"]})}),x?.type==="error"&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:x.text})]}),M&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),h.length>0?(0,d.jsx)("select",{value:v,onChange:a=>w(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:h.map(a=>(0,d.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,d.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:l?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),a.defaultModels.map(a=>(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:a.name}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:z[a.alias]||"",onChange:b=>K(a.alias,b.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,d.jsx)("button",{onClick:()=>{E(a.alias),C(!0)},disabled:!k,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${k?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select"}),z[a.alias]&&(0,d.jsx)("button",{onClick:()=>K(a.alias,""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]},a.alias)),(0,d.jsx)("div",{className:"flex items-center gap-2",children:(0,d.jsxs)(f.$n,{variant:"primary",size:"sm",onClick:L,disabled:p||0===Object.keys(z).length,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Save Mappings"]})})]}),!M&&(0,d.jsxs)("div",{className:"flex flex-col gap-1.5 px-1",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:[(0,d.jsx)("span",{className:"font-medium text-text-main",children:"How it works:"})," Intercepts Antigravity traffic via DNS redirect, letting you reroute models through 9Router."]}),(0,d.jsxs)("div",{className:"flex flex-col gap-0.5 text-[11px] text-text-muted",children:[(0,d.jsx)("span",{children:"1. Generates SSL cert & adds to system keychain"}),(0,d.jsxs)("span",{children:["2. Redirects ",(0,d.jsx)("code",{className:"text-[10px] bg-surface px-1 rounded",children:"daily-cloudcode-pa.googleapis.com"})," → localhost"]}),(0,d.jsx)("span",{children:"3. Maps Antigravity models to any provider via 9Router"})]})]})]}),(0,d.jsx)(f.aF,{isOpen:r,onClose:()=>{s(!1),u(""),y(null)},title:"Sudo Password Required",size:"sm",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Required for SSL certificate and DNS configuration"})]}),(0,d.jsx)(f.pd,{type:"password",placeholder:"Enter sudo password",value:t,onChange:a=>u(a.target.value),onKeyDown:a=>{"Enter"!==a.key||p||J()}}),x&&(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===x.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===x.type?"check_circle":"error"}),(0,d.jsx)("span",{children:x.text})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",size:"sm",onClick:()=>{s(!1),u(""),y(null)},disabled:p,children:"Cancel"}),(0,d.jsx)(f.$n,{variant:"primary",size:"sm",onClick:J,loading:p,children:"Confirm"})]})]})}),(0,d.jsx)(f.rq,{isOpen:B,onClose:()=>C(!1),onSelect:a=>{D&&A(b=>({...b,[D]:a.value}))},selectedModel:D?z[D]:null,activeProviders:j,title:`Select model for ${D}`})]})}let r=process.env.NEXT_PUBLIC_CLOUD_URL;function s({machineId:a}){let b,c,i,[j,m]=(0,e.useState)([]),[s,t]=(0,e.useState)(!0),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)({}),[y,z]=(0,e.useState)(!1),[A,B]=(0,e.useState)(!1),[C,D]=(0,e.useState)(""),[E,F]=(0,e.useState)([]),[G,H]=(0,e.useState)({}),I=()=>j.filter(a=>!1!==a.isActive),J=(0,e.useCallback)((a,b,c)=>{x(d=>d[a]?.[b]===c?d:{...d,[a]:{...d[a],[b]:c}})},[]);if(s)return(0,d.jsx)("div",{className:"flex flex-col gap-6",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(f.Qv,{}),(0,d.jsx)(f.Qv,{}),(0,d.jsx)(f.Qv,{})]})});let K=(b=I(),c=[],i=new Set,b.forEach(a=>{let b=h.Xg[a.provider]||a.provider;(0,h.KC)(a.provider).forEach(d=>{let e=`${b}/${d.id}`;i.has(e)||(i.add(e),c.push({value:e,label:`${b}/${d.id}`,provider:a.provider,alias:b,connectionName:a.name,modelId:d.id}))})}),c).length>0;return(0,d.jsxs)("div",{className:"flex flex-col gap-6",children:[!K&&(0,d.jsx)(f.Zp,{className:"border-yellow-500/50 bg-yellow-500/5",children:(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"No active providers"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Please add and connect providers first to configure CLI tools."})]})]})}),(0,d.jsx)("div",{className:"flex flex-col gap-4",children:Object.entries(g).map(([a,b])=>((a,b)=>{let c={tool:b,isExpanded:u===a,onToggle:()=>v(u===a?null:a),baseUrl:A&&C?C:y&&r?r:"http://localhost:20128",apiKeys:E};switch(a){case"claude":return(0,d.jsx)(k,{...c,activeProviders:I(),modelMappings:w[a]||{},onModelMappingChange:(b,c)=>J(a,b,c),hasActiveProviders:K,cloudEnabled:y,initialStatus:G.claude},a);case"codex":return(0,d.jsx)(l,{...c,activeProviders:I(),cloudEnabled:y,initialStatus:G.codex},a);case"droid":return(0,d.jsx)(n,{...c,activeProviders:I(),hasActiveProviders:K,cloudEnabled:y,initialStatus:G.droid},a);case"openclaw":return(0,d.jsx)(o,{...c,activeProviders:I(),hasActiveProviders:K,cloudEnabled:y,initialStatus:G.openclaw},a);case"antigravity":return(0,d.jsx)(q,{...c,activeProviders:I(),hasActiveProviders:K,cloudEnabled:y,initialStatus:G.antigravity},a);default:return(0,d.jsx)(p,{toolId:a,...c,activeProviders:I(),cloudEnabled:y},a)}})(a,b))})]})}},91645:a=>{"use strict";a.exports=require("net")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,5270,2044,7471,3919,4822,6943,9718,6186,9201,2280,412,1164],()=>b(b.s=55268));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../../package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/dist/shared/lib/size-limit.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1164.js","../../../../chunks/2044.js","../../../../chunks/3919.js","../../../../chunks/412.js","../../../../chunks/4741.js","../../../../chunks/4822.js","../../../../chunks/5270.js","../../../../chunks/6186.js","../../../../chunks/6844.js","../../../../chunks/6943.js","../../../../chunks/7341.js","../../../../chunks/7471.js","../../../../chunks/8694.js","../../../../chunks/9201.js","../../../../chunks/9718.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
1
+ {"version":1,"files":["../../../../../../../package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/dist/shared/lib/size-limit.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1164.js","../../../../chunks/2044.js","../../../../chunks/2280.js","../../../../chunks/3919.js","../../../../chunks/412.js","../../../../chunks/4741.js","../../../../chunks/4822.js","../../../../chunks/5270.js","../../../../chunks/6186.js","../../../../chunks/6844.js","../../../../chunks/6943.js","../../../../chunks/7341.js","../../../../chunks/7471.js","../../../../chunks/9201.js","../../../../chunks/9718.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]}