@techysy/10router 1.2.0 → 1.3.0

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 (1181) hide show
  1. package/README.md +240 -240
  2. package/README.zh-CN.md +210 -210
  3. package/app/.next-cli-build/BUILD_ID +1 -1
  4. package/app/.next-cli-build/app-path-routes-manifest.json +18 -9
  5. package/app/.next-cli-build/build-manifest.json +3 -3
  6. package/app/.next-cli-build/prerender-manifest.json +27 -27
  7. package/app/.next-cli-build/react-loadable-manifest.json +29 -0
  8. package/app/.next-cli-build/routes-manifest.json +56 -0
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +15 -9
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  81. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  82. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  84. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  85. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  86. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  88. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  89. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  90. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  92. package/app/.next-cli-build/server/app/_not-found.html +9 -1
  93. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  94. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  95. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
  96. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  97. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +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/metadata/route.js +2 -2
  112. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/auth/status/route.js +2 -2
  118. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/auth/verify-password/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/auth/verify-password/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +26 -11
  122. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  124. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js +2 -0
  128. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js.nft.json +1 -0
  129. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route_client-reference-manifest.js +1 -0
  130. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  131. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +4 -0
  135. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -0
  136. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route_client-reference-manifest.js +1 -0
  137. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  140. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -2
  146. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  148. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  150. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  152. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  154. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +23 -9
  156. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -2
  158. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  160. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  162. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  164. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/keys/rotate/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/keys/rotate/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  196. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/network/egress-region/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/network/egress-region/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  268. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js +2 -0
  270. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js.nft.json +1 -0
  271. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route_client-reference-manifest.js +1 -0
  272. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js +2 -0
  273. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js.nft.json +1 -0
  274. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route_client-reference-manifest.js +1 -0
  275. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +42 -0
  276. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -0
  277. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route_client-reference-manifest.js +1 -0
  278. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -0
  279. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -0
  280. package/app/.next-cli-build/server/app/api/oauth/zed/import/route_client-reference-manifest.js +1 -0
  281. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  304. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  314. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  316. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  318. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  320. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  322. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  324. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  326. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  328. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  330. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  332. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  334. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  336. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/security/status/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  356. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +3 -3
  378. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -0
  380. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -0
  381. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route_client-reference-manifest.js +1 -0
  382. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  383. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  387. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js +1 -1
  389. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  391. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/usage/quotas/route.js +1 -0
  397. package/app/.next-cli-build/server/app/api/usage/quotas/route.js.nft.json +1 -0
  398. package/app/.next-cli-build/server/app/api/usage/quotas/route_client-reference-manifest.js +1 -0
  399. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  402. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  406. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  414. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  415. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  418. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  419. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  420. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  421. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  422. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  424. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  425. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  426. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  427. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  428. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  429. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  430. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  431. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  432. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  433. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  434. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  435. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  436. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  437. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  438. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  439. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -0
  440. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -0
  441. package/app/.next-cli-build/server/app/api/v1/systemone/route_client-reference-manifest.js +1 -0
  442. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  443. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  444. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  445. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  446. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  447. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  448. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  449. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  450. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  451. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  452. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  453. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  454. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  455. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  456. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  457. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  458. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  459. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  460. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  461. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  462. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  463. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  464. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  465. package/app/.next-cli-build/server/app/callback.html +9 -1
  466. package/app/.next-cli-build/server/app/callback.rsc +6 -6
  467. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
  468. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  469. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
  470. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +9 -1
  471. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +21 -19
  472. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +15 -11
  473. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +21 -19
  474. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  475. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +9 -1
  476. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +22 -20
  477. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +15 -11
  478. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +22 -20
  479. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  480. package/app/.next-cli-build/server/app/dashboard/combos.html +9 -1
  481. package/app/.next-cli-build/server/app/dashboard/combos.rsc +25 -22
  482. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +15 -11
  483. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +25 -22
  484. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  485. package/app/.next-cli-build/server/app/dashboard/endpoint.html +9 -1
  486. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +22 -20
  487. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +15 -11
  488. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +22 -20
  489. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  490. package/app/.next-cli-build/server/app/dashboard/experimental.html +9 -1
  491. package/app/.next-cli-build/server/app/dashboard/experimental.rsc +21 -19
  492. package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +15 -11
  493. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +21 -19
  494. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +2 -2
  495. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +9 -1
  496. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +25 -22
  497. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +14 -11
  498. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +25 -22
  499. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  500. package/app/.next-cli-build/server/app/dashboard/mitm.html +9 -1
  501. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +22 -19
  502. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +15 -11
  503. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +22 -19
  504. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  505. package/app/.next-cli-build/server/app/dashboard/profile.html +9 -1
  506. package/app/.next-cli-build/server/app/dashboard/profile.rsc +25 -22
  507. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +15 -11
  508. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +25 -22
  509. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  510. package/app/.next-cli-build/server/app/dashboard/providers/new.html +9 -1
  511. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +25 -22
  512. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +14 -11
  513. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +25 -22
  514. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  515. package/app/.next-cli-build/server/app/dashboard/providers.html +9 -1
  516. package/app/.next-cli-build/server/app/dashboard/providers.rsc +24 -22
  517. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +15 -11
  518. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +24 -22
  519. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  520. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +9 -1
  521. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +24 -22
  522. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +15 -11
  523. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +24 -22
  524. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  525. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +9 -1
  526. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +22 -19
  527. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +15 -11
  528. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +22 -19
  529. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  530. package/app/.next-cli-build/server/app/dashboard/quota.html +10 -2
  531. package/app/.next-cli-build/server/app/dashboard/quota.rsc +23 -20
  532. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +16 -12
  533. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +23 -20
  534. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  535. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  536. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  537. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  538. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +9 -1
  539. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
  540. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  541. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  542. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
  543. package/app/.next-cli-build/server/app/dashboard/skills.html +9 -1
  544. package/app/.next-cli-build/server/app/dashboard/skills.rsc +25 -22
  545. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +15 -11
  546. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +25 -22
  547. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  548. package/app/.next-cli-build/server/app/dashboard/token-saver.html +9 -1
  549. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +21 -19
  550. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +15 -11
  551. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +21 -19
  552. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  553. package/app/.next-cli-build/server/app/dashboard/translator.html +9 -1
  554. package/app/.next-cli-build/server/app/dashboard/translator.rsc +24 -22
  555. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +15 -11
  556. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +24 -22
  557. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  558. package/app/.next-cli-build/server/app/dashboard/usage.html +9 -1
  559. package/app/.next-cli-build/server/app/dashboard/usage.rsc +25 -22
  560. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +15 -11
  561. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +25 -22
  562. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  563. package/app/.next-cli-build/server/app/dashboard.html +9 -1
  564. package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
  565. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +15 -11
  566. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
  567. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  568. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  569. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  570. package/app/.next-cli-build/server/app/index.html +1 -1
  571. package/app/.next-cli-build/server/app/index.rsc +6 -6
  572. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
  573. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  574. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  575. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  576. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  577. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  578. package/app/.next-cli-build/server/app/landing.html +9 -1
  579. package/app/.next-cli-build/server/app/landing.rsc +7 -7
  580. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
  581. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  582. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +7 -7
  583. package/app/.next-cli-build/server/app/login/page.js +1 -1
  584. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  585. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  586. package/app/.next-cli-build/server/app/login.html +9 -1
  587. package/app/.next-cli-build/server/app/login.rsc +7 -7
  588. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
  589. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  590. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
  591. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  592. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  593. package/app/.next-cli-build/server/app/page.js +1 -1
  594. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  595. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  596. package/app/.next-cli-build/server/app-paths-manifest.json +18 -9
  597. package/app/.next-cli-build/server/chunks/1159.js +5 -3
  598. package/app/.next-cli-build/server/chunks/1219.js +4 -0
  599. package/app/.next-cli-build/server/chunks/1261.js +1 -0
  600. package/app/.next-cli-build/server/chunks/1329.js +1 -0
  601. package/app/.next-cli-build/server/chunks/1386.js +9 -0
  602. package/app/.next-cli-build/server/chunks/1710.js +6 -0
  603. package/app/.next-cli-build/server/chunks/2112.js +1 -1
  604. package/app/.next-cli-build/server/chunks/2116.js +1 -0
  605. package/app/.next-cli-build/server/chunks/2120.js +1 -1
  606. package/app/.next-cli-build/server/chunks/2132.js +1 -1
  607. package/app/.next-cli-build/server/chunks/241.js +1 -1
  608. package/app/.next-cli-build/server/chunks/{9528.js → 2750.js} +2 -3
  609. package/app/.next-cli-build/server/chunks/2926.js +1 -0
  610. package/app/.next-cli-build/server/chunks/3245.js +1 -0
  611. package/app/.next-cli-build/server/chunks/3256.js +1 -0
  612. package/app/.next-cli-build/server/chunks/3433.js +120 -0
  613. package/app/.next-cli-build/server/chunks/3500.js +2 -2
  614. package/app/.next-cli-build/server/chunks/3792.js +1 -0
  615. package/app/.next-cli-build/server/chunks/3885.js +1 -0
  616. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  617. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  618. package/app/.next-cli-build/server/chunks/4125.js +1 -1
  619. package/app/.next-cli-build/server/chunks/4177.js +1 -0
  620. package/app/.next-cli-build/server/chunks/4190.js +1 -0
  621. package/app/.next-cli-build/server/chunks/4282.js +1 -0
  622. package/app/.next-cli-build/server/chunks/4290.js +1 -0
  623. package/app/.next-cli-build/server/chunks/4293.js +1 -1
  624. package/app/.next-cli-build/server/chunks/436.js +1 -1
  625. package/app/.next-cli-build/server/chunks/4575.js +1 -0
  626. package/app/.next-cli-build/server/chunks/4689.js +1 -0
  627. package/app/.next-cli-build/server/chunks/4746.js +1 -0
  628. package/app/.next-cli-build/server/chunks/4803.js +9 -0
  629. package/app/.next-cli-build/server/chunks/4886.js +1 -0
  630. package/app/.next-cli-build/server/chunks/4927.js +86 -0
  631. package/app/.next-cli-build/server/chunks/5182.js +1 -1
  632. package/app/.next-cli-build/server/chunks/5210.js +304 -0
  633. package/app/.next-cli-build/server/chunks/5330.js +9 -9
  634. package/app/.next-cli-build/server/chunks/539.js +1 -0
  635. package/app/.next-cli-build/server/chunks/5433.js +1 -1
  636. package/app/.next-cli-build/server/chunks/5485.js +1 -1
  637. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  638. package/app/.next-cli-build/server/chunks/5692.js +5 -0
  639. package/app/.next-cli-build/server/chunks/5781.js +1 -1
  640. package/app/.next-cli-build/server/chunks/595.js +1 -1
  641. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  642. package/app/.next-cli-build/server/chunks/6103.js +1 -0
  643. package/app/.next-cli-build/server/chunks/6133.js +6 -0
  644. package/app/.next-cli-build/server/chunks/615.js +1 -1
  645. package/app/.next-cli-build/server/chunks/6252.js +9 -0
  646. package/app/.next-cli-build/server/chunks/6306.js +1 -1
  647. package/app/.next-cli-build/server/chunks/6326.js +1 -1
  648. package/app/.next-cli-build/server/chunks/6457.js +1 -4
  649. package/app/.next-cli-build/server/chunks/6492.js +1 -0
  650. package/app/.next-cli-build/server/chunks/653.js +1 -1
  651. package/app/.next-cli-build/server/chunks/6756.js +1 -1
  652. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  653. package/app/.next-cli-build/server/chunks/6875.js +1 -0
  654. package/app/.next-cli-build/server/chunks/6921.js +65 -0
  655. package/app/.next-cli-build/server/chunks/6922.js +1 -1
  656. package/app/.next-cli-build/server/chunks/6947.js +1 -0
  657. package/app/.next-cli-build/server/chunks/6956.js +1 -0
  658. package/app/.next-cli-build/server/chunks/6960.js +2 -2
  659. package/app/.next-cli-build/server/chunks/6982.js +1 -1
  660. package/app/.next-cli-build/server/chunks/7066.js +1 -0
  661. package/app/.next-cli-build/server/chunks/7067.js +1 -1
  662. package/app/.next-cli-build/server/chunks/7122.js +1 -1
  663. package/app/.next-cli-build/server/chunks/7239.js +2 -1
  664. package/app/.next-cli-build/server/chunks/7247.js +1 -1
  665. package/app/.next-cli-build/server/chunks/7274.js +13 -6
  666. package/app/.next-cli-build/server/chunks/7322.js +2 -2
  667. package/app/.next-cli-build/server/chunks/7568.js +1 -0
  668. package/app/.next-cli-build/server/chunks/7726.js +1 -0
  669. package/app/.next-cli-build/server/chunks/7753.js +1 -0
  670. package/app/.next-cli-build/server/chunks/7775.js +1 -0
  671. package/app/.next-cli-build/server/chunks/8062.js +9 -0
  672. package/app/.next-cli-build/server/chunks/8172.js +9 -0
  673. package/app/.next-cli-build/server/chunks/8247.js +1 -0
  674. package/app/.next-cli-build/server/chunks/8370.js +103 -0
  675. package/app/.next-cli-build/server/chunks/8410.js +1 -1
  676. package/app/.next-cli-build/server/chunks/8469.js +9 -0
  677. package/app/.next-cli-build/server/chunks/8499.js +12 -12
  678. package/app/.next-cli-build/server/chunks/8595.js +1 -0
  679. package/app/.next-cli-build/server/chunks/8658.js +1 -0
  680. package/app/.next-cli-build/server/chunks/8672.js +1 -0
  681. package/app/.next-cli-build/server/chunks/8689.js +1 -0
  682. package/app/.next-cli-build/server/chunks/8749.js +44 -0
  683. package/app/.next-cli-build/server/chunks/8838.js +1 -1
  684. package/app/.next-cli-build/server/chunks/8895.js +9 -9
  685. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  686. package/app/.next-cli-build/server/chunks/8988.js +1 -1
  687. package/app/.next-cli-build/server/chunks/9046.js +1 -0
  688. package/app/.next-cli-build/server/chunks/{9713.js → 9055.js} +2 -1
  689. package/app/.next-cli-build/server/chunks/9154.js +1 -0
  690. package/app/.next-cli-build/server/chunks/939.js +1 -1
  691. package/app/.next-cli-build/server/chunks/{4990.js → 9451.js} +1 -1
  692. package/app/.next-cli-build/server/chunks/9489.js +7 -0
  693. package/app/.next-cli-build/server/chunks/9609.js +1 -1
  694. package/app/.next-cli-build/server/chunks/9628.js +1 -0
  695. package/app/.next-cli-build/server/chunks/976.js +9 -0
  696. package/app/.next-cli-build/server/instrumentation.js +1 -1
  697. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  698. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  699. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  700. package/app/.next-cli-build/server/middleware.js +7 -7
  701. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  702. package/app/.next-cli-build/server/pages/404.html +9 -1
  703. package/app/.next-cli-build/server/pages/500.html +1 -1
  704. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  705. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  706. package/app/.next-cli-build/static/chunks/124.8b2f018d999d9a51.js +1 -0
  707. package/app/.next-cli-build/static/chunks/1243-25be5a7b0193949d.js +3 -0
  708. package/app/.next-cli-build/static/chunks/1321-b226b10e6272fc21.js +1 -0
  709. package/app/.next-cli-build/static/chunks/305-f019439bbcf9152e.js +1 -0
  710. package/app/.next-cli-build/static/chunks/3842-da1878db3339b090.js +1 -0
  711. package/app/.next-cli-build/static/chunks/5497-c5b293fd9b36c51d.js +7 -0
  712. package/app/.next-cli-build/static/chunks/6808-d3ffacc1373713c6.js +1 -0
  713. package/app/.next-cli-build/static/chunks/839-e45391c69a64b949.js +1 -0
  714. package/app/.next-cli-build/static/chunks/9233.4e4be172e7d96210.js +65 -0
  715. package/app/.next-cli-build/static/chunks/{3346-509e8dd58ea4832d.js → 9749-80768075d38162d1.js} +27 -16
  716. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-5d45a84bf4178e23.js → page-e9d0cc59613084a7.js} +1 -1
  717. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-c50454e03482deef.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-a010a9c6a7805814.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-14745e08d1edafb2.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-30c02c5c5eefddbd.js → page-38d0f0202be6d8bc.js} +1 -1
  721. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-47886089f369810c.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/{page-4dd5e46a2d6f4486.js → page-f2be5e1e9fb2a81d.js} +1 -1
  723. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-9ca09f92fcb7be9f.js → page-3b6db6cc6c16b9ad.js} +18 -12
  724. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-9a471accf206ea43.js → page-ee6bbb288b22cf1b.js} +1 -1
  725. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-244f4c72b60bf0a0.js → page-ef6ad6f6950d28ae.js} +1 -1
  726. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-a2510813ebd64f72.js → page-fa1fbe256586f3e4.js} +1 -1
  727. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-17b2097c5effd063.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-188d4a1bfdaa48a9.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-912bf60e8bad7f94.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-2bc7898568623185.js +14 -0
  731. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-40e882239717e69f.js → page-071c0cece99e2a14.js} +1 -1
  732. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-9ec9a9251e22a7c8.js → page-e638376663f056c2.js} +1 -1
  733. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-4f50d3385b23743f.js → page-a82cb7be5341c406.js} +1 -1
  734. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-e84b8de5542a9dc9.js → page-07d2009205f82daf.js} +1 -1
  735. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-f7223ed3275a94a5.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-6a0eb15b8664e682.js → page-c2a93a81da890302.js} +1 -1
  737. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-7833d8a884ba922a.js → page-598b62c6e8742bbc.js} +1 -1
  738. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-ff17dc8ecbe63ec9.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-5e0f32afe647c545.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-528e2bc2a1bb20da.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/_global-error/page-2b9ff155b9d0f304.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-2b9ff155b9d0f304.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-2b9ff155b9d0f304.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-2b9ff155b9d0f304.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-2b9ff155b9d0f304.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-2b9ff155b9d0f304.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-2b9ff155b9d0f304.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-2b9ff155b9d0f304.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-2b9ff155b9d0f304.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-2b9ff155b9d0f304.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-2b9ff155b9d0f304.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-2b9ff155b9d0f304.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-2b9ff155b9d0f304.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-2b9ff155b9d0f304.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-2b9ff155b9d0f304.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-2b9ff155b9d0f304.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-profiles/route-2b9ff155b9d0f304.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-2b9ff155b9d0f304.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-2b9ff155b9d0f304.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-2b9ff155b9d0f304.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-2b9ff155b9d0f304.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-2b9ff155b9d0f304.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-2b9ff155b9d0f304.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-2b9ff155b9d0f304.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-2b9ff155b9d0f304.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-2b9ff155b9d0f304.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-2b9ff155b9d0f304.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-2b9ff155b9d0f304.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-2b9ff155b9d0f304.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-2b9ff155b9d0f304.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-2b9ff155b9d0f304.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-2b9ff155b9d0f304.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-2b9ff155b9d0f304.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-2b9ff155b9d0f304.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-2b9ff155b9d0f304.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/combos/route-2b9ff155b9d0f304.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-2b9ff155b9d0f304.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-2b9ff155b9d0f304.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-2b9ff155b9d0f304.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-2b9ff155b9d0f304.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-2b9ff155b9d0f304.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-2b9ff155b9d0f304.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/health/route-2b9ff155b9d0f304.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/init/route-2b9ff155b9d0f304.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-2b9ff155b9d0f304.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-2b9ff155b9d0f304.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/keys/route-2b9ff155b9d0f304.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/locale/route-2b9ff155b9d0f304.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-2b9ff155b9d0f304.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-2b9ff155b9d0f304.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-2b9ff155b9d0f304.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-2b9ff155b9d0f304.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-2b9ff155b9d0f304.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-2b9ff155b9d0f304.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-2b9ff155b9d0f304.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-2b9ff155b9d0f304.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-2b9ff155b9d0f304.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/models/caps/route-2b9ff155b9d0f304.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-2b9ff155b9d0f304.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-2b9ff155b9d0f304.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-2b9ff155b9d0f304.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/models/route-2b9ff155b9d0f304.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/models/test/route-2b9ff155b9d0f304.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-2b9ff155b9d0f304.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-2b9ff155b9d0f304.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-2b9ff155b9d0f304.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-2b9ff155b9d0f304.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-2b9ff155b9d0f304.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-2b9ff155b9d0f304.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-2b9ff155b9d0f304.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-2b9ff155b9d0f304.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-2b9ff155b9d0f304.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-2b9ff155b9d0f304.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-2b9ff155b9d0f304.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-2b9ff155b9d0f304.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-2b9ff155b9d0f304.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-2b9ff155b9d0f304.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-2b9ff155b9d0f304.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-2b9ff155b9d0f304.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-2b9ff155b9d0f304.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-2b9ff155b9d0f304.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-2b9ff155b9d0f304.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-2b9ff155b9d0f304.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-2b9ff155b9d0f304.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-2b9ff155b9d0f304.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-2b9ff155b9d0f304.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-kill/route-2b9ff155b9d0f304.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-status/route-2b9ff155b9d0f304.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-2b9ff155b9d0f304.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-2b9ff155b9d0f304.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/pricing/route-2b9ff155b9d0f304.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-2b9ff155b9d0f304.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-2b9ff155b9d0f304.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-2b9ff155b9d0f304.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-2b9ff155b9d0f304.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-2b9ff155b9d0f304.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-2b9ff155b9d0f304.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-2b9ff155b9d0f304.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-2b9ff155b9d0f304.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-2b9ff155b9d0f304.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/api/providers/route-2b9ff155b9d0f304.js +1 -0
  842. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-2b9ff155b9d0f304.js +1 -0
  843. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-2b9ff155b9d0f304.js +1 -0
  844. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-2b9ff155b9d0f304.js +1 -0
  845. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-2b9ff155b9d0f304.js +1 -0
  846. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-2b9ff155b9d0f304.js +1 -0
  847. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-2b9ff155b9d0f304.js +1 -0
  848. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-2b9ff155b9d0f304.js +1 -0
  849. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-2b9ff155b9d0f304.js +1 -0
  850. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-2b9ff155b9d0f304.js +1 -0
  851. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-2b9ff155b9d0f304.js +1 -0
  852. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-2b9ff155b9d0f304.js +1 -0
  853. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-2b9ff155b9d0f304.js +1 -0
  854. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-2b9ff155b9d0f304.js +1 -0
  855. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-2b9ff155b9d0f304.js +1 -0
  856. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-2b9ff155b9d0f304.js +1 -0
  857. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-2b9ff155b9d0f304.js +1 -0
  858. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-2b9ff155b9d0f304.js +1 -0
  859. package/app/.next-cli-build/static/chunks/app/api/security/status/route-2b9ff155b9d0f304.js +1 -0
  860. package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-2b9ff155b9d0f304.js +1 -0
  861. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-2b9ff155b9d0f304.js +1 -0
  862. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-2b9ff155b9d0f304.js +1 -0
  863. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-2b9ff155b9d0f304.js +1 -0
  864. package/app/.next-cli-build/static/chunks/app/api/settings/route-2b9ff155b9d0f304.js +1 -0
  865. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-2b9ff155b9d0f304.js +1 -0
  866. package/app/.next-cli-build/static/chunks/app/api/tags/route-2b9ff155b9d0f304.js +1 -0
  867. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-2b9ff155b9d0f304.js +1 -0
  868. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-2b9ff155b9d0f304.js +1 -0
  869. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-2b9ff155b9d0f304.js +1 -0
  870. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-2b9ff155b9d0f304.js +1 -0
  871. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-2b9ff155b9d0f304.js +1 -0
  872. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-2b9ff155b9d0f304.js +1 -0
  873. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-2b9ff155b9d0f304.js +1 -0
  874. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-2b9ff155b9d0f304.js +1 -0
  875. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-2b9ff155b9d0f304.js +1 -0
  876. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-2b9ff155b9d0f304.js +1 -0
  877. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-2b9ff155b9d0f304.js +1 -0
  878. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-2b9ff155b9d0f304.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-2b9ff155b9d0f304.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-2b9ff155b9d0f304.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-2b9ff155b9d0f304.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-2b9ff155b9d0f304.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-2b9ff155b9d0f304.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-2b9ff155b9d0f304.js +1 -0
  885. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-2b9ff155b9d0f304.js +1 -0
  886. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-2b9ff155b9d0f304.js +1 -0
  887. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-2b9ff155b9d0f304.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-2b9ff155b9d0f304.js +1 -0
  889. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-2b9ff155b9d0f304.js +1 -0
  890. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-2b9ff155b9d0f304.js +1 -0
  891. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-2b9ff155b9d0f304.js +1 -0
  892. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-2b9ff155b9d0f304.js +1 -0
  893. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-2b9ff155b9d0f304.js +1 -0
  894. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-2b9ff155b9d0f304.js +1 -0
  895. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-2b9ff155b9d0f304.js +1 -0
  896. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-2b9ff155b9d0f304.js +1 -0
  897. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-2b9ff155b9d0f304.js +1 -0
  898. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-2b9ff155b9d0f304.js +1 -0
  899. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-2b9ff155b9d0f304.js +1 -0
  900. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-2b9ff155b9d0f304.js +1 -0
  901. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-2b9ff155b9d0f304.js +1 -0
  902. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-2b9ff155b9d0f304.js +1 -0
  903. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-2b9ff155b9d0f304.js +1 -0
  904. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-2b9ff155b9d0f304.js +1 -0
  905. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-2b9ff155b9d0f304.js +1 -0
  906. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-2b9ff155b9d0f304.js +1 -0
  907. package/app/.next-cli-build/static/chunks/app/api/v1/route-2b9ff155b9d0f304.js +1 -0
  908. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-2b9ff155b9d0f304.js +1 -0
  909. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-2b9ff155b9d0f304.js +1 -0
  910. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-2b9ff155b9d0f304.js +1 -0
  911. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-2b9ff155b9d0f304.js +1 -0
  912. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-2b9ff155b9d0f304.js +1 -0
  913. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-2b9ff155b9d0f304.js +1 -0
  914. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-2b9ff155b9d0f304.js +1 -0
  915. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-2b9ff155b9d0f304.js +1 -0
  916. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-2b9ff155b9d0f304.js +1 -0
  917. package/app/.next-cli-build/static/chunks/app/api/version/route-2b9ff155b9d0f304.js +1 -0
  918. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-2b9ff155b9d0f304.js +1 -0
  919. package/app/.next-cli-build/static/chunks/app/api/version/update/route-2b9ff155b9d0f304.js +1 -0
  920. package/app/.next-cli-build/static/chunks/app/landing/page-38924391f8649361.js +1 -0
  921. package/app/.next-cli-build/static/chunks/app/login/page-0c4e2808c937c740.js +1 -0
  922. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-2b9ff155b9d0f304.js +1 -0
  923. package/app/.next-cli-build/static/chunks/app/page-2b9ff155b9d0f304.js +1 -0
  924. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-2b9ff155b9d0f304.js +1 -0
  925. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-2b9ff155b9d0f304.js +1 -0
  926. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-2b9ff155b9d0f304.js +1 -0
  927. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-2b9ff155b9d0f304.js +1 -0
  928. package/app/.next-cli-build/static/chunks/webpack-34fe8baab4ced03b.js +1 -0
  929. package/app/.next-cli-build/static/css/bdf1d87cd5f4db94.css +1 -0
  930. package/app/.next-cli-build/static/wj14lzSQILIu20--ipzW4/_buildManifest.js +1 -0
  931. package/app/custom-server.js +177 -177
  932. package/app/package.json +71 -69
  933. package/app/public/i18n/changelog/en.md +291 -236
  934. package/app/public/i18n/changelog/zh-CN.md +289 -234
  935. package/app/public/i18n/changelog/zh-TW.md +291 -236
  936. package/app/public/i18n/literals/zh-CN.json +1960 -1857
  937. package/app/public/i18n/literals/zh-TW.json +802 -695
  938. package/app/public/providers/drex.png +0 -0
  939. package/app/public/providers/fish-audio.png +0 -0
  940. package/app/public/providers/keenable.png +0 -0
  941. package/app/public/providers/ollama-search.png +0 -0
  942. package/app/public/providers/tinyfish.png +0 -0
  943. package/app/public/providers/xquik.png +0 -0
  944. package/app/public/providers/zcode-free.png +0 -0
  945. package/app/src/lib/consoleArchiveStandalone.mjs +73 -73
  946. package/app/src/lib/oauth/providers/xiaomi-mimo.js +169 -169
  947. package/app/src/sse/services/qoderCheckin.js +437 -437
  948. package/cli.js +9 -1
  949. package/package.json +61 -61
  950. package/src/cli/api/client.js +9 -2
  951. package/src/cli/doctor.js +525 -525
  952. package/src/cli/i18n/locales/en/utils.json +4 -0
  953. package/src/cli/i18n/locales/zh-CN/utils.json +4 -0
  954. package/src/cli/i18n/locales/zh-TW/utils.json +4 -0
  955. package/src/cli/menus/settings.js +1 -1
  956. package/src/cli/staleServer.js +216 -216
  957. package/src/cli/utils/modelSelector.js +76 -10
  958. package/app/.next-cli-build/server/chunks/112.js +0 -1
  959. package/app/.next-cli-build/server/chunks/1260.js +0 -1
  960. package/app/.next-cli-build/server/chunks/1281.js +0 -1
  961. package/app/.next-cli-build/server/chunks/1330.js +0 -1
  962. package/app/.next-cli-build/server/chunks/2179.js +0 -1
  963. package/app/.next-cli-build/server/chunks/271.js +0 -1
  964. package/app/.next-cli-build/server/chunks/3651.js +0 -92
  965. package/app/.next-cli-build/server/chunks/3662.js +0 -1
  966. package/app/.next-cli-build/server/chunks/3962.js +0 -1
  967. package/app/.next-cli-build/server/chunks/4037.js +0 -1
  968. package/app/.next-cli-build/server/chunks/4126.js +0 -1
  969. package/app/.next-cli-build/server/chunks/6051.js +0 -1
  970. package/app/.next-cli-build/server/chunks/6212.js +0 -1
  971. package/app/.next-cli-build/server/chunks/6520.js +0 -1
  972. package/app/.next-cli-build/server/chunks/6871.js +0 -1
  973. package/app/.next-cli-build/server/chunks/7180.js +0 -6
  974. package/app/.next-cli-build/server/chunks/7365.js +0 -1
  975. package/app/.next-cli-build/server/chunks/75.js +0 -1
  976. package/app/.next-cli-build/server/chunks/8145.js +0 -1
  977. package/app/.next-cli-build/server/chunks/8546.js +0 -1
  978. package/app/.next-cli-build/server/chunks/8635.js +0 -7
  979. package/app/.next-cli-build/server/chunks/869.js +0 -1
  980. package/app/.next-cli-build/server/chunks/877.js +0 -65
  981. package/app/.next-cli-build/server/chunks/9539.js +0 -9
  982. package/app/.next-cli-build/server/chunks/9896.js +0 -1
  983. package/app/.next-cli-build/server/chunks/9927.js +0 -1
  984. package/app/.next-cli-build/static/chunks/1243-d0e0b9458266e912.js +0 -3
  985. package/app/.next-cli-build/static/chunks/1321-23084daf91733d47.js +0 -1
  986. package/app/.next-cli-build/static/chunks/1728-9783950fd2b6ad81.js +0 -65
  987. package/app/.next-cli-build/static/chunks/5497-d050b53817def025.js +0 -7
  988. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-d9b185c845eb0735.js +0 -1
  989. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-baf9fb2b236ff509.js +0 -1
  990. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-fa4ba47a6bf0da15.js +0 -1
  991. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-c748c385fd4207db.js +0 -1
  992. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-12cb89849a36b78d.js +0 -1
  993. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-6abbed908eb3721a.js +0 -1
  994. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-48878e82a437e813.js +0 -1
  995. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-18da0e8d40af56ac.js +0 -14
  996. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-f62700ce9aa54572.js +0 -1
  997. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-b2a5c4828ff3f6e0.js +0 -1
  998. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-bf55da31ba675aa9.js +0 -1
  999. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-434f2e27f8b21ae1.js +0 -1
  1000. package/app/.next-cli-build/static/chunks/app/_global-error/page-45a30f9960975021.js +0 -1
  1001. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-45a30f9960975021.js +0 -1
  1002. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-45a30f9960975021.js +0 -1
  1003. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-45a30f9960975021.js +0 -1
  1004. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-45a30f9960975021.js +0 -1
  1005. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-45a30f9960975021.js +0 -1
  1006. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-45a30f9960975021.js +0 -1
  1007. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-45a30f9960975021.js +0 -1
  1008. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-45a30f9960975021.js +0 -1
  1009. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-45a30f9960975021.js +0 -1
  1010. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-45a30f9960975021.js +0 -1
  1011. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-45a30f9960975021.js +0 -1
  1012. package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-45a30f9960975021.js +0 -1
  1013. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-45a30f9960975021.js +0 -1
  1014. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-45a30f9960975021.js +0 -1
  1015. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-45a30f9960975021.js +0 -1
  1016. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-45a30f9960975021.js +0 -1
  1017. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-45a30f9960975021.js +0 -1
  1018. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-45a30f9960975021.js +0 -1
  1019. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-45a30f9960975021.js +0 -1
  1020. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-45a30f9960975021.js +0 -1
  1021. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-45a30f9960975021.js +0 -1
  1022. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-45a30f9960975021.js +0 -1
  1023. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-45a30f9960975021.js +0 -1
  1024. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-45a30f9960975021.js +0 -1
  1025. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-45a30f9960975021.js +0 -1
  1026. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-45a30f9960975021.js +0 -1
  1027. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-45a30f9960975021.js +0 -1
  1028. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-45a30f9960975021.js +0 -1
  1029. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-45a30f9960975021.js +0 -1
  1030. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-45a30f9960975021.js +0 -1
  1031. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-45a30f9960975021.js +0 -1
  1032. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-45a30f9960975021.js +0 -1
  1033. package/app/.next-cli-build/static/chunks/app/api/combos/route-45a30f9960975021.js +0 -1
  1034. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-45a30f9960975021.js +0 -1
  1035. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-45a30f9960975021.js +0 -1
  1036. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-45a30f9960975021.js +0 -1
  1037. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-45a30f9960975021.js +0 -1
  1038. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-45a30f9960975021.js +0 -1
  1039. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-45a30f9960975021.js +0 -1
  1040. package/app/.next-cli-build/static/chunks/app/api/health/route-45a30f9960975021.js +0 -1
  1041. package/app/.next-cli-build/static/chunks/app/api/init/route-45a30f9960975021.js +0 -1
  1042. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-45a30f9960975021.js +0 -1
  1043. package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-45a30f9960975021.js +0 -1
  1044. package/app/.next-cli-build/static/chunks/app/api/keys/route-45a30f9960975021.js +0 -1
  1045. package/app/.next-cli-build/static/chunks/app/api/locale/route-45a30f9960975021.js +0 -1
  1046. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-45a30f9960975021.js +0 -1
  1047. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-45a30f9960975021.js +0 -1
  1048. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-45a30f9960975021.js +0 -1
  1049. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-45a30f9960975021.js +0 -1
  1050. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-45a30f9960975021.js +0 -1
  1051. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-45a30f9960975021.js +0 -1
  1052. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-45a30f9960975021.js +0 -1
  1053. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-45a30f9960975021.js +0 -1
  1054. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-45a30f9960975021.js +0 -1
  1055. package/app/.next-cli-build/static/chunks/app/api/models/caps/route-45a30f9960975021.js +0 -1
  1056. package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-45a30f9960975021.js +0 -1
  1057. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-45a30f9960975021.js +0 -1
  1058. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-45a30f9960975021.js +0 -1
  1059. package/app/.next-cli-build/static/chunks/app/api/models/route-45a30f9960975021.js +0 -1
  1060. package/app/.next-cli-build/static/chunks/app/api/models/test/route-45a30f9960975021.js +0 -1
  1061. package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-45a30f9960975021.js +0 -1
  1062. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-45a30f9960975021.js +0 -1
  1063. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-45a30f9960975021.js +0 -1
  1064. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-45a30f9960975021.js +0 -1
  1065. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-45a30f9960975021.js +0 -1
  1066. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-45a30f9960975021.js +0 -1
  1067. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-45a30f9960975021.js +0 -1
  1068. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-45a30f9960975021.js +0 -1
  1069. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-45a30f9960975021.js +0 -1
  1070. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-45a30f9960975021.js +0 -1
  1071. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-45a30f9960975021.js +0 -1
  1072. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-45a30f9960975021.js +0 -1
  1073. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-45a30f9960975021.js +0 -1
  1074. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-45a30f9960975021.js +0 -1
  1075. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-45a30f9960975021.js +0 -1
  1076. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-45a30f9960975021.js +0 -1
  1077. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-45a30f9960975021.js +0 -1
  1078. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-45a30f9960975021.js +0 -1
  1079. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-45a30f9960975021.js +0 -1
  1080. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-45a30f9960975021.js +0 -1
  1081. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-45a30f9960975021.js +0 -1
  1082. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-45a30f9960975021.js +0 -1
  1083. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-45a30f9960975021.js +0 -1
  1084. package/app/.next-cli-build/static/chunks/app/api/pricing/route-45a30f9960975021.js +0 -1
  1085. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-45a30f9960975021.js +0 -1
  1086. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-45a30f9960975021.js +0 -1
  1087. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-45a30f9960975021.js +0 -1
  1088. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-45a30f9960975021.js +0 -1
  1089. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-45a30f9960975021.js +0 -1
  1090. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-45a30f9960975021.js +0 -1
  1091. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-45a30f9960975021.js +0 -1
  1092. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-45a30f9960975021.js +0 -1
  1093. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-45a30f9960975021.js +0 -1
  1094. package/app/.next-cli-build/static/chunks/app/api/providers/route-45a30f9960975021.js +0 -1
  1095. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-45a30f9960975021.js +0 -1
  1096. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-45a30f9960975021.js +0 -1
  1097. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-45a30f9960975021.js +0 -1
  1098. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-45a30f9960975021.js +0 -1
  1099. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-45a30f9960975021.js +0 -1
  1100. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-45a30f9960975021.js +0 -1
  1101. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-45a30f9960975021.js +0 -1
  1102. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-45a30f9960975021.js +0 -1
  1103. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-45a30f9960975021.js +0 -1
  1104. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-45a30f9960975021.js +0 -1
  1105. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-45a30f9960975021.js +0 -1
  1106. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-45a30f9960975021.js +0 -1
  1107. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-45a30f9960975021.js +0 -1
  1108. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-45a30f9960975021.js +0 -1
  1109. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-45a30f9960975021.js +0 -1
  1110. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-45a30f9960975021.js +0 -1
  1111. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-45a30f9960975021.js +0 -1
  1112. package/app/.next-cli-build/static/chunks/app/api/security/status/route-45a30f9960975021.js +0 -1
  1113. package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-45a30f9960975021.js +0 -1
  1114. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-45a30f9960975021.js +0 -1
  1115. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-45a30f9960975021.js +0 -1
  1116. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-45a30f9960975021.js +0 -1
  1117. package/app/.next-cli-build/static/chunks/app/api/settings/route-45a30f9960975021.js +0 -1
  1118. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-45a30f9960975021.js +0 -1
  1119. package/app/.next-cli-build/static/chunks/app/api/tags/route-45a30f9960975021.js +0 -1
  1120. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-45a30f9960975021.js +0 -1
  1121. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-45a30f9960975021.js +0 -1
  1122. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-45a30f9960975021.js +0 -1
  1123. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-45a30f9960975021.js +0 -1
  1124. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-45a30f9960975021.js +0 -1
  1125. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-45a30f9960975021.js +0 -1
  1126. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-45a30f9960975021.js +0 -1
  1127. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-45a30f9960975021.js +0 -1
  1128. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-45a30f9960975021.js +0 -1
  1129. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-45a30f9960975021.js +0 -1
  1130. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-45a30f9960975021.js +0 -1
  1131. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-45a30f9960975021.js +0 -1
  1132. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-45a30f9960975021.js +0 -1
  1133. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-45a30f9960975021.js +0 -1
  1134. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-45a30f9960975021.js +0 -1
  1135. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-45a30f9960975021.js +0 -1
  1136. package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-45a30f9960975021.js +0 -1
  1137. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-45a30f9960975021.js +0 -1
  1138. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-45a30f9960975021.js +0 -1
  1139. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-45a30f9960975021.js +0 -1
  1140. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-45a30f9960975021.js +0 -1
  1141. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-45a30f9960975021.js +0 -1
  1142. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-45a30f9960975021.js +0 -1
  1143. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-45a30f9960975021.js +0 -1
  1144. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-45a30f9960975021.js +0 -1
  1145. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-45a30f9960975021.js +0 -1
  1146. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-45a30f9960975021.js +0 -1
  1147. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-45a30f9960975021.js +0 -1
  1148. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-45a30f9960975021.js +0 -1
  1149. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-45a30f9960975021.js +0 -1
  1150. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-45a30f9960975021.js +0 -1
  1151. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-45a30f9960975021.js +0 -1
  1152. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-45a30f9960975021.js +0 -1
  1153. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-45a30f9960975021.js +0 -1
  1154. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-45a30f9960975021.js +0 -1
  1155. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-45a30f9960975021.js +0 -1
  1156. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-45a30f9960975021.js +0 -1
  1157. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-45a30f9960975021.js +0 -1
  1158. package/app/.next-cli-build/static/chunks/app/api/v1/route-45a30f9960975021.js +0 -1
  1159. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-45a30f9960975021.js +0 -1
  1160. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-45a30f9960975021.js +0 -1
  1161. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-45a30f9960975021.js +0 -1
  1162. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-45a30f9960975021.js +0 -1
  1163. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-45a30f9960975021.js +0 -1
  1164. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-45a30f9960975021.js +0 -1
  1165. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-45a30f9960975021.js +0 -1
  1166. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-45a30f9960975021.js +0 -1
  1167. package/app/.next-cli-build/static/chunks/app/api/version/route-45a30f9960975021.js +0 -1
  1168. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-45a30f9960975021.js +0 -1
  1169. package/app/.next-cli-build/static/chunks/app/api/version/update/route-45a30f9960975021.js +0 -1
  1170. package/app/.next-cli-build/static/chunks/app/landing/page-acb1434862d18ac7.js +0 -1
  1171. package/app/.next-cli-build/static/chunks/app/login/page-f1945d5fab85c48f.js +0 -1
  1172. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-45a30f9960975021.js +0 -1
  1173. package/app/.next-cli-build/static/chunks/app/page-45a30f9960975021.js +0 -1
  1174. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-45a30f9960975021.js +0 -1
  1175. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-45a30f9960975021.js +0 -1
  1176. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-45a30f9960975021.js +0 -1
  1177. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-45a30f9960975021.js +0 -1
  1178. package/app/.next-cli-build/static/chunks/webpack-b43a2a1c513882e9.js +0 -1
  1179. package/app/.next-cli-build/static/css/6e249fe05f9d7227.css +0 -1
  1180. package/app/.next-cli-build/static/mzc6AVdJokpIsYjtjKON0/_buildManifest.js +0 -1
  1181. /package/app/.next-cli-build/static/{mzc6AVdJokpIsYjtjKON0 → wj14lzSQILIu20--ipzW4}/_ssgManifest.js +0 -0
package/src/cli/doctor.js CHANGED
@@ -1,525 +1,525 @@
1
- "use strict";
2
-
3
- /**
4
- * `10router doctor` — one command that answers "why is this install misbehaving?".
5
- *
6
- * Why it exists (issue #24): the three failure modes users hit all present the
7
- * same way — the dashboard serves a stale/blank page, or the app "installs fine
8
- * but will not start" — while every existing self-check answers "fine":
9
- * §1 the two runtime hooks pruned each other's npm installs, so
10
- * better-sqlite3 sat in node_modules but was absent from
11
- * runtime/package.json: `npm ls` cannot see it and /api/health still said
12
- * ok;
13
- * §3 a server from the PREVIOUS build was still holding the port, so the
14
- * binary that answered /api/health was the old one;
15
- * §4 a global better-sqlite3 shadowed the runtime copy, and /api/health did
16
- * not even name the driver it settled on.
17
- * All three needed a human to walk processes, node_modules and version markers
18
- * by hand. Doctor is that walk, scripted.
19
- *
20
- * Hard rules (see docs/zh-CN/spec-10router-doctor.md):
21
- * - READ-ONLY. No DB initialisation (the same rule /api/health follows — a
22
- * health probe that opens SQLite is its own outage), no file writes, no
23
- * killing, no restarts. `--fix` is deliberately out of scope: the blast
24
- * radius differs per finding (kill a process / reinstall a dependency /
25
- * migrate data) and that is a product decision, not a diagnosis.
26
- * - Every check is a pure function over already-collected facts, so the whole
27
- * decision table is unit-testable without a port, a process or a real data
28
- * dir. `collectChecks()` is the only part that touches the machine.
29
- * - `--json` is a contract: it carries check IDs and reason codes, NEVER
30
- * translated text, and is versioned by `schemaVersion`.
31
- */
32
-
33
- const fs = require("fs");
34
- const os = require("os");
35
- const path = require("path");
36
- const net = require("net");
37
-
38
- const { t } = require("./i18n");
39
- const { getDataDir, getRuntimeDir, isBetterSqliteBinaryValid, isSqlJsWasmValid } = require("../../hooks/sqliteRuntime");
40
- const {
41
- diskVersionPath,
42
- pidFilePath,
43
- probeServerVersion,
44
- readDiskVersion,
45
- readPidFile,
46
- } = require("./staleServer");
47
-
48
- const SCHEMA_VERSION = 1;
49
- const DEFAULT_PORT = 20128;
50
-
51
- /** `cli/app` — the built server this launcher spawns (`<repo>/cli/app`). */
52
- const APP_DIR = path.join(__dirname, "..", "..", "app");
53
- /** Written by cli/scripts/build-cli.js; its absence means "a half-finished upgrade". */
54
- const BUILD_DIST_DIR = ".next-cli-build";
55
- /** All three must exist for the launcher to have something to serve. */
56
- const BUILD_MARKERS = ["custom-server.js", "server.js", path.join(BUILD_DIST_DIR, "server")];
57
- /**
58
- * What the runtime dir is expected to hold. sql.js is the always-works fallback,
59
- * better-sqlite3 the speed path; systray2 only exists on macOS/Linux (Windows
60
- * gets an in-process tray), so it is not "missing" there.
61
- */
62
- const RUNTIME_MODULES = ["sql.js", "better-sqlite3"];
63
- const RUNTIME_MODULES_POSIX = ["systray2"];
64
-
65
- const OK = "ok";
66
- const YELLOW = "yellow";
67
- const RED = "red";
68
-
69
- const STATUS_ICON = { [OK]: "✅", [YELLOW]: "⚠️ ", [RED]: "❌" };
70
-
71
- // ---------------------------------------------------------------------------
72
- // Probes (the only side-effecting code in this file — all read-only)
73
- // ---------------------------------------------------------------------------
74
-
75
- /** Is anything accepting TCP connections on the port? */
76
- function probeTcp(port, { timeoutMs = 800, host = "127.0.0.1" } = {}) {
77
- return new Promise((resolve) => {
78
- const socket = net.connect({ host, port });
79
- let settled = false;
80
- const done = (value) => {
81
- if (settled) return;
82
- settled = true;
83
- socket.destroy();
84
- resolve(value);
85
- };
86
- socket.setTimeout(timeoutMs);
87
- socket.once("connect", () => done(true));
88
- socket.once("timeout", () => done(false));
89
- socket.once("error", () => done(false));
90
- });
91
- }
92
-
93
- /** `/api/health` is read-only by design, so this cannot open the DB. */
94
- async function probeHealth(port, { fetchImpl = globalThis.fetch, timeoutMs = 2000 } = {}) {
95
- if (typeof fetchImpl !== "function") return null;
96
- const controller = typeof AbortController === "function" ? new AbortController() : null;
97
- const timer = controller ? setTimeout(() => controller.abort(), timeoutMs) : null;
98
- try {
99
- const res = await fetchImpl(`http://127.0.0.1:${port}/api/health`, {
100
- signal: controller ? controller.signal : undefined,
101
- cache: "no-store",
102
- });
103
- if (!res || !res.ok) return null;
104
- const data = await res.json();
105
- return data && typeof data === "object" ? data : null;
106
- } catch {
107
- return null;
108
- } finally {
109
- if (timer) clearTimeout(timer);
110
- }
111
- }
112
-
113
- /** PIDs listening on the port. Read-only twin of cli.js's killProcessOnPort(). */
114
- function findPortOwners(port, { platform = process.platform, execSync } = {}) {
115
- const run = execSync || require("child_process").execSync;
116
- try {
117
- if (platform === "win32") {
118
- const out = String(
119
- run(`netstat -ano | findstr :${port}`, {
120
- encoding: "utf8",
121
- shell: true,
122
- windowsHide: true,
123
- timeout: 5000,
124
- }) || "",
125
- ).trim();
126
- const pids = out
127
- .split("\n")
128
- .filter((line) => line.includes("LISTENING"))
129
- .map((line) => Number(line.trim().split(/\s+/).pop()))
130
- .filter((pid) => Number.isInteger(pid) && pid > 0);
131
- return [...new Set(pids)];
132
- }
133
- const out = String(
134
- run(`lsof -ti:${port}`, {
135
- encoding: "utf8",
136
- stdio: ["pipe", "pipe", "ignore"],
137
- timeout: 5000,
138
- }) || "",
139
- ).trim();
140
- const pids = out
141
- .split("\n")
142
- .map((line) => Number(line.trim()))
143
- .filter((pid) => Number.isInteger(pid) && pid > 0);
144
- return [...new Set(pids)];
145
- } catch {
146
- // Nothing listening, or netstat/lsof unavailable — "no owner known", never
147
- // "no owner", so callers must not conclude the port is free from this alone.
148
- return [];
149
- }
150
- }
151
-
152
- // ---------------------------------------------------------------------------
153
- // Small read-only filesystem helpers
154
- // ---------------------------------------------------------------------------
155
-
156
- function isWritable(dir) {
157
- try {
158
- fs.accessSync(dir, fs.constants.W_OK);
159
- return true;
160
- } catch {
161
- return false;
162
- }
163
- }
164
-
165
- function readJsonFile(file) {
166
- try {
167
- return JSON.parse(fs.readFileSync(file, "utf8"));
168
- } catch {
169
- return null;
170
- }
171
- }
172
-
173
- /**
174
- * The runtime dir is one npm project shared by both hooks, so "installed but not
175
- * declared" is exactly the §1 state: the next `npm install` here prunes it.
176
- *
177
- * `broken` is the other half of that story: a module npm considers installed can
178
- * still be unusable (better-sqlite3 without its compiled binary, sql.js without
179
- * its wasm). That is the state §4 showed as "a fallback driver, and nothing says
180
- * why" — the directory looks complete, so only the artifact check catches it.
181
- */
182
- function readRuntimeState(runtimeDir) {
183
- const pkg = readJsonFile(path.join(runtimeDir, "package.json"));
184
- const declared = Object.keys(pkg?.dependencies || {});
185
- const nodeModulesDir = path.join(runtimeDir, "node_modules");
186
- let installed = [];
187
- try {
188
- installed = fs
189
- .readdirSync(nodeModulesDir)
190
- .filter((name) => name !== ".package-lock.json" && !name.startsWith("."))
191
- .filter((name) => fs.existsSync(path.join(nodeModulesDir, name, "package.json")));
192
- } catch {
193
- installed = [];
194
- }
195
- const broken = [];
196
- if (installed.includes("better-sqlite3") && !isBetterSqliteBinaryValid(nodeModulesDir)) broken.push("better-sqlite3");
197
- if (installed.includes("sql.js") && !isSqlJsWasmValid(nodeModulesDir)) broken.push("sql.js");
198
- return { declared, installed, broken };
199
- }
200
-
201
- /** The legacy 9Router data dir, still waiting to be migrated. */
202
- function legacyDirPath({ platform = process.platform } = {}) {
203
- return platform === "win32"
204
- ? path.join(process.env.APPDATA || "", "9router")
205
- : path.join(os.homedir(), ".9router");
206
- }
207
-
208
- // Mirror of src/lib/dataDir.js `hasAppData()` — deliberately NOT "is the dir
209
- // non-empty": on Windows the data dir doubles as Electron's userData profile
210
- // (Cache/, GPUCache/ …), so non-emptiness is always true and would pin the
211
- // migration — and this check — off. Keeping the same file list means doctor and
212
- // the app can never disagree about whether a migration is still pending.
213
- const LEGACY_JSON_FILES = ["db.json", "usage.json", "disabledModels.json", "request-details.json"];
214
-
215
- function hasAppData(dir) {
216
- if (fs.existsSync(path.join(dir, "db", "data.sqlite"))) return true;
217
- return LEGACY_JSON_FILES.some((name) => fs.existsSync(path.join(dir, name)));
218
- }
219
-
220
- // ---------------------------------------------------------------------------
221
- // Checks — pure functions: (facts) -> { id, status, reason, facts }
222
- // ---------------------------------------------------------------------------
223
-
224
- const result = (id, status, reason, facts = {}) => ({ id, status, reason, facts });
225
-
226
- function checkDataDir({ dataDir, exists, writable, legacyDir, legacyPending }) {
227
- const facts = { dir: dataDir };
228
- if (exists && !writable) return result("data-dir", RED, "not-writable", facts);
229
- // Only while the copy has genuinely not happened. The migration leaves the
230
- // legacy dir in place forever (so it can be retried by hand), so "legacy dir
231
- // exists" alone is a permanent condition and would be pure noise here.
232
- if (legacyPending) return result("data-dir", YELLOW, "legacy-pending", { ...facts, legacy: legacyDir });
233
- if (!exists) return result("data-dir", YELLOW, "missing", facts);
234
- return result("data-dir", OK, "ok", facts);
235
- }
236
-
237
- function checkBuild({ appDir, missing, appVersion, launcherVersion }) {
238
- const facts = { dir: appDir, version: appVersion || null, launcher: launcherVersion || null };
239
- if (missing.length) return result("build", RED, "missing-files", { ...facts, missing });
240
- if (!appVersion) return result("build", RED, "no-version", facts);
241
- if (appVersion !== launcherVersion) return result("build", RED, "version-mismatch", facts);
242
- return result("build", OK, "ok", facts);
243
- }
244
-
245
- function checkRuntimeDeps({ runtimeDir, declared, installed, broken, expected }) {
246
- const facts = {
247
- dir: runtimeDir,
248
- orphaned: expected.filter((m) => installed.includes(m) && !declared.includes(m)),
249
- broken: (broken || []).filter((m) => expected.includes(m)),
250
- missing: expected.filter((m) => !installed.includes(m)),
251
- };
252
- if (!fs.existsSync(runtimeDir)) return result("runtime-deps", YELLOW, "no-runtime", facts);
253
- if (facts.orphaned.length) return result("runtime-deps", RED, "unregistered", facts);
254
- if (facts.broken.length) return result("runtime-deps", RED, "broken-artifact", facts);
255
- if (facts.missing.length) return result("runtime-deps", YELLOW, "missing", facts);
256
- return result("runtime-deps", OK, "ok", facts);
257
- }
258
-
259
- /**
260
- * `driver: null` is NOT a failure: /api/health deliberately never initialises the
261
- * DB, so a freshly started server reports null until the first real query. Only
262
- * "no driver AND no runtime copy AND the driver layer said why" is fatal.
263
- */
264
- function checkDriver({ health, runtimeCopy }) {
265
- const facts = { driver: health?.driver ?? null, error: health?.lastDriverError ?? null, runtimeCopy };
266
- if (!health) return result("driver", YELLOW, "no-health", facts);
267
- if (!health.driver && !runtimeCopy && health.lastDriverError) return result("driver", RED, "no-driver", facts);
268
- if (!health.driver) return result("driver", YELLOW, "not-initialized", facts);
269
- if (health.lastDriverError) return result("driver", YELLOW, "fallback", facts);
270
- return result("driver", OK, "ok", facts);
271
- }
272
-
273
- /** Launcher vs the on-disk marker vs what is actually answering on the port. */
274
- function checkVersion({ port, launcherVersion, diskVersion, server }) {
275
- const facts = { port, launcher: launcherVersion, disk: diskVersion || null, server: server?.version || null };
276
- // Deliberately NOT gated on a running server: launcher ≠ on-disk marker means
277
- // two different builds are sharing one data dir, which is true regardless of
278
- // whether either of them is up right now.
279
- const known = [launcherVersion, diskVersion, server?.version].filter(Boolean);
280
- if (new Set(known).size > 1) return result("version", RED, "mismatch", facts);
281
- // Something holds the port but does not speak our /api/version.
282
- if (server?.reachable && !server.version) return result("version", YELLOW, "no-server-version", facts);
283
- return result("version", OK, "ok", facts);
284
- }
285
-
286
- function checkPort({ port, dataDir, listening, owners, pidFilePid, server }) {
287
- const facts = { port, owners: owners || [], pidFilePid: pidFilePid || null };
288
- if (!listening) {
289
- // A pidfile with nothing listening is a leftover from a crashed server; the
290
- // next start's heal would rewrite it, so it is informative, not broken.
291
- if (pidFilePid) return result("port", YELLOW, "orphan-pidfile", { ...facts, file: pidFilePath(dataDir) });
292
- return result("port", OK, "free", facts);
293
- }
294
- if (server?.version) return result("port", OK, "ok", facts);
295
- // Answers TCP but not our /api/version: our own server mid-boot (the pidfile
296
- // still matches) or somebody else's service (it does not).
297
- if (pidFilePid && owners.includes(pidFilePid)) return result("port", OK, "booting", facts);
298
- return result("port", RED, "foreign", facts);
299
- }
300
-
301
- /** The §3b scenario: the port is served by a build that is not the one on disk. */
302
- function checkStaleProcess({ port, dataDir, server, diskVersion, launcherVersion, pidFilePid, owners }) {
303
- const disk = diskVersion || launcherVersion;
304
- const facts = {
305
- port,
306
- server: server?.version || null,
307
- disk: disk || null,
308
- pidFilePid: pidFilePid || null,
309
- owners: owners || [],
310
- };
311
- const running = server?.version || null;
312
- if (!running) {
313
- // Nothing verifiable is on the port. A pidfile we cannot match is worth a
314
- // look, but a stale build can only be PROVEN by a version, so never red.
315
- if (pidFilePid) return result("stale-process", YELLOW, "unverified", facts);
316
- return result("stale-process", OK, "idle", facts);
317
- }
318
- // Comparing against the launcher when the marker is absent keeps the red
319
- // signal: "what is serving is not what this launcher ships" is the same fault.
320
- if (running !== disk) return result("stale-process", RED, "stale", facts);
321
- // It matches, but with no marker on disk a still-running OLD build could never
322
- // have noticed an upgrade — the §3b mechanism is silently absent.
323
- if (!diskVersion) return result("stale-process", YELLOW, "no-marker", { ...facts, file: diskVersionPath(dataDir) });
324
- if (pidFilePid && owners.length && !owners.includes(pidFilePid)) {
325
- return result("stale-process", YELLOW, "pid-mismatch", facts);
326
- }
327
- return result("stale-process", OK, "ok", facts);
328
- }
329
-
330
- /** Informational only — a missing tray never breaks serving, so never red. */
331
- function checkTray({ platform, systrayInstalled }) {
332
- const facts = { platform, systray: Boolean(systrayInstalled) };
333
- if (platform === "win32") return result("tray", OK, "bundled", facts);
334
- if (!systrayInstalled) return result("tray", YELLOW, "missing", facts);
335
- return result("tray", OK, "ok", facts);
336
- }
337
-
338
- // ---------------------------------------------------------------------------
339
- // Collection — the only machine-touching part
340
- // ---------------------------------------------------------------------------
341
-
342
- const ORDER = ["version", "stale-process", "build", "driver", "runtime-deps", "port", "tray", "data-dir"];
343
-
344
- /**
345
- * Gather every fact once, then run the pure checks. Injectable so tests never
346
- * touch a real port or a real ~/.10router.
347
- */
348
- async function collectChecks({
349
- port = DEFAULT_PORT,
350
- dataDir = getDataDir(),
351
- launcherVersion = require("../../package.json").version,
352
- appDir = APP_DIR,
353
- runtimeDir = getRuntimeDir(),
354
- platform = process.platform,
355
- legacyDir = legacyDirPath({ platform }),
356
- fetchImpl,
357
- execSyncImpl,
358
- probeTimeoutMs,
359
- } = {}) {
360
- const probeOptions = { fetchImpl, timeoutMs: probeTimeoutMs };
361
-
362
- const [server, health, listening] = await Promise.all([
363
- probeServerVersion(port, probeOptions),
364
- probeHealth(port, { fetchImpl, timeoutMs: probeTimeoutMs }),
365
- probeTcp(port),
366
- ]);
367
- const owners = listening ? findPortOwners(port, { platform, execSync: execSyncImpl }) : [];
368
-
369
- const missing = BUILD_MARKERS.filter((rel) => !fs.existsSync(path.join(appDir, rel)));
370
- const appVersion = readJsonFile(path.join(appDir, "package.json"))?.version || null;
371
-
372
- const runtime = readRuntimeState(runtimeDir);
373
- const expected = [...RUNTIME_MODULES, ...(platform === "win32" ? [] : RUNTIME_MODULES_POSIX)];
374
-
375
- const shared = {
376
- dataDir,
377
- server,
378
- listening,
379
- owners,
380
- port,
381
- pidFilePid: readPidFile(dataDir),
382
- diskVersion: readDiskVersion(dataDir),
383
- launcherVersion,
384
- };
385
-
386
- const checks = [
387
- checkVersion({ port, launcherVersion, diskVersion: shared.diskVersion, server }),
388
- checkStaleProcess({ ...shared }),
389
- checkBuild({ appDir, missing, appVersion, launcherVersion }),
390
- checkDriver({
391
- health,
392
- // "copy present" has to mean *usable*: §4 was a runtime copy that existed
393
- // but could not be loaded, which is indistinguishable from absent here.
394
- runtimeCopy:
395
- runtime.installed.includes("better-sqlite3") && !runtime.broken.includes("better-sqlite3"),
396
- }),
397
- checkRuntimeDeps({
398
- runtimeDir,
399
- declared: runtime.declared,
400
- installed: runtime.installed,
401
- broken: runtime.broken,
402
- expected,
403
- }),
404
- checkPort({ port, dataDir, listening, owners, pidFilePid: shared.pidFilePid, server }),
405
- checkTray({ platform, systrayInstalled: runtime.installed.includes("systray2") }),
406
- checkDataDir({
407
- dataDir,
408
- exists: fs.existsSync(dataDir),
409
- writable: isWritable(dataDir),
410
- legacyDir,
411
- legacyPending: fs.existsSync(legacyDir) && !hasAppData(dataDir),
412
- }),
413
- ];
414
-
415
- return ORDER.map((id) => checks.find((c) => c.id === id));
416
- }
417
-
418
- function summarize(checks, { port = DEFAULT_PORT, dataDir = getDataDir(), launcherVersion } = {}) {
419
- const counts = { [OK]: 0, [YELLOW]: 0, [RED]: 0 };
420
- for (const c of checks) counts[c.status] = (counts[c.status] || 0) + 1;
421
- return {
422
- schemaVersion: SCHEMA_VERSION,
423
- ok: counts[RED] === 0,
424
- version: launcherVersion || require("../../package.json").version,
425
- port,
426
- dataDir,
427
- counts,
428
- checks: checks.map(({ id, status, reason, facts }) => ({ id, status, reason, facts })),
429
- };
430
- }
431
-
432
- // ---------------------------------------------------------------------------
433
- // Rendering
434
- // ---------------------------------------------------------------------------
435
-
436
- /**
437
- * One line per check. `doctor.<id>.ok` for a pass, `doctor.<id>.<reason>` for a
438
- * finding, so the text can name the actual cause instead of a generic warning.
439
- */
440
- function renderHuman(report) {
441
- const lines = [t("doctor.title", { version: report.version, port: report.port }), ""];
442
- for (const c of report.checks) {
443
- const key = c.status === OK ? `doctor.${c.id}.ok` : `doctor.${c.id}.${c.reason}`;
444
- const params = {};
445
- for (const [name, value] of Object.entries(c.facts)) {
446
- if (Array.isArray(value)) params[name] = value.join(", ") || "—";
447
- // An absent fact (no marker, no pidfile, no driver) must not print as
448
- // "null" — every message would then read like a crash.
449
- else params[name] = value === null || value === undefined || value === "" ? "—" : value;
450
- }
451
- lines.push(`${STATUS_ICON[c.status]} ${c.id}: ${t(key, params)}`);
452
- }
453
- lines.push("");
454
- lines.push(
455
- report.ok
456
- ? t("doctor.summaryOk", { ok: report.counts[OK], yellow: report.counts[YELLOW] })
457
- : t("doctor.summaryRed", { red: report.counts[RED], yellow: report.counts[YELLOW] }),
458
- );
459
- lines.push(t("doctor.readOnlyHint"));
460
- return lines.join("\n");
461
- }
462
-
463
- // ---------------------------------------------------------------------------
464
- // Entry point
465
- // ---------------------------------------------------------------------------
466
-
467
- function parseArgs(argv) {
468
- const opts = { json: false, help: false, port: DEFAULT_PORT };
469
- for (let i = 0; i < argv.length; i++) {
470
- const arg = argv[i];
471
- if (arg === "--json") opts.json = true;
472
- else if (arg === "--help" || arg === "-h") opts.help = true;
473
- else if (arg === "--port" || arg === "-p") {
474
- const next = parseInt(argv[i + 1], 10);
475
- if (Number.isInteger(next) && next > 0 && next < 65536) opts.port = next;
476
- i++;
477
- }
478
- }
479
- return opts;
480
- }
481
-
482
- async function run(argv = [], deps = {}) {
483
- const opts = parseArgs(argv);
484
- if (opts.help) {
485
- console.log(t("doctor.help"));
486
- return 0;
487
- }
488
- const checks = await collectChecks({ ...deps, port: opts.port });
489
- const report = summarize(checks, { ...deps, port: opts.port });
490
- if (opts.json) console.log(JSON.stringify(report, null, 2));
491
- else console.log(renderHuman(report));
492
- return report.ok ? 0 : 1;
493
- }
494
-
495
- module.exports = {
496
- APP_DIR,
497
- BUILD_MARKERS,
498
- DEFAULT_PORT,
499
- OK,
500
- ORDER,
501
- RED,
502
- RUNTIME_MODULES,
503
- RUNTIME_MODULES_POSIX,
504
- SCHEMA_VERSION,
505
- YELLOW,
506
- checkBuild,
507
- checkDataDir,
508
- checkDriver,
509
- checkPort,
510
- checkRuntimeDeps,
511
- checkStaleProcess,
512
- checkTray,
513
- checkVersion,
514
- collectChecks,
515
- findPortOwners,
516
- hasAppData,
517
- legacyDirPath,
518
- parseArgs,
519
- probeHealth,
520
- probeTcp,
521
- readRuntimeState,
522
- renderHuman,
523
- run,
524
- summarize,
525
- };
1
+ "use strict";
2
+
3
+ /**
4
+ * `10router doctor` — one command that answers "why is this install misbehaving?".
5
+ *
6
+ * Why it exists (issue #24): the three failure modes users hit all present the
7
+ * same way — the dashboard serves a stale/blank page, or the app "installs fine
8
+ * but will not start" — while every existing self-check answers "fine":
9
+ * §1 the two runtime hooks pruned each other's npm installs, so
10
+ * better-sqlite3 sat in node_modules but was absent from
11
+ * runtime/package.json: `npm ls` cannot see it and /api/health still said
12
+ * ok;
13
+ * §3 a server from the PREVIOUS build was still holding the port, so the
14
+ * binary that answered /api/health was the old one;
15
+ * §4 a global better-sqlite3 shadowed the runtime copy, and /api/health did
16
+ * not even name the driver it settled on.
17
+ * All three needed a human to walk processes, node_modules and version markers
18
+ * by hand. Doctor is that walk, scripted.
19
+ *
20
+ * Hard rules (see docs/zh-CN/spec-10router-doctor.md):
21
+ * - READ-ONLY. No DB initialisation (the same rule /api/health follows — a
22
+ * health probe that opens SQLite is its own outage), no file writes, no
23
+ * killing, no restarts. `--fix` is deliberately out of scope: the blast
24
+ * radius differs per finding (kill a process / reinstall a dependency /
25
+ * migrate data) and that is a product decision, not a diagnosis.
26
+ * - Every check is a pure function over already-collected facts, so the whole
27
+ * decision table is unit-testable without a port, a process or a real data
28
+ * dir. `collectChecks()` is the only part that touches the machine.
29
+ * - `--json` is a contract: it carries check IDs and reason codes, NEVER
30
+ * translated text, and is versioned by `schemaVersion`.
31
+ */
32
+
33
+ const fs = require("fs");
34
+ const os = require("os");
35
+ const path = require("path");
36
+ const net = require("net");
37
+
38
+ const { t } = require("./i18n");
39
+ const { getDataDir, getRuntimeDir, isBetterSqliteBinaryValid, isSqlJsWasmValid } = require("../../hooks/sqliteRuntime");
40
+ const {
41
+ diskVersionPath,
42
+ pidFilePath,
43
+ probeServerVersion,
44
+ readDiskVersion,
45
+ readPidFile,
46
+ } = require("./staleServer");
47
+
48
+ const SCHEMA_VERSION = 1;
49
+ const DEFAULT_PORT = 20128;
50
+
51
+ /** `cli/app` — the built server this launcher spawns (`<repo>/cli/app`). */
52
+ const APP_DIR = path.join(__dirname, "..", "..", "app");
53
+ /** Written by cli/scripts/build-cli.js; its absence means "a half-finished upgrade". */
54
+ const BUILD_DIST_DIR = ".next-cli-build";
55
+ /** All three must exist for the launcher to have something to serve. */
56
+ const BUILD_MARKERS = ["custom-server.js", "server.js", path.join(BUILD_DIST_DIR, "server")];
57
+ /**
58
+ * What the runtime dir is expected to hold. sql.js is the always-works fallback,
59
+ * better-sqlite3 the speed path; systray2 only exists on macOS/Linux (Windows
60
+ * gets an in-process tray), so it is not "missing" there.
61
+ */
62
+ const RUNTIME_MODULES = ["sql.js", "better-sqlite3"];
63
+ const RUNTIME_MODULES_POSIX = ["systray2"];
64
+
65
+ const OK = "ok";
66
+ const YELLOW = "yellow";
67
+ const RED = "red";
68
+
69
+ const STATUS_ICON = { [OK]: "✅", [YELLOW]: "⚠️ ", [RED]: "❌" };
70
+
71
+ // ---------------------------------------------------------------------------
72
+ // Probes (the only side-effecting code in this file — all read-only)
73
+ // ---------------------------------------------------------------------------
74
+
75
+ /** Is anything accepting TCP connections on the port? */
76
+ function probeTcp(port, { timeoutMs = 800, host = "127.0.0.1" } = {}) {
77
+ return new Promise((resolve) => {
78
+ const socket = net.connect({ host, port });
79
+ let settled = false;
80
+ const done = (value) => {
81
+ if (settled) return;
82
+ settled = true;
83
+ socket.destroy();
84
+ resolve(value);
85
+ };
86
+ socket.setTimeout(timeoutMs);
87
+ socket.once("connect", () => done(true));
88
+ socket.once("timeout", () => done(false));
89
+ socket.once("error", () => done(false));
90
+ });
91
+ }
92
+
93
+ /** `/api/health` is read-only by design, so this cannot open the DB. */
94
+ async function probeHealth(port, { fetchImpl = globalThis.fetch, timeoutMs = 2000 } = {}) {
95
+ if (typeof fetchImpl !== "function") return null;
96
+ const controller = typeof AbortController === "function" ? new AbortController() : null;
97
+ const timer = controller ? setTimeout(() => controller.abort(), timeoutMs) : null;
98
+ try {
99
+ const res = await fetchImpl(`http://127.0.0.1:${port}/api/health`, {
100
+ signal: controller ? controller.signal : undefined,
101
+ cache: "no-store",
102
+ });
103
+ if (!res || !res.ok) return null;
104
+ const data = await res.json();
105
+ return data && typeof data === "object" ? data : null;
106
+ } catch {
107
+ return null;
108
+ } finally {
109
+ if (timer) clearTimeout(timer);
110
+ }
111
+ }
112
+
113
+ /** PIDs listening on the port. Read-only twin of cli.js's killProcessOnPort(). */
114
+ function findPortOwners(port, { platform = process.platform, execSync } = {}) {
115
+ const run = execSync || require("child_process").execSync;
116
+ try {
117
+ if (platform === "win32") {
118
+ const out = String(
119
+ run(`netstat -ano | findstr :${port}`, {
120
+ encoding: "utf8",
121
+ shell: true,
122
+ windowsHide: true,
123
+ timeout: 5000,
124
+ }) || "",
125
+ ).trim();
126
+ const pids = out
127
+ .split("\n")
128
+ .filter((line) => line.includes("LISTENING"))
129
+ .map((line) => Number(line.trim().split(/\s+/).pop()))
130
+ .filter((pid) => Number.isInteger(pid) && pid > 0);
131
+ return [...new Set(pids)];
132
+ }
133
+ const out = String(
134
+ run(`lsof -ti:${port}`, {
135
+ encoding: "utf8",
136
+ stdio: ["pipe", "pipe", "ignore"],
137
+ timeout: 5000,
138
+ }) || "",
139
+ ).trim();
140
+ const pids = out
141
+ .split("\n")
142
+ .map((line) => Number(line.trim()))
143
+ .filter((pid) => Number.isInteger(pid) && pid > 0);
144
+ return [...new Set(pids)];
145
+ } catch {
146
+ // Nothing listening, or netstat/lsof unavailable — "no owner known", never
147
+ // "no owner", so callers must not conclude the port is free from this alone.
148
+ return [];
149
+ }
150
+ }
151
+
152
+ // ---------------------------------------------------------------------------
153
+ // Small read-only filesystem helpers
154
+ // ---------------------------------------------------------------------------
155
+
156
+ function isWritable(dir) {
157
+ try {
158
+ fs.accessSync(dir, fs.constants.W_OK);
159
+ return true;
160
+ } catch {
161
+ return false;
162
+ }
163
+ }
164
+
165
+ function readJsonFile(file) {
166
+ try {
167
+ return JSON.parse(fs.readFileSync(file, "utf8"));
168
+ } catch {
169
+ return null;
170
+ }
171
+ }
172
+
173
+ /**
174
+ * The runtime dir is one npm project shared by both hooks, so "installed but not
175
+ * declared" is exactly the §1 state: the next `npm install` here prunes it.
176
+ *
177
+ * `broken` is the other half of that story: a module npm considers installed can
178
+ * still be unusable (better-sqlite3 without its compiled binary, sql.js without
179
+ * its wasm). That is the state §4 showed as "a fallback driver, and nothing says
180
+ * why" — the directory looks complete, so only the artifact check catches it.
181
+ */
182
+ function readRuntimeState(runtimeDir) {
183
+ const pkg = readJsonFile(path.join(runtimeDir, "package.json"));
184
+ const declared = Object.keys(pkg?.dependencies || {});
185
+ const nodeModulesDir = path.join(runtimeDir, "node_modules");
186
+ let installed = [];
187
+ try {
188
+ installed = fs
189
+ .readdirSync(nodeModulesDir)
190
+ .filter((name) => name !== ".package-lock.json" && !name.startsWith("."))
191
+ .filter((name) => fs.existsSync(path.join(nodeModulesDir, name, "package.json")));
192
+ } catch {
193
+ installed = [];
194
+ }
195
+ const broken = [];
196
+ if (installed.includes("better-sqlite3") && !isBetterSqliteBinaryValid(nodeModulesDir)) broken.push("better-sqlite3");
197
+ if (installed.includes("sql.js") && !isSqlJsWasmValid(nodeModulesDir)) broken.push("sql.js");
198
+ return { declared, installed, broken };
199
+ }
200
+
201
+ /** The legacy 9Router data dir, still waiting to be migrated. */
202
+ function legacyDirPath({ platform = process.platform } = {}) {
203
+ return platform === "win32"
204
+ ? path.join(process.env.APPDATA || "", "9router")
205
+ : path.join(os.homedir(), ".9router");
206
+ }
207
+
208
+ // Mirror of src/lib/dataDir.js `hasAppData()` — deliberately NOT "is the dir
209
+ // non-empty": on Windows the data dir doubles as Electron's userData profile
210
+ // (Cache/, GPUCache/ …), so non-emptiness is always true and would pin the
211
+ // migration — and this check — off. Keeping the same file list means doctor and
212
+ // the app can never disagree about whether a migration is still pending.
213
+ const LEGACY_JSON_FILES = ["db.json", "usage.json", "disabledModels.json", "request-details.json"];
214
+
215
+ function hasAppData(dir) {
216
+ if (fs.existsSync(path.join(dir, "db", "data.sqlite"))) return true;
217
+ return LEGACY_JSON_FILES.some((name) => fs.existsSync(path.join(dir, name)));
218
+ }
219
+
220
+ // ---------------------------------------------------------------------------
221
+ // Checks — pure functions: (facts) -> { id, status, reason, facts }
222
+ // ---------------------------------------------------------------------------
223
+
224
+ const result = (id, status, reason, facts = {}) => ({ id, status, reason, facts });
225
+
226
+ function checkDataDir({ dataDir, exists, writable, legacyDir, legacyPending }) {
227
+ const facts = { dir: dataDir };
228
+ if (exists && !writable) return result("data-dir", RED, "not-writable", facts);
229
+ // Only while the copy has genuinely not happened. The migration leaves the
230
+ // legacy dir in place forever (so it can be retried by hand), so "legacy dir
231
+ // exists" alone is a permanent condition and would be pure noise here.
232
+ if (legacyPending) return result("data-dir", YELLOW, "legacy-pending", { ...facts, legacy: legacyDir });
233
+ if (!exists) return result("data-dir", YELLOW, "missing", facts);
234
+ return result("data-dir", OK, "ok", facts);
235
+ }
236
+
237
+ function checkBuild({ appDir, missing, appVersion, launcherVersion }) {
238
+ const facts = { dir: appDir, version: appVersion || null, launcher: launcherVersion || null };
239
+ if (missing.length) return result("build", RED, "missing-files", { ...facts, missing });
240
+ if (!appVersion) return result("build", RED, "no-version", facts);
241
+ if (appVersion !== launcherVersion) return result("build", RED, "version-mismatch", facts);
242
+ return result("build", OK, "ok", facts);
243
+ }
244
+
245
+ function checkRuntimeDeps({ runtimeDir, declared, installed, broken, expected }) {
246
+ const facts = {
247
+ dir: runtimeDir,
248
+ orphaned: expected.filter((m) => installed.includes(m) && !declared.includes(m)),
249
+ broken: (broken || []).filter((m) => expected.includes(m)),
250
+ missing: expected.filter((m) => !installed.includes(m)),
251
+ };
252
+ if (!fs.existsSync(runtimeDir)) return result("runtime-deps", YELLOW, "no-runtime", facts);
253
+ if (facts.orphaned.length) return result("runtime-deps", RED, "unregistered", facts);
254
+ if (facts.broken.length) return result("runtime-deps", RED, "broken-artifact", facts);
255
+ if (facts.missing.length) return result("runtime-deps", YELLOW, "missing", facts);
256
+ return result("runtime-deps", OK, "ok", facts);
257
+ }
258
+
259
+ /**
260
+ * `driver: null` is NOT a failure: /api/health deliberately never initialises the
261
+ * DB, so a freshly started server reports null until the first real query. Only
262
+ * "no driver AND no runtime copy AND the driver layer said why" is fatal.
263
+ */
264
+ function checkDriver({ health, runtimeCopy }) {
265
+ const facts = { driver: health?.driver ?? null, error: health?.lastDriverError ?? null, runtimeCopy };
266
+ if (!health) return result("driver", YELLOW, "no-health", facts);
267
+ if (!health.driver && !runtimeCopy && health.lastDriverError) return result("driver", RED, "no-driver", facts);
268
+ if (!health.driver) return result("driver", YELLOW, "not-initialized", facts);
269
+ if (health.lastDriverError) return result("driver", YELLOW, "fallback", facts);
270
+ return result("driver", OK, "ok", facts);
271
+ }
272
+
273
+ /** Launcher vs the on-disk marker vs what is actually answering on the port. */
274
+ function checkVersion({ port, launcherVersion, diskVersion, server }) {
275
+ const facts = { port, launcher: launcherVersion, disk: diskVersion || null, server: server?.version || null };
276
+ // Deliberately NOT gated on a running server: launcher ≠ on-disk marker means
277
+ // two different builds are sharing one data dir, which is true regardless of
278
+ // whether either of them is up right now.
279
+ const known = [launcherVersion, diskVersion, server?.version].filter(Boolean);
280
+ if (new Set(known).size > 1) return result("version", RED, "mismatch", facts);
281
+ // Something holds the port but does not speak our /api/version.
282
+ if (server?.reachable && !server.version) return result("version", YELLOW, "no-server-version", facts);
283
+ return result("version", OK, "ok", facts);
284
+ }
285
+
286
+ function checkPort({ port, dataDir, listening, owners, pidFilePid, server }) {
287
+ const facts = { port, owners: owners || [], pidFilePid: pidFilePid || null };
288
+ if (!listening) {
289
+ // A pidfile with nothing listening is a leftover from a crashed server; the
290
+ // next start's heal would rewrite it, so it is informative, not broken.
291
+ if (pidFilePid) return result("port", YELLOW, "orphan-pidfile", { ...facts, file: pidFilePath(dataDir) });
292
+ return result("port", OK, "free", facts);
293
+ }
294
+ if (server?.version) return result("port", OK, "ok", facts);
295
+ // Answers TCP but not our /api/version: our own server mid-boot (the pidfile
296
+ // still matches) or somebody else's service (it does not).
297
+ if (pidFilePid && owners.includes(pidFilePid)) return result("port", OK, "booting", facts);
298
+ return result("port", RED, "foreign", facts);
299
+ }
300
+
301
+ /** The §3b scenario: the port is served by a build that is not the one on disk. */
302
+ function checkStaleProcess({ port, dataDir, server, diskVersion, launcherVersion, pidFilePid, owners }) {
303
+ const disk = diskVersion || launcherVersion;
304
+ const facts = {
305
+ port,
306
+ server: server?.version || null,
307
+ disk: disk || null,
308
+ pidFilePid: pidFilePid || null,
309
+ owners: owners || [],
310
+ };
311
+ const running = server?.version || null;
312
+ if (!running) {
313
+ // Nothing verifiable is on the port. A pidfile we cannot match is worth a
314
+ // look, but a stale build can only be PROVEN by a version, so never red.
315
+ if (pidFilePid) return result("stale-process", YELLOW, "unverified", facts);
316
+ return result("stale-process", OK, "idle", facts);
317
+ }
318
+ // Comparing against the launcher when the marker is absent keeps the red
319
+ // signal: "what is serving is not what this launcher ships" is the same fault.
320
+ if (running !== disk) return result("stale-process", RED, "stale", facts);
321
+ // It matches, but with no marker on disk a still-running OLD build could never
322
+ // have noticed an upgrade — the §3b mechanism is silently absent.
323
+ if (!diskVersion) return result("stale-process", YELLOW, "no-marker", { ...facts, file: diskVersionPath(dataDir) });
324
+ if (pidFilePid && owners.length && !owners.includes(pidFilePid)) {
325
+ return result("stale-process", YELLOW, "pid-mismatch", facts);
326
+ }
327
+ return result("stale-process", OK, "ok", facts);
328
+ }
329
+
330
+ /** Informational only — a missing tray never breaks serving, so never red. */
331
+ function checkTray({ platform, systrayInstalled }) {
332
+ const facts = { platform, systray: Boolean(systrayInstalled) };
333
+ if (platform === "win32") return result("tray", OK, "bundled", facts);
334
+ if (!systrayInstalled) return result("tray", YELLOW, "missing", facts);
335
+ return result("tray", OK, "ok", facts);
336
+ }
337
+
338
+ // ---------------------------------------------------------------------------
339
+ // Collection — the only machine-touching part
340
+ // ---------------------------------------------------------------------------
341
+
342
+ const ORDER = ["version", "stale-process", "build", "driver", "runtime-deps", "port", "tray", "data-dir"];
343
+
344
+ /**
345
+ * Gather every fact once, then run the pure checks. Injectable so tests never
346
+ * touch a real port or a real ~/.10router.
347
+ */
348
+ async function collectChecks({
349
+ port = DEFAULT_PORT,
350
+ dataDir = getDataDir(),
351
+ launcherVersion = require("../../package.json").version,
352
+ appDir = APP_DIR,
353
+ runtimeDir = getRuntimeDir(),
354
+ platform = process.platform,
355
+ legacyDir = legacyDirPath({ platform }),
356
+ fetchImpl,
357
+ execSyncImpl,
358
+ probeTimeoutMs,
359
+ } = {}) {
360
+ const probeOptions = { fetchImpl, timeoutMs: probeTimeoutMs };
361
+
362
+ const [server, health, listening] = await Promise.all([
363
+ probeServerVersion(port, probeOptions),
364
+ probeHealth(port, { fetchImpl, timeoutMs: probeTimeoutMs }),
365
+ probeTcp(port),
366
+ ]);
367
+ const owners = listening ? findPortOwners(port, { platform, execSync: execSyncImpl }) : [];
368
+
369
+ const missing = BUILD_MARKERS.filter((rel) => !fs.existsSync(path.join(appDir, rel)));
370
+ const appVersion = readJsonFile(path.join(appDir, "package.json"))?.version || null;
371
+
372
+ const runtime = readRuntimeState(runtimeDir);
373
+ const expected = [...RUNTIME_MODULES, ...(platform === "win32" ? [] : RUNTIME_MODULES_POSIX)];
374
+
375
+ const shared = {
376
+ dataDir,
377
+ server,
378
+ listening,
379
+ owners,
380
+ port,
381
+ pidFilePid: readPidFile(dataDir),
382
+ diskVersion: readDiskVersion(dataDir),
383
+ launcherVersion,
384
+ };
385
+
386
+ const checks = [
387
+ checkVersion({ port, launcherVersion, diskVersion: shared.diskVersion, server }),
388
+ checkStaleProcess({ ...shared }),
389
+ checkBuild({ appDir, missing, appVersion, launcherVersion }),
390
+ checkDriver({
391
+ health,
392
+ // "copy present" has to mean *usable*: §4 was a runtime copy that existed
393
+ // but could not be loaded, which is indistinguishable from absent here.
394
+ runtimeCopy:
395
+ runtime.installed.includes("better-sqlite3") && !runtime.broken.includes("better-sqlite3"),
396
+ }),
397
+ checkRuntimeDeps({
398
+ runtimeDir,
399
+ declared: runtime.declared,
400
+ installed: runtime.installed,
401
+ broken: runtime.broken,
402
+ expected,
403
+ }),
404
+ checkPort({ port, dataDir, listening, owners, pidFilePid: shared.pidFilePid, server }),
405
+ checkTray({ platform, systrayInstalled: runtime.installed.includes("systray2") }),
406
+ checkDataDir({
407
+ dataDir,
408
+ exists: fs.existsSync(dataDir),
409
+ writable: isWritable(dataDir),
410
+ legacyDir,
411
+ legacyPending: fs.existsSync(legacyDir) && !hasAppData(dataDir),
412
+ }),
413
+ ];
414
+
415
+ return ORDER.map((id) => checks.find((c) => c.id === id));
416
+ }
417
+
418
+ function summarize(checks, { port = DEFAULT_PORT, dataDir = getDataDir(), launcherVersion } = {}) {
419
+ const counts = { [OK]: 0, [YELLOW]: 0, [RED]: 0 };
420
+ for (const c of checks) counts[c.status] = (counts[c.status] || 0) + 1;
421
+ return {
422
+ schemaVersion: SCHEMA_VERSION,
423
+ ok: counts[RED] === 0,
424
+ version: launcherVersion || require("../../package.json").version,
425
+ port,
426
+ dataDir,
427
+ counts,
428
+ checks: checks.map(({ id, status, reason, facts }) => ({ id, status, reason, facts })),
429
+ };
430
+ }
431
+
432
+ // ---------------------------------------------------------------------------
433
+ // Rendering
434
+ // ---------------------------------------------------------------------------
435
+
436
+ /**
437
+ * One line per check. `doctor.<id>.ok` for a pass, `doctor.<id>.<reason>` for a
438
+ * finding, so the text can name the actual cause instead of a generic warning.
439
+ */
440
+ function renderHuman(report) {
441
+ const lines = [t("doctor.title", { version: report.version, port: report.port }), ""];
442
+ for (const c of report.checks) {
443
+ const key = c.status === OK ? `doctor.${c.id}.ok` : `doctor.${c.id}.${c.reason}`;
444
+ const params = {};
445
+ for (const [name, value] of Object.entries(c.facts)) {
446
+ if (Array.isArray(value)) params[name] = value.join(", ") || "—";
447
+ // An absent fact (no marker, no pidfile, no driver) must not print as
448
+ // "null" — every message would then read like a crash.
449
+ else params[name] = value === null || value === undefined || value === "" ? "—" : value;
450
+ }
451
+ lines.push(`${STATUS_ICON[c.status]} ${c.id}: ${t(key, params)}`);
452
+ }
453
+ lines.push("");
454
+ lines.push(
455
+ report.ok
456
+ ? t("doctor.summaryOk", { ok: report.counts[OK], yellow: report.counts[YELLOW] })
457
+ : t("doctor.summaryRed", { red: report.counts[RED], yellow: report.counts[YELLOW] }),
458
+ );
459
+ lines.push(t("doctor.readOnlyHint"));
460
+ return lines.join("\n");
461
+ }
462
+
463
+ // ---------------------------------------------------------------------------
464
+ // Entry point
465
+ // ---------------------------------------------------------------------------
466
+
467
+ function parseArgs(argv) {
468
+ const opts = { json: false, help: false, port: DEFAULT_PORT };
469
+ for (let i = 0; i < argv.length; i++) {
470
+ const arg = argv[i];
471
+ if (arg === "--json") opts.json = true;
472
+ else if (arg === "--help" || arg === "-h") opts.help = true;
473
+ else if (arg === "--port" || arg === "-p") {
474
+ const next = parseInt(argv[i + 1], 10);
475
+ if (Number.isInteger(next) && next > 0 && next < 65536) opts.port = next;
476
+ i++;
477
+ }
478
+ }
479
+ return opts;
480
+ }
481
+
482
+ async function run(argv = [], deps = {}) {
483
+ const opts = parseArgs(argv);
484
+ if (opts.help) {
485
+ console.log(t("doctor.help"));
486
+ return 0;
487
+ }
488
+ const checks = await collectChecks({ ...deps, port: opts.port });
489
+ const report = summarize(checks, { ...deps, port: opts.port });
490
+ if (opts.json) console.log(JSON.stringify(report, null, 2));
491
+ else console.log(renderHuman(report));
492
+ return report.ok ? 0 : 1;
493
+ }
494
+
495
+ module.exports = {
496
+ APP_DIR,
497
+ BUILD_MARKERS,
498
+ DEFAULT_PORT,
499
+ OK,
500
+ ORDER,
501
+ RED,
502
+ RUNTIME_MODULES,
503
+ RUNTIME_MODULES_POSIX,
504
+ SCHEMA_VERSION,
505
+ YELLOW,
506
+ checkBuild,
507
+ checkDataDir,
508
+ checkDriver,
509
+ checkPort,
510
+ checkRuntimeDeps,
511
+ checkStaleProcess,
512
+ checkTray,
513
+ checkVersion,
514
+ collectChecks,
515
+ findPortOwners,
516
+ hasAppData,
517
+ legacyDirPath,
518
+ parseArgs,
519
+ probeHealth,
520
+ probeTcp,
521
+ readRuntimeState,
522
+ renderHuman,
523
+ run,
524
+ summarize,
525
+ };