@synthever/jrouter 1.0.0 → 1.0.3

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 (688) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +19 -19
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +3 -3
  5. package/app/.next-cli-build/react-loadable-manifest.json +4 -4
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  81. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  82. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  84. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  85. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  86. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  88. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  89. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  90. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  91. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  92. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  93. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  94. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
  95. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  96. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +9 -9
  119. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  135. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  143. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  145. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +5 -5
  152. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js +2 -2
  154. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  157. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +3 -3
  161. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/keys/[id]/secret/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/keys/[id]/secret/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  196. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  198. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/model-health/check/route.js +2 -2
  210. package/app/.next-cli-build/server/app/api/model-health/check/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/model-health/check-all/route.js +2 -2
  212. package/app/.next-cli-build/server/app/api/model-health/check-all/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/model-health/config/route.js +2 -2
  214. package/app/.next-cli-build/server/app/api/model-health/config/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/model-health/history/route.js +2 -2
  216. package/app/.next-cli-build/server/app/api/model-health/history/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/model-health/model/route.js +2 -2
  218. package/app/.next-cli-build/server/app/api/model-health/model/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/model-health/models/route.js +2 -2
  220. package/app/.next-cli-build/server/app/api/model-health/models/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/model-health/route.js +2 -2
  222. package/app/.next-cli-build/server/app/api/model-health/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/model-health/run-scheduled/route.js +2 -2
  224. package/app/.next-cli-build/server/app/api/model-health/run-scheduled/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/model-health/summary/route.js +2 -2
  226. package/app/.next-cli-build/server/app/api/model-health/summary/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/models/limits/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/models/limits/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  277. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  283. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  285. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/providers/[id]/connections/keys/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/providers/[id]/connections/keys/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  304. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  314. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  316. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +4 -4
  318. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  320. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
  322. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +1 -1
  324. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +1 -1
  328. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  332. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  336. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  352. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  382. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  386. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  402. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  414. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  415. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  418. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  419. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  420. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  421. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  422. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  424. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  425. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  426. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  427. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  428. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  429. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  430. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  431. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  432. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  433. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  434. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  435. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  436. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  437. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  438. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  439. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  440. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  441. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  442. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  443. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  444. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  445. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  446. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  447. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  448. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  449. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  450. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  451. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  452. package/app/.next-cli-build/server/app/callback.html +1 -1
  453. package/app/.next-cli-build/server/app/callback.rsc +6 -6
  454. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
  455. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  456. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
  457. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  458. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
  459. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +7 -7
  460. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
  461. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  462. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  463. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
  464. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +7 -7
  465. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
  466. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  467. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  468. package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
  469. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +7 -7
  470. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
  471. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  472. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  473. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
  474. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +7 -7
  475. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
  476. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  477. package/app/.next-cli-build/server/app/dashboard/health.html +1 -1
  478. package/app/.next-cli-build/server/app/dashboard/health.rsc +7 -7
  479. package/app/.next-cli-build/server/app/dashboard/health.segments/!KGRhc2hib2FyZCk/dashboard/health/__PAGE__.segment.rsc +6 -6
  480. package/app/.next-cli-build/server/app/dashboard/health.segments/_full.segment.rsc +7 -7
  481. package/app/.next-cli-build/server/app/dashboard/health.segments/_tree.segment.rsc +2 -2
  482. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  483. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
  484. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +7 -7
  485. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
  486. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  487. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  488. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
  489. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +7 -7
  490. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
  491. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  492. package/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  493. package/app/.next-cli-build/server/app/dashboard/playground.rsc +8 -8
  494. package/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +7 -7
  495. package/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +8 -8
  496. package/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +2 -2
  497. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  498. package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
  499. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +7 -7
  500. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
  501. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  502. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  503. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
  504. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +7 -7
  505. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
  506. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  507. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  508. package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
  509. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +7 -7
  510. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
  511. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  512. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  513. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
  514. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +7 -7
  515. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
  516. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  517. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  518. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +8 -8
  519. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +7 -7
  520. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +8 -8
  521. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  522. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  523. package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
  524. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +8 -8
  525. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  526. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  527. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  528. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  529. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  530. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  531. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
  532. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  533. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  534. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
  535. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  536. package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
  537. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +7 -7
  538. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
  539. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  540. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  541. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +8 -8
  542. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +7 -7
  543. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +8 -8
  544. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  545. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  546. package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
  547. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +7 -7
  548. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
  549. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  550. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  551. package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
  552. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +7 -7
  553. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
  554. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  555. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  556. package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
  557. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +6 -6
  558. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
  559. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  560. package/app/.next-cli-build/server/app/index.html +1 -1
  561. package/app/.next-cli-build/server/app/index.rsc +6 -6
  562. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +5 -5
  563. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  564. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  565. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  566. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  567. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  568. package/app/.next-cli-build/server/app/landing.html +1 -1
  569. package/app/.next-cli-build/server/app/landing.rsc +7 -7
  570. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
  571. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  572. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +6 -6
  573. package/app/.next-cli-build/server/app/login/page.js +1 -1
  574. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  575. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  576. package/app/.next-cli-build/server/app/login.html +1 -1
  577. package/app/.next-cli-build/server/app/login.rsc +7 -7
  578. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
  579. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  580. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +6 -6
  581. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +1 -1
  582. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  583. package/app/.next-cli-build/server/app/manifest.webmanifest.body +1 -1
  584. package/app/.next-cli-build/server/app/page.js +1 -1
  585. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  586. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  587. package/app/.next-cli-build/server/app-paths-manifest.json +19 -19
  588. package/app/.next-cli-build/server/chunks/1133.js +1 -1
  589. package/app/.next-cli-build/server/chunks/1757.js +2 -2
  590. package/app/.next-cli-build/server/chunks/2132.js +1 -1
  591. package/app/.next-cli-build/server/chunks/2318.js +1 -1
  592. package/app/.next-cli-build/server/chunks/2631.js +1 -1
  593. package/app/.next-cli-build/server/chunks/2732.js +1 -1
  594. package/app/.next-cli-build/server/chunks/2760.js +3 -3
  595. package/app/.next-cli-build/server/chunks/3192.js +4 -4
  596. package/app/.next-cli-build/server/chunks/3360.js +1 -1
  597. package/app/.next-cli-build/server/chunks/3449.js +1 -1
  598. package/app/.next-cli-build/server/chunks/3535.js +1 -1
  599. package/app/.next-cli-build/server/chunks/3966.js +6 -6
  600. package/app/.next-cli-build/server/chunks/412.js +1 -1
  601. package/app/.next-cli-build/server/chunks/4123.js +3 -3
  602. package/app/.next-cli-build/server/chunks/4152.js +1 -1
  603. package/app/.next-cli-build/server/chunks/4190.js +1 -1
  604. package/app/.next-cli-build/server/chunks/436.js +1 -1
  605. package/app/.next-cli-build/server/chunks/4406.js +1 -0
  606. package/app/.next-cli-build/server/chunks/455.js +1 -1
  607. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  608. package/app/.next-cli-build/server/chunks/4764.js +1 -1
  609. package/app/.next-cli-build/server/chunks/4827.js +1 -1
  610. package/app/.next-cli-build/server/chunks/4864.js +6 -6
  611. package/app/.next-cli-build/server/chunks/5299.js +25 -25
  612. package/app/.next-cli-build/server/chunks/5330.js +1 -1
  613. package/app/.next-cli-build/server/chunks/5615.js +2 -2
  614. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  615. package/app/.next-cli-build/server/chunks/615.js +1 -1
  616. package/app/.next-cli-build/server/chunks/6296.js +10 -10
  617. package/app/.next-cli-build/server/chunks/6708.js +1 -1
  618. package/app/.next-cli-build/server/chunks/7066.js +1 -1
  619. package/app/.next-cli-build/server/chunks/7247.js +1 -1
  620. package/app/.next-cli-build/server/chunks/735.js +1 -1
  621. package/app/.next-cli-build/server/chunks/7373.js +1 -1
  622. package/app/.next-cli-build/server/chunks/7525.js +1 -1
  623. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  624. package/app/.next-cli-build/server/chunks/8126.js +1 -1
  625. package/app/.next-cli-build/server/chunks/8306.js +1 -1
  626. package/app/.next-cli-build/server/chunks/8432.js +1 -1
  627. package/app/.next-cli-build/server/chunks/{2524.js → 8451.js} +1 -1
  628. package/app/.next-cli-build/server/chunks/8749.js +1 -1
  629. package/app/.next-cli-build/server/chunks/9032.js +1 -1
  630. package/app/.next-cli-build/server/chunks/9046.js +1 -1
  631. package/app/.next-cli-build/server/chunks/9128.js +1 -1
  632. package/app/.next-cli-build/server/chunks/9489.js +1 -1
  633. package/app/.next-cli-build/server/chunks/9609.js +1 -1
  634. package/app/.next-cli-build/server/chunks/9906.js +1 -0
  635. package/app/.next-cli-build/server/instrumentation.js +1 -1
  636. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  637. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  638. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  639. package/app/.next-cli-build/server/middleware.js +5 -5
  640. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  641. package/app/.next-cli-build/server/pages/404.html +1 -1
  642. package/app/.next-cli-build/server/pages/500.html +1 -1
  643. package/app/.next-cli-build/static/chunks/{124.2812449f50e38c6c.js → 124.129f13ee23ff9b23.js} +1 -1
  644. package/app/.next-cli-build/static/chunks/1321-f3534bbafebb96c9.js +1 -0
  645. package/app/.next-cli-build/static/chunks/{2435.7dca2c9630249a05.js → 2435.683f65cfb8f79701.js} +2 -2
  646. package/app/.next-cli-build/static/chunks/{5462.75bfd156f9bc4e3b.js → 5462.79bf24eb0584ddda.js} +2 -2
  647. package/app/.next-cli-build/static/chunks/{5497-66e7c2a2b715a638.js → 5497-973a06c94a94aff7.js} +1 -1
  648. package/app/.next-cli-build/static/chunks/6808-10f960f3fc924a76.js +1 -0
  649. package/app/.next-cli-build/static/chunks/761-1bcb7334763d5645.js +132 -0
  650. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-9f4426c30039c7d5.js → page-3960bffd1fddbbad.js} +1 -1
  651. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/{page-0c7b45a45ba51753.js → page-61b17862582ff807.js} +1 -1
  652. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-0616e02f3ff06acd.js → page-0c2a1f2542917271.js} +12 -12
  653. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-de6dfc43c2687bd8.js → page-1a560f2b5cdf2e31.js} +1 -1
  654. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-eb6a5a055eded9f8.js +27 -0
  655. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-4c6b176d5c59d8a4.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-e631d28dd402dc1e.js → page-d0031965cf7eff51.js} +1 -1
  657. package/app/.next-cli-build/static/chunks/app/landing/{page-431f7e8093b8ca51.js → page-5bc39b166588b878.js} +1 -1
  658. package/app/.next-cli-build/static/chunks/app/login/{page-80c4e229a5f38a6b.js → page-f2b166590b653d36.js} +1 -1
  659. package/app/.next-cli-build/static/chunks/webpack-6a79f0ded38135ba.js +1 -0
  660. package/app/.next-cli-build/static/css/{f0e9ffc68c4f886a.css → 3b896d96bcd3ef7a.css} +1 -1
  661. package/app/custom-server.js +2 -2
  662. package/app/package.json +1 -1
  663. package/app/public/providers/beatapi.png +0 -0
  664. package/app/src/lib/oauth/providers/xiaomi-mimo.js +2 -2
  665. package/app/src/lib/updater/updater.js +3 -3
  666. package/app/src/mitm/server.js +10 -10
  667. package/cli.js +6 -6
  668. package/hooks/postinstall.js +2 -2
  669. package/hooks/sqliteRuntime.js +2 -2
  670. package/hooks/trayRuntime.js +3 -3
  671. package/package.json +7 -3
  672. package/src/cli/api/client.js +3 -3
  673. package/src/cli/commands/connect.js +3 -3
  674. package/src/cli/commands/connectTools.js +12 -12
  675. package/src/cli/commands/xaiVideo.js +1 -1
  676. package/src/cli/menus/cliTools.js +18 -18
  677. package/src/cli/menus/settings.js +1 -1
  678. package/src/cli/tray/autostart.js +1 -1
  679. package/app/.next-cli-build/server/chunks/238.js +0 -1
  680. package/app/.next-cli-build/server/chunks/4642.js +0 -1
  681. package/app/.next-cli-build/static/chunks/1321-b2785838003873e1.js +0 -1
  682. package/app/.next-cli-build/static/chunks/6808-ed8012b059559430.js +0 -1
  683. package/app/.next-cli-build/static/chunks/761-57ed45cdddcf32eb.js +0 -132
  684. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-d2787f11613d3447.js +0 -27
  685. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-316b3186a841d862.js +0 -1
  686. package/app/.next-cli-build/static/chunks/webpack-e582fe7763255be4.js +0 -1
  687. /package/app/.next-cli-build/static/{fjLlI_-eBYMOp6J-a-q-6 → rJzsAZX3-_OjA05HFqaR_}/_buildManifest.js +0 -0
  688. /package/app/.next-cli-build/static/{fjLlI_-eBYMOp6J-a-q-6 → rJzsAZX3-_OjA05HFqaR_}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2326],{75882:(e,a,s)=>{"use strict";s.d(a,{default:()=>N});var l=s(95155),t=s(96439),i=s(12115),n=s(35497),r=s(3534),c=s(10761),d=s(66119),o=s(98500),h=s.n(o),u=s(5772),m=s(30535),x=s.n(m);function j({toolId:e,tool:a,status:s}){let i=a?.configType==="guide"?{label:"Guide",variant:"default"}:s?s.installed?s.has9Router?{label:"Connected",variant:"success"}:{label:"Not configured",variant:"warning"}:{label:"Not installed",variant:"default"}:{label:"Unknown",variant:"default"};return(0,l.jsx)(h(),{href:`/dashboard/cli-tools/${e}`,className:x().toolLink,children:(0,l.jsxs)(n.Zp,{padding:"none",className:x().tile,children:[(0,l.jsx)("div",{className:x().toolIcon,children:a.image?(0,l.jsx)(u.default,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:e=>{e.target.style.display="none"},loading:"lazy",decoding:"async"}):a.icon?(0,l.jsx)(t.default,{className:"text-[28px]",style:{color:a.color},children:a.icon}):null}),(0,l.jsxs)("div",{className:x().identity,children:[(0,l.jsx)("h3",{className:x().title,title:a.name,children:a.name}),"Guide"===i.label?(0,l.jsx)(n.Ex,{variant:"info",size:"sm",className:x().infoStatus,children:i.label}):(0,l.jsx)(d.A,{variant:i.variant,dot:"Connected"===i.label||"Not configured"===i.label,className:x().status,children:i.label})]}),(0,l.jsx)(t.default,{className:x().chevron,size:18,children:"chevron_right"})]})})}function N({machineId:e}){let[a,s]=(0,i.useState)(!0),[d,o]=(0,i.useState)({});if((0,i.useEffect)(()=>{let e=!0;return(async()=>{try{let a=await fetch("/api/cli-tools/all-statuses");a.ok&&e&&o(await a.json())}catch(e){console.log("Error fetching tool statuses:",e)}finally{e&&s(!1)}})(),()=>{e=!1}},[]),a)return(0,l.jsx)("div",{className:x().page,"aria-busy":"true","aria-label":"Loading CLI tools",children:(0,l.jsx)("div",{className:x().grid,children:Array.from({length:6},(e,a)=>(0,l.jsxs)(n.Zp,{padding:"none",className:x().tile,children:[(0,l.jsx)(n.EA,{className:"size-8 shrink-0"}),(0,l.jsxs)("div",{className:x().identity,children:[(0,l.jsx)(n.EA,{className:"h-4 w-28 max-w-full"}),(0,l.jsx)(n.EA,{className:"mt-2 h-4 w-20 max-w-full"})]})]},a))})});let h=Object.entries(r.dM),u=Object.entries(r.wn);return(0,l.jsxs)("div",{className:x().page,children:[(0,l.jsx)("div",{className:x().grid,children:h.map(([e,a])=>(0,l.jsx)(j,{toolId:e,tool:a,status:d[e]},e))}),(0,l.jsxs)("div",{className:x().group,children:[(0,l.jsxs)("div",{className:x().groupHeader,children:[(0,l.jsx)(t.default,{className:"text-[18px]",children:"security"}),(0,l.jsx)("h2",{children:"MITM Tools"})]}),(0,l.jsx)("div",{className:x().grid,children:u.map(([e,a])=>(0,l.jsx)(c.gY,{tool:a},e))})]})]})}},77852:(e,a,s)=>{Promise.resolve().then(s.bind(s,75882))}},e=>{e.O(0,[3493,8679,970,2904,6506,8500,3847,5772,1321,705,5497,761,8441,3794,7358],()=>e(e.s=77852)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2326],{75882:(e,a,s)=>{"use strict";s.d(a,{default:()=>N});var l=s(95155),t=s(96439),i=s(12115),n=s(35497),r=s(3534),c=s(10761),d=s(66119),o=s(98500),h=s.n(o),u=s(5772),m=s(30535),x=s.n(m);function j({toolId:e,tool:a,status:s}){let i=a?.configType==="guide"?{label:"Guide",variant:"default"}:s?s.installed?s.hasJRouter?{label:"Connected",variant:"success"}:{label:"Not configured",variant:"warning"}:{label:"Not installed",variant:"default"}:{label:"Unknown",variant:"default"};return(0,l.jsx)(h(),{href:`/dashboard/cli-tools/${e}`,className:x().toolLink,children:(0,l.jsxs)(n.Zp,{padding:"none",className:x().tile,children:[(0,l.jsx)("div",{className:x().toolIcon,children:a.image?(0,l.jsx)(u.default,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:e=>{e.target.style.display="none"},loading:"lazy",decoding:"async"}):a.icon?(0,l.jsx)(t.default,{className:"text-[28px]",style:{color:a.color},children:a.icon}):null}),(0,l.jsxs)("div",{className:x().identity,children:[(0,l.jsx)("h3",{className:x().title,title:a.name,children:a.name}),"Guide"===i.label?(0,l.jsx)(n.Ex,{variant:"info",size:"sm",className:x().infoStatus,children:i.label}):(0,l.jsx)(d.A,{variant:i.variant,dot:"Connected"===i.label||"Not configured"===i.label,className:x().status,children:i.label})]}),(0,l.jsx)(t.default,{className:x().chevron,size:18,children:"chevron_right"})]})})}function N({machineId:e}){let[a,s]=(0,i.useState)(!0),[d,o]=(0,i.useState)({});if((0,i.useEffect)(()=>{let e=!0;return(async()=>{try{let a=await fetch("/api/cli-tools/all-statuses");a.ok&&e&&o(await a.json())}catch(e){console.log("Error fetching tool statuses:",e)}finally{e&&s(!1)}})(),()=>{e=!1}},[]),a)return(0,l.jsx)("div",{className:x().page,"aria-busy":"true","aria-label":"Loading CLI tools",children:(0,l.jsx)("div",{className:x().grid,children:Array.from({length:6},(e,a)=>(0,l.jsxs)(n.Zp,{padding:"none",className:x().tile,children:[(0,l.jsx)(n.EA,{className:"size-8 shrink-0"}),(0,l.jsxs)("div",{className:x().identity,children:[(0,l.jsx)(n.EA,{className:"h-4 w-28 max-w-full"}),(0,l.jsx)(n.EA,{className:"mt-2 h-4 w-20 max-w-full"})]})]},a))})});let h=Object.entries(r.dM),u=Object.entries(r.wn);return(0,l.jsxs)("div",{className:x().page,children:[(0,l.jsx)("div",{className:x().grid,children:h.map(([e,a])=>(0,l.jsx)(j,{toolId:e,tool:a,status:d[e]},e))}),(0,l.jsxs)("div",{className:x().group,children:[(0,l.jsxs)("div",{className:x().groupHeader,children:[(0,l.jsx)(t.default,{className:"text-[18px]",children:"security"}),(0,l.jsx)("h2",{children:"MITM Tools"})]}),(0,l.jsx)("div",{className:x().grid,children:u.map(([e,a])=>(0,l.jsx)(c.gY,{tool:a},e))})]})]})}},77852:(e,a,s)=>{Promise.resolve().then(s.bind(s,75882))}},e=>{e.O(0,[3493,8679,970,2904,6506,8500,3847,5772,1321,705,5497,761,8441,3794,7358],()=>e(e.s=77852)),_N_E=e.O()}]);
@@ -1,3 +1,3 @@
1
1
  (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6099],{15536:(e,t,a)=>{"use strict";a.d(t,{Cp:()=>i,Hx:()=>l,Iv:()=>d,Nv:()=>m,RL:()=>c,ev:()=>u,fl:()=>r,hT:()=>s,oX:()=>n,t6:()=>o});let s=["zh-CN","zh-TW"],n=[{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=2e3,i=3e5,r=5e3,o=5,c=1e4,d=5e3,u=[{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}],m=[{id:"lite",label:"Lite",desc:"Build asked, name lazier option"},{id:"full",label:"Full",desc:"Ladder enforced: stdlib/native first"},{id:"ultra",label:"Ultra",desc:"YAGNI extremist, deletion first"}]},25843:e=>{e.exports={page:"endpoint_page__vZHIb",panel:"endpoint_panel__fWuDy",header:"endpoint_header__K0LDJ",description:"endpoint_description__a7ZK4",dialog:"endpoint_dialog__nv9TH",row:"endpoint_row__0qJCh",label:"endpoint_label__vtk1u",statusBadge:"endpoint_statusBadge__LECCE",statusWarning:"endpoint_statusWarning__K7IpG",statusError:"endpoint_statusError__CeNBO",field:"endpoint_field__pDkqU",endpointValue:"endpoint_endpointValue__pqS36",iconButton:"endpoint_iconButton__LMI_i",dangerButton:"endpoint_dangerButton__zSy_6",keyRow:"endpoint_keyRow__kiHrX",status:"endpoint_status__hHtLP",alert:"endpoint_alert__cHEww",warning:"endpoint_warning__5f9aV",success:"endpoint_success__9ZYAB",error:"endpoint_error__WyDtQ",info:"endpoint_info__Tw6zj",settingsRow:"endpoint_settingsRow__MBLvY",keyDetails:"endpoint_keyDetails__U2vBF",keyName:"endpoint_keyName__TLg8o",keyCredential:"endpoint_keyCredential__MoMsr",keyValue:"endpoint_keyValue__ZPpnv",keyActions:"endpoint_keyActions__xsIoj",tooltip:"endpoint_tooltip__STh9w",keyMeta:"endpoint_keyMeta__0D6K4"}},43728:(e,t,a)=>{"use strict";a.d(t,{default:()=>O});var s=a(95155),n=a(96439),l=a(12115),i=a(14051),r=a.n(i),o=a(35497),c=a(66119),d=a(11059),u=a(15536);async function m(e){if(!e)return!1;try{return(await fetch(`${e}/api/health`,{mode:"cors",cache:"no-store",signal:AbortSignal.timeout(u.Iv)})).ok}catch{return!1}}async function h(...e){let t=e.filter(Boolean).map(m);return!!t.length&&new Promise(e=>{let a=t.length;t.forEach(t=>t.then(t=>{t?e(!0):0==--a&&e(!1)}))})}var x=a(72767),p=a(25843),g=a.n(p);function f({label:e,url:t,copyId:a,copied:l,onCopy:i,actions:r}){return(0,s.jsxs)("div",{className:g().row,children:[(0,s.jsx)("span",{className:g().label,children:e}),(0,s.jsx)("div",{className:g().field,children:(0,s.jsx)("output",{className:`${g().endpointValue} font-mono`,"aria-label":`${e} endpoint`,tabIndex:0,children:t})}),(0,s.jsx)("button",{onClick:()=>i(t,a),className:g().iconButton,"aria-label":`Copy ${e} endpoint`,children:(0,s.jsx)(n.default,{className:"text-[18px]",children:l===a?"check":"content_copy"})}),r]})}function y({status:e,className:t=""}){return(0,s.jsx)("div",{role:"status",className:`${g().alert} ${t} ${"success"===e.type?g().success:"warning"===e.type?g().warning:"info"===e.type?g().info:g().error}`,children:e.message.split(/(https?:\/\/[^\s]+)/g).map((e,t)=>/^https?:\/\//.test(e)?(0,s.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:e},t):e)})}function b({text:e}){return(0,s.jsxs)("span",{className:"relative group inline-flex items-center rounded-[var(--r1)] focus-visible:outline-2 focus-visible:outline-text-muted",tabIndex:0,"aria-label":e,children:[(0,s.jsx)(n.default,{className:"text-[14px] text-text-muted cursor-help",children:"help"}),(0,s.jsx)("span",{className:`${g().tooltip} pointer-events-none invisible group-hover:visible group-focus:visible`,children:e})]})}function j({message:e,action:t}){return(0,s.jsxs)("div",{className:`${g().alert} ${g().warning}`,children:[(0,s.jsx)(n.default,{className:"text-[16px] shrink-0 mt-1",children:"warning"}),(0,s.jsx)("p",{className:"flex-1 min-w-0",children:e}),t&&(0,s.jsx)("a",{href:t.href,className:"text-sm font-medium underline underline-offset-4 shrink-0 hover:opacity-80",onClick:t.href.startsWith("#")?e=>{e.preventDefault(),document.getElementById(t.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:t.label})]})}var v=a(65921);let k=[{value:"chat",label:"Chat / Responses",hint:"Chat completions, Responses, Claude, Gemini and Ollama"},{value:"embeddings",label:"Embeddings",hint:"Text embeddings"},{value:"images",label:"Images",hint:"Image generation"},{value:"audio",label:"Audio",hint:"Speech, transcription and voices"},{value:"web",label:"Web / Search",hint:"Search and web fetch"},{value:"videos",label:"Videos",hint:"Generation, edits, extensions and job status"},{value:"systemone",label:"SystemOne",hint:"SystemOne browser automation"}],w=["lifetime","hourly","daily","weekly","monthly"],N={description:"",maxTokensQuota:null,maxCostUsd:null,quotaResetCycle:"lifetime",tokenMultiplier:1,maxOutputTokens:null,rateLimitRpm:null,rateLimitTpm:null,expiresAt:null,allowedModels:[],blockedModels:[],allowedEndpoints:null};var C=a(44625),_=a(80435);function S({title:e,hint:t,children:a}){return(0,s.jsxs)("section",{className:"space-y-4 border-b border-[var(--line)] pb-6 last:border-0 last:pb-0",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-[var(--text)]",children:e}),t&&(0,s.jsx)("p",{className:"mt-1 text-xs text-[var(--text-2)]",children:t})]}),a]})}function $({field:e,label:t,form:a,onChange:n,hint:l,placeholder:i="Unlimited",decimal:r=!1,min:c=1}){return(0,s.jsx)(o.pd,{label:t,type:"number",min:c,step:r?"any":"1",value:a[e],onChange:t=>n(e,t.target.value),placeholder:i,hint:l,hintClassName:"!text-[var(--text-2)]",required:"tokenMultiplier"===e})}function T({form:e,onChange:t}){return(0,s.jsxs)(S,{title:"Quota & Limits",hint:"Counters reset at UTC calendar boundaries. Lifetime usage never resets automatically.",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsx)($,{field:"maxTokensQuota",label:"Max Tokens Quota",form:e,onChange:t,min:0,hint:"Leave empty for unlimited tokens."}),(0,s.jsx)($,{field:"maxCostUsd",label:"Max Cost (USD)",form:e,onChange:t,min:0,decimal:!0,hint:"Leave empty for unlimited cost. Cost quotas require model pricing."})]}),(0,s.jsx)(o.l6,{label:"Quota Reset Cycle",value:e.quotaResetCycle,onChange:e=>t("quotaResetCycle",e.target.value),options:w.map(e=>({value:e,label:"lifetime"===e?"No Reset / Lifetime":e[0].toUpperCase()+e.slice(1)}))})]})}function E({form:e,onChange:t}){return(0,s.jsx)(S,{title:"Request & Multiplier Controls",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsx)($,{field:"tokenMultiplier",label:"Token / Billing Multiplier",form:e,onChange:t,min:1e-6,decimal:!0,placeholder:"1",hint:"1.5 records 1.5x token and cost usage. Provider token counts stay unchanged."}),(0,s.jsx)($,{field:"maxOutputTokens",label:"Max Output Tokens / Request",form:e,onChange:t,placeholder:"e.g. 4096",hint:"Caps output tokens. Requests above this maximum are rejected."})]})})}function A({form:e,onChange:t}){return(0,s.jsxs)(S,{title:"Rate Limiting & Expiration",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsx)($,{field:"rateLimitRpm",label:"Rate Limit (RPM)",form:e,onChange:t,hint:"Maximum requests per rolling minute. Empty means unlimited."}),(0,s.jsx)($,{field:"rateLimitTpm",label:"Rate Limit (TPM)",form:e,onChange:t,hint:"Maximum raw tokens per rolling minute. Empty means unlimited."})]}),(0,s.jsx)(o.pd,{label:"Expiration Date",type:"datetime-local",value:e.expiresAt,onChange:e=>t("expiresAt",e.target.value),hint:"Your local timezone. Leave empty for no expiration.",hintClassName:"!text-[var(--text-2)]"})]})}function P({title:e,values:t,onChange:a,activeProviders:i,modelAliases:r,hint:c}){let[d,u]=(0,l.useState)(!1),{visibleGroups:m,filteredCombos:h,searchQuery:x,setSearchQuery:p}=(0,_.c)({isOpen:d,activeProviders:i,modelAliases:r,addedModelValues:t});function g(e){a(t.includes(e)?t.filter(t=>t!==e):[...t,e])}return(0,s.jsxs)("div",{className:"space-y-2 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium",children:e}),(0,s.jsx)(o.$n,{type:"button",variant:"secondary",size:"sm",icon:"add",onClick:()=>u(!d),"aria-expanded":d,children:d?"Close picker":"Choose models"})]}),(0,s.jsx)("p",{className:"text-xs text-[var(--text-2)]",children:c}),t.length>0&&(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map(t=>(0,s.jsxs)("button",{type:"button",onClick:()=>g(t),"aria-label":`Remove ${t} from ${e.toLowerCase()}`,className:"inline-flex items-center gap-1.5 max-w-full rounded-[var(--r1)] border border-[var(--line-2)] bg-[var(--surface-2)] px-2 py-1 text-xs hover:bg-[var(--surface-hover)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--text)]",children:[(0,s.jsx)("span",{className:"break-all",children:t}),(0,s.jsx)(n.default,{name:"close",className:"text-[14px] shrink-0"})]},t))}),d&&(0,s.jsx)("div",{className:"rounded-[var(--r2)] border border-[var(--line-2)] p-3",children:(0,s.jsx)(C.A,{searchQuery:x,onSearchChange:p,combos:h,groups:m,addedModelValues:t,onSelect:e=>{e.isPlaceholder||g(e.value||e.name)}})})]})}function R({form:e,onChange:t,activeProviders:a,modelAliases:n}){return(0,s.jsxs)(S,{title:"Model Restrictions",hint:"Blocked models override allowed models, including resolved aliases and combo members.",children:[(0,s.jsx)(P,{title:"Allowed Models",values:e.allowedModels,onChange:e=>t("allowedModels",e),activeProviders:a,modelAliases:n,hint:"Leave empty to allow all models."}),(0,s.jsx)(P,{title:"Blocked Models",values:e.blockedModels,onChange:e=>t("blockedModels",e),activeProviders:a,modelAliases:n,hint:"Leave empty to block no models."})]})}function L({values:e,onChange:t}){return(0,s.jsx)(S,{title:"Allowed Endpoints / Modalities",hint:"Only endpoint families supported by JRouter are listed. Clearing every permission denies all inference requests.",children:(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:k.map(({value:a,label:n,hint:l})=>(0,s.jsxs)("label",{className:`flex items-start gap-3 cursor-pointer rounded-[var(--r2)] border p-3 transition-colors ${e.includes(a)?"border-[var(--accent-line)] bg-[var(--surface-2)]":"border-[var(--line)] hover:bg-[var(--surface-2)]"}`,children:[(0,s.jsx)("input",{type:"checkbox",checked:e.includes(a),onChange:s=>t(s.target.checked?[...e,a]:e.filter(e=>e!==a)),className:"mt-0.5 size-4 accent-[var(--text)] shrink-0 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--text)]"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"block text-sm font-medium",children:n}),(0,s.jsx)("span",{className:"block mt-1 text-xs text-[var(--text-2)]",children:l})]})]},a))})})}let I=["maxTokensQuota","maxCostUsd","tokenMultiplier","maxOutputTokens","rateLimitRpm","rateLimitTpm"];function D({keyId:e,onClose:t,onSaved:a}){let[n,i]=(0,l.useState)(null),[r,c]=(0,l.useState)(null),[d,u]=(0,l.useState)(""),[m,h]=(0,l.useState)(!1),[x,p]=(0,l.useState)([]),[g,f]=(0,l.useState)({});(0,l.useEffect)(()=>{let t=!1;return async function(){try{let a=await fetch(`/api/keys/${e}`,{cache:"no-store"}),s=await a.json();if(!a.ok)throw Error(s.error||"Unable to load key settings.");if(t)return;c(s.key),i(function(e){let t={...N,...e,name:e.name||"",expiresAt:function(e){if(!e)return"";let t=new Date(e);return new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().slice(0,16)}(e.expiresAt),allowedEndpoints:e.allowedEndpoints??k.map(e=>e.value)};for(let e of I)t[e]=String(t[e]??"");return t}(s.key));let n=await Promise.allSettled([fetch("/api/providers").then(e=>e.json()),fetch("/api/models/alias").then(e=>e.json())]);if(t)return;"fulfilled"===n[0].status&&p((n[0].value.connections||[]).filter(e=>!1!==e.isActive)),"fulfilled"===n[1].status&&f(n[1].value.aliases||{})}catch(e){t||u(e.message||"Unable to load key settings.")}}(),()=>{t=!0}},[e]);let y=(0,l.useCallback)(()=>{m||t()},[m,t]);function b(e,t){i(a=>({...a,[e]:t}))}async function j(s){if(s.preventDefault(),!m&&n){h(!0),u("");try{let s=Object.fromEntries([...Object.keys(N),"name"].map(e=>[e,n[e]]));for(let e of I)s[e]=""===n[e].trim()?null:Number(n[e]);s.expiresAt=n.expiresAt?new Date(n.expiresAt).toISOString():null,s.allowedEndpoints.length===k.length&&(s.allowedEndpoints=null);let l=await fetch(`/api/keys/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),i=await l.json();if(!l.ok)throw Error(i.error||"Unable to save key settings.");v.i.getState().success("API key settings saved."),a(i.key),t()}catch(t){let e=t.message||"Unable to save key settings.";u(e),v.i.getState().error(e)}finally{h(!1)}}}return(0,s.jsxs)(o.aF,{isOpen:!0,onClose:y,title:"Configure API Key",size:"full",trapFocus:!0,closeOnOverlay:!m,footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.$n,{variant:"ghost",onClick:y,disabled:m,children:"Cancel"}),(0,s.jsx)(o.$n,{variant:"contrast",type:"submit",form:"api-key-settings",loading:m,disabled:!n||m,children:"Save Settings"})]}),children:[d&&(0,s.jsx)("div",{role:"alert",className:"mb-5 rounded-[var(--r1)] border border-[var(--danger)]/30 bg-[var(--danger)]/5 p-3 text-sm text-[var(--danger)]",children:d}),n?(0,s.jsx)("form",{id:"api-key-settings",onSubmit:j,className:"space-y-6",children:(0,s.jsxs)("fieldset",{disabled:m,className:"space-y-6 min-w-0",children:[(0,s.jsxs)(S,{title:"General Information",children:[(0,s.jsx)(o.pd,{label:"Key Name",value:n.name,onChange:e=>b("name",e.target.value),required:!0,maxLength:120}),(0,s.jsx)(o.pd,{label:"Description",value:n.description,onChange:e=>b("description",e.target.value),placeholder:"Internal description (optional)",maxLength:500}),(0,s.jsxs)("p",{className:"text-xs text-[var(--text-2)] break-all",children:[r.keyPrefix," \xb7 Used ",Number(r.quotaTokens||0).toLocaleString()," accounted tokens / $",Number(r.quotaCost||0).toFixed(4)," this period"]})]}),(0,s.jsx)(T,{form:n,onChange:b}),(0,s.jsx)(E,{form:n,onChange:b}),(0,s.jsx)(A,{form:n,onChange:b}),(0,s.jsx)(R,{form:n,onChange:b,activeProviders:x,modelAliases:g}),(0,s.jsx)(L,{values:n.allowedEndpoints,onChange:e=>b("allowedEndpoints",e)})]})}):(0,s.jsx)("p",{className:"text-sm text-[var(--text-2)]",role:"status",children:d?"Close this dialog and try Configure again.":"Loading key settings…"})]})}function U({enabled:e,reachable:t,loading:a,checking:n,previouslyReachable:l,error:i,loadingLabel:r}){let o="Disabled",d="default";return a?o=r:e?(o=t?"Connected":l?"Reconnecting":"Checking",d=t?"success":"warning"):i?(o="Error",d="error"):n&&(o="Checking"),(0,s.jsx)(c.A,{variant:d,className:`${g().statusBadge} ${"warning"===d?g().statusWarning:"error"===d?g().statusError:""}`,children:o})}function O({machineId:e}){let[t,a]=(0,l.useState)([]),[i,r]=(0,l.useState)(!0),[p,k]=(0,l.useState)(!1),[w,N]=(0,l.useState)(""),[C,_]=(0,l.useState)(null),[S,$]=(0,l.useState)(null),[T,E]=(0,l.useState)(null),[A,P]=(0,l.useState)(!1),[R,L]=(0,l.useState)(!0),[I,q]=(0,l.useState)(!0),[B,M]=(0,l.useState)(!1),[F,W]=(0,l.useState)(!0),[K,z]=(0,l.useState)(!1),[V,Q]=(0,l.useState)(!1),[H,J]=(0,l.useState)(""),[Z,G]=(0,l.useState)(""),[Y,X]=(0,l.useState)(!1),[ee,et]=(0,l.useState)(""),[ea,es]=(0,l.useState)(null),[en,el]=(0,l.useState)(!1),[ei,er]=(0,l.useState)(!1),[eo,ec]=(0,l.useState)(!1),[ed,eu]=(0,l.useState)(!1),[em,eh]=(0,l.useState)(""),[ex,ep]=(0,l.useState)(!1),[eg,ef]=(0,l.useState)(""),[ey,eb]=(0,l.useState)(null),[ej,ev]=(0,l.useState)(""),[ek,ew]=(0,l.useState)(""),[eN,eC]=(0,l.useState)(null),[e_,eS]=(0,l.useState)(!1),[e$,eT]=(0,l.useState)([]),[eE,eA]=(0,l.useState)(""),[eP,eR]=(0,l.useState)(!1),[eL,eI]=(0,l.useState)(!1),[eD,eU]=(0,l.useState)(!1),eO=(0,l.useRef)(null),eq=(0,l.useRef)(0),eB=(0,l.useRef)(0),eM=(0,l.useRef)(!1),eF=(0,l.useRef)(!1),eW=(0,l.useRef)(!1),eK=(0,l.useRef)(!1),[ez,eV]=(0,l.useState)(!1),[eQ,eH]=(0,l.useState)(!1),[eJ,eZ]=(0,l.useState)(!1);(0,l.useEffect)(()=>{eZ(!["localhost","127.0.0.1","::1"].includes(window.location.hostname))},[]);let{copied:eG,copy:eY}=(0,d.C)(),eX=!R||!I,e0=R?"Change the default dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,l.useEffect)(()=>{eO.current&&(eO.current.scrollTop=eO.current.scrollHeight)},[e$]),(0,l.useEffect)(()=>{e6(),e4()},[]),(0,l.useEffect)(()=>{if(!(K||eo))return;let e=!K||V,t=!eo||ed,a=()=>{document.hidden||e2()};if(document.addEventListener("visibilitychange",a),e&&t)return()=>document.removeEventListener("visibilitychange",a);let s=setInterval(()=>{document.hidden||e2()},u.fl);return()=>{clearInterval(s),document.removeEventListener("visibilitychange",a)}},[K,eo,V,ed]),(0,l.useEffect)(()=>{let e=async()=>{if(!document.hidden){if(K&&(H||Z)){let e=await h(Z,H);eM.current=e,e?(eq.current=0,Q(!0),eW.current||(eW.current=!0,eV(!0))):(eq.current+=1,eq.current>=u.t6&&Q(!1))}else eM.current=!1;if(eo&&em){let e=await m(em);eF.current=e,e?(eB.current=0,eu(!0),eK.current||(eK.current=!0,eH(!0))):(eB.current+=1,eB.current>=u.t6&&eu(!1))}else eF.current=!1}};if(!(K&&(H||Z)||eo&&em))return;e();let t=!eo||ed;if((!K||V)&&t)return;let a=setInterval(e,u.RL);return()=>clearInterval(a)},[K,H,Z,eo,em,V,ed]);let e1=(0,l.useCallback)((e,t,a,s,n,l)=>{t.current?(a.current=0,s(!0),n.current||(n.current=!0,l(!0))):(a.current+=1,a.current>=u.t6&&s(!1))},[]),e2=async()=>{try{let e=await fetch("/api/tunnel/status",{cache:"no-store"});if(!e.ok)return;let t=await e.json(),a=t.tunnel?.settingsEnabled??t.tunnel?.enabled??!1,s=t.tunnel?.tunnelUrl||"";J(s),G(t.tunnel?.publicUrl||""),z(a),e1(null,eM,eq,Q,eW,eV);let n=t.tailscale?.settingsEnabled??t.tailscale?.enabled??!1,l=t.tailscale?.tunnelUrl||"";eh(l),ec(n),e1(null,eF,eB,eu,eK,eH)}catch{}},e4=async()=>{W(!0);try{let[e,t]=await Promise.all([x.A.getState().fetchSettings(),fetch("/api/tunnel/status",{cache:"no-store"})]);if(e&&(P(e.requireApiKey||!1),L(!1!==e.requireLogin),q(e.hasPassword||!1),M(e.tunnelDashboardAccess||!1)),t.ok){let e=await t.json(),a=e.tunnel?.settingsEnabled??e.tunnel?.enabled??!1,s=e.tunnel?.tunnelUrl||"";J(s),G(e.tunnel?.publicUrl||""),z(a),e1(null,eM,eq,Q,eW,eV);let n=e.tailscale?.settingsEnabled??e.tailscale?.enabled??!1,l=e.tailscale?.tunnelUrl||"";eh(l),ec(n),e1(null,eF,eB,eu,eK,eH)}}catch(e){console.log("Error loading settings:",e)}finally{W(!1)}},e3=async e=>{try{await x.A.getState().patchSettings({tunnelDashboardAccess:e})&&M(e)}catch(e){console.log("Error updating tunnelDashboardAccess:",e)}},e5=async e=>{try{await x.A.getState().patchSettings({requireApiKey:e})&&P(e)}catch(e){console.log("Error updating requireApiKey:",e)}},e6=async()=>{try{let e=async()=>{let e=await fetch("/api/keys?view=settings",{cache:"no-store"});return e.ok&&(await e.json()).keys||[]},t=await e();if(0===t.length)try{(await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"Default Key"})})).ok&&(t=await e())}catch{}a(t)}catch(e){console.log("Error fetching data:",e)}finally{r(!1)}},e8=async(...e)=>{X(!0),et("Waiting for tunnel ready...");let t=e.filter(Boolean).map(e=>`${e}/api/health`),a=Date.now();for(;Date.now()-a<u.Cp;){if(await new Promise(e=>setTimeout(e,u.Hx)),await Promise.any(t.map(async e=>{if((await fetch(e,{mode:"cors",cache:"no-store"})).ok)return!0;throw Error("not ready")})).catch(()=>!1))return z(!0),X(!1),et(""),!0;if((Date.now()-a)%1e4<u.Hx)try{let e=await fetch("/api/tunnel/status");if(e.ok){let t=await e.json();if(!t.tunnel?.enabled)return es({type:"error",message:"Tunnel process stopped unexpectedly."}),X(!1),et(""),!1}}catch{}}return es({type:"error",message:"Tunnel created but not reachable. Please try again."}),X(!1),et(""),!1},e9=async()=>{el(!1),X(!0),es(null),et("Creating tunnel...");let e=!0;(async()=>{for(;e;){try{let t=await fetch("/api/tunnel/status");if(t.ok){let a=await t.json();a.download?.downloading?et(`Downloading cloudflared... ${a.download.progress}%`):e&&et("Creating tunnel...")}}catch{}await new Promise(e=>setTimeout(e,1e3))}})();try{let t=await fetch("/api/tunnel/enable",{method:"POST"});e=!1;let a=await t.json();if(!t.ok)return void es({type:"error",message:a.error||"Failed to enable tunnel"});let s=a.tunnelUrl;if(!s)return void es({type:"error",message:"No tunnel URL returned"});J(s),G(a.publicUrl||""),await e8(a.publicUrl,s)}catch(e){es({type:"error",message:e.message})}finally{e=!1,X(!1),et("")}},e7=async()=>{X(!0),es(null);try{let e=await fetch("/api/tunnel/disable",{method:"POST"}),t=await e.json();e.ok?(z(!1),J(""),er(!1),es({type:"success",message:"Tunnel disabled"})):es({type:"error",message:t.error||"Failed to disable tunnel"})}catch(e){es({type:"error",message:e.message})}finally{X(!1)}},te=async()=>{eC(null);try{let e=await fetch("/api/tunnel/tailscale-check");if(e.ok){let t=await e.json();return eC(t.installed),t}}catch{}return eC(!1),{installed:!1}},tt=async()=>{eS(!0),eb(null),eT([]);try{let e=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:eE})});eA("");let t=e.body.getReader(),a=new TextDecoder,s="";for(;;){let{done:e,value:n}=await t.read();if(e)break;let l=(s+=a.decode(n,{stream:!0})).split("\n\n");for(let e of(s=l.pop()||"",l)){let t=e.split("\n"),a="progress",s=null;for(let e of t)if(e.startsWith("event: ")&&(a=e.slice(7).trim()),e.startsWith("data: "))try{s=JSON.parse(e.slice(6))}catch{}if(s)if("progress"===a)eT(e=>[...e.slice(-50),s.message]);else if("done"===a){eC(!0),eS(!1),eI(!1),tl();return}else"error"===a&&eb({type:"error",message:s.error||"Install failed"})}}}catch(e){eb({type:"error",message:e.message})}finally{eS(!1)}},ta=async e=>{ef("Waiting for Tailscale ready...");let t=`${e}/api/health`,a=Date.now();for(;Date.now()-a<u.Cp;){await new Promise(e=>setTimeout(e,u.Hx));try{let e=await fetch(t,{mode:"no-cors",cache:"no-store"});if(e.ok||"opaque"===e.type)return!0}catch{}}return!1},ts=(e,t)=>{ev(e),ew(t)},tn=()=>{ev(""),ew("")},tl=async()=>{eI(!1),eR(!0),ep(!0),eb(null),ef("Connecting..."),tn();try{let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){eh(t.tunnelUrl||"");let e=await ta(t.tunnelUrl);ec(!0),eb(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.needsLogin&&t.authUrl){ts(t.authUrl,"Open Login Page"),ef('Login required — click "Open Login Page" to continue');for(let e=0;e<40;e++){await new Promise(e=>setTimeout(e,3e3));try{let e=await fetch("/api/tunnel/tailscale-check");if(e.ok&&(await e.json()).loggedIn){tn(),ef("Starting funnel...");let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){eh(t.tunnelUrl||"");let e=await ta(t.tunnelUrl);ec(!0),eb(e?null:{type:"warning",message:"Connected but not reachable yet."})}else t.funnelNotEnabled&&t.enableUrl?await ti(t.enableUrl):eb({type:"error",message:t.error||"Failed to start funnel"});return}}catch{}}tn(),eb({type:"error",message:"Login timed out. Please try again."});return}if(t.funnelNotEnabled&&t.enableUrl)return void await ti(t.enableUrl);eb({type:"error",message:t.error||"Failed to connect"})}catch(e){eb({type:"error",message:e.message})}finally{ep(!1),eR(!1),ef(""),tn()}},ti=async e=>{ts(e,"Open Funnel Settings"),ef('Click "Open Funnel Settings" to enable Funnel...');for(let e=0;e<40;e++){await new Promise(e=>setTimeout(e,3e3));try{let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){tn(),eh(t.tunnelUrl||"");let e=await ta(t.tunnelUrl);ec(!0),eb(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.funnelNotEnabled)continue;if(t.error){tn(),eb({type:"error",message:t.error});return}}catch{}}tn(),eb({type:"error",message:"Timed out waiting for Funnel to be enabled."})},tr=async()=>{ep(!0),eb(null);try{let e=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),t=await e.json();e.ok?(ec(!1),eh(""),eU(!1),eb({type:"success",message:"Tailscale disabled"})):eb({type:"error",message:t.error||"Failed to disable Tailscale"})}catch(e){eb({type:"error",message:e.message})}finally{ep(!1)}},to=async()=>{eb(null),eT([]);let e=await te();e?.installed&&e?.hasCachedPassword?tl():eI(!0)},tc=async()=>{if(w.trim())try{let e=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:w})}),t=await e.json();e.ok&&(_(t.key),await e6(),N(""),k(!1))}catch(e){console.log("Error creating key:",e)}},td=async e=>{$({title:"Delete API Key",message:"Delete this API key?",onConfirm:async()=>{$(null);try{(await fetch(`/api/keys/${e}`,{method:"DELETE"})).ok&&a(t.filter(t=>t.id!==e))}catch(e){console.log("Error deleting key:",e)}}})},tu=async(e,t)=>{try{(await fetch(`/api/keys/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&a(a=>a.map(a=>a.id===e?{...a,isActive:t}:a))}catch(e){console.log("Error toggling key:",e)}},tm=async e=>{try{let t=await fetch(`/api/keys/${e}/secret`,{cache:"no-store"}),a=await t.json();if(!t.ok)throw Error(a.error||"Unable to copy API key.");await eY(a.key,e)}catch(e){v.i.getState().error(e.message)}},[th,tx]=(0,l.useState)("/v1");return((0,l.useEffect)(()=>{tx(`${window.location.origin}/v1`)},[]),i)?(0,s.jsxs)("div",{className:`dashboard-surface ${g().page}`,"aria-busy":"true","aria-label":"Loading endpoint settings",children:[(0,s.jsx)(o.Qv,{}),(0,s.jsx)(o.Qv,{})]}):(0,s.jsxs)("div",{className:`dashboard-surface ${g().page}`,children:[(0,s.jsxs)(o.Zp,{className:`ui-card ${g().panel}`,children:[(0,s.jsx)("div",{className:g().header,children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("h2",{className:"ui-eyebrow",children:[(0,s.jsx)(n.default,{className:"text-[16px]",children:"api"}),"API Endpoint"]}),(0,s.jsx)("p",{className:g().description,children:"Connect your tools locally or enable secure remote access."})]})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(f,{label:"Local",url:th,copyId:"local_url",copied:eG,onCopy:eY}),(0,s.jsxs)("div",{className:g().row,children:[(0,s.jsxs)("span",{className:g().label,children:["Tunnel",(0,s.jsx)(U,{enabled:K,reachable:V,loading:Y,checking:F,previouslyReachable:ez,error:ea?.type==="error",loadingLabel:"Starting"})]}),K&&!Y&&V?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:g().field,children:(0,s.jsx)("output",{className:`${g().endpointValue} font-mono`,"aria-label":"Tunnel endpoint",tabIndex:0,children:`${Z||H}/v1`})}),(0,s.jsx)("button",{onClick:()=>eY(`${Z||H}/v1`,"tunnel_url"),className:g().iconButton,"aria-label":"Copy tunnel endpoint",children:(0,s.jsx)(n.default,{className:"text-[18px]",children:"tunnel_url"===eG?"check":"content_copy"})}),(0,s.jsx)("button",{onClick:()=>er(!0),className:`${g().iconButton} ${g().dangerButton}`,title:"Disable Tunnel","aria-label":"Disable Tunnel",children:(0,s.jsx)(n.default,{className:"text-[18px]",children:"power_settings_new"})})]}):!K||Y||V?Y?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:g().status,children:[(0,s.jsx)(n.default,{className:"animate-spin text-sm",children:"progress_activity"}),ee||"Creating tunnel..."]}),(0,s.jsx)("button",{onClick:()=>{X(!1),et("")},className:`${g().iconButton} ${g().dangerButton}`,title:"Stop","aria-label":"Stop creating tunnel",children:(0,s.jsx)(n.default,{className:"text-[18px]",children:"power_settings_new"})})]}):ea?.type==="error"?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:`${g().status} ${g().error}`,children:[(0,s.jsx)(n.default,{className:"text-sm",children:"error"}),ea.message]}),(0,s.jsx)(o.$n,{variant:"secondary",size:"sm",icon:"cloud_upload",onClick:()=>el(!0),children:"Enable"})]}):F?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:g().status,children:[(0,s.jsx)(n.default,{className:"animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),(0,s.jsx)("button",{onClick:()=>W(!1),className:`${g().iconButton} ${g().dangerButton}`,title:"Stop","aria-label":"Stop checking tunnel",children:(0,s.jsx)(n.default,{className:"text-[18px]",children:"power_settings_new"})})]}):(0,s.jsx)(o.$n,{variant:"secondary",size:"sm",icon:"cloud_upload",onClick:()=>{eX?es({type:"error",message:`Security required: ${e0}`}):A?el(!0):es({type:"error",message:'Security required: Enable "Require API key" before activating the tunnel.'})},children:"Enable"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:`${g().status} ${g().warning}`,children:[(0,s.jsx)(n.default,{className:"animate-spin text-sm",children:"progress_activity"}),ez?"Tunnel reconnecting...":"Tunnel checking..."]}),(0,s.jsx)("button",{onClick:()=>er(!0),className:`${g().iconButton} ${g().dangerButton}`,title:"Disable Tunnel","aria-label":"Disable Tunnel",children:(0,s.jsx)(n.default,{className:"text-[18px]",children:"power_settings_new"})})]})]}),(0,s.jsxs)("div",{className:g().row,children:[(0,s.jsxs)("span",{className:g().label,children:["Tailscale",(0,s.jsx)(U,{enabled:eo,reachable:ed,loading:ex||eP,previouslyReachable:eQ,error:ey?.type==="error",loadingLabel:"Connecting"})]}),eo&&!ex&&ed?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:g().field,children:(0,s.jsx)("output",{className:`${g().endpointValue} font-mono`,"aria-label":"Tailscale endpoint",tabIndex:0,children:`${em}/v1`})}),(0,s.jsx)("button",{onClick:()=>eY(`${em}/v1`,"ts_url"),className:g().iconButton,"aria-label":"Copy Tailscale endpoint",children:(0,s.jsx)(n.default,{className:"text-[18px]",children:"ts_url"===eG?"check":"content_copy"})}),(0,s.jsx)("button",{onClick:()=>eU(!0),className:`${g().iconButton} ${g().dangerButton}`,title:"Disable Tailscale","aria-label":"Disable Tailscale",children:(0,s.jsx)(n.default,{className:"text-[18px]",children:"power_settings_new"})})]}):!eo||ex||ed?ex||eP?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:g().status,children:[(0,s.jsx)(n.default,{className:"animate-spin text-sm",children:"progress_activity"}),eg||"Connecting..."]}),ej&&(0,s.jsx)(o.$n,{variant:"secondary",size:"sm",icon:"open_in_new",onClick:()=>window.open(ej,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:ek||"Open"}),(0,s.jsx)("button",{onClick:()=>{ep(!1),eR(!1),ef(""),tn()},className:`${g().iconButton} ${g().dangerButton}`,title:"Stop","aria-label":"Stop connecting Tailscale",children:(0,s.jsx)(n.default,{className:"text-[18px]",children:"power_settings_new"})})]}):ey?.type==="error"?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:`${g().status} ${g().error}`,children:[(0,s.jsx)(n.default,{className:"text-sm",children:"error"}),ey.message]}),(0,s.jsx)(o.$n,{variant:"secondary",size:"sm",icon:"vpn_lock",onClick:to,children:"Enable"})]}):(0,s.jsx)(o.$n,{size:"sm",icon:"vpn_lock",onClick:()=>{eX?eb({type:"error",message:`Security required: ${e0}`}):to()},variant:"secondary",children:"Enable"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:`${g().status} ${g().warning}`,children:[(0,s.jsx)(n.default,{className:"animate-spin text-sm",children:"progress_activity"}),eQ?"Tailscale reconnecting...":"Tailscale checking..."]}),(0,s.jsx)("button",{onClick:()=>eU(!0),className:`${g().iconButton} ${g().dangerButton}`,title:"Disable Tailscale","aria-label":"Disable Tailscale",children:(0,s.jsx)(n.default,{className:"text-[18px]",children:"power_settings_new"})})]})]})]}),eX&&!K&&!eo&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(j,{message:e0,action:{label:"Open settings",href:"/dashboard/profile"}})}),(K||eo)&&(0,s.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!A&&(0,s.jsx)(j,{message:"Require API key is disabled — your endpoint is publicly accessible without authentication.",action:{label:"Enable",href:"#require-api-key"}}),(!R||!I)&&(0,s.jsx)(j,{message:R?"Dashboard uses the default password — change it in Profile settings.":"Require login is disabled — anyone can access your dashboard via tunnel.",action:{label:R?"Change password":"Enable",href:"/dashboard/profile"}})]}),(K||eo)&&(0,s.jsxs)("div",{className:"mt-5 pt-5 border-t border-border-subtle flex items-center gap-3",children:[(0,s.jsx)(o.lM,{"aria-label":"Allow dashboard access via tunnel",checked:B,onChange:()=>e3(!B)}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,s.jsx)("p",{className:"font-medium text-sm",children:"Allow dashboard access via tunnel"}),(0,s.jsx)(b,{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,s.jsxs)(o.Zp,{className:`ui-card ${g().panel}`,id:"require-api-key",children:[(0,s.jsxs)("div",{className:g().header,children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h2",{className:"ui-eyebrow",children:[(0,s.jsx)(n.default,{className:"text-[16px]",children:"vpn_key"}),"API Keys"]}),(0,s.jsx)("p",{className:g().description,children:"Manage credentials used to authenticate API requests."})]}),(0,s.jsx)(o.$n,{variant:"contrast",icon:"add",onClick:()=>k(!0),children:"Create Key"})]}),(0,s.jsxs)("div",{className:g().settingsRow,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Require API key"}),(0,s.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Requests without a valid key will be rejected"})]}),(0,s.jsx)(o.lM,{"aria-label":"Require API key",checked:A,onChange:()=>e5(!A)})]}),eJ&&!A&&(0,s.jsx)("div",{className:"mb-4 -mt-2",children:(0,s.jsx)(j,{message:"Endpoint is exposed without an API key."})}),0===t.length?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center text-text-muted mb-4",children:(0,s.jsx)(n.default,{className:"text-[32px]",children:"vpn_key"})}),(0,s.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No API keys yet"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create your first API key to get started"}),(0,s.jsx)(o.$n,{variant:"contrast",icon:"add",onClick:()=>k(!0),children:"Create Key"})]}):(0,s.jsx)("div",{className:"flex flex-col",children:t.map(e=>(0,s.jsxs)("div",{className:g().keyRow,children:[(0,s.jsxs)("div",{className:g().keyDetails,children:[(0,s.jsxs)("div",{className:g().keyName,children:[(0,s.jsx)("p",{className:"text-sm font-medium break-words min-w-0",children:e.name}),(0,s.jsx)(c.A,{variant:!1===e.isActive?"default":e.isExpired?"error":"success",className:g().statusBadge,children:!1===e.isActive?"Paused":e.isExpired?"Expired":"Active"})]}),(0,s.jsxs)("div",{className:g().keyCredential,children:[(0,s.jsx)("code",{className:`${g().keyValue} text-xs text-text-muted font-mono`,"data-i18n-skip":!0,children:e.keyPrefix}),(0,s.jsx)("button",{onClick:()=>tm(e.id),className:g().iconButton,"aria-label":"Copy API key",children:(0,s.jsx)(n.default,{className:"text-[14px]",children:eG===e.id?"check":"content_copy"})})]}),(0,s.jsxs)("p",{className:`${g().keyMeta} text-xs text-text-muted mt-1`,children:["Created ",new Date(e.createdAt).toLocaleDateString(),e.lastUsedAt&&` \xb7 Last used ${new Date(e.lastUsedAt).toLocaleDateString()}`]}),(0,s.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:[null!=e.maxTokensQuota?`${Number(e.quotaTokens||0).toLocaleString()} / ${Number(e.maxTokensQuota).toLocaleString()} tokens`:null!=e.maxCostUsd?`$${Number(e.quotaCost||0).toFixed(2)} / $${Number(e.maxCostUsd).toFixed(2)}`:"Unlimited quota",null!=e.rateLimitRpm&&` \xb7 ${e.rateLimitRpm} RPM`,(e.allowedModels?.length>0||e.blockedModels?.length>0)&&" \xb7 Restricted models"]})]}),(0,s.jsxs)("div",{className:g().keyActions,children:[(0,s.jsx)(o.$n,{variant:"secondary",size:"sm",icon:"settings",onClick:()=>E(e.id),"aria-label":`Configure ${e.name}`,children:"Configure"}),(0,s.jsx)(o.lM,{"aria-label":`${!1===e.isActive?"Resume":"Pause"} ${e.name}`,size:"sm",checked:e.isActive??!0,onChange:t=>{e.isActive&&!t?$({title:"Pause API Key",message:`Pause API key "${e.name}"?
2
2
 
3
- This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{$(null),tu(e.id,t)}}):tu(e.id,t)},title:e.isActive?"Pause key":"Resume key"}),(0,s.jsx)("button",{onClick:()=>td(e.id),className:`${g().iconButton} ${g().dangerButton}`,"aria-label":"Delete API key",children:(0,s.jsx)(n.default,{className:"text-[18px]",children:"delete"})})]})]},e.id))})]}),T&&(0,s.jsx)(D,{keyId:T,onClose:()=>E(null),onSaved:e=>a(t=>t.map(t=>t.id===e.id?e:t))},T),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:p,title:"Create API Key",onClose:()=>{k(!1),N("")},children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(o.pd,{label:"Key Name","aria-label":"Key Name",value:w,onChange:e=>N(e.target.value),placeholder:"Production Key"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{variant:"contrast",onClick:tc,fullWidth:!0,disabled:!w.trim(),children:"Create"}),(0,s.jsx)(o.$n,{onClick:()=>{k(!1),N("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:!!C,title:"API Key Created",onClose:()=>_(null),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:`${g().warning} rounded-[var(--r2)] p-4`,children:[(0,s.jsx)("p",{className:"text-sm mb-2 font-medium",children:"Save this key now!"}),(0,s.jsx)("p",{className:"text-sm",children:"This is the only time you will see this key. Store it securely."})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.pd,{value:C||"",readOnly:!0,className:g().field,inputClassName:"font-mono","aria-label":"Created API key"}),(0,s.jsx)(o.$n,{variant:"secondary",icon:"created_key"===eG?"check":"content_copy",onClick:()=>eY(C,"created_key"),children:"created_key"===eG?"Copied!":"Copy"})]}),(0,s.jsx)(o.$n,{variant:"contrast",onClick:()=>_(null),fullWidth:!0,children:"Done"})]})}),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:en,title:"Enable Tunnel",onClose:()=>el(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(n.default,{className:"text-text-muted shrink-0",children:"cloud_upload"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:"Cloudflare Tunnel"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Expose your local 9Router 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,s.jsx)("div",{className:"grid grid-cols-2 gap-3",children:u.oX.map(e=>(0,s.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-[var(--r2)] bg-surface-2",children:[(0,s.jsx)(n.default,{className:"text-xl text-text-muted mb-1",children:e.icon}),(0,s.jsx)("p",{className:"text-xs font-semibold",children:e.title}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:e.desc})]},e.title))}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{variant:"contrast",onClick:e9,fullWidth:!0,children:"Start Tunnel"}),(0,s.jsx)(o.$n,{onClick:()=>el(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:ei,title:"Disable Tunnel",onClose:()=>!Y&&er(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{className:g().dangerButton,onClick:e7,fullWidth:!0,disabled:Y,variant:"danger",children:Y?"Disabling...":"Disable"}),(0,s.jsx)(o.$n,{onClick:()=>er(!1),variant:"ghost",fullWidth:!0,disabled:Y,children:"Cancel"})]})]})}),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:eL,title:"Tailscale Funnel",onClose:()=>{e_||(eI(!1),eA(""),eb(null))},children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[null===eN&&(0,s.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,s.jsx)(n.default,{className:"animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),!1===eN&&!e_&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{variant:"contrast",onClick:tt,fullWidth:!0,children:"Install Tailscale"}),(0,s.jsx)(o.$n,{onClick:()=>eI(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),e_&&(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,s.jsx)(n.default,{className:"animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),e$.length>0&&(0,s.jsx)("div",{ref:eO,className:"bg-surface-inset rounded-[var(--r1)] p-3 max-h-40 overflow-y-auto font-mono text-xs text-text-muted","data-i18n-skip":!0,children:e$.map((e,t)=>(0,s.jsx)("div",{children:e},t))})]}),!0===eN&&!e_&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-[var(--pos)]",children:[(0,s.jsx)(n.default,{className:"text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{variant:"contrast",onClick:()=>tl(),fullWidth:!0,children:"Connect"}),(0,s.jsx)(o.$n,{onClick:()=>eI(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),ey&&(0,s.jsx)(y,{status:ey})]})}),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:eD,title:"Disable Tailscale",onClose:()=>!ex&&eU(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{className:g().dangerButton,onClick:tr,fullWidth:!0,disabled:ex,variant:"danger",children:ex?"Disabling...":"Disable"}),(0,s.jsx)(o.$n,{onClick:()=>eU(!1),variant:"ghost",fullWidth:!0,disabled:ex,children:"Cancel"})]})]})}),(0,s.jsx)(o.uo,{className:g().dialog,isOpen:!!S,onClose:()=>$(null),onConfirm:S?.onConfirm,title:S?.title||"Confirm",message:S?.message,variant:"danger"})]})}O.propTypes={machineId:r().string.isRequired}},44029:(e,t,a)=>{Promise.resolve().then(a.bind(a,43728))}},e=>{e.O(0,[3493,8679,4660,2904,6506,8500,3847,1321,705,5497,8441,3794,7358],()=>e(e.s=44029)),_N_E=e.O()}]);
3
+ This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{$(null),tu(e.id,t)}}):tu(e.id,t)},title:e.isActive?"Pause key":"Resume key"}),(0,s.jsx)("button",{onClick:()=>td(e.id),className:`${g().iconButton} ${g().dangerButton}`,"aria-label":"Delete API key",children:(0,s.jsx)(n.default,{className:"text-[18px]",children:"delete"})})]})]},e.id))})]}),T&&(0,s.jsx)(D,{keyId:T,onClose:()=>E(null),onSaved:e=>a(t=>t.map(t=>t.id===e.id?e:t))},T),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:p,title:"Create API Key",onClose:()=>{k(!1),N("")},children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(o.pd,{label:"Key Name","aria-label":"Key Name",value:w,onChange:e=>N(e.target.value),placeholder:"Production Key"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{variant:"contrast",onClick:tc,fullWidth:!0,disabled:!w.trim(),children:"Create"}),(0,s.jsx)(o.$n,{onClick:()=>{k(!1),N("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:!!C,title:"API Key Created",onClose:()=>_(null),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:`${g().warning} rounded-[var(--r2)] p-4`,children:[(0,s.jsx)("p",{className:"text-sm mb-2 font-medium",children:"Save this key now!"}),(0,s.jsx)("p",{className:"text-sm",children:"This is the only time you will see this key. Store it securely."})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.pd,{value:C||"",readOnly:!0,className:g().field,inputClassName:"font-mono","aria-label":"Created API key"}),(0,s.jsx)(o.$n,{variant:"secondary",icon:"created_key"===eG?"check":"content_copy",onClick:()=>eY(C,"created_key"),children:"created_key"===eG?"Copied!":"Copy"})]}),(0,s.jsx)(o.$n,{variant:"contrast",onClick:()=>_(null),fullWidth:!0,children:"Done"})]})}),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:en,title:"Enable Tunnel",onClose:()=>el(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(n.default,{className:"text-text-muted shrink-0",children:"cloud_upload"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:"Cloudflare Tunnel"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Expose your local JRouter 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,s.jsx)("div",{className:"grid grid-cols-2 gap-3",children:u.oX.map(e=>(0,s.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-[var(--r2)] bg-surface-2",children:[(0,s.jsx)(n.default,{className:"text-xl text-text-muted mb-1",children:e.icon}),(0,s.jsx)("p",{className:"text-xs font-semibold",children:e.title}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:e.desc})]},e.title))}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{variant:"contrast",onClick:e9,fullWidth:!0,children:"Start Tunnel"}),(0,s.jsx)(o.$n,{onClick:()=>el(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:ei,title:"Disable Tunnel",onClose:()=>!Y&&er(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{className:g().dangerButton,onClick:e7,fullWidth:!0,disabled:Y,variant:"danger",children:Y?"Disabling...":"Disable"}),(0,s.jsx)(o.$n,{onClick:()=>er(!1),variant:"ghost",fullWidth:!0,disabled:Y,children:"Cancel"})]})]})}),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:eL,title:"Tailscale Funnel",onClose:()=>{e_||(eI(!1),eA(""),eb(null))},children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[null===eN&&(0,s.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,s.jsx)(n.default,{className:"animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),!1===eN&&!e_&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{variant:"contrast",onClick:tt,fullWidth:!0,children:"Install Tailscale"}),(0,s.jsx)(o.$n,{onClick:()=>eI(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),e_&&(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,s.jsx)(n.default,{className:"animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),e$.length>0&&(0,s.jsx)("div",{ref:eO,className:"bg-surface-inset rounded-[var(--r1)] p-3 max-h-40 overflow-y-auto font-mono text-xs text-text-muted","data-i18n-skip":!0,children:e$.map((e,t)=>(0,s.jsx)("div",{children:e},t))})]}),!0===eN&&!e_&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-[var(--pos)]",children:[(0,s.jsx)(n.default,{className:"text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{variant:"contrast",onClick:()=>tl(),fullWidth:!0,children:"Connect"}),(0,s.jsx)(o.$n,{onClick:()=>eI(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),ey&&(0,s.jsx)(y,{status:ey})]})}),(0,s.jsx)(o.aF,{className:g().dialog,isOpen:eD,title:"Disable Tailscale",onClose:()=>!ex&&eU(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{className:g().dangerButton,onClick:tr,fullWidth:!0,disabled:ex,variant:"danger",children:ex?"Disabling...":"Disable"}),(0,s.jsx)(o.$n,{onClick:()=>eU(!1),variant:"ghost",fullWidth:!0,disabled:ex,children:"Cancel"})]})]})}),(0,s.jsx)(o.uo,{className:g().dialog,isOpen:!!S,onClose:()=>$(null),onConfirm:S?.onConfirm,title:S?.title||"Confirm",message:S?.message,variant:"danger"})]})}O.propTypes={machineId:r().string.isRequired}},44029:(e,t,a)=>{Promise.resolve().then(a.bind(a,43728))}},e=>{e.O(0,[3493,8679,4660,2904,6506,8500,3847,1321,705,5497,8441,3794,7358],()=>e(e.s=44029)),_N_E=e.O()}]);