@sifxprime/krouter 0.5.6 → 0.5.8

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 (911) hide show
  1. package/README.md +9 -9
  2. package/app/.next-cli-build/BUILD_ID +1 -1
  3. package/app/.next-cli-build/app-path-routes-manifest.json +5 -3
  4. package/app/.next-cli-build/build-manifest.json +2 -2
  5. package/app/.next-cli-build/prerender-manifest.json +24 -0
  6. package/app/.next-cli-build/routes-manifest.json +12 -0
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page.js +2 -0
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page.js.nft.json +1 -0
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page_client-reference-manifest.js +1 -0
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +3 -3
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  73. package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  74. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  77. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  78. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  79. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  85. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  87. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  88. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  89. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  90. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  91. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  92. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  93. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  94. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  95. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  110. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  112. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  116. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  122. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  124. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  128. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  130. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +3 -3
  134. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  136. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  140. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  142. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +2 -1
  144. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  160. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  190. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  238. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  240. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  244. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/settings/environment/route.js +1 -0
  248. package/app/.next-cli-build/server/app/api/settings/environment/route.js.nft.json +1 -0
  249. package/app/.next-cli-build/server/app/api/settings/environment/route_client-reference-manifest.js +1 -0
  250. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/settings/route.js +2 -1
  255. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  263. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  271. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  273. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  277. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  283. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +3 -3
  285. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  289. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  301. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +2 -1
  305. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -2
  315. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/v1/search/route.js +2 -1
  333. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +2 -1
  335. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  343. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  345. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  347. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  349. package/app/.next-cli-build/server/app/callback.html +1 -1
  350. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  351. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  352. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  353. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  354. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  355. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  356. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  357. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  358. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  359. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  360. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  361. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  362. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  363. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  364. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  365. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  366. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  367. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  368. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  369. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  370. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  371. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  372. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  373. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  374. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  375. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  376. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  377. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  378. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  379. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  380. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  381. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  382. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  383. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  384. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  385. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  386. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  387. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  388. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  389. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  390. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  391. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  392. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  393. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  394. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  395. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  396. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  397. package/app/.next-cli-build/server/app/dashboard/environment.html +1 -0
  398. package/app/.next-cli-build/server/app/dashboard/environment.meta +17 -0
  399. package/app/.next-cli-build/server/app/dashboard/environment.rsc +27 -0
  400. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard/environment/__PAGE__.segment.rsc +9 -0
  401. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard/environment.segment.rsc +5 -0
  402. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +5 -0
  403. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk.segment.rsc +6 -0
  404. package/app/.next-cli-build/server/app/dashboard/environment.segments/_full.segment.rsc +27 -0
  405. package/app/.next-cli-build/server/app/dashboard/environment.segments/_head.segment.rsc +6 -0
  406. package/app/.next-cli-build/server/app/dashboard/environment.segments/_index.segment.rsc +8 -0
  407. package/app/.next-cli-build/server/app/dashboard/environment.segments/_tree.segment.rsc +6 -0
  408. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  409. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  410. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  411. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  412. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  413. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  414. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  415. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  416. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  417. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  418. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  419. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  420. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  421. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  422. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  423. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  424. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  425. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  426. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  427. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  428. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  429. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  430. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  431. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  432. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  433. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  434. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  435. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  436. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  437. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  438. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  439. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  440. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  441. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  442. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  443. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  444. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  445. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  446. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  447. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  448. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  449. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  450. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  451. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  452. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  453. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  454. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  455. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  456. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  457. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  458. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  459. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  460. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  461. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  462. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  463. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  464. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  465. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  466. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  467. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  468. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  469. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  470. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  471. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  472. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  473. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  474. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  475. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  476. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  477. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  478. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  479. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  480. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  481. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  482. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  483. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  484. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  485. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  486. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  487. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  488. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  489. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  490. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  491. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  492. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  493. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  494. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  495. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  496. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  497. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  498. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  499. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  500. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  501. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  502. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  503. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  504. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  505. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  506. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  507. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  508. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  509. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  510. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  511. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  512. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  513. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  514. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  515. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  516. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  517. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  518. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  519. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  520. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  521. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  522. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  523. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  524. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  525. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  526. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  527. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  528. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  529. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  530. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  531. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  532. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  533. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  534. package/app/.next-cli-build/server/app/index.html +1 -1
  535. package/app/.next-cli-build/server/app/index.rsc +4 -4
  536. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  537. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  538. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  539. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
  540. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  541. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  542. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  543. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  544. package/app/.next-cli-build/server/app/landing.html +1 -1
  545. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  546. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  547. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  548. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  549. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  550. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  551. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  552. package/app/.next-cli-build/server/app/login/page.js +2 -2
  553. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  554. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  555. package/app/.next-cli-build/server/app/login.html +1 -1
  556. package/app/.next-cli-build/server/app/login.rsc +5 -5
  557. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  558. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  559. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  560. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  561. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  562. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  563. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  564. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  565. package/app/.next-cli-build/server/app/page.js +2 -2
  566. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  567. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  568. package/app/.next-cli-build/server/app-paths-manifest.json +5 -3
  569. package/app/.next-cli-build/server/chunks/2722.js +11 -11
  570. package/app/.next-cli-build/server/chunks/2966.js +1 -1
  571. package/app/.next-cli-build/server/chunks/3104.js +1 -1
  572. package/app/.next-cli-build/server/chunks/318.js +1 -1
  573. package/app/.next-cli-build/server/chunks/3535.js +1 -1
  574. package/app/.next-cli-build/server/chunks/412.js +1 -1
  575. package/app/.next-cli-build/server/chunks/4161.js +1 -0
  576. package/app/.next-cli-build/server/chunks/4177.js +1 -1
  577. package/app/.next-cli-build/server/chunks/4380.js +1 -0
  578. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  579. package/app/.next-cli-build/server/chunks/4884.js +1 -1
  580. package/app/.next-cli-build/server/chunks/5024.js +1 -1
  581. package/app/.next-cli-build/server/chunks/6182.js +63 -0
  582. package/app/.next-cli-build/server/chunks/6298.js +1 -1
  583. package/app/.next-cli-build/server/chunks/706.js +1 -0
  584. package/app/.next-cli-build/server/chunks/7153.js +1 -0
  585. package/app/.next-cli-build/server/chunks/7501.js +1 -0
  586. package/app/.next-cli-build/server/chunks/7540.js +7 -7
  587. package/app/.next-cli-build/server/chunks/7774.js +15 -15
  588. package/app/.next-cli-build/server/chunks/7879.js +2 -2
  589. package/app/.next-cli-build/server/chunks/8271.js +1 -0
  590. package/app/.next-cli-build/server/chunks/8895.js +1 -1
  591. package/app/.next-cli-build/server/chunks/9489.js +2 -1
  592. package/app/.next-cli-build/server/chunks/9754.js +1 -0
  593. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  594. package/app/.next-cli-build/server/middleware.js +1 -1
  595. package/app/.next-cli-build/server/pages/404.html +1 -1
  596. package/app/.next-cli-build/server/pages/500.html +1 -1
  597. package/app/.next-cli-build/static/chunks/{1321-af234bd85e3c185f.js → 1321-54b4a8da412f1ce5.js} +1 -1
  598. package/app/.next-cli-build/static/chunks/{5497-203788669b701ef3.js → 5497-5e835b2348fa3ba4.js} +2 -2
  599. package/app/.next-cli-build/static/chunks/6069-16dfda64c3d754de.js +53 -0
  600. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-4c1e725bd992da4a.js +1 -0
  601. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/environment/page-c4bf05bcf846ba6d.js +1 -0
  602. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-442131997a40d2c6.js → page-e2ad254d0354082d.js} +1 -1
  603. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-1befb2cb37eac66d.js +10 -0
  604. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-29d3f0186b78fa76.js +1 -0
  605. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-62a53f4e6cbff359.js → page-bff87b71ed7474bb.js} +1 -1
  606. package/app/.next-cli-build/static/chunks/app/_global-error/page-478dd09cdaa20324.js +1 -0
  607. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-478dd09cdaa20324.js +1 -0
  608. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-478dd09cdaa20324.js +1 -0
  609. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-478dd09cdaa20324.js +1 -0
  610. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-478dd09cdaa20324.js +1 -0
  611. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-478dd09cdaa20324.js +1 -0
  612. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-478dd09cdaa20324.js +1 -0
  613. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-478dd09cdaa20324.js +1 -0
  614. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-478dd09cdaa20324.js +1 -0
  615. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-478dd09cdaa20324.js +1 -0
  616. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-478dd09cdaa20324.js +1 -0
  617. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-478dd09cdaa20324.js +1 -0
  618. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-478dd09cdaa20324.js +1 -0
  619. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-478dd09cdaa20324.js +1 -0
  620. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-478dd09cdaa20324.js +1 -0
  621. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-478dd09cdaa20324.js +1 -0
  622. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-478dd09cdaa20324.js +1 -0
  623. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-478dd09cdaa20324.js +1 -0
  624. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-478dd09cdaa20324.js +1 -0
  625. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-478dd09cdaa20324.js +1 -0
  626. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-478dd09cdaa20324.js +1 -0
  627. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-478dd09cdaa20324.js +1 -0
  628. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-478dd09cdaa20324.js +1 -0
  629. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-478dd09cdaa20324.js +1 -0
  630. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-478dd09cdaa20324.js +1 -0
  631. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-478dd09cdaa20324.js +1 -0
  632. package/app/.next-cli-build/static/chunks/app/api/combos/route-478dd09cdaa20324.js +1 -0
  633. package/app/.next-cli-build/static/chunks/app/api/health/route-478dd09cdaa20324.js +1 -0
  634. package/app/.next-cli-build/static/chunks/app/api/init/route-478dd09cdaa20324.js +1 -0
  635. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-478dd09cdaa20324.js +1 -0
  636. package/app/.next-cli-build/static/chunks/app/api/keys/route-478dd09cdaa20324.js +1 -0
  637. package/app/.next-cli-build/static/chunks/app/api/locale/route-478dd09cdaa20324.js +1 -0
  638. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-478dd09cdaa20324.js +1 -0
  639. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-478dd09cdaa20324.js +1 -0
  640. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-478dd09cdaa20324.js +1 -0
  641. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-478dd09cdaa20324.js +1 -0
  642. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-478dd09cdaa20324.js +1 -0
  643. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-478dd09cdaa20324.js +1 -0
  644. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-478dd09cdaa20324.js +1 -0
  645. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-478dd09cdaa20324.js +1 -0
  646. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-478dd09cdaa20324.js +1 -0
  647. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-478dd09cdaa20324.js +1 -0
  648. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-478dd09cdaa20324.js +1 -0
  649. package/app/.next-cli-build/static/chunks/app/api/models/route-478dd09cdaa20324.js +1 -0
  650. package/app/.next-cli-build/static/chunks/app/api/models/test/route-478dd09cdaa20324.js +1 -0
  651. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-478dd09cdaa20324.js +1 -0
  652. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-478dd09cdaa20324.js +1 -0
  653. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-478dd09cdaa20324.js +1 -0
  654. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-478dd09cdaa20324.js +1 -0
  655. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-478dd09cdaa20324.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-478dd09cdaa20324.js +1 -0
  657. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-478dd09cdaa20324.js +1 -0
  658. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-478dd09cdaa20324.js +1 -0
  659. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-478dd09cdaa20324.js +1 -0
  660. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-478dd09cdaa20324.js +1 -0
  661. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-478dd09cdaa20324.js +1 -0
  662. package/app/.next-cli-build/static/chunks/app/api/pricing/route-478dd09cdaa20324.js +1 -0
  663. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-478dd09cdaa20324.js +1 -0
  664. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-478dd09cdaa20324.js +1 -0
  665. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-478dd09cdaa20324.js +1 -0
  666. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-478dd09cdaa20324.js +1 -0
  667. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-478dd09cdaa20324.js +1 -0
  668. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-478dd09cdaa20324.js +1 -0
  669. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-478dd09cdaa20324.js +1 -0
  670. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-478dd09cdaa20324.js +1 -0
  671. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-478dd09cdaa20324.js +1 -0
  672. package/app/.next-cli-build/static/chunks/app/api/providers/route-478dd09cdaa20324.js +1 -0
  673. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-478dd09cdaa20324.js +1 -0
  674. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-478dd09cdaa20324.js +1 -0
  675. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-478dd09cdaa20324.js +1 -0
  676. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-478dd09cdaa20324.js +1 -0
  677. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-478dd09cdaa20324.js +1 -0
  678. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-478dd09cdaa20324.js +1 -0
  679. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-478dd09cdaa20324.js +1 -0
  680. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-478dd09cdaa20324.js +1 -0
  681. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-478dd09cdaa20324.js +1 -0
  682. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-478dd09cdaa20324.js +1 -0
  683. package/app/.next-cli-build/static/chunks/app/api/settings/environment/route-478dd09cdaa20324.js +1 -0
  684. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-478dd09cdaa20324.js +1 -0
  685. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-478dd09cdaa20324.js +1 -0
  686. package/app/.next-cli-build/static/chunks/app/api/settings/route-478dd09cdaa20324.js +1 -0
  687. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-478dd09cdaa20324.js +1 -0
  688. package/app/.next-cli-build/static/chunks/app/api/tags/route-478dd09cdaa20324.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-478dd09cdaa20324.js +1 -0
  690. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-478dd09cdaa20324.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-478dd09cdaa20324.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-478dd09cdaa20324.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-478dd09cdaa20324.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-478dd09cdaa20324.js +1 -0
  695. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-478dd09cdaa20324.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-478dd09cdaa20324.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-478dd09cdaa20324.js +1 -0
  698. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-478dd09cdaa20324.js +1 -0
  699. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-478dd09cdaa20324.js +1 -0
  700. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-478dd09cdaa20324.js +1 -0
  701. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-478dd09cdaa20324.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-478dd09cdaa20324.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-478dd09cdaa20324.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-478dd09cdaa20324.js +1 -0
  705. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-478dd09cdaa20324.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-478dd09cdaa20324.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-478dd09cdaa20324.js +1 -0
  708. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-478dd09cdaa20324.js +1 -0
  709. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-478dd09cdaa20324.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-478dd09cdaa20324.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-478dd09cdaa20324.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-478dd09cdaa20324.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-478dd09cdaa20324.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-478dd09cdaa20324.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-478dd09cdaa20324.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-478dd09cdaa20324.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-478dd09cdaa20324.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-478dd09cdaa20324.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-478dd09cdaa20324.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-478dd09cdaa20324.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-478dd09cdaa20324.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-478dd09cdaa20324.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-478dd09cdaa20324.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/v1/route-478dd09cdaa20324.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-478dd09cdaa20324.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-478dd09cdaa20324.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-478dd09cdaa20324.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-478dd09cdaa20324.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/version/route-478dd09cdaa20324.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-478dd09cdaa20324.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/version/update/route-478dd09cdaa20324.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/landing/page-6ea4d0e0696afdaf.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-478dd09cdaa20324.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/page-478dd09cdaa20324.js +1 -0
  735. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-478dd09cdaa20324.js +1 -0
  736. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-478dd09cdaa20324.js +1 -0
  737. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-478dd09cdaa20324.js +1 -0
  738. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-478dd09cdaa20324.js +1 -0
  739. package/app/.next-cli-build/static/cs-JIRZTHi1El1lFpGPT-/_buildManifest.js +1 -0
  740. package/app/.next-cli-build/static/css/d850c5a6fb4ab3c5.css +1 -0
  741. package/app/cli/.build-home/{.9router/db/backups/upgrade-0.5.1-to-0.5.2-0.5.2-20260617-190156 → .krouter/db}/data.sqlite +0 -0
  742. package/app/package.json +3 -2
  743. package/app/public/favicon.svg +5 -19
  744. package/app/src/lib/updater/updater.js +16 -6
  745. package/app/src/mitm/server.js +32 -32
  746. package/cli.js +76 -17
  747. package/hooks/postinstall.js +5 -5
  748. package/hooks/sqliteRuntime.js +17 -5
  749. package/hooks/trayRuntime.js +6 -6
  750. package/package.json +3 -3
  751. package/src/cli/api/client.js +19 -5
  752. package/src/cli/menus/cliTools.js +10 -6
  753. package/src/cli/terminalUI.js +2 -2
  754. package/src/cli/tray/autostart.js +158 -30
  755. package/src/cli/tray/icon.ico +0 -0
  756. package/src/cli/tray/icon.png +0 -0
  757. package/src/cli/tray/tray.js +5 -5
  758. package/src/cli/tray/tray.ps1 +1 -1
  759. package/app/.next-cli-build/server/chunks/1051.js +0 -1
  760. package/app/.next-cli-build/server/chunks/1260.js +0 -1
  761. package/app/.next-cli-build/server/chunks/3529.js +0 -1
  762. package/app/.next-cli-build/server/chunks/6811.js +0 -1
  763. package/app/.next-cli-build/server/chunks/71.js +0 -1
  764. package/app/.next-cli-build/server/chunks/8255.js +0 -1
  765. package/app/.next-cli-build/server/chunks/915.js +0 -63
  766. package/app/.next-cli-build/static/GetUlhAf36B8GeUeChMFM/_buildManifest.js +0 -1
  767. package/app/.next-cli-build/static/chunks/6069-6837f0e0d8eeeb28.js +0 -53
  768. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-f756ee83816a63f2.js +0 -1
  769. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-71a6700f4f0a01dc.js +0 -10
  770. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-04d3612075e922f8.js +0 -1
  771. package/app/.next-cli-build/static/chunks/app/_global-error/page-45e7abb74f49cc88.js +0 -1
  772. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-45e7abb74f49cc88.js +0 -1
  773. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-45e7abb74f49cc88.js +0 -1
  774. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-45e7abb74f49cc88.js +0 -1
  775. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-45e7abb74f49cc88.js +0 -1
  776. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-45e7abb74f49cc88.js +0 -1
  777. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-45e7abb74f49cc88.js +0 -1
  778. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-45e7abb74f49cc88.js +0 -1
  779. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-45e7abb74f49cc88.js +0 -1
  780. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-45e7abb74f49cc88.js +0 -1
  781. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-45e7abb74f49cc88.js +0 -1
  782. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-45e7abb74f49cc88.js +0 -1
  783. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-45e7abb74f49cc88.js +0 -1
  784. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-45e7abb74f49cc88.js +0 -1
  785. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-45e7abb74f49cc88.js +0 -1
  786. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-45e7abb74f49cc88.js +0 -1
  787. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-45e7abb74f49cc88.js +0 -1
  788. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-45e7abb74f49cc88.js +0 -1
  789. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-45e7abb74f49cc88.js +0 -1
  790. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-45e7abb74f49cc88.js +0 -1
  791. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-45e7abb74f49cc88.js +0 -1
  792. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-45e7abb74f49cc88.js +0 -1
  793. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-45e7abb74f49cc88.js +0 -1
  794. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-45e7abb74f49cc88.js +0 -1
  795. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-45e7abb74f49cc88.js +0 -1
  796. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-45e7abb74f49cc88.js +0 -1
  797. package/app/.next-cli-build/static/chunks/app/api/combos/route-45e7abb74f49cc88.js +0 -1
  798. package/app/.next-cli-build/static/chunks/app/api/health/route-45e7abb74f49cc88.js +0 -1
  799. package/app/.next-cli-build/static/chunks/app/api/init/route-45e7abb74f49cc88.js +0 -1
  800. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-45e7abb74f49cc88.js +0 -1
  801. package/app/.next-cli-build/static/chunks/app/api/keys/route-45e7abb74f49cc88.js +0 -1
  802. package/app/.next-cli-build/static/chunks/app/api/locale/route-45e7abb74f49cc88.js +0 -1
  803. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-45e7abb74f49cc88.js +0 -1
  804. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-45e7abb74f49cc88.js +0 -1
  805. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-45e7abb74f49cc88.js +0 -1
  806. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-45e7abb74f49cc88.js +0 -1
  807. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-45e7abb74f49cc88.js +0 -1
  808. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-45e7abb74f49cc88.js +0 -1
  809. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-45e7abb74f49cc88.js +0 -1
  810. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-45e7abb74f49cc88.js +0 -1
  811. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-45e7abb74f49cc88.js +0 -1
  812. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-45e7abb74f49cc88.js +0 -1
  813. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-45e7abb74f49cc88.js +0 -1
  814. package/app/.next-cli-build/static/chunks/app/api/models/route-45e7abb74f49cc88.js +0 -1
  815. package/app/.next-cli-build/static/chunks/app/api/models/test/route-45e7abb74f49cc88.js +0 -1
  816. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-45e7abb74f49cc88.js +0 -1
  817. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-45e7abb74f49cc88.js +0 -1
  818. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-45e7abb74f49cc88.js +0 -1
  819. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-45e7abb74f49cc88.js +0 -1
  820. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-45e7abb74f49cc88.js +0 -1
  821. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-45e7abb74f49cc88.js +0 -1
  822. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-45e7abb74f49cc88.js +0 -1
  823. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-45e7abb74f49cc88.js +0 -1
  824. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-45e7abb74f49cc88.js +0 -1
  825. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-45e7abb74f49cc88.js +0 -1
  826. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-45e7abb74f49cc88.js +0 -1
  827. package/app/.next-cli-build/static/chunks/app/api/pricing/route-45e7abb74f49cc88.js +0 -1
  828. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-45e7abb74f49cc88.js +0 -1
  829. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-45e7abb74f49cc88.js +0 -1
  830. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-45e7abb74f49cc88.js +0 -1
  831. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-45e7abb74f49cc88.js +0 -1
  832. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-45e7abb74f49cc88.js +0 -1
  833. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-45e7abb74f49cc88.js +0 -1
  834. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-45e7abb74f49cc88.js +0 -1
  835. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-45e7abb74f49cc88.js +0 -1
  836. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-45e7abb74f49cc88.js +0 -1
  837. package/app/.next-cli-build/static/chunks/app/api/providers/route-45e7abb74f49cc88.js +0 -1
  838. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-45e7abb74f49cc88.js +0 -1
  839. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-45e7abb74f49cc88.js +0 -1
  840. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-45e7abb74f49cc88.js +0 -1
  841. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-45e7abb74f49cc88.js +0 -1
  842. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-45e7abb74f49cc88.js +0 -1
  843. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-45e7abb74f49cc88.js +0 -1
  844. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-45e7abb74f49cc88.js +0 -1
  845. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-45e7abb74f49cc88.js +0 -1
  846. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-45e7abb74f49cc88.js +0 -1
  847. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-45e7abb74f49cc88.js +0 -1
  848. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-45e7abb74f49cc88.js +0 -1
  849. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-45e7abb74f49cc88.js +0 -1
  850. package/app/.next-cli-build/static/chunks/app/api/settings/route-45e7abb74f49cc88.js +0 -1
  851. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-45e7abb74f49cc88.js +0 -1
  852. package/app/.next-cli-build/static/chunks/app/api/tags/route-45e7abb74f49cc88.js +0 -1
  853. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-45e7abb74f49cc88.js +0 -1
  854. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-45e7abb74f49cc88.js +0 -1
  855. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-45e7abb74f49cc88.js +0 -1
  856. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-45e7abb74f49cc88.js +0 -1
  857. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-45e7abb74f49cc88.js +0 -1
  858. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-45e7abb74f49cc88.js +0 -1
  859. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-45e7abb74f49cc88.js +0 -1
  860. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-45e7abb74f49cc88.js +0 -1
  861. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-45e7abb74f49cc88.js +0 -1
  862. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-45e7abb74f49cc88.js +0 -1
  863. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-45e7abb74f49cc88.js +0 -1
  864. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-45e7abb74f49cc88.js +0 -1
  865. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-45e7abb74f49cc88.js +0 -1
  866. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-45e7abb74f49cc88.js +0 -1
  867. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-45e7abb74f49cc88.js +0 -1
  868. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-45e7abb74f49cc88.js +0 -1
  869. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-45e7abb74f49cc88.js +0 -1
  870. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-45e7abb74f49cc88.js +0 -1
  871. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-45e7abb74f49cc88.js +0 -1
  872. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-45e7abb74f49cc88.js +0 -1
  873. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-45e7abb74f49cc88.js +0 -1
  874. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-45e7abb74f49cc88.js +0 -1
  875. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-45e7abb74f49cc88.js +0 -1
  876. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-45e7abb74f49cc88.js +0 -1
  877. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-45e7abb74f49cc88.js +0 -1
  878. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-45e7abb74f49cc88.js +0 -1
  879. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-45e7abb74f49cc88.js +0 -1
  880. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-45e7abb74f49cc88.js +0 -1
  881. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-45e7abb74f49cc88.js +0 -1
  882. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-45e7abb74f49cc88.js +0 -1
  883. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-45e7abb74f49cc88.js +0 -1
  884. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-45e7abb74f49cc88.js +0 -1
  885. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-45e7abb74f49cc88.js +0 -1
  886. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-45e7abb74f49cc88.js +0 -1
  887. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-45e7abb74f49cc88.js +0 -1
  888. package/app/.next-cli-build/static/chunks/app/api/v1/route-45e7abb74f49cc88.js +0 -1
  889. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-45e7abb74f49cc88.js +0 -1
  890. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-45e7abb74f49cc88.js +0 -1
  891. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-45e7abb74f49cc88.js +0 -1
  892. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-45e7abb74f49cc88.js +0 -1
  893. package/app/.next-cli-build/static/chunks/app/api/version/route-45e7abb74f49cc88.js +0 -1
  894. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-45e7abb74f49cc88.js +0 -1
  895. package/app/.next-cli-build/static/chunks/app/api/version/update/route-45e7abb74f49cc88.js +0 -1
  896. package/app/.next-cli-build/static/chunks/app/landing/page-fcd19da612ef903f.js +0 -1
  897. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-45e7abb74f49cc88.js +0 -1
  898. package/app/.next-cli-build/static/chunks/app/page-45e7abb74f49cc88.js +0 -1
  899. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-45e7abb74f49cc88.js +0 -1
  900. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-45e7abb74f49cc88.js +0 -1
  901. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-45e7abb74f49cc88.js +0 -1
  902. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-45e7abb74f49cc88.js +0 -1
  903. package/app/.next-cli-build/static/css/9116556a04eab3b0.css +0 -1
  904. package/app/cli/.build-home/.9router/db/backups/upgrade-0.5.2-to-0.5.3-0.5.3-20260617-190532/data.sqlite +0 -0
  905. /package/app/.next-cli-build/static/{GetUlhAf36B8GeUeChMFM → cs-JIRZTHi1El1lFpGPT-}/_ssgManifest.js +0 -0
  906. /package/app/cli/.build-home/{.9router → .krouter}/db/backups/upgrade-0.5.3-to-0.5.4-0.5.4-20260618-020746/data.sqlite +0 -0
  907. /package/app/cli/.build-home/{.9router → .krouter}/db/backups/upgrade-0.5.4-to-0.5.5-0.5.5-20260618-022155/data.sqlite +0 -0
  908. /package/app/cli/.build-home/{.9router → .krouter}/db/backups/upgrade-0.5.5-to-0.5.6-0.5.6-20260618-023500/data.sqlite +0 -0
  909. /package/app/cli/.build-home/{.9router/db → .krouter/db/backups/upgrade-0.5.6-to-0.5.7-0.5.7-20260618-205427}/data.sqlite +0 -0
  910. /package/app/cli/.build-home/{.9router → .krouter}/jwt-secret +0 -0
  911. /package/app/cli/.build-home/{.9router → .krouter}/machine-id +0 -0
@@ -0,0 +1,63 @@
1
+ "use strict";exports.id=6182,exports.ids=[6182],exports.modules={8578:(a,b,c)=>{let d=c(33873),e=c(29021),f=c(15296),{MITM_DIR:g}=c(82193),h=d.join(g,"rootCA.key"),i=d.join(g,"rootCA.crt");function j(a){try{let b=f.pki.certificateFromPem(e.readFileSync(a,"utf8")),c=new Date(Date.now()+2592e6);return b.validity.notAfter<c}catch{return!0}}a.exports={generateRootCA:async function a(){let a=e.existsSync(h)&&e.existsSync(i);if(a&&!j(i))return console.log("✅ Root CA already exists"),{key:h,cert:i};if(a){console.log("\uD83D\uDD10 Root CA expired or expiring soon — regenerating...");try{e.unlinkSync(h)}catch{}try{e.unlinkSync(i)}catch{}}e.existsSync(g)||e.mkdirSync(g,{recursive:!0}),console.log("\uD83D\uDD10 Generating Root CA certificate...");let b=f.pki.rsa.generateKeyPair(2048),c=f.pki.createCertificate();c.publicKey=b.publicKey,c.serialNumber="01",c.validity.notBefore=new Date,c.validity.notAfter=new Date,c.validity.notAfter.setFullYear(c.validity.notBefore.getFullYear()+10);let d=[{name:"commonName",value:"9Router MITM Root CA"},{name:"organizationName",value:"9Router"},{name:"countryName",value:"US"}];c.setSubject(d),c.setIssuer(d),c.setExtensions([{name:"basicConstraints",cA:!0,critical:!0},{name:"keyUsage",keyCertSign:!0,cRLSign:!0,critical:!0},{name:"subjectKeyIdentifier"}]),c.sign(b.privateKey,f.md.sha256.create());let k=f.pki.privateKeyToPem(b.privateKey),l=f.pki.certificateToPem(c);return e.writeFileSync(h,k),e.writeFileSync(i,l),console.log("✅ Root CA generated successfully"),{key:h,cert:i}},loadRootCA:function(){if(!e.existsSync(h)||!e.existsSync(i))throw Error("Root CA not found. Generate it first.");let a=e.readFileSync(h,"utf8"),b=e.readFileSync(i,"utf8");return{key:f.pki.privateKeyFromPem(a),cert:f.pki.certificateFromPem(b)}},generateLeafCert:function(a,b){let c=f.pki.rsa.generateKeyPair(2048),d=f.pki.createCertificate();return d.publicKey=c.publicKey,d.serialNumber=Math.floor(1e6*Math.random()).toString(),d.validity.notBefore=new Date,d.validity.notAfter=new Date,d.validity.notAfter.setFullYear(d.validity.notBefore.getFullYear()+1),d.setSubject([{name:"commonName",value:a}]),d.setIssuer(b.cert.subject.attributes),d.setExtensions([{name:"basicConstraints",cA:!1},{name:"keyUsage",digitalSignature:!0,keyEncipherment:!0},{name:"extKeyUsage",serverAuth:!0,clientAuth:!0},{name:"subjectAltName",altNames:[{type:2,value:a},{type:2,value:`*.${a}`}]}]),d.sign(b.key,f.md.sha256.create()),{key:f.pki.privateKeyToPem(c.privateKey),cert:f.pki.certificateToPem(d)}},isCertExpired:j,ROOT_CA_CERT_PATH:i,ROOT_CA_KEY_PATH:h}},9631:(a,b,c)=>{let d=c(29021),e=c(55511),{exec:f}=c(79646),{execWithPassword:g,isSudoAvailable:h}=c(66936),{runElevatedPowerShell:i,quotePs:j}=c(64809),{log:k,err:l}=c(87777),m="win32"===process.platform,n="darwin"===process.platform,o=[{dir:"/usr/local/share/ca-certificates",cmd:"update-ca-certificates"},{dir:"/etc/ca-certificates/trust-source/anchors",cmd:"update-ca-trust"},{dir:"/etc/pki/ca-trust/source/anchors",cmd:"update-ca-trust"},{dir:"/etc/pki/trust/anchors",cmd:"update-ca-certificates"}];function p(){for(let a of o)if(d.existsSync(a.dir))return a;return o[0]}let q="9Router MITM Root CA";function r(a){let b=d.readFileSync(a,"utf-8"),c=Buffer.from(b.replace(/-----[^-]+-----/g,"").replace(/\s/g,""),"base64");return e.createHash("sha1").update(c).digest("hex").toUpperCase().match(/.{2}/g).join(":")}async function s(a){var b,c;let e,g,h;return m?(b=a,new Promise(a=>{let c;try{c=r(b).replace(/:/g,"")}catch{return a(!1)}f(`certutil -store Root ${c}`,{windowsHide:!0},b=>{a(!b)})})):n?(c=a,new Promise(a=>{try{let b=r(c).replace(/:/g,"");f(`security find-certificate -a -c "${q}" -Z /Library/Keychains/System.keychain 2>/dev/null`,{windowsHide:!0},(d,e)=>{if(d||!e||!RegExp(`SHA-1 hash:\\s*${b}`,"i").test(e))return a(!1);f(`security verify-cert -c "${c}" -p ssl -k /Library/Keychains/System.keychain 2>/dev/null`,{windowsHide:!0},b=>{a(!b)})})}catch{a(!1)}})):(e=p(),g=`${e.dir}/krouter-root-ca.crt`,h=`${e.dir}/9router-root-ca.crt`,Promise.resolve(d.existsSync(g)||d.existsSync(h)))}async function t(a,b){let c=`security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain "${b}"`;try{await g(`security delete-certificate -c "9Router MITM Root CA" /Library/Keychains/System.keychain 2>/dev/null || true && ${c}`,a),k("\uD83D\uDD10 Cert: ✅ installed to system keychain")}catch(a){throw Error(a.message?.includes("canceled")?"User canceled authorization":"Certificate install failed")}}async function u(a){let b=`
2
+ certutil -delstore Root ${j(q)} 2>$null | Out-Null
3
+ $exit = & certutil -addstore Root ${j(a)} 2>&1
4
+ if ($LASTEXITCODE -ne 0) { throw "certutil exit $LASTEXITCODE" }
5
+ `;try{await i(b),k("\uD83D\uDD10 Cert: ✅ installed to Windows Root store")}catch(a){throw Error(`Failed to install certificate: ${a.message}`)}}async function v(a,b){let c=r(b).replace(/:/g,""),d=`security delete-certificate -Z "${c}" /Library/Keychains/System.keychain`;try{await g(d,a),k("\uD83D\uDD10 Cert: ✅ uninstalled from system keychain")}catch(a){throw Error("Failed to uninstall certificate")}}async function w(){let a=`certutil -delstore Root ${j(q)}`;try{await i(a),k("\uD83D\uDD10 Cert: ✅ uninstalled from Windows Root store")}catch(a){throw Error(`Failed to uninstall certificate: ${a.message}`)}}async function x(a,b="add"){let c="9Router MITM Root CA",d=`
6
+ if ! command -v certutil &> /dev/null; then
7
+ exit 0
8
+ fi
9
+
10
+ DIRS="$HOME/.pki/nssdb $HOME/snap/chromium/current/.pki/nssdb"
11
+
12
+ if [ -d "$HOME/.mozilla/firefox" ]; then
13
+ for profile in "$HOME"/.mozilla/firefox/*/; do
14
+ if [ -f "\${profile}cert9.db" ] || [ -f "\${profile}cert8.db" ]; then
15
+ DIRS="$DIRS $profile"
16
+ fi
17
+ done
18
+ fi
19
+
20
+ if [ -d "$HOME/snap/firefox/common/.mozilla/firefox" ]; then
21
+ for profile in "$HOME"/snap/firefox/common/.mozilla/firefox/*/; do
22
+ if [ -f "\${profile}cert9.db" ] || [ -f "\${profile}cert8.db" ]; then
23
+ DIRS="$DIRS $profile"
24
+ fi
25
+ done
26
+ fi
27
+
28
+ for db in $DIRS; do
29
+ if [ -d "$db" ]; then
30
+ if [ "${b}" = "add" ]; then
31
+ certutil -d sql:"$db" -A -t "C,," -n "${c}" -i "${a}" 2>/dev/null || \\
32
+ certutil -d "$db" -A -t "C,," -n "${c}" -i "${a}" 2>/dev/null || true
33
+ else
34
+ certutil -d sql:"$db" -D -n "${c}" 2>/dev/null || \\
35
+ certutil -d "$db" -D -n "${c}" 2>/dev/null || true
36
+ fi
37
+ fi
38
+ done
39
+ `;return new Promise(a=>{f(d,{shell:"/bin/bash"},()=>a())})}async function y(a,b){if(!h()){k(`🔐 Cert: cannot install to system store without sudo — trust this file on clients: ${b}`),await x(b,"add");return}let c=p(),d=`${c.dir}/krouter-root-ca.crt`,e=`${c.dir}/9router-root-ca.crt`,f=`rm -f "${e}"; cp "${b}" "${d}" && (${c.cmd} 2>/dev/null || true)`;try{await g(f,a),await x(b,"add"),k(`🔐 Cert: ✅ installed to Linux trust store (${c.dir}) and user browser databases`)}catch(a){throw Error(`Certificate install failed: ${a.message}`)}}async function z(a){if(await x(null,"delete"),!h())return;let b=p(),c=`${b.dir}/krouter-root-ca.crt`,d=`${b.dir}/9router-root-ca.crt`,e=`rm -f "${c}" "${d}" && (${b.cmd} 2>/dev/null || true)`;try{await g(e,a),k("\uD83D\uDD10 Cert: ✅ uninstalled from Linux trust store and user browser databases")}catch(a){throw Error("Failed to uninstall certificate")}}a.exports={installCert:async function a(a,b){if(!d.existsSync(b))throw Error(`Certificate file not found: ${b}`);await s(b)?k("\uD83D\uDD10 Cert: already trusted ✅"):m?await u(b):n?await t(a,b):await y(a,b)},uninstallCert:async function a(a,b){await s(b)?m?await w():n?await v(a,b):await z(a):k("\uD83D\uDD10 Cert: not found in system store")},checkCertInstalled:s}},17511:(a,b,c)=>{let d=c(29021);a.exports={IS_DEV:!1,LSOF_BIN:(()=>{if("win32"===process.platform)return null;for(let a of["/usr/sbin/lsof","/usr/bin/lsof","/sbin/lsof"])try{return d.accessSync(a,d.constants.X_OK),a}catch{}return"lsof"})(),TARGET_HOSTS:["daily-cloudcode-pa.googleapis.com","cloudcode-pa.googleapis.com","api.individual.githubcopilot.com","q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com","runtime.us-east-1.kiro.dev","api2.cursor.sh"],URL_PATTERNS:{antigravity:[":generateContent",":streamGenerateContent"],copilot:["/chat/completions","/v1/messages","/responses"],kiro:["/generateAssistantResponse"],cursor:["/BidiAppend","/RunSSE","/RunPoll","/Run"]},MODEL_SYNONYMS:{antigravity:{"gemini-default":"gemini-3.5-flash-low","gemini-3.5-flash-high":"gemini-3-flash-agent","gemini-3.5-flash-medium":"gemini-3.5-flash-low","gemini-3.5-flash-extra-low":"gemini-3.5-flash-extra-low","gemini-3.1-pro-high":"gemini-pro-agent","gemini-3-pro-high":"gemini-pro-agent","gemini-3-pro-low":"gemini-3.1-pro-low"}},MODEL_PATTERNS:{antigravity:[{match:/flash.*extra.*low|extra.*low.*flash|flash.*low|low.*flash/i,alias:"gemini-3.5-flash-extra-low"},{match:/flash.*medium|medium.*flash/i,alias:"gemini-3.5-flash-low"},{match:/flash.*agent|agent.*flash|flash/i,alias:"gemini-3-flash-agent"},{match:/pro.*low|low.*pro/i,alias:"gemini-3.1-pro-low"},{match:/gemini.*pro|pro.*gemini/i,alias:"gemini-pro-agent"},{match:/opus/i,alias:"claude-opus-4-6-thinking"},{match:/sonnet|claude/i,alias:"claude-sonnet-4-6"},{match:/gpt.*oss|oss/i,alias:"gpt-oss-120b-medium"}]},MODEL_NO_MAP:{antigravity:[/^tab[_-]/i]},LOG_BLACKLIST_URL_PARTS:["recordCodeAssistMetrics","recordTrajectoryAnalytics","fetchAdminControls","listExperiments","fetchUserInfo"],getToolForHost:function(a){let b=(a||"").split(":")[0];return"api.individual.githubcopilot.com"===b?"copilot":"daily-cloudcode-pa.googleapis.com"===b||"cloudcode-pa.googleapis.com"===b?"antigravity":"q.us-east-1.amazonaws.com"===b||"codewhisperer.us-east-1.amazonaws.com"===b||"runtime.us-east-1.kiro.dev"===b?"kiro":"api2.cursor.sh"===b?"cursor":null}}},26033:(a,b,c)=>{c(33873),c(29021);let{MITM_DIR:d}=c(82193),{generateRootCA:e,loadRootCA:f,generateLeafCert:g}=c(8578);a.exports={generateCert:async function a(){return await e()},getCertForDomain:function(a){try{let b=f(),c=g(a,b);return{key:c.key,cert:c.cert}}catch(b){return console.error(`Failed to generate cert for ${a}:`,b.message),null}}}},64809:(a,b,c)=>{let{exec:d,execSync:e}=c(79646),f="win32"===process.platform;function g(){if(f)try{return e("net session >nul 2>&1",{windowsHide:!0,stdio:"ignore"}),!0}catch{return!1}return"function"==typeof process.getuid&&0===process.getuid()}function h(a){return`'${String(a).replace(/'/g,"''")}'`}a.exports={isAdmin:g,runElevatedPowerShell:function(a){if(!f)return Promise.reject(Error("Windows-only"));let b=Buffer.from(a,"utf16le").toString("base64");if(g())return new Promise((a,c)=>{d(`powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -EncodedCommand ${b}`,{windowsHide:!0},(b,d,e)=>{b?c(Error(e||b.message)):a(d)})});let c=`
40
+ $proc = Start-Process powershell -ArgumentList @(
41
+ '-NoProfile','-NonInteractive','-ExecutionPolicy','Bypass',
42
+ '-WindowStyle','Hidden','-EncodedCommand','${b}'
43
+ ) -Verb RunAs -Wait -PassThru -WindowStyle Hidden;
44
+ if ($proc.ExitCode -ne 0) { throw "Elevated command exited with code $($proc.ExitCode)" }
45
+ `;return new Promise((a,b)=>{d(`powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command ${h(c)}`,{windowsHide:!0},(c,d,e)=>{if(c){let a=e||c.message;a.includes("canceled by the user")||a.includes("operation was canceled")?b(Error("User canceled UAC prompt")):b(Error(a))}else a(d)})})},quotePs:h}},66936:(a,b,c)=>{let{exec:d,spawn:e,execSync:f}=c(79646),g=c(29021),h=c(33873);c(21820);let{log:i,err:j}=c(87777),{TOOL_HOSTS:k}=c(85341),{runElevatedPowerShell:l,isAdmin:m}=c(64809);function n(a,b,c){let d=`${a}.krouter.new`,e=`${a}.krouter.bak`;try{g.writeFileSync(d,c,"utf8");try{g.unlinkSync(e)}catch{}g.renameSync(a,e);try{g.renameSync(d,a)}catch(c){try{g.renameSync(e,a)}catch{g.writeFileSync(a,b,"utf8")}throw c}try{g.unlinkSync(e)}catch{}}finally{try{g.unlinkSync(d)}catch{}}}let o="win32"===process.platform,p="darwin"===process.platform,q=o?h.join(process.env.SystemRoot||"C:\\Windows","System32","drivers","etc","hosts"):"/etc/hosts";function r(){if(o)return!1;try{return f("command -v sudo",{stdio:"ignore",windowsHide:!0}),!0}catch{return!1}}function s(){if(o||!r())return!0;try{return f("sudo -n true",{stdio:"ignore",windowsHide:!0}),!0}catch{return!1}}function t(a,b){return new Promise((c,d)=>{let f=r(),g=f?e("sudo",["-S","sh","-c",a],{stdio:["pipe","pipe","pipe"],windowsHide:!0}):e("sh",["-c",a],{stdio:["ignore","pipe","pipe"],windowsHide:!0}),h="",i="";g.stdout.on("data",a=>{h+=a}),g.stderr.on("data",a=>{i+=a}),g.on("close",a=>{0===a?c(h):d(Error(i||`Exit code ${a}`))}),f&&(g.stdin.write(`${b}
46
+ `),g.stdin.end())})}async function u(a){o||(p?await t("dscacheutil -flushcache && killall -HUP mDNSResponder",a):await t("resolvectl flush-caches 2>/dev/null || true",a))}function v(a=null){try{let b=g.readFileSync(q,"utf8");if(a)return b.includes(a);return k.antigravity.every(a=>b.includes(a))}catch{return!1}}async function w(a,b){let c=k[a];if(!c)throw Error(`Unknown tool: ${a}`);let d=c.filter(a=>!v(a));if(0===d.length)return void i(`🌐 DNS ${a}: already active`);try{if(o){let a=g.readFileSync(q,"utf8"),b=a.replace(/[\r\n\s]+$/g,""),c=d.map(a=>`127.0.0.1 ${a}`).join("\r\n"),e=`${b}\r
47
+ ${c}\r
48
+ `;n(q,a,e),await l("ipconfig /flushdns | Out-Null")}else{let a=g.readFileSync(q,"utf8").replace(/[\r\n\s]+$/g,""),c=d.map(a=>`127.0.0.1 ${a}`).join("\n"),e=`${a}
49
+ ${c}
50
+ `.replace(/'/g,"'\\''");await t(`printf '%s' '${e}' | tee ${q} > /dev/null`,b),await u(b)}i(`🌐 DNS ${a}: ✅ added ${d.join(", ")}`)}catch(a){throw Error(a.message?.includes("incorrect password")?"Wrong sudo password":`Failed to add DNS entry: ${a.message}`)}}async function x(a,b){let c=k[a];if(!c)throw Error(`Unknown tool: ${a}`);let d=c.filter(a=>v(a));if(0===d.length)return void i(`🌐 DNS ${a}: already inactive`);try{if(o){let a=g.readFileSync(q,"utf8"),b=a.split(/\r?\n/).filter(a=>!d.some(b=>a.includes(b))).join("\r\n").replace(/[\r\n\s]+$/g,"")+"\r\n";n(q,a,b),await l("ipconfig /flushdns | Out-Null")}else{let a=(g.readFileSync(q,"utf8").split(/\r?\n/).filter(a=>!d.some(b=>a.includes(b))).join("\n").replace(/[\r\n\s]+$/g,"")+"\n").replace(/'/g,"'\\''");await t(`printf '%s' '${a}' | tee ${q} > /dev/null`,b),await u(b)}i(`🌐 DNS ${a}: ✅ removed ${d.join(", ")}`)}catch(a){throw Error(a.message?.includes("incorrect password")?"Wrong sudo password":`Failed to remove DNS entry: ${a.message}`)}}async function y(a){for(let b of Object.keys(k))try{await x(b,a)}catch(a){j(`DNS ${b}: failed to remove — ${a.message}`)}}a.exports={TOOL_HOSTS:k,addDNSEntry:w,removeDNSEntry:x,removeAllDNSEntries:y,removeAllDNSEntriesSync:function(){try{if(!g.existsSync(q))return;let a=Object.values(k).flat(),b=g.readFileSync(q,"utf8"),c=o?"\r\n":"\n",d=b.split(/\r?\n/).filter(b=>!a.some(a=>b.includes(a))).join(c).replace(/[\r\n\s]+$/g,"")+c;if(d===b)return;if(g.writeFileSync(q,d,"utf8"),o)try{f("ipconfig /flushdns",{windowsHide:!0,stdio:"ignore"})}catch{}else if(p)try{f("dscacheutil -flushcache && killall -HUP mDNSResponder",{stdio:"ignore"})}catch{}else try{f("resolvectl flush-caches 2>/dev/null || true",{stdio:"ignore"})}catch{}}catch{}},execWithPassword:t,isSudoAvailable:r,canRunSudoWithoutPassword:s,isSudoPasswordRequired:function(){return!o&&r()&&!s()},checkDNSEntry:v,checkAllDNSStatus:function(){try{let a=g.readFileSync(q,"utf8"),b={};for(let[c,d]of Object.entries(k))b[c]=d.every(b=>a.includes(b));return b}catch{return Object.fromEntries(Object.keys(k).map(a=>[a,!1]))}}}},82193:(a,b,c)=>{let d=c(29021),e=c(33873),f=c(21820),{exec:g}=c(79646),h="krouter",i="9router";function j(a){return"win32"===process.platform?e.join(process.env.APPDATA||e.join(f.homedir(),"AppData","Roaming"),a):e.join(f.homedir(),`.${a}`)}function k(){let a=j(h),b=j(i);try{if(!d.existsSync(a)&&d.existsSync(b)){let c;d.renameSync(b,a),console.log(`[paths] Migrated data dir: ${b} → ${a}`),c=e.join(a,"mitm","rootCA.crt"),d.existsSync(c)&&("darwin"===process.platform?g(`launchctl setenv NODE_EXTRA_CA_CERTS "${c}"`,{windowsHide:!0},()=>{}):"win32"===process.platform&&g(`setx NODE_EXTRA_CA_CERTS "${c}"`,{windowsHide:!0},()=>{}))}}catch(c){console.warn(`[paths] Auto-migration of ${b} → ${a} failed (${c.code||c.message}); continuing with ${a}`)}return a}let l=function(){let a=process.env.DATA_DIR;if(!a)return k();try{return d.mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${h}`),k();throw b}}(),m=e.join(l,"mitm");a.exports={DATA_DIR:l,MITM_DIR:m,APP_NAME:h,LEGACY_APP_NAME:i}},85341:a=>{a.exports={TOOL_HOSTS:{antigravity:["daily-cloudcode-pa.googleapis.com","cloudcode-pa.googleapis.com"],copilot:["api.individual.githubcopilot.com"],kiro:["runtime.us-east-1.kiro.dev","q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com"],cursor:["api2.cursor.sh"]}}},87777:(a,b,c)=>{let d=c(29021),e=c(33873),f=c(74075),{DATA_DIR:g}=c(82193),{LOG_BLACKLIST_URL_PARTS:h}=c(17511);function i(){return new Date().toLocaleTimeString("en-US",{hour12:!1})}let j=e.join(g,"logs","mitm");d.existsSync(j)||d.mkdirSync(j,{recursive:!0});let k=/^\s*(\{\s*\}|\[\s*\]|null)?\s*$/;function l(a,b=80){return String(a).replace(/[^a-zA-Z0-9]/g,"_").substring(0,b)}function m(a){return!!a&&h.some(b=>a.includes(b))}a.exports={log:a=>console.log(`[${i()}] [MITM] ${a}`),err:a=>console.error(`[${i()}] ❌ [MITM] ${a}`),dumpRequest:function(a,b,c="raw"){if(m(a.url))return null;try{let f=new Date().toISOString().replace(/[:.]/g,"-"),g=l((a.headers.host||"")+a.url),h=e.join(j,`${f}_${c}_${g}.req.json`),i=null;try{i=JSON.parse(b.toString())}catch{}return d.writeFileSync(h,JSON.stringify({method:a.method,url:a.url,host:a.headers.host,headers:a.headers,body:i??b.toString("utf8")},null,2)),h}catch{return null}},createResponseDumper:function(a,b="raw"){if(m(a.url))return null;let c=new Date().toISOString().replace(/[:.]/g,"-"),g=l((a.headers.host||"")+a.url),h=e.join(j,`${c}_${b}_${g}.res.txt`),i=0,n={},o=[];return{writeHeader:(a,b)=>{i=a,n=b||{}},writeChunk:a=>{null!=a&&o.push(Buffer.isBuffer(a)?a:Buffer.from(a))},end:()=>{try{let a=Buffer.concat(o),b=n["content-encoding"]||n["Content-Encoding"],c=(function(a,b){if(!a||0===a.length)return a;try{let c=(b||"").toLowerCase();if(c.includes("gzip"))return f.gunzipSync(a);if(c.includes("br"))return f.brotliDecompressSync(a);if(c.includes("deflate"))return f.inflateSync(a)}catch{}return a})(a,b).toString("utf8");if(k.test(c))return;let e={...n};delete e["content-encoding"],delete e["Content-Encoding"];let g=`STATUS: ${i}
51
+ HEADERS: ${JSON.stringify(e,null,2)}
52
+ ---BODY---
53
+ ${c}`;d.writeFileSync(h,g)}catch{}},file:h}},clearDumpDir:function(){try{if(!d.existsSync(j))return;for(let a of d.readdirSync(j))try{d.rmSync(e.join(j,a),{recursive:!0,force:!0})}catch{}}catch{}}}},96182:(a,b,c)=>{let{exec:d,spawn:e,execSync:f}=c(79646),g=c(33873),h=c(29021),i=c(21820),j=c(91645),k=c(55591),l=c(55511),{addDNSEntry:m,removeDNSEntry:n,removeAllDNSEntries:o,removeAllDNSEntriesSync:p,checkAllDNSStatus:q,TOOL_HOSTS:r,isSudoAvailable:s,isSudoPasswordRequired:t}=c(66936),{isAdmin:u}=c(64809),v="win32"===process.platform,w="darwin"===process.platform,{generateCert:x}=c(26033),{installCert:y,uninstallCert:z}=c(9631),{isCertExpired:A}=c(8578),{DATA_DIR:B,MITM_DIR:C}=c(82193),{log:D,err:E}=c(87777),{LSOF_BIN:F}=c(17511),G="http://localhost:20128";function H(a){return null==a||""===a?"''":`'${String(a).replace(/'/g,"'\\''")}'`}async function I(){if(!$)return G;try{let a=await $(),b=a&&null!=a.mitmRouterBaseUrl?String(a.mitmRouterBaseUrl).trim():"";if(!b)return G;let c=new URL(b);if("http:"!==c.protocol&&"https:"!==c.protocol)return G;return b.replace(/\/+$/,"")}catch{return G}}let J=g.join(C,".mitm.pid"),K=[5e3,1e4,2e4,3e4,6e4],L=0,M=0,N=!1;function O(){if(process.env.MITM_SERVER_PATH)return process.env.MITM_SERVER_PATH;let a=g.join(__dirname,"server.js");if(h.existsSync(a))return a;let b=g.join(process.cwd(),"src","mitm","server.js");if(h.existsSync(b))return b;let c=g.join(process.cwd(),"..","src","mitm","server.js");return h.existsSync(c)?c:b}function P(a){try{if(!a||!h.existsSync(a)||!a.includes(`${g.sep}node_modules${g.sep}`))return a;let b=g.join(B,"runtime","mitm"),c=g.join(b,"server.js");if(h.existsSync(c))try{if(h.statSync(a).size===h.statSync(c).size)return c}catch{}return h.mkdirSync(b,{recursive:!0}),h.copyFileSync(a,c),c}catch(b){try{D(`[MITM] runtime copy failed: ${b.message}`)}catch{}return a}}let Q=P(O()),R="aes-256-gcm",S="9router-mitm-pwd",T=null,U=null;function V(){return globalThis.__mitmSudoPassword||null}function W(a){globalThis.__mitmSudoPassword=a}function X(a){try{return process.kill(a,0),!0}catch(a){return"EACCES"===a.code}}function Y(a,b=!1,e=null){if(v)d(`taskkill ${b?"/F ":""}/PID ${a}`,{windowsHide:!0},()=>{});else{let f=b?"SIGKILL":"SIGTERM",g=`pkill -${f} -P ${a} 2>/dev/null; kill -${f} ${a} 2>/dev/null`;if(e||s()){let{execWithPassword:a}=c(66936);a(g,e||"").catch(()=>d(g,{windowsHide:!0},()=>{}))}else d(g,{windowsHide:!0},()=>{})}}function Z(){try{let{machineIdSync:a}=c(19713),b=a();return l.createHash("sha256").update(b+S).digest()}catch{return l.createHash("sha256").update(S).digest()}}let $=null,_=null;async function aa(a,b){if(_)try{let c,d,e,f,g,h={mitmEnabled:a};b&&(c=Z(),d=l.randomBytes(12),e=l.createCipheriv(R,c,d),f=Buffer.concat([e.update(b,"utf8"),e.final()]),g=e.getAuthTag(),h.mitmSudoEncrypted=`${d.toString("hex")}:${g.toString("hex")}:${f.toString("hex")}`),await _(h)}catch(a){E(`Failed to save settings: ${a.message}`)}}async function ab(){if(_)try{await _({mitmSudoEncrypted:null})}catch(a){E(`Failed to clear encrypted password: ${a.message}`)}}async function ac(){if(!$)return null;try{let a=await $();if(!a.mitmSudoEncrypted)return null;return function(a){try{let[b,c,d]=a.split(":");if(!b||!c||!d)return null;let e=Z(),f=l.createDecipheriv(R,e,Buffer.from(b,"hex"));return f.setAuthTag(Buffer.from(c,"hex")),f.update(Buffer.from(d,"hex"))+f.final("utf8")}catch{return null}}(a.mitmSudoEncrypted)}catch{return null}}async function ad(a,b){if(_&&$)try{let c={...(await $()).dnsToolEnabled||{},[a]:b};await _({dnsToolEnabled:c})}catch(a){E(`Failed to save DNS state: ${a.message}`)}}async function ae(){if(!$)return{};try{return(await $()).dnsToolEnabled||{}}catch{return{}}}async function af(a){let b=await ae(),c=a||V()||await ac();for(let[a,d]of Object.entries(b))if(d&&r[a])try{await m(a,c)}catch(b){E(`DNS ${a}: restore failed — ${b.message}`)}}async function ag(){return v?u():!(!u()&&t())||!!(V()||await ac())}function ah(a){return new Promise(a=>{v?d('powershell -NonInteractive -WindowStyle Hidden -Command "$c = Get-NetTCPConnection -LocalPort 443 -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1; if ($c) { $c.OwningProcess } else { 0 }"',{windowsHide:!0},(b,c)=>{if(b)return a(null);let e=parseInt(c.trim(),10);if(!e||e<=4)return a(null);d(`tasklist /FI "PID eq ${e}" /FO CSV /NH`,{windowsHide:!0},(b,c)=>{let d=c?.match(/"([^"]+)"/);a({pid:e,name:d?d[1]:"unknown"})})}):d(`${F} -nP -iTCP:443 -sTCP:LISTEN -t`,{windowsHide:!0},(b,c)=>{if(b||!c?.trim())return a(null);let e=parseInt(c.trim().split("\n")[0],10);if(!e||isNaN(e))return a(null);d(`ps -p ${e} -o comm=`,{windowsHide:!0},(b,c)=>{a({pid:e,name:c?.trim()||"unknown"})})})})}async function ai(a){if(T&&!T.killed){try{T.kill("SIGKILL")}catch{}T=null,U=null}try{if(h.existsSync(J)){let b=parseInt(h.readFileSync(J,"utf-8").trim(),10);b&&X(b)&&(Y(b,!0,a),await new Promise(a=>setTimeout(a,500))),h.unlinkSync(J)}}catch{}if(!v&&Q)try{let b=Q.replace(/'/g,"'\\''");if(a||s()){let{execWithPassword:d}=c(66936);await d(`pkill -SIGKILL -f "${b}" 2>/dev/null || true`,a||"").catch(()=>{})}else d(`pkill -SIGKILL -f "${b}" 2>/dev/null || true`,{windowsHide:!0},()=>{});await new Promise(a=>setTimeout(a,500))}catch{}}async function aj(){let a=null!==T&&!T.killed,b=U;if(!a)try{if(h.existsSync(J)){let c=parseInt(h.readFileSync(J,"utf-8").trim(),10);c&&X(c)?(a=!0,b=c):h.unlinkSync(J)}}catch{}let d=q(),e=g.join(C,"rootCA.crt"),f=h.existsSync(e),{checkCertInstalled:i}=c(9631),j=!!f&&await i(e);return{running:a,pid:b,certExists:f,certTrusted:j,dnsStatus:d}}async function ak(a){if(N)return;if(Date.now()-M>=6e4&&(L=0),L>=5)return void E("Max restart attempts reached. Giving up.");let b=K[Math.min(L,K.length-1)];L++,N=!0,D(`Restarting in ${b/1e3}s... (${L}/5)`),await new Promise(a=>setTimeout(a,b));try{let b=$?await $():null;if(b&&!b.mitmEnabled){D("MITM disabled, skipping restart"),N=!1;return}let c=V()||await ac();if(!c&&!v){E("No cached password, cannot auto-restart"),N=!1;return}await am(a,c),D("\uD83D\uDD04 Restarted successfully"),L=0,N=!1}catch(b){E(`Restart attempt ${L}/5 failed: ${b.message}`),N=!1,ak(a)}}async function al(a,b){if(a&&a.pid){if(v)try{f(`powershell -NonInteractive -WindowStyle Hidden -Command "Stop-Process -Id ${a.pid} -Force -ErrorAction SilentlyContinue"`,{windowsHide:!0})}catch{}else try{let{execWithPassword:d}=c(66936);b||s()?await d(`kill -9 ${a.pid}`,b||""):f(`kill -9 ${a.pid}`,{windowsHide:!0})}catch{}await new Promise(a=>setTimeout(a,800))}}async function am(a,b,l=!1){if(!T||T.killed)try{if(h.existsSync(J)){let a=parseInt(h.readFileSync(J,"utf-8").trim(),10);if(a&&X(a))return U=a,D(`♻️ Reusing existing process (PID: ${a})`),await aa(!0,b),b&&W(b),{running:!0,pid:a};h.unlinkSync(J)}}catch{}if(T&&!T.killed)throw Error("MITM server is already running");if(await ai(b),!v){let a=await new Promise(a=>{let b=j.createServer();b.once("error",b=>{"EADDRINUSE"===b.code?a("in-use"):a("no-permission")}),b.once("listening",()=>{b.close(()=>a("free"))}),b.listen(443,"127.0.0.1")});if("in-use"===a||"no-permission"===a){let a=await ah(b);if(a){let c=a.name.includes("/")?a.name.split("/").filter(Boolean).pop():a.name;if(l)D(`Killing process on port 443 (PID ${a.pid}, name=${c})...`),await al(a,b);else{let b=Error(`Port 443 is already in use by "${c}" (PID ${a.pid}).`);throw b.code="PORT_443_BUSY",b.portOwner={pid:a.pid,name:c},b}}}}let m=g.join(C,"rootCA.crt"),n=g.join(C,"rootCA.key"),o=h.existsSync(m)&&h.existsSync(n);if(!o||A(m)){if(o){D("\uD83D\uDD10 Cert expired — uninstalling old cert...");let a=b||V()||await ac();try{await z(a,m)}catch{}}D("\uD83D\uDD10 Generating Root CA..."),await x()}let{checkCertInstalled:p}=c(9631),r=await p(m),u=!v&&!w&&!s();if(r)D("\uD83D\uDD10 Cert: already trusted ✅");else{D("\uD83D\uDD10 Cert: not trusted → installing...");let a=b||V()||await ac();if(u)D(`🔐 Cert: skipping system trust (no sudo). Install ${m} as a trusted CA on machines that use this proxy.`);else{if(!a&&t())throw Error("Sudo password required to install Root CA certificate");try{await y(a,m),D("\uD83D\uDD10 Cert: ✅ trusted")}catch(a){throw Error(`Failed to trust certificate: ${a.message}`)}}}let B=Q;if((!B||!h.existsSync(B))&&(D(`[MITM] server.js missing at ${B} → recopying`),!(B=P(O()))||!h.existsSync(B)))throw Error(`MITM server.js not found at ${B}. Reinstall 9router.`);let G=await I();if(D(`🚀 Starting server... (router: ${G})`),v){let c=await ah(b);if(c)if(l)D(`Killing process on port 443 (PID ${c.pid}, name=${c.name})...`),await al(c,b);else{let a=Error(`Port 443 is already in use by "${c.name}" (PID ${c.pid}).`);throw a.code="PORT_443_BUSY",a.portOwner={pid:c.pid,name:c.name},a}T=e(process.execPath,[B],{detached:!1,windowsHide:!0,cwd:i.tmpdir(),stdio:["ignore","pipe","pipe"],env:{...process.env,ROUTER_API_KEY:a,NODE_ENV:"production",MITM_ROUTER_BASE:G}}),_&&await _({mitmCertInstalled:!0}).catch(()=>{})}else s()?((T=e("sudo",["-S","-E","sh","-c",[`HOME=${H(i.homedir())}`,`ROUTER_API_KEY=${H(a)}`,`MITM_ROUTER_BASE=${H(G)}`,"NODE_ENV=production",H(process.execPath),H(B)].join(" ")],{detached:!1,windowsHide:!0,stdio:["pipe","pipe","pipe"]})).stdin.write(`${b}
54
+ `),T.stdin.end()):T=e(process.execPath,[B],{detached:!1,windowsHide:!0,cwd:i.tmpdir(),stdio:["ignore","pipe","pipe"],env:{...process.env,ROUTER_API_KEY:a,NODE_ENV:"production",MITM_ROUTER_BASE:G}});if(T&&(U=T.pid,h.writeFileSync(J,String(U)),M=Date.now()),w){let a=g.join(C,"rootCA.crt");h.existsSync(a)&&d(`launchctl setenv NODE_EXTRA_CA_CERTS "${a}"`,{windowsHide:!0},b=>{b?D(`[launchctl] Failed to set NODE_EXTRA_CA_CERTS: ${b.message}`):D(`[launchctl] NODE_EXTRA_CA_CERTS set to ${a}`)})}else if(v){let a=g.join(C,"rootCA.crt");h.existsSync(a)&&d(`setx NODE_EXTRA_CA_CERTS "${a}"`,{windowsHide:!0},a=>{a?D(`[setx] Failed to set NODE_EXTRA_CA_CERTS: ${a.message}`):D("[setx] NODE_EXTRA_CA_CERTS set for current user")})}let K=null;T&&(T.stdout.on("data",a=>{process.stdout.write(a)}),T.stderr.on("data",a=>{let b=a.toString().trim();b&&(v||!b.includes("Password:")&&!b.includes("password for"))&&(E(b),K=b),!v&&(b.includes("incorrect password")||b.includes("no password was provided"))&&(W(null),ab(),N=!0)}),T.on("exit",b=>{D(`Server exited (code: ${b})`),T=null,U=null;try{h.unlinkSync(J)}catch{}0===b||N||ak(a)}));let L=await function(a=443){return new Promise(b=>{let c=Date.now()+8e3,d=()=>{let e=k.request({hostname:"127.0.0.1",port:a,path:"/_mitm_health",method:"GET",rejectUnauthorized:!1},a=>{let c="";a.on("data",a=>{c+=a}),a.on("end",()=>{try{let a=JSON.parse(c);b(!0===a.ok?{ok:!0,pid:a.pid||null}:null)}catch{b(null)}})});e.on("error",()=>{Date.now()<c?setTimeout(d,500):b(null)}),e.end()};d()})}(443);if(!L){if(T&&!T.killed){try{T.kill()}catch{}T=null}let a=function(){try{if(v){let a=f('powershell -NonInteractive -WindowStyle Hidden -Command "$c = Get-NetTCPConnection -LocalPort 443 -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1; if ($c) { $c.OwningProcess } else { 0 }"',{encoding:"utf8",windowsHide:!0}).trim(),b=parseInt(a,10);if(b&&b>4){let a=f(`tasklist /FI "PID eq ${b}" /FO CSV /NH`,{encoding:"utf8",windowsHide:!0}).match(/"([^"]+)"/);if(a)return a[1].replace(".exe","")}}else{let a=f(`${F} -i :443`,{encoding:"utf8",windowsHide:!0}).trim().split("\n");if(a.length>1)return a[1].split(/\s+/)[0]}}catch{}return null}(),b=a?` Port 443 already in use by ${a}.`:"",c=K||`Check sudo password or port 443 access.${b}`;throw Error(`MITM server failed to start. ${c}`)}for(let[a,b]of(_&&await _({mitmCertInstalled:!0}).catch(()=>{}),D(`✅ Server healthy (PID: ${U||L.pid})`),Object.entries(q())))D(`🌐 DNS ${a}: ${b?"✅ active":"❌ inactive"}`);return await aa(!0,b),b&&W(b),{running:!0,pid:U}}async function an(a){N=!0,L=0,D("⏹ Stopping server...");let b=T,e=b&&!b.killed?b.pid:(()=>{try{return parseInt(h.readFileSync(J,"utf-8").trim(),10)}catch{return null}})();if(e&&X(e)&&(D(`Killing server (PID: ${e})...`),Y(e,!1,a),await new Promise(a=>setTimeout(a,1e3)),X(e)&&Y(e,!0,a)),T=null,U=null,v){let a=g.join(process.env.SystemRoot||"C:\\Windows","System32","drivers","etc","hosts"),b=Object.values(r).flat();try{let{isAdmin:d,runElevatedPowerShell:e,quotePs:f}=c(64809);if(d()){let d=h.readFileSync(a,"utf8"),e=d.split(/\r?\n/).filter(a=>!b.some(b=>a.includes(b))).join("\r\n").replace(/[\r\n\s]+$/g,"")+"\r\n";e!==d&&h.writeFileSync(a,e,"utf8");try{c(79646).execSync("ipconfig /flushdns",{windowsHide:!0,stdio:"ignore"})}catch{}D("\uD83C\uDF10 DNS: ✅ all tool hosts removed")}else{let c=b.map(f).join(","),d=`
55
+ $hosts = @(${c})
56
+ $lines = Get-Content -LiteralPath ${f(a)}
57
+ $filtered = $lines | Where-Object {
58
+ $line = $_
59
+ -not ($hosts | Where-Object { $line -match [regex]::Escape($_) })
60
+ }
61
+ Set-Content -LiteralPath ${f(a)} -Value $filtered
62
+ ipconfig /flushdns | Out-Null
63
+ `;await e(d)}}catch(a){E(`Failed to clean hosts: ${a.message}`)}}else await o(a);w?d("launchctl unsetenv NODE_EXTRA_CA_CERTS",{windowsHide:!0},a=>{a?D(`[launchctl] Failed to unset NODE_EXTRA_CA_CERTS: ${a.message}`):D("[launchctl] NODE_EXTRA_CA_CERTS unset")}):v&&d("reg delete HKCU\\Environment /F /V NODE_EXTRA_CA_CERTS",{windowsHide:!0},a=>{a?D(`[reg] Failed to unset NODE_EXTRA_CA_CERTS: ${a.message}`):D("[reg] NODE_EXTRA_CA_CERTS unset")});try{h.unlinkSync(J)}catch{}return await aa(!1,null),N=!1,{running:!1,pid:null}}async function ao(a,b){if(!(await aj()).running)throw Error("MITM server is not running. Start the server first.");let c=b||V()||await ac();return await m(a,c),await ad(a,!0),{success:!0}}a.exports={getMitmStatus:aj,startServer:am,stopServer:an,enableToolDNS:ao,disableToolDNS:async function a(a,b){let c=b||V()||await ac();return await n(a,c),await ad(a,!1),{success:!0}},trustCert:async function a(a){let b=g.join(C,"rootCA.crt");if(!h.existsSync(b))throw Error("Root CA not found. Start server first to generate it.");let{installCert:d}=c(9631);if(!v&&!w&&!s())return void D(`🔐 Cert: system trust unavailable (no sudo). Use file: ${b}`);let e=a||V()||await ac();if(!e&&t())throw Error("Sudo password required to trust certificate");await d(e,b),e&&W(e)},startMitm:am,stopMitm:an,getCachedPassword:V,setCachedPassword:W,loadEncryptedPassword:ac,clearEncryptedPassword:ab,isSudoPasswordRequired:t,initDbHooks:function(a,b){$=a,_=b},restoreToolDNS:af,hasDnsPrivilege:ag,removeAllDNSEntriesSync:p}}};
@@ -1,3 +1,3 @@
1
1
  exports.id=6298,exports.ids=[6298],exports.modules={40133:(a,b,c)=>{Promise.resolve().then(c.bind(c,51747))},43173:(a,b,c)=>{"use strict";c.d(b,{default:()=>m});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412),i=c(50377);c(99258);let j=["zh-CN","zh-TW"],k=[{icon:"public",title:"Access Anywhere",desc:"Use your API from any network"},{icon:"group",title:"Share Endpoint",desc:"Share URL with team members"},{icon:"code",title:"Use in Cursor/Cline",desc:"Connect AI tools remotely"},{icon:"lock",title:"Encrypted",desc:"End-to-end TLS via Cloudflare"}],l=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}];function m({machineId:a}){let[b,c]=(0,e.useState)([]),[f,g]=(0,e.useState)(!0),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(""),[v,w]=(0,e.useState)(null),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(!1),[B,C]=(0,e.useState)(!0),[D,E]=(0,e.useState)(!0),[F,G]=(0,e.useState)(!1),[H,I]=(0,e.useState)(!0),[J,K]=(0,e.useState)(!1),[L,M]=(0,e.useState)("full"),[N,O]=(0,e.useState)("en"),[P,Q]=(0,e.useState)(!0),[R,S]=(0,e.useState)(!1),[T,U]=(0,e.useState)(!1),[V,W]=(0,e.useState)(""),[X,Y]=(0,e.useState)(""),[Z,$]=(0,e.useState)(!1),[_,aa]=(0,e.useState)(""),[ab,ac]=(0,e.useState)(null),[ad,ae]=(0,e.useState)(!1),[af,ag]=(0,e.useState)(!1),[ah,ai]=(0,e.useState)(!1),[aj,ak]=(0,e.useState)(!1),[al,am]=(0,e.useState)(""),[an,ao]=(0,e.useState)(!1),[ap,aq]=(0,e.useState)(""),[ar,as]=(0,e.useState)(null),[at,au]=(0,e.useState)(""),[av,aw]=(0,e.useState)(""),[ax,ay]=(0,e.useState)(null),[az,aA]=(0,e.useState)(!1),[aB,aC]=(0,e.useState)([]),[aD,aE]=(0,e.useState)(""),[aF,aG]=(0,e.useState)(!1),[aH,aI]=(0,e.useState)(!1),[aJ,aK]=(0,e.useState)(!1),aL=(0,e.useRef)(null);(0,e.useRef)(0),(0,e.useRef)(0),(0,e.useRef)(!1),(0,e.useRef)(!1),(0,e.useRef)(!1),(0,e.useRef)(!1);let[aM,aN]=(0,e.useState)(!1),[aO,aP]=(0,e.useState)(!1),[aQ,aR]=(0,e.useState)(new Set),[aS,aT]=(0,e.useState)(!1),aU=j.includes(N)?l:l.filter(a=>!a.wenyan),{copied:aV,copy:aW}=(0,i.C)(),aX=!B||!D,aY=B?"Change the default dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,e.useCallback)((a,b,c,d,e,f)=>{b.current?(c.current=0,d(!0),e.current||(e.current=!0,f(!0))):(c.current+=1,c.current>=5&&d(!1))},[]);let aZ=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tunnelDashboardAccess:a})})).ok&&G(a)}catch(a){console.log("Error updating tunnelDashboardAccess:",a)}},a$=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireApiKey:a})})).ok&&A(a)}catch(a){console.log("Error updating requireApiKey:",a)}},a_=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({rtkEnabled:a})})).ok&&I(a)}catch(a){console.log("Error updating rtkEnabled:",a)}},a0=async a=>{try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})}catch(a){console.log("Error updating setting:",a)}},a1=async()=>{try{let a=await fetch("/api/keys"),b=await a.json();a.ok&&c(b.keys||[])}catch(a){console.log("Error fetching data:",a)}finally{g(!1)}},a2=async(...a)=>{$(!0),aa("Waiting for tunnel ready...");let b=a.filter(Boolean).map(a=>`${a}/api/health`),c=Date.now();for(;Date.now()-c<3e5;){if(await new Promise(a=>setTimeout(a,2e3)),await Promise.any(b.map(async a=>{if((await fetch(a,{mode:"cors",cache:"no-store"})).ok)return!0;throw Error("not ready")})).catch(()=>!1))return S(!0),$(!1),aa(""),!0;if((Date.now()-c)%1e4<2e3)try{let a=await fetch("/api/tunnel/status");if(a.ok){let b=await a.json();if(!b.tunnel?.enabled)return ac({type:"error",message:"Tunnel process stopped unexpectedly."}),$(!1),aa(""),!1}}catch{}}return ac({type:"error",message:"Tunnel created but not reachable. Please try again."}),$(!1),aa(""),!1},a3=async()=>{ae(!1),$(!0),ac(null),aa("Creating tunnel...");let a=!0;(async()=>{for(;a;){try{let b=await fetch("/api/tunnel/status");if(b.ok){let c=await b.json();c.download?.downloading?aa(`Downloading cloudflared... ${c.download.progress}%`):a&&aa("Creating tunnel...")}}catch{}await new Promise(a=>setTimeout(a,1e3))}})();try{let b=await fetch("/api/tunnel/enable",{method:"POST"});a=!1;let c=await b.json();if(!b.ok)return void ac({type:"error",message:c.error||"Failed to enable tunnel"});let d=c.tunnelUrl;if(!d)return void ac({type:"error",message:"No tunnel URL returned"});W(d),Y(c.publicUrl||""),await a2(c.publicUrl,d)}catch(a){ac({type:"error",message:a.message})}finally{a=!1,$(!1),aa("")}},a4=async()=>{$(!0),ac(null);try{let a=await fetch("/api/tunnel/disable",{method:"POST"}),b=await a.json();a.ok?(S(!1),W(""),ag(!1),ac({type:"success",message:"Tunnel disabled"})):ac({type:"error",message:b.error||"Failed to disable tunnel"})}catch(a){ac({type:"error",message:a.message})}finally{$(!1)}},a5=async()=>{ay(null);try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok){let b=await a.json();return ay(b.installed),b}}catch{}return ay(!1),{installed:!1}},a6=async()=>{aA(!0),as(null),aC([]);try{let a=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:aD})});aE("");let b=a.body.getReader(),c=new TextDecoder,d="";for(;;){let{done:a,value:e}=await b.read();if(a)break;let f=(d+=c.decode(e,{stream:!0})).split("\n\n");for(let a of(d=f.pop()||"",f)){let b=a.split("\n"),c="progress",d=null;for(let a of b)if(a.startsWith("event: ")&&(c=a.slice(7).trim()),a.startsWith("data: "))try{d=JSON.parse(a.slice(6))}catch{}if(d)if("progress"===c)aC(a=>[...a.slice(-50),d.message]);else if("done"===c){ay(!0),aA(!1),aI(!1),ba();return}else"error"===c&&as({type:"error",message:d.error||"Install failed"})}}}catch(a){as({type:"error",message:a.message})}finally{aA(!1)}},a7=async a=>{aq("Waiting for Tailscale ready...");let b=`${a}/api/health`,c=Date.now();for(;Date.now()-c<3e5;){await new Promise(a=>setTimeout(a,2e3));try{let a=await fetch(b,{mode:"no-cors",cache:"no-store"});if(a.ok||"opaque"===a.type)return!0}catch{}}return!1},a8=(a,b)=>{au(a),aw(b)},a9=()=>{au(""),aw("")},ba=async()=>{aI(!1),aG(!0),ao(!0),as(null),aq("Connecting..."),a9();try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){am(b.tunnelUrl||"");let a=await a7(b.tunnelUrl);ai(!0),as(a?null:{type:"warning",message:"Connected but not reachable yet."});return}if(b.needsLogin&&b.authUrl){a8(b.authUrl,"Open Login Page"),aq('Login required — click "Open Login Page" to continue');for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok&&(await a.json()).loggedIn){a9(),aq("Starting funnel...");let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){am(b.tunnelUrl||"");let a=await a7(b.tunnelUrl);ai(!0),as(a?null:{type:"warning",message:"Connected but not reachable yet."})}else b.funnelNotEnabled&&b.enableUrl?await bb(b.enableUrl):as({type:"error",message:b.error||"Failed to start funnel"});return}}catch{}}a9(),as({type:"error",message:"Login timed out. Please try again."});return}if(b.funnelNotEnabled&&b.enableUrl)return void await bb(b.enableUrl);as({type:"error",message:b.error||"Failed to connect"})}catch(a){as({type:"error",message:a.message})}finally{ao(!1),aG(!1),aq(""),a9()}},bb=async a=>{a8(a,"Open Funnel Settings"),aq('Click "Open Funnel Settings" to enable Funnel...');for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){a9(),am(b.tunnelUrl||"");let a=await a7(b.tunnelUrl);ai(!0),as(a?null:{type:"warning",message:"Connected but not reachable yet."});return}if(b.funnelNotEnabled)continue;if(b.error){a9(),as({type:"error",message:b.error});return}}catch{}}a9(),as({type:"error",message:"Timed out waiting for Funnel to be enabled."})},bc=async()=>{ao(!0),as(null);try{let a=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),b=await a.json();a.ok?(ai(!1),am(""),aK(!1),as({type:"success",message:"Tailscale disabled"})):as({type:"error",message:b.error||"Failed to disable Tailscale"})}catch(a){as({type:"error",message:a.message})}finally{ao(!1)}},bd=async()=>{as(null),aC([]);let a=await a5();a?.installed&&a?.hasCachedPassword?ba():aI(!0)},be=async()=>{if(t.trim())try{let a=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t})}),b=await a.json();a.ok&&(w(b.key),await a1(),u(""),s(!1))}catch(a){console.log("Error creating key:",a)}},bf=async a=>{y({title:"Delete API Key",message:"Delete this API key?",onConfirm:async()=>{y(null);try{(await fetch(`/api/keys/${a}`,{method:"DELETE"})).ok&&(c(b.filter(b=>b.id!==a)),aR(b=>{let c=new Set(b);return c.delete(a),c}))}catch(a){console.log("Error deleting key:",a)}}})},bg=async(a,b)=>{try{(await fetch(`/api/keys/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&c(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error toggling key:",a)}},[bh,bi]=(0,e.useState)("/v1");return f?(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(h.Qv,{}),(0,d.jsx)(h.Qv,{})]}):(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsxs)(h.Zp,{children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"api"}),"API Endpoint"]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsx)(n,{label:"Local",url:bh,copyId:"local_url",copied:aV,onCopy:aW}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${R?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tunnel"}),R&&!Z&&T?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.pd,{value:`${X||V}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>aW(`${X||V}/v1`,"tunnel_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tunnel_url"===aV?"check":"content_copy"})}),(0,d.jsx)("button",{onClick:()=>ag(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!R||Z||T?Z?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),_||"Creating tunnel..."]}),(0,d.jsx)("button",{onClick:()=>{$(!1),aa("")},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):ab?.type==="error"?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),ab.message]}),(0,d.jsx)(h.$n,{size:"sm",icon:"cloud_upload",onClick:()=>ae(!0),children:"Enable"})]}):P?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),(0,d.jsx)("button",{onClick:()=>Q(!1),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):(0,d.jsx)(h.$n,{size:"sm",icon:"cloud_upload",onClick:()=>{aX?ac({type:"error",message:`Security required: ${aY}`}):z?ae(!0):ac({type:"error",message:'Security required: Enable "Require API key" before activating the tunnel.'})},children:"Enable"}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),aM?"Tunnel reconnecting...":"Tunnel checking..."]}),(0,d.jsx)("button",{onClick:()=>ag(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${ah?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tailscale"}),ah&&!an&&aj?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.pd,{value:`${al}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>aW(`${al}/v1`,"ts_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"ts_url"===aV?"check":"content_copy"})}),(0,d.jsx)("button",{onClick:()=>aK(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!ah||an||aj?an||aF?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),ap||"Connecting..."]}),at&&(0,d.jsx)(h.$n,{size:"sm",icon:"open_in_new",onClick:()=>window.open(at,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:av||"Open"}),(0,d.jsx)("button",{onClick:()=>{ao(!1),aG(!1),aq(""),a9()},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):ar?.type==="error"?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),ar.message]}),(0,d.jsx)(h.$n,{size:"sm",icon:"vpn_lock",onClick:bd,children:"Enable"})]}):(0,d.jsx)(h.$n,{size:"sm",icon:"vpn_lock",onClick:()=>{aX?as({type:"error",message:`Security required: ${aY}`}):bd()},className:"bg-linear-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600 text-white!",children:"Enable"}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),aO?"Tailscale reconnecting...":"Tailscale checking..."]}),(0,d.jsx)("button",{onClick:()=>aK(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]})]}),aX&&!R&&!ah&&(0,d.jsx)("div",{className:"mt-4",children:(0,d.jsx)(q,{message:aY,action:{label:"Open settings",href:"/dashboard/profile"}})}),(R||ah)&&(0,d.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!z&&(0,d.jsx)(q,{message:"Require API key is disabled — your endpoint is publicly accessible without authentication.",action:{label:"Enable",href:"#require-api-key"}}),(!B||!D)&&(0,d.jsx)(q,{message:B?"Dashboard uses the default password — change it in Profile settings.":"Require login is disabled — anyone can access your dashboard via tunnel.",action:{label:B?"Change password":"Enable",href:"/dashboard/profile"}})]}),(R||ah)&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-3",children:[(0,d.jsx)(h.lM,{checked:F,onChange:()=>aZ(!F)}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("p",{className:"font-medium text-sm",children:"Allow dashboard access via tunnel"}),(0,d.jsx)(p,{text:"When enabled, the dashboard can be accessed through your tunnel or Tailscale URL (login still required). When disabled, dashboard access via tunnel/Tailscale is completely blocked."})]})]})]}),(0,d.jsxs)(h.Zp,{id:"rtk",children:[(0,d.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,d.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"bolt"}),"Token Saver"]})}),(0,d.jsxs)("div",{className:"flex items-center justify-between pt-2 pb-4 border-b border-border gap-4",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("p",{className:"font-medium",children:["Compress tool output"," ",(0,d.jsx)("a",{href:"https://github.com/rtk-ai/rtk",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(RTK)"})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"git/grep/ls/tree/logs → 60-90% fewer input tokens"})]}),(0,d.jsx)(h.lM,{checked:H,onChange:()=>a_(!H)})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between pt-4 gap-4 flex-wrap",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("p",{className:"font-medium",children:["Compress LLM output"," ",(0,d.jsx)("a",{href:"https://github.com/JuliusBrussee/caveman",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Caveman)"})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Terse-style system prompt → ~65% fewer output tokens (up to 87%)"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[J&&(0,d.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,d.jsx)("div",{className:"flex items-center gap-1.5",children:aU.map(a=>(0,d.jsx)("button",{onClick:()=>{var b;M(b=a.id),a0({cavemanLevel:b})},className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${L===a.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:a.desc,children:a.label},a.id))}),(0,d.jsx)("p",{className:"text-xs text-primary",children:l.find(a=>a.id===L)?.desc})]}),(0,d.jsx)(h.lM,{checked:J,onChange:()=>{var a;K(a=!J),a0({cavemanEnabled:a})}})]})]})]}),(0,d.jsxs)(h.Zp,{id:"require-api-key",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"vpn_key"}),"API Keys"]}),(0,d.jsx)(h.$n,{icon:"add",onClick:()=>s(!0),children:"Create Key"})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-4 border-b border-border",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-medium",children:"Require API key"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Requests without a valid key will be rejected"})]}),(0,d.jsx)(h.lM,{checked:z,onChange:()=>a$(!z)})]}),aS&&!z&&(0,d.jsx)("div",{className:"mb-4 -mt-2",children:(0,d.jsx)(q,{message:"Endpoint is exposed without an API key."})}),0===b.length?(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"vpn_key"})}),(0,d.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No API keys yet"}),(0,d.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create your first API key to get started"}),(0,d.jsx)(h.$n,{icon:"add",onClick:()=>s(!0),children:"Create Key"})]}):(0,d.jsx)("div",{className:"flex flex-col",children:b.map(a=>{var b;return(0,d.jsxs)("div",{className:`group flex items-center justify-between py-3 border-b border-black/[0.03] dark:border-white/[0.03] last:border-b-0 ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:a.name}),(0,d.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono",children:aQ.has(a.id)?a.key:(b=a.key)?b.length>8?b.slice(0,8)+"...":b:""}),(0,d.jsx)("button",{onClick:()=>{var b;return b=a.id,void aR(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",title:aQ.has(a.id)?"Hide key":"Show key",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aQ.has(a.id)?"visibility_off":"visibility"})}),(0,d.jsx)("button",{onClick:()=>aW(a.key,a.id),className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aV===a.id?"check":"content_copy"})})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Created ",new Date(a.createdAt).toLocaleDateString()]}),!1===a.isActive&&(0,d.jsx)("p",{className:"text-xs text-orange-500 mt-1",children:"Paused"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(h.lM,{size:"sm",checked:a.isActive??!0,onChange:b=>{a.isActive&&!b?y({title:"Pause API Key",message:`Pause API key "${a.name}"?
2
2
 
3
- This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{y(null),bg(a.id,b)}}):bg(a.id,b)},title:a.isActive?"Pause key":"Resume key"}),(0,d.jsx)("button",{onClick:()=>bf(a.id),className:"p-2 hover:bg-red-500/10 rounded text-red-500 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},a.id)})})]}),(0,d.jsx)(h.aF,{isOpen:r,title:"Create API Key",onClose:()=>{s(!1),u("")},children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(h.pd,{label:"Key Name",value:t,onChange:a=>u(a.target.value),placeholder:"Production Key"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:be,fullWidth:!0,disabled:!t.trim(),children:"Create"}),(0,d.jsx)(h.$n,{onClick:()=>{s(!1),u("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,d.jsx)(h.aF,{isOpen:!!v,title:"API Key Created",onClose:()=>w(null),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,d.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:"Save this key now!"}),(0,d.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:"This is the only time you will see this key. Store it securely."})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.pd,{value:v||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)(h.$n,{variant:"secondary",icon:"created_key"===aV?"check":"content_copy",onClick:()=>aW(v,"created_key"),children:"created_key"===aV?"Copied!":"Copy"})]}),(0,d.jsx)(h.$n,{onClick:()=>w(null),fullWidth:!0,children:"Done"})]})}),(0,d.jsx)(h.aF,{isOpen:ad,title:"Enable Tunnel",onClose:()=>ae(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"cloud_upload"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:"Cloudflare Tunnel"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Expose your local kRouter to the internet. No port forwarding, no static IP needed. Share endpoint URL with your team or use it in Cursor, Cline, and other AI tools from anywhere."})]})]})}),(0,d.jsx)("div",{className:"grid grid-cols-2 gap-3",children:k.map(a=>(0,d.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-lg bg-sidebar/50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-xl text-primary mb-1",children:a.icon}),(0,d.jsx)("p",{className:"text-xs font-semibold",children:a.title}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:a.desc})]},a.title))}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:a3,fullWidth:!0,children:"Start Tunnel"}),(0,d.jsx)(h.$n,{onClick:()=>ae(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,d.jsx)(h.aF,{isOpen:af,title:"Disable Tunnel",onClose:()=>!Z&&ag(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:a4,fullWidth:!0,disabled:Z,variant:"danger",children:Z?"Disabling...":"Disable"}),(0,d.jsx)(h.$n,{onClick:()=>ag(!1),variant:"ghost",fullWidth:!0,disabled:Z,children:"Cancel"})]})]})}),(0,d.jsx)(h.aF,{isOpen:aH,title:"Tailscale Funnel",onClose:()=>{az||(aI(!1),aE(""),as(null))},children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[null===ax&&(0,d.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),!1===ax&&!az&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:a6,fullWidth:!0,children:"Install Tailscale"}),(0,d.jsx)(h.$n,{onClick:()=>aI(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),az&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),aB.length>0&&(0,d.jsx)("div",{ref:aL,className:"bg-black/5 dark:bg-white/5 rounded p-2 max-h-40 overflow-y-auto font-mono text-xs text-text-muted",children:aB.map((a,b)=>(0,d.jsx)("div",{children:a},b))})]}),!0===ax&&!az&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:()=>ba(),fullWidth:!0,children:"Connect"}),(0,d.jsx)(h.$n,{onClick:()=>aI(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),ar&&(0,d.jsx)(o,{status:ar})]})}),(0,d.jsx)(h.aF,{isOpen:aJ,title:"Disable Tailscale",onClose:()=>!an&&aK(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:bc,fullWidth:!0,disabled:an,variant:"danger",children:an?"Disabling...":"Disable"}),(0,d.jsx)(h.$n,{onClick:()=>aK(!1),variant:"ghost",fullWidth:!0,disabled:an,children:"Cancel"})]})]})}),(0,d.jsx)(h.uo,{isOpen:!!x,onClose:()=>y(null),onConfirm:x?.onConfirm,title:x?.title||"Confirm",message:x?.message,variant:"danger"})]})}function n({label:a,url:b,copyId:c,copied:e,onCopy:f,badge:g,actions:i}){return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${"CF"===g||"TS"===g?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:a}),(0,d.jsx)(h.pd,{value:b,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>f(b,c),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:e===c?"check":"content_copy"})}),i]})}function o({status:a,className:b=""}){return(0,d.jsx)("div",{className:`p-2 rounded text-sm ${b} ${"success"===a.type?"bg-green-500/10 text-green-600 dark:text-green-400":"warning"===a.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"info"===a.type?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-red-500/10 text-red-600 dark:text-red-400"}`,children:a.message.split(/(https?:\/\/[^\s]+)/g).map((a,b)=>/^https?:\/\//.test(a)?(0,d.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:a},b):a)})}function p({text:a}){return(0,d.jsxs)("span",{className:"relative group inline-flex items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted cursor-help",children:"help"}),(0,d.jsx)("span",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 z-50 w-64 rounded bg-gray-900 dark:bg-gray-800 text-white text-xs px-2.5 py-1.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",children:a})]})}function q({message:a,action:b}){return(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] shrink-0 mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"text-xs flex-1",children:a}),b&&(0,d.jsx)("a",{href:b.href,className:"text-xs font-medium underline shrink-0 hover:opacity-80",onClick:b.href.startsWith("#")?a=>{a.preventDefault(),document.getElementById(b.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:b.label})]})}m.propTypes={machineId:g().string.isRequired}},51747:(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/shofiqulislam/9router-master/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.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/shofiqulislam/9router-master/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js","default")},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.n,"machine-id"),m=h().join(k.n,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.n,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="9r-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},76581:(a,b,c)=>{Promise.resolve().then(c.bind(c,43173))},87250:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(54603);async function e(){return await (0,d.Xj)()}}};
3
+ This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{y(null),bg(a.id,b)}}):bg(a.id,b)},title:a.isActive?"Pause key":"Resume key"}),(0,d.jsx)("button",{onClick:()=>bf(a.id),className:"p-2 hover:bg-red-500/10 rounded text-red-500 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},a.id)})})]}),(0,d.jsx)(h.aF,{isOpen:r,title:"Create API Key",onClose:()=>{s(!1),u("")},children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(h.pd,{label:"Key Name",value:t,onChange:a=>u(a.target.value),placeholder:"Production Key"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:be,fullWidth:!0,disabled:!t.trim(),children:"Create"}),(0,d.jsx)(h.$n,{onClick:()=>{s(!1),u("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,d.jsx)(h.aF,{isOpen:!!v,title:"API Key Created",onClose:()=>w(null),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,d.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:"Save this key now!"}),(0,d.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:"This is the only time you will see this key. Store it securely."})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.pd,{value:v||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)(h.$n,{variant:"secondary",icon:"created_key"===aV?"check":"content_copy",onClick:()=>aW(v,"created_key"),children:"created_key"===aV?"Copied!":"Copy"})]}),(0,d.jsx)(h.$n,{onClick:()=>w(null),fullWidth:!0,children:"Done"})]})}),(0,d.jsx)(h.aF,{isOpen:ad,title:"Enable Tunnel",onClose:()=>ae(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"cloud_upload"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:"Cloudflare Tunnel"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Expose your local kRouter to the internet. No port forwarding, no static IP needed. Share endpoint URL with your team or use it in Cursor, Cline, and other AI tools from anywhere."})]})]})}),(0,d.jsx)("div",{className:"grid grid-cols-2 gap-3",children:k.map(a=>(0,d.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-lg bg-sidebar/50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-xl text-primary mb-1",children:a.icon}),(0,d.jsx)("p",{className:"text-xs font-semibold",children:a.title}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:a.desc})]},a.title))}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:a3,fullWidth:!0,children:"Start Tunnel"}),(0,d.jsx)(h.$n,{onClick:()=>ae(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,d.jsx)(h.aF,{isOpen:af,title:"Disable Tunnel",onClose:()=>!Z&&ag(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:a4,fullWidth:!0,disabled:Z,variant:"danger",children:Z?"Disabling...":"Disable"}),(0,d.jsx)(h.$n,{onClick:()=>ag(!1),variant:"ghost",fullWidth:!0,disabled:Z,children:"Cancel"})]})]})}),(0,d.jsx)(h.aF,{isOpen:aH,title:"Tailscale Funnel",onClose:()=>{az||(aI(!1),aE(""),as(null))},children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[null===ax&&(0,d.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),!1===ax&&!az&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:a6,fullWidth:!0,children:"Install Tailscale"}),(0,d.jsx)(h.$n,{onClick:()=>aI(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),az&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),aB.length>0&&(0,d.jsx)("div",{ref:aL,className:"bg-black/5 dark:bg-white/5 rounded p-2 max-h-40 overflow-y-auto font-mono text-xs text-text-muted",children:aB.map((a,b)=>(0,d.jsx)("div",{children:a},b))})]}),!0===ax&&!az&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:()=>ba(),fullWidth:!0,children:"Connect"}),(0,d.jsx)(h.$n,{onClick:()=>aI(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),ar&&(0,d.jsx)(o,{status:ar})]})}),(0,d.jsx)(h.aF,{isOpen:aJ,title:"Disable Tailscale",onClose:()=>!an&&aK(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:bc,fullWidth:!0,disabled:an,variant:"danger",children:an?"Disabling...":"Disable"}),(0,d.jsx)(h.$n,{onClick:()=>aK(!1),variant:"ghost",fullWidth:!0,disabled:an,children:"Cancel"})]})]})}),(0,d.jsx)(h.uo,{isOpen:!!x,onClose:()=>y(null),onConfirm:x?.onConfirm,title:x?.title||"Confirm",message:x?.message,variant:"danger"})]})}function n({label:a,url:b,copyId:c,copied:e,onCopy:f,badge:g,actions:i}){return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${"CF"===g||"TS"===g?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:a}),(0,d.jsx)(h.pd,{value:b,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>f(b,c),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:e===c?"check":"content_copy"})}),i]})}function o({status:a,className:b=""}){return(0,d.jsx)("div",{className:`p-2 rounded text-sm ${b} ${"success"===a.type?"bg-green-500/10 text-green-600 dark:text-green-400":"warning"===a.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"info"===a.type?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-red-500/10 text-red-600 dark:text-red-400"}`,children:a.message.split(/(https?:\/\/[^\s]+)/g).map((a,b)=>/^https?:\/\//.test(a)?(0,d.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:a},b):a)})}function p({text:a}){return(0,d.jsxs)("span",{className:"relative group inline-flex items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted cursor-help",children:"help"}),(0,d.jsx)("span",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 z-50 w-64 rounded bg-gray-900 dark:bg-gray-800 text-white text-xs px-2.5 py-1.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",children:a})]})}function q({message:a,action:b}){return(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] shrink-0 mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"text-xs flex-1",children:a}),b&&(0,d.jsx)("a",{href:b.href,className:"text-xs font-medium underline shrink-0 hover:opacity-80",onClick:b.href.startsWith("#")?a=>{a.preventDefault(),document.getElementById(b.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:b.label})]})}m.propTypes={machineId:g().string.isRequired}},51747:(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/shofiqulislam/9router-master/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.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/shofiqulislam/9router-master/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js","default")},76581:(a,b,c)=>{Promise.resolve().then(c.bind(c,43173))},87250:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(54603);async function e(){return await (0,d.Xj)()}}};