@yina-npm/openrouterx 0.4.6 → 0.4.10
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 +196 -138
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/app-path-routes-manifest.json +9 -3
- package/app/.next/build-manifest.json +2 -2
- package/app/.next/prerender-manifest.json +24 -0
- package/app/.next/required-server-files.json +3 -3
- package/app/.next/routes-manifest.json +38 -0
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +16 -14
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/combo/[id]/page.js +5 -0
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/combo/[id]/page.js.nft.json +1 -0
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/combo/[id]/page_client-reference-manifest.js +1 -0
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -0
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -0
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -0
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error/page.js +2 -2
- package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error.html +1 -1
- package/app/.next/server/app/_global-error.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/_not-found/page.js +2 -2
- package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_not-found.html +1 -1
- package/app/.next/server/app/_not-found.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/api/auth/login/route.js +1 -1
- package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/logout/route.js +1 -1
- package/app/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/auth/route.js +1 -1
- package/app/.next/server/app/api/cloud/auth/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/credentials/update/route.js +1 -1
- package/app/.next/server/app/api/cloud/credentials/update/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/model/resolve/route.js +1 -1
- package/app/.next/server/app/api/cloud/model/resolve/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/models/alias/route.js +1 -1
- package/app/.next/server/app/api/cloud/models/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/route.js +1 -1
- package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next/server/app/api/health/route.js +1 -1
- package/app/.next/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/init/route.js +1 -1
- package/app/.next/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/route.js +1 -1
- package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next/server/app/api/locale/route.js +1 -1
- package/app/.next/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -0
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -0
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -0
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -0
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/alias/route.js +1 -1
- package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/availability/route.js +1 -1
- package/app/.next/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/custom/route.js +1 -1
- package/app/.next/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/route.js +1 -1
- package/app/.next/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/test/route.js +1 -1
- package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pricing/route.js +1 -1
- package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/client/route.js +1 -1
- package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/route.js +1 -1
- package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/validate/route.js +1 -1
- package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/database/route.js +1 -1
- package/app/.next/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/route.js +1 -1
- package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/shutdown/route.js +1 -1
- package/app/.next/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tags/route.js +1 -1
- package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/load/route.js +1 -1
- package/app/.next/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/save/route.js +1 -1
- package/app/.next/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/send/route.js +1 -1
- package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/translate/route.js +1 -1
- package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js +23 -4
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-login/route.js +23 -4
- package/app/.next/server/app/api/tunnel/tailscale-login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/chart/route.js +1 -1
- package/app/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/history/route.js +1 -1
- package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/logs/route.js +1 -1
- package/app/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/providers/route.js +1 -1
- package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stats/route.js +1 -1
- package/app/.next/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stream/route.js +2 -2
- package/app/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/images/generations/route.js +4 -1
- package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/route.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/route.js +1 -1
- package/app/.next/server/app/api/v1/search/route.js +1 -0
- package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v1/search/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/v1/web/fetch/route.js +1 -0
- package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v1/web/fetch/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/route.js +1 -1
- package/app/.next/server/app/api/version/update/route.js +1 -1
- package/app/.next/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next/server/app/callback/page.js +2 -2
- package/app/.next/server/app/callback/page.js.nft.json +1 -1
- package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/callback.html +1 -1
- package/app/.next/server/app/callback.rsc +4 -4
- package/app/.next/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next/server/app/dashboard/basic-chat.rsc +6 -6
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next/server/app/dashboard/cli-tools.rsc +6 -6
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.html +1 -1
- package/app/.next/server/app/dashboard/combos.rsc +6 -6
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.html +1 -1
- package/app/.next/server/app/dashboard/endpoint.rsc +6 -6
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.html +1 -0
- package/app/.next/server/app/dashboard/media-providers/web.meta +18 -0
- package/app/.next/server/app/dashboard/media-providers/web.rsc +27 -0
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +9 -0
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +5 -0
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +5 -0
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +5 -0
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +6 -0
- package/app/.next/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +27 -0
- package/app/.next/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +6 -0
- package/app/.next/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +9 -0
- package/app/.next/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +6 -0
- package/app/.next/server/app/dashboard/mitm.html +1 -1
- package/app/.next/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.html +1 -1
- package/app/.next/server/app/dashboard/profile.rsc +6 -6
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.html +1 -1
- package/app/.next/server/app/dashboard/providers/new.rsc +6 -6
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.html +1 -1
- package/app/.next/server/app/dashboard/providers.rsc +6 -6
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.rsc +6 -6
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.html +2 -2
- package/app/.next/server/app/dashboard/quota.rsc +7 -7
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
- package/app/.next/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.html +1 -1
- package/app/.next/server/app/dashboard/translator.rsc +6 -6
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.html +1 -1
- package/app/.next/server/app/dashboard/usage.rsc +6 -6
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.html +1 -1
- package/app/.next/server/app/dashboard.rsc +6 -6
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/favicon.ico/route.js +1 -1
- package/app/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next/server/app/index.html +1 -1
- package/app/.next/server/app/index.rsc +4 -4
- package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/landing/page.js +2 -2
- package/app/.next/server/app/landing/page.js.nft.json +1 -1
- package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/landing.html +1 -1
- package/app/.next/server/app/landing.rsc +4 -4
- package/app/.next/server/app/landing.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/landing.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next/server/app/login/page.js +2 -2
- package/app/.next/server/app/login/page.js.nft.json +1 -1
- package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/login.html +1 -1
- package/app/.next/server/app/login.rsc +5 -5
- package/app/.next/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/login.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next/server/app/page.js +2 -2
- package/app/.next/server/app/page.js.nft.json +1 -1
- package/app/.next/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app-paths-manifest.json +9 -3
- package/app/.next/server/chunks/1202.js +1 -1
- package/app/.next/server/chunks/2020.js +1 -0
- package/app/.next/server/chunks/2506.js +2 -2
- package/app/.next/server/chunks/2549.js +1 -0
- package/app/.next/server/chunks/318.js +13 -13
- package/app/.next/server/chunks/3245.js +1 -0
- package/app/.next/server/chunks/3855.js +1 -1
- package/app/.next/server/chunks/3913.js +2 -2
- package/app/.next/server/chunks/412.js +3 -3
- package/app/.next/server/chunks/4122.js +1 -1
- package/app/.next/server/chunks/5599.js +3 -3
- package/app/.next/server/chunks/5681.js +1 -0
- package/app/.next/server/chunks/6555.js +1 -0
- package/app/.next/server/chunks/7595.js +1 -1
- package/app/.next/server/chunks/7774.js +3 -3
- package/app/.next/server/chunks/7828.js +1 -0
- package/app/.next/server/chunks/8491.js +1 -0
- package/app/.next/server/chunks/8590.js +1 -1
- package/app/.next/server/chunks/8760.js +1 -0
- package/app/.next/server/chunks/8895.js +2 -2
- package/app/.next/server/chunks/9489.js +1 -0
- package/app/.next/server/chunks/9501.js +37 -5
- package/app/.next/server/chunks/9718.js +1 -1
- package/app/.next/server/middleware-build-manifest.js +1 -1
- package/app/.next/server/middleware.js +2 -2
- package/app/.next/server/pages/404.html +1 -1
- package/app/.next/server/pages/500.html +1 -1
- package/app/.next/static/ahyS0wV6v2JdXWYSEruR6/_buildManifest.js +1 -0
- package/app/.next/static/chunks/1321-4ac1e9664ca05f67.js +1 -0
- package/app/.next/static/chunks/5497-9056ce5497a8e830.js +7 -0
- package/app/.next/static/chunks/5555-c4cf1b2b38d07337.js +3 -0
- package/app/.next/static/chunks/{698-4a7e1c24d20242fc.js → 698-438ce154948ce831.js} +6 -6
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/{page-bc388a93f092e16d.js → page-0d9325464cd6e849.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-0494f10cf7d2cae0.js +53 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-521aecf4ccb7b03e.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/combo/[id]/page-d594f315360645f3.js +4 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-ec14043bae22768d.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-7985e45ad78144eb.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-fae4c95586692227.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/layout-91efa9c70d2328e0.js +1 -0
- package/app/.next/static/chunks/app/_global-error/page-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/auth/login/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/auth/logout/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/auth/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/credentials/update/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/model/resolve/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/models/alias/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/combos/[id]/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/combos/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/health/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/init/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/keys/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/locale/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/models/alias/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/models/availability/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/models/custom/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/models/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/models/test/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/providers/client/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/providers/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/providers/test-batch/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/providers/validate/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/settings/require-login/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/settings/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/shutdown/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/tags/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/translator/load/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/translator/save/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/translator/send/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/translator/translate/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/disable/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/enable/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/status/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/usage/chart/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/usage/history/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/usage/logs/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/usage/providers/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-logs/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stats/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stream/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/api/chat/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/embeddings/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/images/generations/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/search/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/version/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/api/version/update/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/manifest.webmanifest/route-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/app/page-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-a95908d3fe52339a.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-a95908d3fe52339a.js +1 -0
- package/app/.next/static/css/1ef6107a5d5fd71c.css +1 -0
- package/app/package.json +1 -1
- package/app/public/providers/azure.png +0 -0
- package/app/public/providers/blackbox.png +0 -0
- package/app/public/providers/brave-search.png +0 -0
- package/app/public/providers/byteplus.png +0 -0
- package/app/public/providers/coqui.png +0 -0
- package/app/public/providers/exa.png +0 -0
- package/app/public/providers/firecrawl.png +0 -0
- package/app/public/providers/google-pse.png +0 -0
- package/app/public/providers/grok-web.png +0 -0
- package/app/public/providers/inworld.png +0 -0
- package/app/public/providers/jina-reader.png +0 -0
- package/app/public/providers/linkup.png +0 -0
- package/app/public/providers/perplexity-web.png +0 -0
- package/app/public/providers/searchapi.png +0 -0
- package/app/public/providers/searxng.png +0 -0
- package/app/public/providers/serper.png +0 -0
- package/app/public/providers/tavily.png +0 -0
- package/app/public/providers/tortoise.png +0 -0
- package/app/public/providers/voyage-ai.png +0 -0
- package/app/public/providers/youcom.png +0 -0
- package/app/server.js +1 -1
- package/app/src/lib/updater/updater.js +25 -2
- package/app/src/mitm/cert/install.js +31 -24
- package/app/src/mitm/config.js +15 -1
- package/app/src/mitm/dns/dnsConfig.js +48 -62
- package/app/src/mitm/handlers/antigravity.js +18 -6
- package/app/src/mitm/handlers/base.js +12 -10
- package/app/src/mitm/handlers/openrouter.js +23 -16
- package/app/src/mitm/logger.js +102 -1
- package/app/src/mitm/manager.js +23 -62
- package/app/src/mitm/models.json +244 -0
- package/app/src/mitm/server.js +39 -29
- package/app/src/mitm/winElevated.js +79 -0
- package/package.json +1 -1
- package/app/.next/server/chunks/1357.js +0 -1
- package/app/.next/server/chunks/2409.js +0 -1
- package/app/.next/server/chunks/289.js +0 -1
- package/app/.next/server/chunks/4404.js +0 -1
- package/app/.next/server/chunks/541.js +0 -1
- package/app/.next/server/chunks/6143.js +0 -1
- package/app/.next/server/chunks/6327.js +0 -1
- package/app/.next/server/chunks/6386.js +0 -1
- package/app/.next/static/8OXtyzXXo02arEnH4hahP/_buildManifest.js +0 -1
- package/app/.next/static/chunks/1321-b4c371298c1c015b.js +0 -1
- package/app/.next/static/chunks/5497-2b813df1aa4bc9ba.js +0 -7
- package/app/.next/static/chunks/5555-26f687e754d40f93.js +0 -3
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-89b8138c3ac2e04f.js +0 -51
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-154824cbf44c34b2.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-6d84cac6ca90a61c.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-18e13f60a38c4be4.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/layout-9b93641ed57cec1d.js +0 -1
- package/app/.next/static/chunks/app/_global-error/page-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/auth/login/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/auth/logout/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/auth/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/credentials/update/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/model/resolve/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/models/alias/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/health/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/init/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/locale/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/models/custom/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/models/test/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/settings/require-login/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/disable/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/enable/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/status/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/usage/chart/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/usage/logs/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/usage/providers/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stats/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stream/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/version/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/api/version/update/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/app/page-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-de0b0e689b74bc54.js +0 -1
- package/app/.next/static/css/d663c02ecd9b71d6.css +0 -1
- /package/app/.next/static/{8OXtyzXXo02arEnH4hahP → ahyS0wV6v2JdXWYSEruR6}/_ssgManifest.js +0 -0
|
@@ -3,15 +3,8 @@ const fs = require("fs");
|
|
|
3
3
|
const path = require("path");
|
|
4
4
|
const os = require("os");
|
|
5
5
|
const { log, err } = require("../logger");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const TOOL_HOSTS = {
|
|
9
|
-
antigravity: ["daily-cloudcode-pa.googleapis.com", "cloudcode-pa.googleapis.com"],
|
|
10
|
-
copilot: ["api.individual.githubcopilot.com"],
|
|
11
|
-
kiro: ["q.us-east-1.amazonaws.com", "codewhisperer.us-east-1.amazonaws.com"],
|
|
12
|
-
cursor: ["api2.cursor.sh"],
|
|
13
|
-
openrouter: ["openrouter.ai", "api.openrouter.ai"],
|
|
14
|
-
};
|
|
6
|
+
const { TOOL_HOSTS } = require("../../shared/constants/mitmToolHosts");
|
|
7
|
+
const { runElevatedPowerShell, quotePs, isAdmin } = require("../winElevated.js");
|
|
15
8
|
|
|
16
9
|
const IS_WIN = process.platform === "win32";
|
|
17
10
|
const IS_MAC = process.platform === "darwin";
|
|
@@ -19,47 +12,6 @@ const HOSTS_FILE = IS_WIN
|
|
|
19
12
|
? path.join(process.env.SystemRoot || "C:\\Windows", "System32", "drivers", "etc", "hosts")
|
|
20
13
|
: "/etc/hosts";
|
|
21
14
|
|
|
22
|
-
/**
|
|
23
|
-
* Execute elevated PowerShell script on Windows via Start-Process -Verb RunAs.
|
|
24
|
-
* Only UAC consent dialog appears, no CMD/PS window popup.
|
|
25
|
-
*/
|
|
26
|
-
function executeElevatedPowerShell(psScriptPath, timeoutMs = 30000) {
|
|
27
|
-
const flagFile = path.join(os.tmpdir(), `ps_done_${Date.now()}.flag`);
|
|
28
|
-
const psSQ = (s) => s.replace(/'/g, "''");
|
|
29
|
-
|
|
30
|
-
let psContent = fs.readFileSync(psScriptPath, "utf8");
|
|
31
|
-
psContent += `\nSet-Content -Path '${psSQ(flagFile)}' -Value 'done' -Encoding UTF8\n`;
|
|
32
|
-
fs.writeFileSync(psScriptPath, psContent, "utf8");
|
|
33
|
-
|
|
34
|
-
const outerCmd = `Start-Process powershell -ArgumentList '-NoProfile','-ExecutionPolicy','Bypass','-WindowStyle','Hidden','-File','${psSQ(psScriptPath)}' -Verb RunAs -WindowStyle Hidden`;
|
|
35
|
-
|
|
36
|
-
return new Promise((resolve, reject) => {
|
|
37
|
-
let settled = false;
|
|
38
|
-
const settle = (fn, arg) => { if (!settled) { settled = true; fn(arg); } };
|
|
39
|
-
|
|
40
|
-
exec(
|
|
41
|
-
`powershell -NoProfile -NonInteractive -WindowStyle Hidden -Command "${outerCmd}"`,
|
|
42
|
-
{ windowsHide: true },
|
|
43
|
-
() => {}
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
const deadline = Date.now() + timeoutMs;
|
|
47
|
-
const poll = () => {
|
|
48
|
-
if (settled) return;
|
|
49
|
-
if (fs.existsSync(flagFile)) {
|
|
50
|
-
try { fs.unlinkSync(flagFile); fs.unlinkSync(psScriptPath); } catch { /* ignore */ }
|
|
51
|
-
return settle(resolve);
|
|
52
|
-
}
|
|
53
|
-
if (Date.now() > deadline) {
|
|
54
|
-
try { fs.unlinkSync(psScriptPath); } catch { /* ignore */ }
|
|
55
|
-
return settle(reject, new Error("Timed out waiting for UAC confirmation"));
|
|
56
|
-
}
|
|
57
|
-
setTimeout(poll, 500);
|
|
58
|
-
};
|
|
59
|
-
setTimeout(poll, 300);
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
15
|
/** True when `sudo` exists (e.g. missing on minimal Docker images like Alpine). */
|
|
64
16
|
function isSudoAvailable() {
|
|
65
17
|
if (IS_WIN) return false;
|
|
@@ -158,17 +110,20 @@ async function addDNSEntry(tool, sudoPassword) {
|
|
|
158
110
|
|
|
159
111
|
try {
|
|
160
112
|
if (IS_WIN) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
113
|
+
const toAppend = entriesToAdd.map(h => `127.0.0.1 ${h}`).join("`r`n");
|
|
114
|
+
// Single elevated script: append to hosts + flush DNS (1 UAC popup, or zero if admin)
|
|
115
|
+
const script = `
|
|
116
|
+
Add-Content -LiteralPath ${quotePs(HOSTS_FILE)} -Value ${quotePs(toAppend)}
|
|
117
|
+
ipconfig /flushdns | Out-Null
|
|
118
|
+
`;
|
|
119
|
+
await runElevatedPowerShell(script);
|
|
165
120
|
} else {
|
|
166
121
|
await execWithPassword(`echo "${entries}" >> ${HOSTS_FILE}`, sudoPassword);
|
|
167
122
|
await flushDNS(sudoPassword);
|
|
168
123
|
}
|
|
169
124
|
log(`🌐 DNS ${tool}: ✅ added ${entriesToAdd.join(", ")}`);
|
|
170
125
|
} catch (error) {
|
|
171
|
-
const msg = error.message?.includes("incorrect password") ? "Wrong sudo password" :
|
|
126
|
+
const msg = error.message?.includes("incorrect password") ? "Wrong sudo password" : `Failed to add DNS entry: ${error.message}`;
|
|
172
127
|
throw new Error(msg);
|
|
173
128
|
}
|
|
174
129
|
}
|
|
@@ -188,11 +143,19 @@ async function removeDNSEntry(tool, sudoPassword) {
|
|
|
188
143
|
|
|
189
144
|
try {
|
|
190
145
|
if (IS_WIN) {
|
|
191
|
-
//
|
|
192
|
-
const
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
|
|
146
|
+
// Build PowerShell list literal of hosts to strip
|
|
147
|
+
const hostsList = entriesToRemove.map(quotePs).join(",");
|
|
148
|
+
const script = `
|
|
149
|
+
$hosts = @(${hostsList})
|
|
150
|
+
$lines = Get-Content -LiteralPath ${quotePs(HOSTS_FILE)}
|
|
151
|
+
$filtered = $lines | Where-Object {
|
|
152
|
+
$line = $_
|
|
153
|
+
-not ($hosts | Where-Object { $line -match [regex]::Escape($_) })
|
|
154
|
+
}
|
|
155
|
+
Set-Content -LiteralPath ${quotePs(HOSTS_FILE)} -Value $filtered
|
|
156
|
+
ipconfig /flushdns | Out-Null
|
|
157
|
+
`;
|
|
158
|
+
await runElevatedPowerShell(script);
|
|
196
159
|
} else {
|
|
197
160
|
for (const host of entriesToRemove) {
|
|
198
161
|
const sedCmd = IS_MAC
|
|
@@ -204,7 +167,7 @@ async function removeDNSEntry(tool, sudoPassword) {
|
|
|
204
167
|
}
|
|
205
168
|
log(`🌐 DNS ${tool}: ✅ removed ${entriesToRemove.join(", ")}`);
|
|
206
169
|
} catch (error) {
|
|
207
|
-
const msg = error.message?.includes("incorrect password") ? "Wrong sudo password" :
|
|
170
|
+
const msg = error.message?.includes("incorrect password") ? "Wrong sudo password" : `Failed to remove DNS entry: ${error.message}`;
|
|
208
171
|
throw new Error(msg);
|
|
209
172
|
}
|
|
210
173
|
}
|
|
@@ -222,14 +185,37 @@ async function removeAllDNSEntries(sudoPassword) {
|
|
|
222
185
|
}
|
|
223
186
|
}
|
|
224
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Sync removal of ALL tool DNS entries — for use during process shutdown
|
|
190
|
+
* when async ops aren't safe. Assumes caller already has root/admin rights.
|
|
191
|
+
*/
|
|
192
|
+
function removeAllDNSEntriesSync() {
|
|
193
|
+
try {
|
|
194
|
+
if (!fs.existsSync(HOSTS_FILE)) return;
|
|
195
|
+
const allHosts = Object.values(TOOL_HOSTS).flat();
|
|
196
|
+
const content = fs.readFileSync(HOSTS_FILE, "utf8");
|
|
197
|
+
const eol = IS_WIN ? "\r\n" : "\n";
|
|
198
|
+
const filtered = content.split(/\r?\n/).filter(l => !allHosts.some(h => l.includes(h))).join(eol);
|
|
199
|
+
if (filtered === content) return;
|
|
200
|
+
fs.writeFileSync(HOSTS_FILE, filtered, "utf8");
|
|
201
|
+
if (IS_WIN) {
|
|
202
|
+
try { execSync("ipconfig /flushdns", { windowsHide: true, stdio: "ignore" }); } catch { /* ignore */ }
|
|
203
|
+
} else if (IS_MAC) {
|
|
204
|
+
try { execSync("dscacheutil -flushcache && killall -HUP mDNSResponder", { stdio: "ignore" }); } catch { /* ignore */ }
|
|
205
|
+
} else {
|
|
206
|
+
try { execSync("resolvectl flush-caches 2>/dev/null || true", { stdio: "ignore" }); } catch { /* ignore */ }
|
|
207
|
+
}
|
|
208
|
+
} catch { /* best effort during shutdown */ }
|
|
209
|
+
}
|
|
210
|
+
|
|
225
211
|
module.exports = {
|
|
226
212
|
TOOL_HOSTS,
|
|
227
213
|
addDNSEntry,
|
|
228
214
|
removeDNSEntry,
|
|
229
215
|
removeAllDNSEntries,
|
|
216
|
+
removeAllDNSEntriesSync,
|
|
230
217
|
execWithPassword,
|
|
231
218
|
isSudoAvailable,
|
|
232
|
-
executeElevatedPowerShell,
|
|
233
219
|
checkDNSEntry,
|
|
234
220
|
checkAllDNSStatus,
|
|
235
221
|
};
|
|
@@ -1,19 +1,31 @@
|
|
|
1
|
-
const { err } = require("../logger");
|
|
1
|
+
const { err, createResponseDumper } = require("../logger");
|
|
2
2
|
const { fetchRouter, pipeSSE } = require("./base");
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Intercept Antigravity
|
|
5
|
+
* Intercept Antigravity request — forward Gemini body as-is to /v1/chat/completions.
|
|
6
|
+
* Router auto-detects format via body.userAgent==="antigravity" + body.request.contents,
|
|
7
|
+
* runs antigravity→openai→provider→openai→antigravity translators internally.
|
|
6
8
|
*/
|
|
7
9
|
async function intercept(req, res, bodyBuffer, mappedModel) {
|
|
10
|
+
const dumper = createResponseDumper(req, "intercept-antigravity");
|
|
11
|
+
const isStream = req.url.includes(":streamGenerateContent");
|
|
8
12
|
try {
|
|
9
13
|
const body = JSON.parse(bodyBuffer.toString());
|
|
10
|
-
body.model = mappedModel;
|
|
14
|
+
if (body.model) body.model = mappedModel;
|
|
15
|
+
|
|
11
16
|
const routerRes = await fetchRouter(body, "/v1/chat/completions", req.headers);
|
|
12
|
-
await pipeSSE(routerRes, res);
|
|
17
|
+
await pipeSSE(routerRes, res, dumper);
|
|
13
18
|
} catch (error) {
|
|
14
19
|
err(`[antigravity] ${error.message}`);
|
|
15
|
-
if (
|
|
16
|
-
|
|
20
|
+
if (dumper) { dumper.writeChunk(`\n[ERROR] ${error.message}\n`); dumper.end(); }
|
|
21
|
+
// For stream endpoint, send SSE error chunk so SDK doesn't hang waiting
|
|
22
|
+
if (isStream) {
|
|
23
|
+
if (!res.headersSent) res.writeHead(200, { "Content-Type": "text/event-stream" });
|
|
24
|
+
res.end(`data: ${JSON.stringify({ error: { message: error.message } })}\r\n\r\n`);
|
|
25
|
+
} else {
|
|
26
|
+
if (!res.headersSent) res.writeHead(500, { "Content-Type": "application/json" });
|
|
27
|
+
res.end(JSON.stringify({ error: { message: error.message, type: "mitm_error" } }));
|
|
28
|
+
}
|
|
17
29
|
}
|
|
18
30
|
}
|
|
19
31
|
|
|
@@ -32,25 +32,26 @@ async function fetchRouter(openaiBody, path = "/v1/chat/completions", clientHead
|
|
|
32
32
|
body: JSON.stringify(openaiBody)
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
const errText = await response.text().catch(() => "");
|
|
37
|
-
throw new Error(`[${response.status}]: ${errText}`);
|
|
38
|
-
}
|
|
39
|
-
|
|
35
|
+
// Forward response as-is (status + body). pipeSSE will propagate status.
|
|
40
36
|
return response;
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
/**
|
|
44
|
-
* Pipe SSE stream from router directly to client response
|
|
40
|
+
* Pipe SSE stream from router directly to client response.
|
|
41
|
+
* Optional dumper tees the stream into a debug file.
|
|
45
42
|
*/
|
|
46
|
-
async function pipeSSE(routerRes, res) {
|
|
43
|
+
async function pipeSSE(routerRes, res, dumper) {
|
|
47
44
|
const ct = routerRes.headers.get("content-type") || "application/json";
|
|
45
|
+
const status = routerRes.status || 200;
|
|
48
46
|
const resHeaders = { "Content-Type": ct, "Cache-Control": "no-cache", "Connection": "keep-alive" };
|
|
49
47
|
if (ct.includes("text/event-stream")) resHeaders["X-Accel-Buffering"] = "no";
|
|
50
|
-
res.writeHead(
|
|
48
|
+
res.writeHead(status, resHeaders);
|
|
49
|
+
if (dumper) dumper.writeHeader(routerRes.status, Object.fromEntries(routerRes.headers));
|
|
51
50
|
|
|
52
51
|
if (!routerRes.body) {
|
|
53
|
-
|
|
52
|
+
const text = await routerRes.text().catch(() => "");
|
|
53
|
+
if (dumper) { dumper.writeChunk(text); dumper.end(); }
|
|
54
|
+
res.end(text);
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
57
|
|
|
@@ -58,7 +59,8 @@ async function pipeSSE(routerRes, res) {
|
|
|
58
59
|
const decoder = new TextDecoder();
|
|
59
60
|
while (true) {
|
|
60
61
|
const { done, value } = await reader.read();
|
|
61
|
-
if (done) { res.end(); break; }
|
|
62
|
+
if (done) { if (dumper) dumper.end(); res.end(); break; }
|
|
63
|
+
if (dumper) dumper.writeChunk(value);
|
|
62
64
|
res.write(decoder.decode(value, { stream: true }));
|
|
63
65
|
}
|
|
64
66
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const fs = require("node:fs");
|
|
2
|
+
const path = require("node:path");
|
|
1
3
|
const { err } = require("../logger");
|
|
2
4
|
const { fetchRouter, pipeSSE } = require("./base");
|
|
3
5
|
|
|
@@ -19,6 +21,21 @@ function isModelsRequest(reqUrl) {
|
|
|
19
21
|
return reqUrl.includes("/models") || reqUrl.includes("/api/v1/models");
|
|
20
22
|
}
|
|
21
23
|
|
|
24
|
+
function getLocalModelsPayload() {
|
|
25
|
+
const modelsPath = path.join(__dirname, "..", "models.json");
|
|
26
|
+
return fs.readFileSync(modelsPath, "utf8");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function sendJsonPayload(res, payload) {
|
|
30
|
+
if (res.writableEnded) return;
|
|
31
|
+
res.writeHead(200, {
|
|
32
|
+
"Content-Type": "application/json; charset=utf-8",
|
|
33
|
+
"Cache-Control": "public, max-age=300",
|
|
34
|
+
"Content-Length": Buffer.byteLength(payload),
|
|
35
|
+
});
|
|
36
|
+
res.end(payload);
|
|
37
|
+
}
|
|
38
|
+
|
|
22
39
|
function buildInjectedModel(publicModelId) {
|
|
23
40
|
const [provider = "openrouter"] = String(publicModelId || "").split("/");
|
|
24
41
|
return {
|
|
@@ -70,24 +87,14 @@ function injectPublicModels(payload, aliasMappings = {}) {
|
|
|
70
87
|
}
|
|
71
88
|
|
|
72
89
|
async function handleModelsRequest(req, res, bodyBuffer, passthrough, aliasMappings) {
|
|
73
|
-
|
|
90
|
+
try {
|
|
91
|
+
const payload = getLocalModelsPayload();
|
|
92
|
+
sendJsonPayload(res, payload);
|
|
93
|
+
} catch (error) {
|
|
94
|
+
err(`[openrouter] local models response failed: ${error.message}`);
|
|
74
95
|
if (!res.headersSent) res.writeHead(500, { "Content-Type": "application/json" });
|
|
75
|
-
res.end(JSON.stringify({ error: { message:
|
|
76
|
-
return;
|
|
96
|
+
if (!res.writableEnded) res.end(JSON.stringify({ error: { message: error.message, type: "mitm_error" } }));
|
|
77
97
|
}
|
|
78
|
-
|
|
79
|
-
await passthrough(req, res, bodyBuffer, (rawBuffer) => {
|
|
80
|
-
try {
|
|
81
|
-
const upstream = JSON.parse(rawBuffer.toString() || "{}");
|
|
82
|
-
const merged = injectPublicModels(upstream, aliasMappings);
|
|
83
|
-
res.writeHead(200, { "Content-Type": "application/json" });
|
|
84
|
-
res.end(JSON.stringify(merged));
|
|
85
|
-
} catch (error) {
|
|
86
|
-
err(`[openrouter] models response rewrite failed: ${error.message}`);
|
|
87
|
-
if (!res.headersSent) res.writeHead(500, { "Content-Type": "application/json" });
|
|
88
|
-
res.end(JSON.stringify({ error: { message: error.message, type: "mitm_error" } }));
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
98
|
}
|
|
92
99
|
|
|
93
100
|
/**
|
package/app/src/mitm/logger.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const path = require("path");
|
|
3
|
+
const zlib = require("zlib");
|
|
4
|
+
const { DATA_DIR } = require("./paths");
|
|
5
|
+
const { LOG_BLACKLIST_URL_PARTS } = require("./config");
|
|
6
|
+
|
|
1
7
|
function time() {
|
|
2
8
|
return new Date().toLocaleTimeString("en-US", { hour12: false });
|
|
3
9
|
}
|
|
@@ -5,4 +11,99 @@ function time() {
|
|
|
5
11
|
const log = (msg) => console.log(`[${time()}] [MITM] ${msg}`);
|
|
6
12
|
const err = (msg) => console.error(`[${time()}] ❌ [MITM] ${msg}`);
|
|
7
13
|
|
|
8
|
-
|
|
14
|
+
function ensureDumpDir() {
|
|
15
|
+
const candidates = [
|
|
16
|
+
path.join(DATA_DIR, "logs", "mitm"),
|
|
17
|
+
path.join(require("os").tmpdir(), "9router", "logs", "mitm"),
|
|
18
|
+
];
|
|
19
|
+
for (const dir of candidates) {
|
|
20
|
+
try {
|
|
21
|
+
if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
|
|
22
|
+
return dir;
|
|
23
|
+
} catch { /* try next writable location */ }
|
|
24
|
+
}
|
|
25
|
+
return candidates[1];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const DUMP_DIR = ensureDumpDir();
|
|
29
|
+
|
|
30
|
+
const EMPTY_BODY_RE = /^\s*(\{\s*\}|\[\s*\]|null)?\s*$/;
|
|
31
|
+
|
|
32
|
+
function slugify(s, max = 80) {
|
|
33
|
+
return String(s).replace(/[^a-zA-Z0-9]/g, "_").substring(0, max);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function isBlacklisted(url) {
|
|
37
|
+
if (!url) return false;
|
|
38
|
+
return LOG_BLACKLIST_URL_PARTS.some(part => url.includes(part));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Decode body buffer based on content-encoding header
|
|
42
|
+
function decodeBody(buf, encoding) {
|
|
43
|
+
if (!buf || buf.length === 0) return buf;
|
|
44
|
+
try {
|
|
45
|
+
const enc = (encoding || "").toLowerCase();
|
|
46
|
+
if (enc.includes("gzip")) return zlib.gunzipSync(buf);
|
|
47
|
+
if (enc.includes("br")) return zlib.brotliDecompressSync(buf);
|
|
48
|
+
if (enc.includes("deflate")) return zlib.inflateSync(buf);
|
|
49
|
+
} catch { /* return raw on failure */ }
|
|
50
|
+
return buf;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Save raw request: method + url + headers + body
|
|
54
|
+
function dumpRequest(req, bodyBuffer, tag = "raw") {
|
|
55
|
+
if (isBlacklisted(req.url)) return null;
|
|
56
|
+
try {
|
|
57
|
+
const ts = new Date().toISOString().replace(/[:.]/g, "-");
|
|
58
|
+
const slug = slugify((req.headers.host || "") + req.url);
|
|
59
|
+
const file = path.join(DUMP_DIR, `${ts}_${tag}_${slug}.req.json`);
|
|
60
|
+
let parsed = null;
|
|
61
|
+
try { parsed = JSON.parse(bodyBuffer.toString()); } catch { /* not JSON */ }
|
|
62
|
+
fs.writeFileSync(file, JSON.stringify({
|
|
63
|
+
method: req.method,
|
|
64
|
+
url: req.url,
|
|
65
|
+
host: req.headers.host,
|
|
66
|
+
headers: req.headers,
|
|
67
|
+
body: parsed ?? bodyBuffer.toString("utf8")
|
|
68
|
+
}, null, 2));
|
|
69
|
+
return file;
|
|
70
|
+
} catch { return null; }
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Buffer-based response dumper — collects chunks then decodes + writes once on end()
|
|
74
|
+
// Trade-off: holds response in RAM, but enables gzip/br decoding for readable output.
|
|
75
|
+
function createResponseDumper(req, tag = "raw") {
|
|
76
|
+
if (isBlacklisted(req.url)) return null;
|
|
77
|
+
const ts = new Date().toISOString().replace(/[:.]/g, "-");
|
|
78
|
+
const slug = slugify((req.headers.host || "") + req.url);
|
|
79
|
+
const file = path.join(DUMP_DIR, `${ts}_${tag}_${slug}.res.txt`);
|
|
80
|
+
let status = 0;
|
|
81
|
+
let headers = {};
|
|
82
|
+
const chunks = [];
|
|
83
|
+
return {
|
|
84
|
+
writeHeader: (s, h) => { status = s; headers = h || {}; },
|
|
85
|
+
writeChunk: (chunk) => {
|
|
86
|
+
if (chunk == null) return;
|
|
87
|
+
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
|
|
88
|
+
},
|
|
89
|
+
end: () => {
|
|
90
|
+
try {
|
|
91
|
+
const raw = Buffer.concat(chunks);
|
|
92
|
+
const enc = headers["content-encoding"] || headers["Content-Encoding"];
|
|
93
|
+
const decoded = decodeBody(raw, enc);
|
|
94
|
+
const text = decoded.toString("utf8");
|
|
95
|
+
// Skip empty / trivially-empty bodies
|
|
96
|
+
if (EMPTY_BODY_RE.test(text)) return;
|
|
97
|
+
// Strip content-encoding since body is now decoded
|
|
98
|
+
const cleanHeaders = { ...headers };
|
|
99
|
+
delete cleanHeaders["content-encoding"];
|
|
100
|
+
delete cleanHeaders["Content-Encoding"];
|
|
101
|
+
const out = `STATUS: ${status}\nHEADERS: ${JSON.stringify(cleanHeaders, null, 2)}\n---BODY---\n${text}`;
|
|
102
|
+
fs.writeFileSync(file, out);
|
|
103
|
+
} catch { /* ignore */ }
|
|
104
|
+
},
|
|
105
|
+
file
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
module.exports = { log, err, dumpRequest, createResponseDumper };
|
package/app/src/mitm/manager.js
CHANGED
|
@@ -59,63 +59,7 @@ function resolveBundledServerPath() {
|
|
|
59
59
|
return fromCwd;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
const files = [];
|
|
64
|
-
const stack = [dir];
|
|
65
|
-
|
|
66
|
-
while (stack.length > 0) {
|
|
67
|
-
const current = stack.pop();
|
|
68
|
-
for (const entry of fs.readdirSync(current, { withFileTypes: true })) {
|
|
69
|
-
const fullPath = path.join(current, entry.name);
|
|
70
|
-
if (entry.isDirectory()) {
|
|
71
|
-
stack.push(fullPath);
|
|
72
|
-
} else if (entry.isFile()) {
|
|
73
|
-
files.push(fullPath);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
files.sort();
|
|
79
|
-
return files;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function getMitmSourceSignature(dir) {
|
|
83
|
-
return getMitmSourceFiles(dir)
|
|
84
|
-
.map((file) => `${path.relative(dir, file)}:${fs.statSync(file).size}:${Math.floor(fs.statSync(file).mtimeMs)}`)
|
|
85
|
-
.join("|");
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function ensureRuntimeServer(bundledPath) {
|
|
89
|
-
try {
|
|
90
|
-
if (!bundledPath || !fs.existsSync(bundledPath)) return bundledPath;
|
|
91
|
-
if (!bundledPath.includes(`${path.sep}node_modules${path.sep}`)) {
|
|
92
|
-
return bundledPath;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
const sourceDir = path.dirname(bundledPath);
|
|
96
|
-
const runtimeDir = path.join(DATA_DIR, "runtime", "mitm");
|
|
97
|
-
const runtimeServer = path.join(runtimeDir, "server.js");
|
|
98
|
-
const signatureFile = path.join(runtimeDir, ".runtime-signature");
|
|
99
|
-
const sourceSignature = getMitmSourceSignature(sourceDir);
|
|
100
|
-
|
|
101
|
-
if (fs.existsSync(runtimeServer) && fs.existsSync(signatureFile)) {
|
|
102
|
-
try {
|
|
103
|
-
if (fs.readFileSync(signatureFile, "utf8") === sourceSignature) return runtimeServer;
|
|
104
|
-
} catch { /* recopy */ }
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
fs.rmSync(runtimeDir, { recursive: true, force: true });
|
|
108
|
-
fs.mkdirSync(runtimeDir, { recursive: true });
|
|
109
|
-
fs.cpSync(sourceDir, runtimeDir, { recursive: true, force: true });
|
|
110
|
-
fs.writeFileSync(signatureFile, sourceSignature);
|
|
111
|
-
return runtimeServer;
|
|
112
|
-
} catch (e) {
|
|
113
|
-
try { log(`[MITM] runtime copy failed: ${e.message}`); } catch { /* ignore */ }
|
|
114
|
-
return bundledPath;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const SERVER_PATH = ensureRuntimeServer(resolveBundledServerPath());
|
|
62
|
+
const SERVER_PATH = resolveBundledServerPath();
|
|
119
63
|
const ENCRYPT_ALGO = "aes-256-gcm";
|
|
120
64
|
const ENCRYPT_SALT = "9router-mitm-pwd";
|
|
121
65
|
|
|
@@ -651,14 +595,31 @@ async function stopServer(sudoPassword) {
|
|
|
651
595
|
serverPid = null;
|
|
652
596
|
|
|
653
597
|
if (IS_WIN) {
|
|
654
|
-
// Process already has admin rights — edit hosts file directly
|
|
655
598
|
const hostsFile = path.join(process.env.SystemRoot || "C:\\Windows", "System32", "drivers", "etc", "hosts");
|
|
656
599
|
const allHosts = Object.values(TOOL_HOSTS).flat();
|
|
657
600
|
try {
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
601
|
+
const { isAdmin, runElevatedPowerShell, quotePs } = require("./winElevated.js");
|
|
602
|
+
if (isAdmin()) {
|
|
603
|
+
// Direct fs write — bypass PowerShell to avoid parser pitfalls
|
|
604
|
+
const content = fs.readFileSync(hostsFile, "utf8");
|
|
605
|
+
const filtered = content.split(/\r?\n/).filter(l => !allHosts.some(h => l.includes(h))).join("\r\n");
|
|
606
|
+
if (filtered !== content) fs.writeFileSync(hostsFile, filtered, "utf8");
|
|
607
|
+
try { require("child_process").execSync("ipconfig /flushdns", { windowsHide: true, stdio: "ignore" }); } catch { /* ignore */ }
|
|
608
|
+
log("🌐 DNS: ✅ all tool hosts removed");
|
|
609
|
+
} else {
|
|
610
|
+
const hostsList = allHosts.map(quotePs).join(",");
|
|
611
|
+
const script = `
|
|
612
|
+
$hosts = @(${hostsList})
|
|
613
|
+
$lines = Get-Content -LiteralPath ${quotePs(hostsFile)}
|
|
614
|
+
$filtered = $lines | Where-Object {
|
|
615
|
+
$line = $_
|
|
616
|
+
-not ($hosts | Where-Object { $line -match [regex]::Escape($_) })
|
|
617
|
+
}
|
|
618
|
+
Set-Content -LiteralPath ${quotePs(hostsFile)} -Value $filtered
|
|
619
|
+
ipconfig /flushdns | Out-Null
|
|
620
|
+
`;
|
|
621
|
+
await runElevatedPowerShell(script);
|
|
622
|
+
}
|
|
662
623
|
} catch (e) { err(`Failed to clean hosts: ${e.message}`); }
|
|
663
624
|
} else {
|
|
664
625
|
await removeAllDNSEntries(sudoPassword);
|