9router-proxy 0.5.82 → 0.5.84

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 (784) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +12 -12
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +27 -27
  5. package/app/.next-cli-build/required-server-files.json +5 -5
  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 +2 -2
  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/media-providers/[kind]/[id]/page.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  76. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  79. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  84. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  86. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  87. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  88. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  89. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
  90. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  91. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  92. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  94. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  95. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route_client-reference-manifest.js +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/oidc/start/route_client-reference-manifest.js +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/oidc/test/route_client-reference-manifest.js +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/reset-password/route_client-reference-manifest.js +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/saml/acs/route_client-reference-manifest.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route_client-reference-manifest.js +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +2 -2
  116. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/auth/saml/start/route_client-reference-manifest.js +1 -1
  118. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/auth/saml/test/route_client-reference-manifest.js +1 -1
  121. package/app/.next-cli-build/server/app/api/auth/status/route.js +2 -2
  122. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  125. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route_client-reference-manifest.js +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  128. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  134. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  137. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  143. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route_client-reference-manifest.js +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route_client-reference-manifest.js +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  149. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route_client-reference-manifest.js +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  152. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route_client-reference-manifest.js +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  155. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route_client-reference-manifest.js +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route_client-reference-manifest.js +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  161. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +3 -3
  164. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route_client-reference-manifest.js +1 -1
  166. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +3 -3
  167. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route_client-reference-manifest.js +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  170. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route_client-reference-manifest.js +1 -1
  172. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  173. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +1 -1
  175. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  176. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
  178. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  179. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route_client-reference-manifest.js +1 -1
  181. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
  184. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/combos/route_client-reference-manifest.js +1 -1
  187. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/headroom/extras/route_client-reference-manifest.js +1 -1
  190. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route_client-reference-manifest.js +1 -1
  193. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/headroom/restart/route_client-reference-manifest.js +1 -1
  196. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/headroom/start/route_client-reference-manifest.js +1 -1
  199. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/headroom/status/route_client-reference-manifest.js +1 -1
  202. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/headroom/stop/route_client-reference-manifest.js +1 -1
  205. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/health/route_client-reference-manifest.js +1 -1
  208. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/init/route_client-reference-manifest.js +1 -1
  211. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
  214. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/keys/route_client-reference-manifest.js +1 -1
  217. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/locale/route_client-reference-manifest.js +1 -1
  220. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route_client-reference-manifest.js +1 -1
  223. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  224. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route_client-reference-manifest.js +1 -1
  226. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route_client-reference-manifest.js +1 -1
  229. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route_client-reference-manifest.js +1 -1
  232. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route_client-reference-manifest.js +1 -1
  235. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route_client-reference-manifest.js +1 -1
  238. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route_client-reference-manifest.js +1 -1
  241. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
  244. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/models/availability/route_client-reference-manifest.js +1 -1
  247. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/models/catalog-sync/route_client-reference-manifest.js +1 -1
  250. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/models/custom/route_client-reference-manifest.js +1 -1
  253. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/models/disabled/route_client-reference-manifest.js +1 -1
  256. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/models/route_client-reference-manifest.js +1 -1
  259. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/models/test/route_client-reference-manifest.js +1 -1
  262. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route_client-reference-manifest.js +1 -1
  265. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route_client-reference-manifest.js +1 -1
  268. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route_client-reference-manifest.js +1 -1
  271. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route_client-reference-manifest.js +1 -1
  274. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route_client-reference-manifest.js +1 -1
  277. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route_client-reference-manifest.js +1 -1
  280. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route_client-reference-manifest.js +1 -1
  283. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route_client-reference-manifest.js +1 -1
  286. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route_client-reference-manifest.js +1 -1
  289. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route_client-reference-manifest.js +1 -1
  292. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route_client-reference-manifest.js +1 -1
  295. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route_client-reference-manifest.js +1 -1
  298. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route_client-reference-manifest.js +1 -1
  301. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route_client-reference-manifest.js +1 -1
  304. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route_client-reference-manifest.js +1 -1
  307. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  308. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route_client-reference-manifest.js +1 -1
  310. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/pricing/route_client-reference-manifest.js +1 -1
  313. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  314. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route_client-reference-manifest.js +1 -1
  316. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/provider-nodes/route_client-reference-manifest.js +1 -1
  319. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  320. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route_client-reference-manifest.js +1 -1
  322. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/providers/[id]/models/route_client-reference-manifest.js +1 -1
  325. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/providers/[id]/route_client-reference-manifest.js +1 -1
  328. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/providers/[id]/test/route_client-reference-manifest.js +1 -1
  331. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route_client-reference-manifest.js +1 -1
  334. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/providers/client/route_client-reference-manifest.js +1 -1
  337. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route_client-reference-manifest.js +1 -1
  340. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/providers/route_client-reference-manifest.js +1 -1
  343. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/providers/suggested-models/route_client-reference-manifest.js +1 -1
  346. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  347. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/providers/test-batch/route_client-reference-manifest.js +1 -1
  349. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/providers/validate/route_client-reference-manifest.js +1 -1
  352. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  353. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route_client-reference-manifest.js +1 -1
  355. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route_client-reference-manifest.js +1 -1
  358. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  359. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  360. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route_client-reference-manifest.js +1 -1
  361. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  362. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route_client-reference-manifest.js +1 -1
  364. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  365. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/proxy-pools/route_client-reference-manifest.js +1 -1
  367. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  368. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route_client-reference-manifest.js +1 -1
  370. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  371. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/pxpipe/health/route_client-reference-manifest.js +1 -1
  373. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  374. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/pxpipe/install/route_client-reference-manifest.js +1 -1
  376. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +1 -1
  377. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/pxpipe/logs/route_client-reference-manifest.js +1 -1
  379. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  380. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/pxpipe/restart/route_client-reference-manifest.js +1 -1
  382. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  383. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/pxpipe/start/route_client-reference-manifest.js +1 -1
  385. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  386. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/pxpipe/stats/route_client-reference-manifest.js +1 -1
  388. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  389. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/pxpipe/status/route_client-reference-manifest.js +1 -1
  391. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  392. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/pxpipe/stop/route_client-reference-manifest.js +1 -1
  394. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/settings/database/route_client-reference-manifest.js +1 -1
  397. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/settings/proxy-test/route_client-reference-manifest.js +1 -1
  400. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  401. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/settings/require-login/route_client-reference-manifest.js +1 -1
  403. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/settings/route_client-reference-manifest.js +1 -1
  406. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
  409. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/tags/route_client-reference-manifest.js +1 -1
  412. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  413. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/api/translator/console-logs/route_client-reference-manifest.js +1 -1
  415. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route_client-reference-manifest.js +1 -1
  418. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  419. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/api/translator/load/route_client-reference-manifest.js +1 -1
  421. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  422. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/api/translator/save/route_client-reference-manifest.js +1 -1
  424. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  425. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  426. package/app/.next-cli-build/server/app/api/translator/send/route_client-reference-manifest.js +1 -1
  427. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  428. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  429. package/app/.next-cli-build/server/app/api/translator/translate/route_client-reference-manifest.js +1 -1
  430. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  431. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  432. package/app/.next-cli-build/server/app/api/tunnel/disable/route_client-reference-manifest.js +1 -1
  433. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  434. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  435. package/app/.next-cli-build/server/app/api/tunnel/enable/route_client-reference-manifest.js +1 -1
  436. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  437. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/tunnel/status/route_client-reference-manifest.js +1 -1
  439. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  440. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  441. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route_client-reference-manifest.js +1 -1
  442. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  443. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  444. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route_client-reference-manifest.js +1 -1
  445. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  446. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  447. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route_client-reference-manifest.js +1 -1
  448. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  449. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  450. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route_client-reference-manifest.js +1 -1
  451. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  452. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  453. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route_client-reference-manifest.js +1 -1
  454. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  455. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  456. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route_client-reference-manifest.js +1 -1
  457. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  458. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  459. package/app/.next-cli-build/server/app/api/usage/chart/route_client-reference-manifest.js +1 -1
  460. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  461. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  462. package/app/.next-cli-build/server/app/api/usage/history/route_client-reference-manifest.js +1 -1
  463. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  464. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  465. package/app/.next-cli-build/server/app/api/usage/logs/route_client-reference-manifest.js +1 -1
  466. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  467. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  468. package/app/.next-cli-build/server/app/api/usage/providers/route_client-reference-manifest.js +1 -1
  469. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  470. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  471. package/app/.next-cli-build/server/app/api/usage/request-details/route_client-reference-manifest.js +1 -1
  472. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  473. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  474. package/app/.next-cli-build/server/app/api/usage/request-logs/route_client-reference-manifest.js +1 -1
  475. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  476. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  477. package/app/.next-cli-build/server/app/api/usage/stats/route_client-reference-manifest.js +1 -1
  478. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  479. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  480. package/app/.next-cli-build/server/app/api/usage/stream/route_client-reference-manifest.js +1 -1
  481. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  482. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  483. package/app/.next-cli-build/server/app/api/v1/api/chat/route_client-reference-manifest.js +1 -1
  484. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  485. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  486. package/app/.next-cli-build/server/app/api/v1/audio/speech/route_client-reference-manifest.js +1 -1
  487. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  488. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  489. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route_client-reference-manifest.js +1 -1
  490. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  491. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  492. package/app/.next-cli-build/server/app/api/v1/audio/voices/route_client-reference-manifest.js +1 -1
  493. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  494. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  495. package/app/.next-cli-build/server/app/api/v1/chat/completions/route_client-reference-manifest.js +1 -1
  496. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  497. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  498. package/app/.next-cli-build/server/app/api/v1/embeddings/route_client-reference-manifest.js +1 -1
  499. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  500. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  501. package/app/.next-cli-build/server/app/api/v1/images/generations/route_client-reference-manifest.js +1 -1
  502. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  503. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  504. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.js +1 -1
  505. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  506. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  507. package/app/.next-cli-build/server/app/api/v1/messages/route_client-reference-manifest.js +1 -1
  508. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  509. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  510. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route_client-reference-manifest.js +1 -1
  511. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  512. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  513. package/app/.next-cli-build/server/app/api/v1/models/info/route_client-reference-manifest.js +1 -1
  514. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  515. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  516. package/app/.next-cli-build/server/app/api/v1/models/route_client-reference-manifest.js +1 -1
  517. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  518. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  519. package/app/.next-cli-build/server/app/api/v1/responses/compact/route_client-reference-manifest.js +1 -1
  520. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  521. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  522. package/app/.next-cli-build/server/app/api/v1/responses/route_client-reference-manifest.js +1 -1
  523. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  524. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  525. package/app/.next-cli-build/server/app/api/v1/route_client-reference-manifest.js +1 -1
  526. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  527. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  528. package/app/.next-cli-build/server/app/api/v1/search/route_client-reference-manifest.js +1 -1
  529. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  530. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  531. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route_client-reference-manifest.js +1 -1
  532. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  533. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  534. package/app/.next-cli-build/server/app/api/v1/videos/edits/route_client-reference-manifest.js +1 -1
  535. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  536. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  537. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route_client-reference-manifest.js +1 -1
  538. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  539. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  540. package/app/.next-cli-build/server/app/api/v1/videos/generations/route_client-reference-manifest.js +1 -1
  541. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  542. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  543. package/app/.next-cli-build/server/app/api/v1/web/fetch/route_client-reference-manifest.js +1 -1
  544. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  545. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  546. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
  547. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  548. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  549. package/app/.next-cli-build/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
  550. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  551. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  552. package/app/.next-cli-build/server/app/api/version/route_client-reference-manifest.js +1 -1
  553. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  554. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  555. package/app/.next-cli-build/server/app/api/version/shutdown/route_client-reference-manifest.js +1 -1
  556. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  557. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  558. package/app/.next-cli-build/server/app/api/version/update/route_client-reference-manifest.js +1 -1
  559. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  560. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  561. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  562. package/app/.next-cli-build/server/app/callback.html +1 -1
  563. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  564. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  565. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  566. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
  567. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  568. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  569. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +6 -6
  570. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  571. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  572. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  573. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
  574. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
  575. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
  576. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  577. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  578. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  579. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +6 -6
  580. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  581. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  582. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  583. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
  584. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +6 -6
  585. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
  586. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  587. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  588. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  589. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +6 -6
  590. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  591. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  592. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  593. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  594. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
  595. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  596. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  597. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  598. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  599. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +6 -6
  600. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  601. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  602. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  603. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  604. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +6 -6
  605. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  606. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  607. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  608. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  609. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +6 -6
  610. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  611. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  612. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  613. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  614. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +6 -6
  615. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  616. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  617. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  618. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  619. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +6 -6
  620. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  621. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  622. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  623. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  624. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +7 -7
  625. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  626. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  627. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  628. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  629. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  630. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  631. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  632. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  633. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  634. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
  635. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  636. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  637. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +6 -6
  638. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  639. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  640. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  641. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  642. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +6 -6
  643. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  644. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  645. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  646. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  647. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +6 -6
  648. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  649. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  650. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  651. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  652. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +6 -6
  653. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  654. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  655. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  656. package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
  657. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +6 -6
  658. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
  659. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  660. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  661. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  662. package/app/.next-cli-build/server/app/index.html +1 -1
  663. package/app/.next-cli-build/server/app/index.rsc +4 -4
  664. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  665. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  666. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  667. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  668. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  669. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  670. package/app/.next-cli-build/server/app/landing.html +1 -1
  671. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  672. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  673. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  674. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
  675. package/app/.next-cli-build/server/app/login/page.js +1 -1
  676. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  677. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  678. package/app/.next-cli-build/server/app/login.html +1 -1
  679. package/app/.next-cli-build/server/app/login.rsc +5 -5
  680. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  681. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  682. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
  683. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  684. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  685. package/app/.next-cli-build/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  686. package/app/.next-cli-build/server/app/page.js +1 -1
  687. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  688. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  689. package/app/.next-cli-build/server/app-paths-manifest.json +12 -12
  690. package/app/.next-cli-build/server/chunks/1220.js +1 -1
  691. package/app/.next-cli-build/server/chunks/1478.js +1 -1
  692. package/app/.next-cli-build/server/chunks/2214.js +3 -0
  693. package/app/.next-cli-build/server/chunks/2430.js +4 -4
  694. package/app/.next-cli-build/server/chunks/2751.js +1 -0
  695. package/app/.next-cli-build/server/chunks/2870.js +1 -0
  696. package/app/.next-cli-build/server/chunks/3459.js +1 -1
  697. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  698. package/app/.next-cli-build/server/chunks/4037.js +1 -1
  699. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  700. package/app/.next-cli-build/server/chunks/4125.js +1 -1
  701. package/app/.next-cli-build/server/chunks/4572.js +1 -1
  702. package/app/.next-cli-build/server/chunks/4730.js +1 -1
  703. package/app/.next-cli-build/server/chunks/8145.js +1 -1
  704. package/app/.next-cli-build/server/chunks/869.js +1 -1
  705. package/app/.next-cli-build/server/chunks/915.js +1 -1
  706. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  707. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  708. package/app/.next-cli-build/server/middleware.js +3 -3
  709. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  710. package/app/.next-cli-build/server/next-font-manifest.js +1 -1
  711. package/app/.next-cli-build/server/next-font-manifest.json +1 -1
  712. package/app/.next-cli-build/server/pages/404.html +1 -1
  713. package/app/.next-cli-build/server/pages/500.html +1 -1
  714. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  715. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  716. package/app/.next-cli-build/static/chunks/{1321-91f49ecab7e31497.js → 1321-a5d8e3855a06191d.js} +1 -1
  717. package/app/.next-cli-build/static/chunks/809-c530a61052bf57d9.js +3 -0
  718. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-6d5c472d92ad4d7b.js → page-bf62957e6bf0c9b6.js} +1 -1
  719. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-aedc4da9b1e64ba1.js → page-e9094f6397e3db32.js} +1 -1
  720. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-6d9baf555ca7e1a9.js → page-49227e9571ca75ee.js} +1 -1
  721. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-f16f14e3708413c6.js → page-22d499936f64e70d.js} +1 -1
  722. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-fc64937433e2052b.js → page-5ce7e708e65d7ed2.js} +1 -1
  723. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-cf249feaa9108a4e.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-634c7c6009db3c9a.js → page-452f4c039beb1ff0.js} +2 -2
  725. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-fe79c701b0256560.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-b97c67f4e942cd35.js → page-c20828e9f181b48c.js} +1 -1
  727. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-6b5e415f16f2015e.js → page-1eaf569d16f5fc95.js} +1 -1
  728. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-f5773f327357e5c0.js → page-991110e90ac5b7ca.js} +1 -1
  729. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-b52bdd6de15807fc.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-60112f6b6217c23d.js → page-1707a43605025629.js} +1 -1
  731. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-61c471f2f094e671.js → page-a1a8249b040b3fc5.js} +1 -1
  732. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-b74f96b9d4217a63.js → page-378e16c550d6670d.js} +1 -1
  733. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-534cf66a5d57f5da.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-74f7c8a6eae89546.js → page-9afa902610df6eda.js} +2 -2
  735. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-50ca788a79bff514.js → page-930edc3414aefb99.js} +1 -1
  736. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-f3e8f3d109886a92.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-a30b31b2fab6e55f.js → page-ff4999c854469b73.js} +1 -1
  738. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-a5ed9cd2ec340299.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-6e1bf9615b110473.js → page-074f26128db0c704.js} +1 -1
  740. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-a802ce8ca6fa34c3.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-235aa653589384de.js → layout-1e553b4323bf7053.js} +1 -1
  742. package/app/.next-cli-build/static/chunks/app/_not-found/page-9cb0ac70ab60eba2.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/callback/page-ee5f77ef69dd466f.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/{page-363940edf26f7293.js → page-afccf4209692aa6f.js} +1 -1
  745. package/app/.next-cli-build/static/chunks/app/landing/{page-258585580e004f81.js → page-0185c25e389af607.js} +1 -1
  746. package/app/.next-cli-build/static/chunks/app/layout-00c8624593ca90e2.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/login/{page-f028d26bd6d12748.js → page-c72141d109a846b7.js} +1 -1
  748. package/app/.next-cli-build/static/chunks/main-app-6b83f9262ea4869d.js +1 -0
  749. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-fc979617952f596f.js +1 -0
  750. package/app/package.json +1 -1
  751. package/app/server.js +1 -1
  752. package/app/src/lib/updater/updater.js +8 -5
  753. package/app/src/mitm/server.js +19 -19
  754. package/cli.js +35 -21
  755. package/hooks/sqliteRuntime.js +1 -8
  756. package/package.json +2 -2
  757. package/src/cli/api/client.js +1 -10
  758. package/src/cli/commands/daemon.js +46 -23
  759. package/src/cli/tray/tray.js +1 -0
  760. package/src/cli/utils/dataDir.js +42 -0
  761. package/app/.next-cli-build/server/chunks/3332.js +0 -1
  762. package/app/.next-cli-build/server/chunks/3956.js +0 -3
  763. package/app/.next-cli-build/server/chunks/9667.js +0 -1
  764. package/app/.next-cli-build/static/chunks/9246-3416a4e77c91f76c.js +0 -3
  765. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-bb4b4646897cd2e7.js +0 -1
  766. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-c613f178fca0d7cb.js +0 -1
  767. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-334ec5a4985a3bb1.js +0 -1
  768. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-6cbb5af377c79574.js +0 -1
  769. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-8a4858aa4d4c0d42.js +0 -1
  770. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-14c66e5844bef120.js +0 -1
  771. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-88424527e5a39243.js +0 -1
  772. package/app/.next-cli-build/static/chunks/app/_not-found/page-5b9d4fc0a96993f8.js +0 -1
  773. package/app/.next-cli-build/static/chunks/app/callback/page-4ab401c9515d534f.js +0 -1
  774. package/app/.next-cli-build/static/chunks/app/layout-0afb71a399c4e37f.js +0 -1
  775. package/app/.next-cli-build/static/chunks/main-app-f80e368a7022c830.js +0 -1
  776. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-a07eb5f6e9f351cd.js +0 -1
  777. package/app/cli/.build-home/.9router/db/data.sqlite +0 -0
  778. package/app/cli/.build-home/.9router/db/data.sqlite-shm +0 -0
  779. package/app/cli/.build-home/.9router/db/data.sqlite-wal +0 -0
  780. package/app/cli/.build-home/.9router/jwt-secret +0 -1
  781. package/app/cli/.build-home/.9router/machine-id +0 -1
  782. package/app/cli/.build-home/Library/Preferences/nextjs-nodejs/config.json +0 -7
  783. /package/app/.next-cli-build/static/{k0r09uWkmSpifXbwK-mnO → 8voY36sc1ZdqaQh3B48Q2}/_buildManifest.js +0 -0
  784. /package/app/.next-cli-build/static/{k0r09uWkmSpifXbwK-mnO → 8voY36sc1ZdqaQh3B48Q2}/_ssgManifest.js +0 -0
package/cli.js CHANGED
@@ -65,6 +65,7 @@ function createSpinner(text) {
65
65
  const pkg = require("./package.json");
66
66
  const { ensureSqliteRuntime, buildEnvWithRuntime } = require("./hooks/sqliteRuntime");
67
67
  const { ensureTrayRuntime } = require("./hooks/trayRuntime");
68
+ const { getDataDir } = require("./src/cli/utils/dataDir");
68
69
  const args = process.argv.slice(2);
69
70
 
70
71
  // Subcommands (`9router xai video …`) run against an already-running gateway
@@ -201,13 +202,6 @@ function compareVersions(a, b) {
201
202
  return 0;
202
203
  }
203
204
 
204
- // Get app data dir (matches app/src/lib/dataDir.js convention)
205
- function getAppDataDir() {
206
- return process.platform === "win32"
207
- ? path.join(process.env.APPDATA || "", "9router")
208
- : path.join(os.homedir(), ".9router");
209
- }
210
-
211
205
  // Kill PID from file (best-effort, removes file after)
212
206
  function killByPidFile(pidFile) {
213
207
  try {
@@ -227,7 +221,7 @@ function killByPidFile(pidFile) {
227
221
 
228
222
  // Kill tunnel processes (cloudflared/tailscale) by their PID files
229
223
  function killTunnelByPidFile() {
230
- const tunnelDir = path.join(getAppDataDir(), "tunnel");
224
+ const tunnelDir = path.join(getDataDir(), "tunnel");
231
225
  killByPidFile(path.join(tunnelDir, "cloudflared.pid"));
232
226
  killByPidFile(path.join(tunnelDir, "tailscale.pid"));
233
227
  }
@@ -379,7 +373,7 @@ function waitForExit(pid, timeoutMs) {
379
373
  // Sends SIGTERM first so MIT can clean up host entries before dying.
380
374
  function killProxyByPidFile() {
381
375
  try {
382
- const pidFile = path.join(getAppDataDir(), "mitm", ".mitm.pid");
376
+ const pidFile = path.join(getDataDir(), "mitm", ".mitm.pid");
383
377
  if (!fs.existsSync(pidFile)) return;
384
378
  const pid = parseInt(fs.readFileSync(pidFile, "utf8").trim(), 10);
385
379
  if (!pid) return;
@@ -703,11 +697,12 @@ function startServer(updatePromise) {
703
697
  setTimeout(() => process.exit(0), 100);
704
698
  });
705
699
 
706
- // Initialize tray icon (runs alongside TUI)
700
+ // Initialize tray icon (runs alongside TUI). Returns false on headless sessions
701
+ // (e.g. Linux without a display server) so callers can explain the real state.
707
702
  const initTrayIcon = () => {
708
703
  try {
709
704
  const { initTray } = require("./src/cli/tray/tray");
710
- initTray({
705
+ return initTray({
711
706
  port,
712
707
  onQuit: () => {
713
708
  isShuttingDown = true;
@@ -718,7 +713,7 @@ function startServer(updatePromise) {
718
713
  onOpenDashboard: () => openBrowser(url)
719
714
  });
720
715
  } catch (err) {
721
- // Tray not available - continue without it
716
+ return false;
722
717
  }
723
718
  };
724
719
 
@@ -732,9 +727,13 @@ function startServer(updatePromise) {
732
727
  console.log(`Server: http://${displayHost}:${port}`);
733
728
 
734
729
  waitServerReady(port).then(() => {
735
- initTrayIcon();
736
- console.log("\n💡 Router is now running in system tray. Close this terminal if you want.");
737
- console.log(" Right-click tray icon to open dashboard or quit.\n");
730
+ const tray = initTrayIcon();
731
+ console.log(tray
732
+ ? "\n💡 Router is now running in system tray. Close this terminal if you want."
733
+ : "\n💡 Router is running headless (no system tray on this session).");
734
+ console.log(tray
735
+ ? " Right-click tray icon to open dashboard or quit.\n"
736
+ : ` Open the dashboard in a browser, or stop it with: 9router-proxy stop\n`);
738
737
  });
739
738
 
740
739
  return;
@@ -745,7 +744,7 @@ function startServer(updatePromise) {
745
744
  // Resolve parallel update check (already running); don't block server start on it.
746
745
  const latestVersion = await latestVersionPromise;
747
746
  // Start tray icon alongside TUI
748
- initTrayIcon();
747
+ const trayActive = !!initTrayIcon();
749
748
 
750
749
  try {
751
750
  while (true) {
@@ -778,9 +777,10 @@ function startServer(updatePromise) {
778
777
  clearScreen();
779
778
 
780
779
  // Enable auto startup on OS boot
780
+ let autostartOk = false;
781
781
  try {
782
782
  const { enableAutoStart } = require("./src/cli/tray/autostart");
783
- enableAutoStart(__filename);
783
+ autostartOk = enableAutoStart(__filename) !== false;
784
784
  } catch (e) { }
785
785
 
786
786
  if (process.platform === "darwin") {
@@ -798,8 +798,15 @@ function startServer(updatePromise) {
798
798
  return;
799
799
  }
800
800
 
801
- // Windows/Linux: spawn detached bgProcess (systray works fine in child)
802
- console.log(`\n⏳ Starting background process... (tray icon will appear in ~3s)`);
801
+ if (!trayActive) {
802
+ // No tray session available (e.g. headless Linux): still keep the
803
+ // server alive in the background, but say so instead of pointing
804
+ // at an icon that will never appear.
805
+ console.log(`\n⏳ Starting background process... (no system tray in this session)`);
806
+ } else {
807
+ // Windows/Linux: spawn detached bgProcess (systray works fine in child)
808
+ console.log(`\n⏳ Starting background process... (tray icon will appear in ~3s)`);
809
+ }
803
810
 
804
811
  const bgProcess = spawn(process.execPath, ["--dns-result-order=ipv4first", __filename, "--tray", "--skip-update", "-p", port.toString()], {
805
812
  detached: true,
@@ -811,7 +818,14 @@ function startServer(updatePromise) {
811
818
 
812
819
  console.log(`🔔 9Router is now running in background (PID: ${bgProcess.pid})`);
813
820
  console.log(` Server: http://${displayHost}:${port}`);
814
- console.log(`\n💡 You can close this terminal. Right-click tray icon to quit.\n`);
821
+ if (trayActive) {
822
+ console.log(`\n💡 You can close this terminal. Right-click tray icon to quit.\n`);
823
+ } else {
824
+ console.log(`\n💡 You can close this terminal. Stop the server with: 9router-proxy stop\n`);
825
+ }
826
+ if (!autostartOk) {
827
+ console.log(`⚠️ Could not enable auto-start — it needs a desktop login session.\n`);
828
+ }
815
829
 
816
830
  // cleanup() kills server so bgProcess can claim the port fresh
817
831
  cleanup();
@@ -854,7 +868,7 @@ function startServer(updatePromise) {
854
868
  if (restartCount >= MAX_RESTARTS) {
855
869
  console.error(`\n⚠️ Server crashed ${MAX_RESTARTS} times. Disabling MIT and restarting...`);
856
870
  try {
857
- const dbPath = path.join(os.homedir(), process.platform === "win32" ? path.join("AppData", "Roaming", "9router", "db.json") : path.join(".9router", "db.json"));
871
+ const dbPath = path.join(getDataDir(), "db.json");
858
872
  if (fs.existsSync(dbPath)) {
859
873
  const db = JSON.parse(fs.readFileSync(dbPath, "utf-8"));
860
874
  if (db.settings) db.settings.mitmEnabled = false;
@@ -3,8 +3,8 @@
3
3
  // sql.js is bundled in bin/app already; node:sqlite / bun:sqlite are built-in.
4
4
  const { execSync, spawnSync } = require("child_process");
5
5
  const fs = require("fs");
6
- const os = require("os");
7
6
  const path = require("path");
7
+ const { getDataDir } = require("../src/cli/utils/dataDir");
8
8
 
9
9
  // Gate the pinned version by Node major, mirroring src/lib/db/driver.js gating
10
10
  // style: 13.x is N-API and ships per-platform prebuilds inside the package, so
@@ -15,13 +15,6 @@ const USE_NAPI_BUILD = NODE_MAJOR >= 22;
15
15
  const BETTER_SQLITE3_VERSION = USE_NAPI_BUILD ? "13.0.3" : "12.6.2";
16
16
  const SQL_JS_VERSION = "1.14.1";
17
17
 
18
- function getDataDir() {
19
- if (process.env.DATA_DIR) return process.env.DATA_DIR;
20
- return process.platform === "win32"
21
- ? path.join(process.env.APPDATA || os.homedir(), "9router")
22
- : path.join(os.homedir(), ".9router");
23
- }
24
-
25
18
  function getRuntimeDir() {
26
19
  return path.join(getDataDir(), "runtime");
27
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "9router-proxy",
3
- "version": "0.5.82",
3
+ "version": "0.5.84",
4
4
  "description": "9Router CLI - Start and manage 9Router server",
5
5
  "bin": {
6
6
  "9router-proxy": "./cli.js"
@@ -17,7 +17,7 @@
17
17
  "dev": "nodemon -I --watch cli.js --watch src --watch hooks --ext js,json cli.js",
18
18
  "build": "node scripts/build-cli.js",
19
19
  "pack:cli": "npm run build && npm pack --pack-destination ..",
20
- "publish:cli": "npm run build && npm publish",
20
+ "publish:cli": "npm publish",
21
21
  "postinstall": "node hooks/postinstall.js",
22
22
  "prepublishOnly": "npm run build"
23
23
  },
@@ -3,7 +3,6 @@ const https = require("https");
3
3
  const crypto = require("crypto");
4
4
  const fs = require("node:fs");
5
5
  const path = require("node:path");
6
- const os = require("node:os");
7
6
  const { machineIdSync } = require("node-machine-id");
8
7
 
9
8
  // Default configuration
@@ -15,15 +14,7 @@ const DEFAULT_CONFIG = {
15
14
 
16
15
  const CLI_TOKEN_HEADER = "x-9r-cli-token";
17
16
  const CLI_TOKEN_SALT = "9r-cli-auth";
18
- const APP_NAME = "9router";
19
-
20
- function getDataDir() {
21
- if (process.env.DATA_DIR) return process.env.DATA_DIR;
22
- if (process.platform === "win32") {
23
- return path.join(process.env.APPDATA || path.join(os.homedir(), "AppData", "Roaming"), APP_NAME);
24
- }
25
- return path.join(os.homedir(), `.${APP_NAME}`);
26
- }
17
+ const { getDataDir } = require("../utils/dataDir");
27
18
 
28
19
  const MACHINE_ID_FILE = path.join(getDataDir(), "machine-id");
29
20
  const AUTH_DIR = path.join(getDataDir(), "auth");
@@ -4,8 +4,8 @@
4
4
  const path = require("path");
5
5
  const fs = require("fs");
6
6
  const net = require("net");
7
- const os = require("os");
8
7
  const { spawn, execSync } = require("child_process");
8
+ const { getDataDir } = require("../utils/dataDir");
9
9
  const pkg = require("../../../package.json");
10
10
 
11
11
  const DEFAULT_PORT = 20128;
@@ -15,14 +15,9 @@ const standaloneDir = path.join(cliRoot, "app");
15
15
  const customServerPath = path.join(standaloneDir, "custom-server.js");
16
16
  const serverPath = fs.existsSync(customServerPath) ? customServerPath : path.join(standaloneDir, "server.js");
17
17
 
18
- function getAppDataDir() {
19
- return process.platform === "win32"
20
- ? path.join(process.env.APPDATA || "", "9router")
21
- : path.join(os.homedir(), ".9router");
22
- }
23
-
24
- const pidFile = path.join(getAppDataDir(), "server.pid");
25
- const logFile = path.join(getAppDataDir(), "server.log");
18
+ const APP_DATA_DIR = getDataDir();
19
+ const pidFile = path.join(APP_DATA_DIR, "server.pid");
20
+ const logFile = path.join(APP_DATA_DIR, "server.log");
26
21
 
27
22
  function parseOpts(argv) {
28
23
  const opts = { port: DEFAULT_PORT, host: DEFAULT_HOST, help: false };
@@ -53,17 +48,31 @@ function isAlive(pid) {
53
48
  }
54
49
 
55
50
  // Guard against PID reuse: the recorded PID must look like our server process.
56
- function isOurServer(pid) {
57
- if (!isAlive(pid)) return false;
58
- if (process.platform === "win32") return true;
51
+ // Windows has no `ps`; CIM is the only way to read another process' command line,
52
+ // and without it a recycled PID would be reported as "running".
53
+ function processCommandLine(pid) {
59
54
  try {
60
- const cmd = execSync(`ps -p ${pid} -o command=`, { encoding: "utf8", timeout: 3000 }).toLowerCase();
61
- return cmd.includes("server.js") || cmd.includes("next-server") || cmd.includes("9router");
55
+ if (process.platform === "win32") {
56
+ return execSync(
57
+ `powershell -NoProfile -NonInteractive -WindowStyle Hidden -Command "(Get-CimInstance Win32_Process -Filter 'ProcessId=${pid}').CommandLine"`,
58
+ { encoding: "utf8", timeout: 8000, windowsHide: true }
59
+ );
60
+ }
61
+ return execSync(`ps -p ${pid} -o command=`, { encoding: "utf8", timeout: 3000 });
62
62
  } catch {
63
- return false;
63
+ return "";
64
64
  }
65
65
  }
66
66
 
67
+ function isOurServer(pid) {
68
+ if (!isAlive(pid)) return false;
69
+ const cmd = processCommandLine(pid).toLowerCase();
70
+ // If CIM/powershell is unavailable, fall back to the old Windows behaviour: refusing to
71
+ // stop a live server would orphan it, which is worse than a stale-PID false positive.
72
+ if (!cmd) return process.platform === "win32";
73
+ return cmd.includes("server.js") || cmd.includes("next-server") || cmd.includes("9router");
74
+ }
75
+
67
76
  function tcpProbe(port, timeoutMs = 1000) {
68
77
  return new Promise((resolve) => {
69
78
  const socket = net.connect({ host: "127.0.0.1", port }, () => {
@@ -118,7 +127,7 @@ async function cmdStart(opts) {
118
127
 
119
128
  const { ensureSqliteRuntime, buildEnvWithRuntime } = require("../../../hooks/sqliteRuntime");
120
129
  try { ensureSqliteRuntime({ silent: true }); } catch { /* best-effort; server falls back to sql.js */ }
121
- fs.mkdirSync(getAppDataDir(), { recursive: true });
130
+ fs.mkdirSync(APP_DATA_DIR, { recursive: true });
122
131
  const fd = fs.openSync(logFile, "a");
123
132
  const child = spawn(process.execPath,
124
133
  ["--dns-result-order=ipv4first", "--max-old-space-size=6144", serverPath], {
@@ -136,7 +145,7 @@ async function cmdStart(opts) {
136
145
  if (!ready) {
137
146
  console.error(`❌ Server did not come up on port ${opts.port} within 20s. Last log lines:`);
138
147
  console.error(tailLog());
139
- try { process.kill(child.pid, "SIGKILL"); } catch { /* already dead */ }
148
+ terminateTree(child.pid, "SIGKILL");
140
149
  try { fs.unlinkSync(pidFile); } catch { /* ignore */ }
141
150
  return 1;
142
151
  }
@@ -147,6 +156,23 @@ async function cmdStart(opts) {
147
156
  return 0;
148
157
  }
149
158
 
159
+ function terminateTree(pid, signal) {
160
+ if (process.platform === "win32") {
161
+ // A detached Windows console process can't be sent SIGTERM, so taskkill is the only
162
+ // lever. /T walks the process tree — otherwise the MITM/tunnel children survive us.
163
+ const flags = signal === "SIGKILL" ? "/T /F" : "/T";
164
+ try {
165
+ execSync(`taskkill ${flags} /PID ${pid}`, { stdio: "ignore", windowsHide: true, timeout: 8000 });
166
+ } catch { /* already gone / needs /F */ }
167
+ return;
168
+ }
169
+ // start() spawns detached, so the server is its own process-group leader: signalling
170
+ // -pid tears down its children in one go. Plain pid covers the non-leader case.
171
+ for (const target of [-pid, pid]) {
172
+ try { process.kill(target, signal); } catch { /* not a group leader / already dead */ }
173
+ }
174
+ }
175
+
150
176
  function cmdStop() {
151
177
  const pid = readPid();
152
178
  if (!pid || !isOurServer(pid)) {
@@ -154,14 +180,11 @@ function cmdStop() {
154
180
  console.log("Not running.");
155
181
  return 0;
156
182
  }
157
- // SIGTERM first so the server can tear down its MITM/tunnel children.
158
- try { process.kill(pid, "SIGTERM"); } catch { /* ignore */ }
159
- try { process.kill(-pid, "SIGTERM"); } catch { /* not a group leader (win/exec) */ }
183
+ terminateTree(pid, "SIGTERM");
160
184
  let deadline = Date.now() + 5000;
161
185
  while (Date.now() < deadline && isAlive(pid)) sleepSync(100);
162
186
  if (isAlive(pid)) {
163
- try { process.kill(pid, "SIGKILL"); } catch { /* ignore */ }
164
- try { process.kill(-pid, "SIGKILL"); } catch { /* ignore */ }
187
+ terminateTree(pid, "SIGKILL");
165
188
  deadline = Date.now() + 2000;
166
189
  while (Date.now() < deadline && isAlive(pid)) sleepSync(100);
167
190
  }
@@ -216,4 +239,4 @@ async function runDaemon(verb, argv) {
216
239
  return cmdStatus(opts);
217
240
  }
218
241
 
219
- module.exports = { runDaemon, __test__: { parseOpts, pidFile, logFile, getAppDataDir } };
242
+ module.exports = { runDaemon, __test__: { parseOpts, pidFile, logFile, isOurServer, terminateTree, processCommandLine } };
@@ -318,5 +318,6 @@ function openBrowser(url) {
318
318
 
319
319
  module.exports = {
320
320
  initTray,
321
+ isTraySupported,
321
322
  killTray
322
323
  };
@@ -0,0 +1,42 @@
1
+ const fs = require("fs");
2
+ const path = require("path");
3
+ const os = require("os");
4
+
5
+ const APP_NAME = "9router";
6
+
7
+ function defaultDir() {
8
+ if (process.platform === "win32") {
9
+ return path.join(process.env.APPDATA || path.join(os.homedir(), "AppData", "Roaming"), APP_NAME);
10
+ }
11
+ return path.join(os.homedir(), `.${APP_NAME}`);
12
+ }
13
+
14
+ /**
15
+ * Resolve the writable data directory. Mirrors src/lib/dataDir.js (app side) —
16
+ * keep both in sync; the CLI cannot import ESM from the Next app bundle.
17
+ */
18
+ function getDataDir() {
19
+ const configured = process.env.DATA_DIR;
20
+ if (!configured) return defaultDir();
21
+
22
+ // A Unix-style DATA_DIR from a Linux/Docker .env is meaningless on Windows.
23
+ if (process.platform === "win32" && /^\//.test(configured)) {
24
+ console.warn(`[DATA_DIR] '${configured}' is a Unix path on Windows → fallback to default`);
25
+ return defaultDir();
26
+ }
27
+
28
+ try {
29
+ fs.mkdirSync(configured, { recursive: true });
30
+ return configured;
31
+ } catch (e) {
32
+ // Unlike the app-side copy this never throws: the CLI also runs from
33
+ // postinstall, where failing the whole npm install over a bad DATA_DIR
34
+ // would be far worse than falling back.
35
+ console.warn(`[DATA_DIR] '${configured}' unusable (${e?.code || e}) → fallback ~/${APP_NAME}`);
36
+ return defaultDir();
37
+ }
38
+ }
39
+
40
+ const DATA_DIR = getDataDir();
41
+
42
+ module.exports = { APP_NAME, DATA_DIR, getDataDir };
@@ -1 +0,0 @@
1
- exports.id=3332,exports.ids=[3332],exports.modules={962:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/McpMarketplaceModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/McpMarketplaceModal.js","default")},2422:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/UsageStats.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/UsageStats.js","default")},3080:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/OAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/OAuthModal.js","default")},4996:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/CapacityBadges.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/CapacityBadges.js","default")},5843:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/NoAuthProxyCard.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/NoAuthProxyCard.js","default")},7290:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Card.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Card.js","default")},10079:(a,b,c)=>{"use strict";c.d(b,{ConfirmModal:()=>f,default:()=>e});var d=c(77943);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Modal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Modal.js","default"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call ConfirmModal() from the server but ConfirmModal is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Modal.js","ConfirmModal")},14285:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/KiroOAuthWrapper.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/KiroOAuthWrapper.js","default")},15871:(a,b,c)=>{Promise.resolve().then(c.bind(c,18200)),Promise.resolve().then(c.bind(c,70061)),Promise.resolve().then(c.bind(c,33893)),Promise.resolve().then(c.bind(c,45512)),Promise.resolve().then(c.bind(c,4996)),Promise.resolve().then(c.bind(c,7290)),Promise.resolve().then(c.bind(c,33811)),Promise.resolve().then(c.bind(c,20493)),Promise.resolve().then(c.bind(c,40167)),Promise.resolve().then(c.bind(c,70139)),Promise.resolve().then(c.bind(c,49123)),Promise.resolve().then(c.bind(c,64148)),Promise.resolve().then(c.bind(c,92669)),Promise.resolve().then(c.bind(c,29354)),Promise.resolve().then(c.bind(c,80342)),Promise.resolve().then(c.bind(c,71230)),Promise.resolve().then(c.bind(c,82448)),Promise.resolve().then(c.bind(c,14285)),Promise.resolve().then(c.bind(c,87228)),Promise.resolve().then(c.bind(c,45205)),Promise.resolve().then(c.bind(c,64420)),Promise.resolve().then(c.bind(c,61780)),Promise.resolve().then(c.bind(c,92082)),Promise.resolve().then(c.bind(c,70603)),Promise.resolve().then(c.bind(c,962)),Promise.resolve().then(c.bind(c,10079)),Promise.resolve().then(c.bind(c,94582)),Promise.resolve().then(c.bind(c,29674)),Promise.resolve().then(c.bind(c,5843)),Promise.resolve().then(c.bind(c,3080)),Promise.resolve().then(c.bind(c,81923)),Promise.resolve().then(c.bind(c,19083)),Promise.resolve().then(c.bind(c,54065)),Promise.resolve().then(c.bind(c,83784)),Promise.resolve().then(c.bind(c,26866)),Promise.resolve().then(c.bind(c,89886)),Promise.resolve().then(c.bind(c,40515)),Promise.resolve().then(c.bind(c,70092)),Promise.resolve().then(c.bind(c,18421)),Promise.resolve().then(c.bind(c,2422)),Promise.resolve().then(c.bind(c,18060))},18060:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/XiaomiMimoAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/XiaomiMimoAuthModal.js","default")},18200:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/AddCustomEmbeddingModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/AddCustomEmbeddingModal.js","default")},18421:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Tooltip.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Tooltip.js","default")},19083:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/RequestLogger.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/RequestLogger.js","default")},20493:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/ComboFormModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/ComboFormModal.js","default")},26866:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Sidebar.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Sidebar.js","default")},29354:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/HeaderMenu.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/HeaderMenu.js","default")},29674:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/NineRemoteButton.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/NineRemoteButton.js","default")},30508:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(5735);c(45512),c(71230),c(83784),c(7290),c(10079),c(92082),c(70061),c(33893),c(70092),c(40515),c(89886),c(26866),c(92669),c(49123),c(3080),c(94582),c(70603),c(20493),c(962),c(2422),c(45205),c(29674),c(29354),c(33811),c(19083),c(82448),c(14285),c(87228),c(40167),c(18060),c(80342),c(64148),c(70139),c(18200),c(5843),c(54065),c(18421),c(81923),c(4996);var e=c(61780);function f({children:a}){return(0,d.jsx)(e.default,{children:a})}c(64420)},33811:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/ChangelogModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/ChangelogModal.js","default")},33893:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Badge.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Badge.js","default")},40167:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/CursorAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/CursorAuthModal.js","default")},40515:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/ThemeToggle.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/ThemeToggle.js","default")},45205:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/LanguageSwitcher.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/LanguageSwitcher.js","default")},45512:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Button.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Button.js","default")},49123:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Footer.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Footer.js","default")},52823:(a,b,c)=>{Promise.resolve().then(c.bind(c,67738)),Promise.resolve().then(c.bind(c,25919)),Promise.resolve().then(c.bind(c,75171)),Promise.resolve().then(c.bind(c,99070)),Promise.resolve().then(c.bind(c,38930)),Promise.resolve().then(c.bind(c,17660)),Promise.resolve().then(c.bind(c,54510)),Promise.resolve().then(c.bind(c,62727)),Promise.resolve().then(c.bind(c,51109)),Promise.resolve().then(c.bind(c,51585)),Promise.resolve().then(c.bind(c,48781)),Promise.resolve().then(c.bind(c,43182)),Promise.resolve().then(c.bind(c,47036)),Promise.resolve().then(c.bind(c,3236)),Promise.resolve().then(c.bind(c,79488)),Promise.resolve().then(c.bind(c,83552)),Promise.resolve().then(c.bind(c,8590)),Promise.resolve().then(c.bind(c,5291)),Promise.resolve().then(c.bind(c,56110)),Promise.resolve().then(c.bind(c,267)),Promise.resolve().then(c.bind(c,53838)),Promise.resolve().then(c.bind(c,85306)),Promise.resolve().then(c.bind(c,74812)),Promise.resolve().then(c.bind(c,39645)),Promise.resolve().then(c.bind(c,20084)),Promise.resolve().then(c.bind(c,95145)),Promise.resolve().then(c.bind(c,83352)),Promise.resolve().then(c.bind(c,23048)),Promise.resolve().then(c.bind(c,50585)),Promise.resolve().then(c.bind(c,79346)),Promise.resolve().then(c.bind(c,11633)),Promise.resolve().then(c.bind(c,91809)),Promise.resolve().then(c.bind(c,91099)),Promise.resolve().then(c.bind(c,4770)),Promise.resolve().then(c.bind(c,42196)),Promise.resolve().then(c.bind(c,19308)),Promise.resolve().then(c.bind(c,53845)),Promise.resolve().then(c.bind(c,95514)),Promise.resolve().then(c.bind(c,32971)),Promise.resolve().then(c.bind(c,59026)),Promise.resolve().then(c.bind(c,24622))},54065:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/SegmentedControl.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/SegmentedControl.js","default")},61780:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/layouts/DashboardLayout.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/layouts/DashboardLayout.js","default")},64148:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/GitLabAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/GitLabAuthModal.js","default")},64420:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/layouts/AuthLayout.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/layouts/AuthLayout.js","default")},70061:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Avatar.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Avatar.js","default")},70092:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Toggle.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Toggle.js","default")},70139:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/EditConnectionModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/EditConnectionModal.js","default")},70603:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/ManualConfigModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/ManualConfigModal.js","default")},71230:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Input.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Input.js","default")},80342:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/IFlowCookieModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/IFlowCookieModal.js","default")},81923:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/ProviderInfoCard.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/ProviderInfoCard.js","default")},82448:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/KiroAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/KiroAuthModal.js","default")},83784:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Select.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Select.js","default")},87228:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/KiroSocialOAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/KiroSocialOAuthModal.js","default")},92082:(a,b,c)=>{"use strict";c.d(b,{CardSkeleton:()=>h,PageLoading:()=>f,Skeleton:()=>g,Spinner:()=>e,default:()=>i});var d=c(77943);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call Spinner() from the server but Spinner is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Loading.js","Spinner"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call PageLoading() from the server but PageLoading is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Loading.js","PageLoading"),g=(0,d.registerClientReference)(function(){throw Error("Attempted to call Skeleton() from the server but Skeleton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Loading.js","Skeleton"),h=(0,d.registerClientReference)(function(){throw Error("Attempted to call CardSkeleton() from the server but CardSkeleton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Loading.js","CardSkeleton"),i=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Loading.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Loading.js","default")},92669:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/Header.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/Header.js","default")},94582:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/shared/components/ModelSelectModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/shared/components/ModelSelectModal.js","default")}};
@@ -1,3 +0,0 @@
1
- exports.id=3956,exports.ids=[3956],exports.modules={362:(a,b,c)=>{Promise.resolve().then(c.bind(c,51747))},51747:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/xuliang/Documents/project/9router/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/xuliang/Documents/project/9router/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js","default")},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.n,"machine-id"),m=h().join(k.n,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.n,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="9r-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},63410:(a,b,c)=>{Promise.resolve().then(c.bind(c,69232))},67960:(a,b,c)=>{"use strict";c.d(b,{Cp:()=>g,Hx:()=>f,Iv:()=>k,Nv:()=>m,RL:()=>j,ev:()=>l,fl:()=>h,hT:()=>d,oX:()=>e,t6:()=>i});let d=["zh-CN","zh-TW"],e=[{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"}],f=2e3,g=3e5,h=5e3,i=5,j=1e4,k=5e3,l=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}],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"}]},69232:(a,b,c)=>{"use strict";c.d(b,{default:()=>o});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412),i=c(50377),j=c(67960);function k({label:a,url:b,copyId:c,copied:e,onCopy:f,badge:g,actions:i}){return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${"CF"===g||"TS"===g?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:a}),(0,d.jsx)(h.pd,{value:b,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>f(b,c),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:e===c?"check":"content_copy"})}),i]})}function l({status:a,className:b=""}){return(0,d.jsx)("div",{className:`p-2 rounded text-sm ${b} ${"success"===a.type?"bg-green-500/10 text-green-600 dark:text-green-400":"warning"===a.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"info"===a.type?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-red-500/10 text-red-600 dark:text-red-400"}`,children:a.message.split(/(https?:\/\/[^\s]+)/g).map((a,b)=>/^https?:\/\//.test(a)?(0,d.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:a},b):a)})}function m({text:a}){return(0,d.jsxs)("span",{className:"relative group inline-flex items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted cursor-help",children:"help"}),(0,d.jsx)("span",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 z-50 w-64 rounded bg-gray-900 dark:bg-gray-800 text-white text-xs px-2.5 py-1.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",children:a})]})}function n({message:a,action:b}){return(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] shrink-0 mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"text-xs flex-1",children:a}),b&&(0,d.jsx)("a",{href:b.href,className:"text-xs font-medium underline shrink-0 hover:opacity-80",onClick:b.href.startsWith("#")?a=>{a.preventDefault(),document.getElementById(b.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:b.label})]})}function o({machineId:a}){let[b,c]=(0,e.useState)([]),[f,g]=(0,e.useState)(!0),[p,q]=(0,e.useState)(!1),[r,s]=(0,e.useState)(""),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(null),[x,y]=(0,e.useState)(!1),[z,A]=(0,e.useState)(!0),[B,C]=(0,e.useState)(!0),[D,E]=(0,e.useState)(!1),[F,G]=(0,e.useState)(!0),[H,I]=(0,e.useState)(!1),[J,K]=(0,e.useState)(!1),[L,M]=(0,e.useState)(""),[N,O]=(0,e.useState)(""),[P,Q]=(0,e.useState)(!1),[R,S]=(0,e.useState)(""),[T,U]=(0,e.useState)(null),[V,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(!1),[Z,$]=(0,e.useState)(!1),[_,aa]=(0,e.useState)(!1),[ab,ac]=(0,e.useState)(""),[ad,ae]=(0,e.useState)(!1),[af,ag]=(0,e.useState)(""),[ah,ai]=(0,e.useState)(null),[aj,ak]=(0,e.useState)(""),[al,am]=(0,e.useState)(""),[an,ao]=(0,e.useState)(null),[ap,aq]=(0,e.useState)(!1),[ar,as]=(0,e.useState)([]),[at,au]=(0,e.useState)(""),[av,aw]=(0,e.useState)(!1),[ax,ay]=(0,e.useState)(!1),[az,aA]=(0,e.useState)(!1),aB=(0,e.useRef)(null);(0,e.useRef)(0),(0,e.useRef)(0),(0,e.useRef)(!1),(0,e.useRef)(!1),(0,e.useRef)(!1),(0,e.useRef)(!1);let[aC,aD]=(0,e.useState)(!1),[aE,aF]=(0,e.useState)(!1),[aG,aH]=(0,e.useState)(new Set),[aI,aJ]=(0,e.useState)(!1),{copied:aK,copy:aL}=(0,i.C)(),aM=!z||!B,aN=z?"Change the default dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,e.useCallback)((a,b,c,d,e,f)=>{b.current?(c.current=0,d(!0),e.current||(e.current=!0,f(!0))):(c.current+=1,c.current>=j.t6&&d(!1))},[]);let aO=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tunnelDashboardAccess:a})})).ok&&E(a)}catch(a){console.log("Error updating tunnelDashboardAccess:",a)}},aP=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireApiKey:a})})).ok&&y(a)}catch(a){console.log("Error updating requireApiKey:",a)}},aQ=async()=>{try{let a=async()=>{let a=await fetch("/api/keys");return a.ok&&(await a.json()).keys||[]},b=await a();if(0===b.length)try{(await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"Default Key"})})).ok&&(b=await a())}catch{}c(b)}catch(a){console.log("Error fetching data:",a)}finally{g(!1)}},aR=async(...a)=>{Q(!0),S("Waiting for tunnel ready...");let b=a.filter(Boolean).map(a=>`${a}/api/health`),c=Date.now();for(;Date.now()-c<j.Cp;){if(await new Promise(a=>setTimeout(a,j.Hx)),await Promise.any(b.map(async a=>{if((await fetch(a,{mode:"cors",cache:"no-store"})).ok)return!0;throw Error("not ready")})).catch(()=>!1))return I(!0),Q(!1),S(""),!0;if((Date.now()-c)%1e4<j.Hx)try{let a=await fetch("/api/tunnel/status");if(a.ok){let b=await a.json();if(!b.tunnel?.enabled)return U({type:"error",message:"Tunnel process stopped unexpectedly."}),Q(!1),S(""),!1}}catch{}}return U({type:"error",message:"Tunnel created but not reachable. Please try again."}),Q(!1),S(""),!1},aS=async()=>{W(!1),Q(!0),U(null),S("Creating tunnel...");let a=!0;(async()=>{for(;a;){try{let b=await fetch("/api/tunnel/status");if(b.ok){let c=await b.json();c.download?.downloading?S(`Downloading cloudflared... ${c.download.progress}%`):a&&S("Creating tunnel...")}}catch{}await new Promise(a=>setTimeout(a,1e3))}})();try{let b=await fetch("/api/tunnel/enable",{method:"POST"});a=!1;let c=await b.json();if(!b.ok)return void U({type:"error",message:c.error||"Failed to enable tunnel"});let d=c.tunnelUrl;if(!d)return void U({type:"error",message:"No tunnel URL returned"});M(d),O(c.publicUrl||""),await aR(c.publicUrl,d)}catch(a){U({type:"error",message:a.message})}finally{a=!1,Q(!1),S("")}},aT=async()=>{Q(!0),U(null);try{let a=await fetch("/api/tunnel/disable",{method:"POST"}),b=await a.json();a.ok?(I(!1),M(""),Y(!1),U({type:"success",message:"Tunnel disabled"})):U({type:"error",message:b.error||"Failed to disable tunnel"})}catch(a){U({type:"error",message:a.message})}finally{Q(!1)}},aU=async()=>{ao(null);try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok){let b=await a.json();return ao(b.installed),b}}catch{}return ao(!1),{installed:!1}},aV=async()=>{aq(!0),ai(null),as([]);try{let a=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:at})});au("");let b=a.body.getReader(),c=new TextDecoder,d="";for(;;){let{done:a,value:e}=await b.read();if(a)break;let f=(d+=c.decode(e,{stream:!0})).split("\n\n");for(let a of(d=f.pop()||"",f)){let b=a.split("\n"),c="progress",d=null;for(let a of b)if(a.startsWith("event: ")&&(c=a.slice(7).trim()),a.startsWith("data: "))try{d=JSON.parse(a.slice(6))}catch{}if(d)if("progress"===c)as(a=>[...a.slice(-50),d.message]);else if("done"===c){ao(!0),aq(!1),ay(!1),aZ();return}else"error"===c&&ai({type:"error",message:d.error||"Install failed"})}}}catch(a){ai({type:"error",message:a.message})}finally{aq(!1)}},aW=async a=>{ag("Waiting for Tailscale ready...");let b=`${a}/api/health`,c=Date.now();for(;Date.now()-c<j.Cp;){await new Promise(a=>setTimeout(a,j.Hx));try{let a=await fetch(b,{mode:"no-cors",cache:"no-store"});if(a.ok||"opaque"===a.type)return!0}catch{}}return!1},aX=(a,b)=>{ak(a),am(b)},aY=()=>{ak(""),am("")},aZ=async()=>{ay(!1),aw(!0),ae(!0),ai(null),ag("Connecting..."),aY();try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){ac(b.tunnelUrl||"");let a=await aW(b.tunnelUrl);$(!0),ai(a?null:{type:"warning",message:"Connected but not reachable yet."});return}if(b.needsLogin&&b.authUrl){aX(b.authUrl,"Open Login Page"),ag('Login required — click "Open Login Page" to continue');for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok&&(await a.json()).loggedIn){aY(),ag("Starting funnel...");let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){ac(b.tunnelUrl||"");let a=await aW(b.tunnelUrl);$(!0),ai(a?null:{type:"warning",message:"Connected but not reachable yet."})}else b.funnelNotEnabled&&b.enableUrl?await a$(b.enableUrl):ai({type:"error",message:b.error||"Failed to start funnel"});return}}catch{}}aY(),ai({type:"error",message:"Login timed out. Please try again."});return}if(b.funnelNotEnabled&&b.enableUrl)return void await a$(b.enableUrl);ai({type:"error",message:b.error||"Failed to connect"})}catch(a){ai({type:"error",message:a.message})}finally{ae(!1),aw(!1),ag(""),aY()}},a$=async a=>{aX(a,"Open Funnel Settings"),ag('Click "Open Funnel Settings" to enable Funnel...');for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){aY(),ac(b.tunnelUrl||"");let a=await aW(b.tunnelUrl);$(!0),ai(a?null:{type:"warning",message:"Connected but not reachable yet."});return}if(b.funnelNotEnabled)continue;if(b.error){aY(),ai({type:"error",message:b.error});return}}catch{}}aY(),ai({type:"error",message:"Timed out waiting for Funnel to be enabled."})},a_=async()=>{ae(!0),ai(null);try{let a=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),b=await a.json();a.ok?($(!1),ac(""),aA(!1),ai({type:"success",message:"Tailscale disabled"})):ai({type:"error",message:b.error||"Failed to disable Tailscale"})}catch(a){ai({type:"error",message:a.message})}finally{ae(!1)}},a0=async()=>{ai(null),as([]);let a=await aU();a?.installed&&a?.hasCachedPassword?aZ():ay(!0)},a1=async()=>{if(r.trim())try{let a=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r})}),b=await a.json();a.ok&&(u(b.key),await aQ(),s(""),q(!1))}catch(a){console.log("Error creating key:",a)}},a2=async a=>{w({title:"Delete API Key",message:"Delete this API key?",onConfirm:async()=>{w(null);try{(await fetch(`/api/keys/${a}`,{method:"DELETE"})).ok&&(c(b.filter(b=>b.id!==a)),aH(b=>{let c=new Set(b);return c.delete(a),c}))}catch(a){console.log("Error deleting key:",a)}}})},a3=async(a,b)=>{try{(await fetch(`/api/keys/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&c(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error toggling key:",a)}},[a4,a5]=(0,e.useState)("/v1");return f?(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(h.Qv,{}),(0,d.jsx)(h.Qv,{})]}):(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsxs)(h.Zp,{children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"api"}),"API Endpoint"]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsx)(k,{label:"Local",url:a4,copyId:"local_url",copied:aK,onCopy:aL}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${H?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tunnel"}),H&&!P&&J?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.pd,{value:`${N||L}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>aL(`${N||L}/v1`,"tunnel_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tunnel_url"===aK?"check":"content_copy"})}),(0,d.jsx)("button",{onClick:()=>Y(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!H||P||J?P?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),R||"Creating tunnel..."]}),(0,d.jsx)("button",{onClick:()=>{Q(!1),S("")},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):T?.type==="error"?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),T.message]}),(0,d.jsx)(h.$n,{size:"sm",icon:"cloud_upload",onClick:()=>W(!0),children:"Enable"})]}):F?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),(0,d.jsx)("button",{onClick:()=>G(!1),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):(0,d.jsx)(h.$n,{size:"sm",icon:"cloud_upload",onClick:()=>{aM?U({type:"error",message:`Security required: ${aN}`}):x?W(!0):U({type:"error",message:'Security required: Enable "Require API key" before activating the tunnel.'})},children:"Enable"}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),aC?"Tunnel reconnecting...":"Tunnel checking..."]}),(0,d.jsx)("button",{onClick:()=>Y(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${Z?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tailscale"}),Z&&!ad&&_?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.pd,{value:`${ab}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>aL(`${ab}/v1`,"ts_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"ts_url"===aK?"check":"content_copy"})}),(0,d.jsx)("button",{onClick:()=>aA(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!Z||ad||_?ad||av?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),af||"Connecting..."]}),aj&&(0,d.jsx)(h.$n,{size:"sm",icon:"open_in_new",onClick:()=>window.open(aj,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:al||"Open"}),(0,d.jsx)("button",{onClick:()=>{ae(!1),aw(!1),ag(""),aY()},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):ah?.type==="error"?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),ah.message]}),(0,d.jsx)(h.$n,{size:"sm",icon:"vpn_lock",onClick:a0,children:"Enable"})]}):(0,d.jsx)(h.$n,{size:"sm",icon:"vpn_lock",onClick:()=>{aM?ai({type:"error",message:`Security required: ${aN}`}):a0()},className:"bg-linear-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600 text-white!",children:"Enable"}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),aE?"Tailscale reconnecting...":"Tailscale checking..."]}),(0,d.jsx)("button",{onClick:()=>aA(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]})]}),aM&&!H&&!Z&&(0,d.jsx)("div",{className:"mt-4",children:(0,d.jsx)(n,{message:aN,action:{label:"Open settings",href:"/dashboard/profile"}})}),(H||Z)&&(0,d.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!x&&(0,d.jsx)(n,{message:"Require API key is disabled — your endpoint is publicly accessible without authentication.",action:{label:"Enable",href:"#require-api-key"}}),(!z||!B)&&(0,d.jsx)(n,{message:z?"Dashboard uses the default password — change it in Profile settings.":"Require login is disabled — anyone can access your dashboard via tunnel.",action:{label:z?"Change password":"Enable",href:"/dashboard/profile"}})]}),(H||Z)&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-3",children:[(0,d.jsx)(h.lM,{checked:D,onChange:()=>aO(!D)}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("p",{className:"font-medium text-sm",children:"Allow dashboard access via tunnel"}),(0,d.jsx)(m,{text:"When enabled, the dashboard can be accessed through your tunnel or Tailscale URL (login still required). When disabled, dashboard access via tunnel/Tailscale is completely blocked."})]})]})]}),(0,d.jsxs)(h.Zp,{id:"require-api-key",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"vpn_key"}),"API Keys"]}),(0,d.jsx)(h.$n,{icon:"add",onClick:()=>q(!0),children:"Create Key"})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-4 border-b border-border",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-medium",children:"Require API key"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Requests without a valid key will be rejected"})]}),(0,d.jsx)(h.lM,{checked:x,onChange:()=>aP(!x)})]}),aI&&!x&&(0,d.jsx)("div",{className:"mb-4 -mt-2",children:(0,d.jsx)(n,{message:"Endpoint is exposed without an API key."})}),0===b.length?(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"vpn_key"})}),(0,d.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No API keys yet"}),(0,d.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create your first API key to get started"}),(0,d.jsx)(h.$n,{icon:"add",onClick:()=>q(!0),children:"Create Key"})]}):(0,d.jsx)("div",{className:"flex flex-col",children:b.map(a=>{var b;return(0,d.jsxs)("div",{className:`group flex items-center justify-between py-3 border-b border-black/[0.03] dark:border-white/[0.03] last:border-b-0 ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:a.name}),(0,d.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono",children:aG.has(a.id)?a.key:(b=a.key)&&!(b.length<=10)?b.slice(0,6)+"•".repeat(b.length-10)+b.slice(-4):b||""}),(0,d.jsx)("button",{onClick:()=>{var b;return b=a.id,void aH(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-all",title:aG.has(a.id)?"Hide key":"Show key",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aG.has(a.id)?"visibility_off":"visibility"})}),(0,d.jsx)("button",{onClick:()=>aL(a.key,a.id),className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-all",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aK===a.id?"check":"content_copy"})})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Created ",new Date(a.createdAt).toLocaleDateString()]}),!1===a.isActive&&(0,d.jsx)("p",{className:"text-xs text-orange-500 mt-1",children:"Paused"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(h.lM,{size:"sm",checked:a.isActive??!0,onChange:b=>{a.isActive&&!b?w({title:"Pause API Key",message:`Pause API key "${a.name}"?
2
-
3
- This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{w(null),a3(a.id,b)}}):a3(a.id,b)},title:a.isActive?"Pause key":"Resume key"}),(0,d.jsx)("button",{onClick:()=>a2(a.id),className:"p-2 hover:bg-red-500/10 rounded text-red-500 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},a.id)})})]}),(0,d.jsx)(h.aF,{isOpen:p,title:"Create API Key",onClose:()=>{q(!1),s("")},children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(h.pd,{label:"Key Name",value:r,onChange:a=>s(a.target.value),placeholder:"Production Key"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:a1,fullWidth:!0,disabled:!r.trim(),children:"Create"}),(0,d.jsx)(h.$n,{onClick:()=>{q(!1),s("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,d.jsx)(h.aF,{isOpen:!!t,title:"API Key Created",onClose:()=>u(null),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,d.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:"Save this key now!"}),(0,d.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:"This is the only time you will see this key. Store it securely."})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.pd,{value:t||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)(h.$n,{variant:"secondary",icon:"created_key"===aK?"check":"content_copy",onClick:()=>aL(t,"created_key"),children:"created_key"===aK?"Copied!":"Copy"})]}),(0,d.jsx)(h.$n,{onClick:()=>u(null),fullWidth:!0,children:"Done"})]})}),(0,d.jsx)(h.aF,{isOpen:V,title:"Enable Tunnel",onClose:()=>W(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"cloud_upload"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:"Cloudflare Tunnel"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Expose your local 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,d.jsx)("div",{className:"grid grid-cols-2 gap-3",children:j.oX.map(a=>(0,d.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-lg bg-sidebar/50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-xl text-primary mb-1",children:a.icon}),(0,d.jsx)("p",{className:"text-xs font-semibold",children:a.title}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:a.desc})]},a.title))}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:aS,fullWidth:!0,children:"Start Tunnel"}),(0,d.jsx)(h.$n,{onClick:()=>W(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,d.jsx)(h.aF,{isOpen:X,title:"Disable Tunnel",onClose:()=>!P&&Y(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:aT,fullWidth:!0,disabled:P,variant:"danger",children:P?"Disabling...":"Disable"}),(0,d.jsx)(h.$n,{onClick:()=>Y(!1),variant:"ghost",fullWidth:!0,disabled:P,children:"Cancel"})]})]})}),(0,d.jsx)(h.aF,{isOpen:ax,title:"Tailscale Funnel",onClose:()=>{ap||(ay(!1),au(""),ai(null))},children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[null===an&&(0,d.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),!1===an&&!ap&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:aV,fullWidth:!0,children:"Install Tailscale"}),(0,d.jsx)(h.$n,{onClick:()=>ay(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),ap&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),ar.length>0&&(0,d.jsx)("div",{ref:aB,className:"bg-black/5 dark:bg-white/5 rounded p-2 max-h-40 overflow-y-auto font-mono text-xs text-text-muted",children:ar.map((a,b)=>(0,d.jsx)("div",{children:a},b))})]}),!0===an&&!ap&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:()=>aZ(),fullWidth:!0,children:"Connect"}),(0,d.jsx)(h.$n,{onClick:()=>ay(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),ah&&(0,d.jsx)(l,{status:ah})]})}),(0,d.jsx)(h.aF,{isOpen:az,title:"Disable Tailscale",onClose:()=>!ad&&aA(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:a_,fullWidth:!0,disabled:ad,variant:"danger",children:ad?"Disabling...":"Disable"}),(0,d.jsx)(h.$n,{onClick:()=>aA(!1),variant:"ghost",fullWidth:!0,disabled:ad,children:"Cancel"})]})]})}),(0,d.jsx)(h.uo,{isOpen:!!v,onClose:()=>w(null),onConfirm:v?.onConfirm,title:v?.title||"Confirm",message:v?.message,variant:"danger"})]})}o.propTypes={machineId:g().string.isRequired}},87250:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(54603);async function e(){return await (0,d.Xj)()}}};