@techysy/10router 1.2.1 → 1.3.1
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.
- package/README.md +240 -240
- package/README.zh-CN.md +210 -210
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +16 -8
- package/app/.next-cli-build/build-manifest.json +3 -3
- package/app/.next-cli-build/prerender-manifest.json +27 -27
- package/app/.next-cli-build/react-loadable-manifest.json +29 -0
- package/app/.next-cli-build/routes-manifest.json +50 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +15 -9
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +9 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/verify-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/verify-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +26 -11
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js +2 -0
- package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +4 -0
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +23 -9
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/rotate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/rotate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/network/egress-region/route.js +1 -1
- package/app/.next-cli-build/server/app/api/network/egress-region/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js +2 -0
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js +2 -0
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +42 -0
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/security/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +3 -3
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -0
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/dashboard/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/dashboard/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/quotas/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/quotas/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -0
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/v1/systemone/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +9 -1
- package/app/.next-cli-build/server/app/callback.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +21 -19
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +21 -19
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +22 -20
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +22 -20
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +22 -20
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +22 -20
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/experimental.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/experimental.rsc +21 -19
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +21 -19
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +14 -11
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +22 -19
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +22 -19
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +14 -11
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +24 -22
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +24 -22
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +24 -22
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +24 -22
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +22 -19
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +22 -19
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +9 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +23 -20
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +16 -12
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +23 -20
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +21 -19
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +21 -19
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +24 -22
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +24 -22
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +9 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +25 -22
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +9 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +9 -1
- package/app/.next-cli-build/server/app/landing.rsc +7 -7
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +9 -1
- package/app/.next-cli-build/server/app/login.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +16 -8
- package/app/.next-cli-build/server/chunks/1159.js +5 -3
- package/app/.next-cli-build/server/chunks/1219.js +1 -1
- package/app/.next-cli-build/server/chunks/1329.js +1 -0
- package/app/.next-cli-build/server/chunks/1386.js +9 -0
- package/app/.next-cli-build/server/chunks/1710.js +1 -1
- package/app/.next-cli-build/server/chunks/2112.js +1 -1
- package/app/.next-cli-build/server/chunks/2116.js +1 -0
- package/app/.next-cli-build/server/chunks/2120.js +1 -1
- package/app/.next-cli-build/server/chunks/2132.js +1 -1
- package/app/.next-cli-build/server/chunks/2468.js +1 -0
- package/app/.next-cli-build/server/chunks/{9528.js → 2750.js} +2 -3
- package/app/.next-cli-build/server/chunks/2926.js +1 -1
- package/app/.next-cli-build/server/chunks/3245.js +1 -1
- package/app/.next-cli-build/server/chunks/3500.js +4 -4
- package/app/.next-cli-build/server/chunks/3535.js +1 -1
- package/app/.next-cli-build/server/chunks/3792.js +1 -1
- package/app/.next-cli-build/server/chunks/3885.js +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4177.js +1 -1
- package/app/.next-cli-build/server/chunks/4190.js +1 -0
- package/app/.next-cli-build/server/chunks/4282.js +1 -1
- package/app/.next-cli-build/server/chunks/436.js +1 -1
- package/app/.next-cli-build/server/chunks/4575.js +1 -1
- package/app/.next-cli-build/server/chunks/4689.js +1 -0
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/4886.js +1 -0
- package/app/.next-cli-build/server/chunks/4927.js +7 -6
- package/app/.next-cli-build/server/chunks/5210.js +26 -26
- package/app/.next-cli-build/server/chunks/5330.js +8 -8
- package/app/.next-cli-build/server/chunks/539.js +1 -1
- package/app/.next-cli-build/server/chunks/5485.js +1 -1
- package/app/.next-cli-build/server/chunks/5615.js +1 -1
- package/app/.next-cli-build/server/chunks/5781.js +1 -1
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/6133.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6306.js +1 -1
- package/app/.next-cli-build/server/chunks/6326.js +1 -1
- package/app/.next-cli-build/server/chunks/6492.js +1 -1
- package/app/.next-cli-build/server/chunks/6756.js +1 -1
- package/app/.next-cli-build/server/chunks/6763.js +1 -1
- package/app/.next-cli-build/server/chunks/6921.js +65 -0
- package/app/.next-cli-build/server/chunks/6922.js +1 -1
- package/app/.next-cli-build/server/chunks/6956.js +1 -1
- package/app/.next-cli-build/server/chunks/6960.js +5 -5
- package/app/.next-cli-build/server/chunks/7066.js +1 -0
- package/app/.next-cli-build/server/chunks/7067.js +1 -1
- package/app/.next-cli-build/server/chunks/7070.js +1 -0
- package/app/.next-cli-build/server/chunks/7122.js +1 -1
- package/app/.next-cli-build/server/chunks/7239.js +2 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/7274.js +3 -3
- package/app/.next-cli-build/server/chunks/7322.js +2 -2
- package/app/.next-cli-build/server/chunks/7828.js +1 -1
- package/app/.next-cli-build/server/chunks/8172.js +9 -1
- package/app/.next-cli-build/server/chunks/8370.js +103 -0
- package/app/.next-cli-build/server/chunks/8410.js +1 -1
- package/app/.next-cli-build/server/chunks/8499.js +13 -13
- package/app/.next-cli-build/server/chunks/8595.js +1 -1
- package/app/.next-cli-build/server/chunks/8672.js +1 -1
- package/app/.next-cli-build/server/chunks/8749.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +11 -11
- package/app/.next-cli-build/server/chunks/890.js +1 -0
- package/app/.next-cli-build/server/chunks/8920.js +1 -1
- package/app/.next-cli-build/server/chunks/8988.js +1 -1
- package/app/.next-cli-build/server/chunks/9046.js +1 -1
- package/app/.next-cli-build/server/chunks/9055.js +2 -0
- package/app/.next-cli-build/server/chunks/9154.js +1 -1
- package/app/.next-cli-build/server/chunks/939.js +1 -1
- package/app/.next-cli-build/server/chunks/{4990.js → 9451.js} +1 -1
- package/app/.next-cli-build/server/chunks/9489.js +2 -2
- package/app/.next-cli-build/server/chunks/9609.js +1 -1
- package/app/.next-cli-build/server/chunks/9628.js +1 -1
- package/app/.next-cli-build/server/chunks/976.js +9 -0
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +7 -7
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +9 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/124.8b2f018d999d9a51.js +1 -0
- package/app/.next-cli-build/static/chunks/1243-25be5a7b0193949d.js +3 -0
- package/app/.next-cli-build/static/chunks/1321-8478f2be717a38f6.js +1 -0
- package/app/.next-cli-build/static/chunks/305-f019439bbcf9152e.js +1 -0
- package/app/.next-cli-build/static/chunks/3842-da1878db3339b090.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-7d66b43a3bbcf07d.js +7 -0
- package/app/.next-cli-build/static/chunks/6808-7c2c0ea1ee14763c.js +1 -0
- package/app/.next-cli-build/static/chunks/839-e45391c69a64b949.js +1 -0
- package/app/.next-cli-build/static/chunks/9233.4e4be172e7d96210.js +65 -0
- package/app/.next-cli-build/static/chunks/{3346-509e8dd58ea4832d.js → 9749-80768075d38162d1.js} +27 -16
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-5d45a84bf4178e23.js → page-e9d0cc59613084a7.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-c50454e03482deef.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-a010a9c6a7805814.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-14745e08d1edafb2.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-30c02c5c5eefddbd.js → page-38d0f0202be6d8bc.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-47886089f369810c.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/page-5ec2e868aa2ff281.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-9ca09f92fcb7be9f.js → page-3b6db6cc6c16b9ad.js} +18 -12
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-9a471accf206ea43.js → page-ee6bbb288b22cf1b.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-244f4c72b60bf0a0.js → page-ef6ad6f6950d28ae.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-a2510813ebd64f72.js → page-fa1fbe256586f3e4.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-17b2097c5effd063.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-188d4a1bfdaa48a9.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-912bf60e8bad7f94.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-39a4fadcce4f3019.js +14 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-40e882239717e69f.js → page-071c0cece99e2a14.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-9ec9a9251e22a7c8.js → page-e638376663f056c2.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-4f50d3385b23743f.js → page-a82cb7be5341c406.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-e84b8de5542a9dc9.js → page-07d2009205f82daf.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-bc56399135571dd5.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-6a0eb15b8664e682.js → page-c2a93a81da890302.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-7833d8a884ba922a.js → page-598b62c6e8742bbc.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-ff17dc8ecbe63ec9.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-5e0f32afe647c545.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-528e2bc2a1bb20da.js +1 -0
- package/app/.next-cli-build/static/chunks/app/_global-error/page-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-profiles/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/caps/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-kill/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-status/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/security/status/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/landing/page-38924391f8649361.js +1 -0
- package/app/.next-cli-build/static/chunks/app/login/page-b5eb40dc7d4e285e.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-2b9ff155b9d0f304.js +1 -0
- package/app/.next-cli-build/static/chunks/webpack-1adc95943fa90500.js +1 -0
- package/app/.next-cli-build/static/css/bdf1d87cd5f4db94.css +1 -0
- package/app/.next-cli-build/static/hWZt96TEErc6dGwTZrX7O/_buildManifest.js +1 -0
- package/app/custom-server.js +177 -177
- package/app/package.json +71 -69
- package/app/public/i18n/changelog/en.md +354 -308
- package/app/public/i18n/changelog/zh-CN.md +352 -306
- package/app/public/i18n/changelog/zh-TW.md +354 -308
- package/app/public/i18n/literals/zh-CN.json +1970 -1879
- package/app/public/i18n/literals/zh-TW.json +812 -720
- package/app/public/providers/drex.png +0 -0
- package/app/public/providers/fish-audio.png +0 -0
- package/app/public/providers/keenable.png +0 -0
- package/app/public/providers/muse.png +0 -0
- package/app/public/providers/ollama-search.png +0 -0
- package/app/public/providers/tinyfish.png +0 -0
- package/app/public/providers/v1m.png +0 -0
- package/app/public/providers/xquik.png +0 -0
- package/app/public/providers/zcode-free.png +0 -0
- package/app/src/lib/consoleArchiveStandalone.mjs +73 -73
- package/app/src/lib/oauth/providers/xiaomi-mimo.js +169 -169
- package/app/src/sse/services/qoderCheckin.js +437 -437
- package/package.json +61 -61
- package/src/cli/doctor.js +525 -525
- package/src/cli/i18n/locales/en/utils.json +4 -0
- package/src/cli/i18n/locales/zh-CN/utils.json +4 -0
- package/src/cli/i18n/locales/zh-TW/utils.json +4 -0
- package/src/cli/menus/providers.js +3 -2
- package/src/cli/staleServer.js +216 -216
- package/src/cli/utils/modelSelector.js +77 -11
- package/app/.next-cli-build/server/chunks/112.js +0 -1
- package/app/.next-cli-build/server/chunks/1330.js +0 -1
- package/app/.next-cli-build/server/chunks/2051.js +0 -1
- package/app/.next-cli-build/server/chunks/2182.js +0 -9
- package/app/.next-cli-build/server/chunks/271.js +0 -1
- package/app/.next-cli-build/server/chunks/3651.js +0 -92
- package/app/.next-cli-build/server/chunks/869.js +0 -1
- package/app/.next-cli-build/server/chunks/877.js +0 -65
- package/app/.next-cli-build/server/chunks/9539.js +0 -9
- package/app/.next-cli-build/static/Qmgbf1CsCnKFbpB4QvL8M/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/1243-d0e0b9458266e912.js +0 -3
- package/app/.next-cli-build/static/chunks/1321-502b5305b875636f.js +0 -1
- package/app/.next-cli-build/static/chunks/1728-9783950fd2b6ad81.js +0 -65
- package/app/.next-cli-build/static/chunks/5497-10ab12f860a6a157.js +0 -7
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-d9b185c845eb0735.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-baf9fb2b236ff509.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-fa4ba47a6bf0da15.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-c748c385fd4207db.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/page-4dd5e46a2d6f4486.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-12cb89849a36b78d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-6abbed908eb3721a.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-93f4c31ccd56a895.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-d3edcb35175434d5.js +0 -14
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-f62700ce9aa54572.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-b2a5c4828ff3f6e0.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-bf55da31ba675aa9.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-434f2e27f8b21ae1.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/caps/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/security/status/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/landing/page-acb1434862d18ac7.js +0 -1
- package/app/.next-cli-build/static/chunks/app/login/page-38ed66b1e6930f46.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-72924bfdaa66606d.js +0 -1
- package/app/.next-cli-build/static/chunks/webpack-b43a2a1c513882e9.js +0 -1
- package/app/.next-cli-build/static/css/ab87cc8491e8d0fb.css +0 -1
- /package/app/.next-cli-build/static/{Qmgbf1CsCnKFbpB4QvL8M → hWZt96TEErc6dGwTZrX7O}/_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
|
+
};
|