@yina-npm/openrouterx 0.4.33 → 0.4.35
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 +0 -23
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/app-path-routes-manifest.json +4 -6
- package/app/.next/build-manifest.json +4 -4
- package/app/.next/prerender-manifest.json +3 -3
- package/app/.next/required-server-files.json +5 -5
- package/app/.next/routes-manifest.json +27 -13
- package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/admin/users/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/admin/users/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/admin/users/page_client-reference-manifest.js +1 -1
- 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/focus-ui/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/focus-ui/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/focus-ui/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +3 -3
- 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/combo/[id]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- 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/network-analysis/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/network-analysis/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/network-analysis/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 +3 -3
- 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/skills/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/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/(dashboard)/dashboard/user/page.js +3 -3
- package/app/.next/server/app/(dashboard)/dashboard/user/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/user/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error/page.js +3 -3
- 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 +6 -5
- package/app/.next/server/app/_not-found.segments/_full.segment.rsc +6 -5
- package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_index.segment.rsc +5 -5
- 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 +4 -3
- package/app/.next/server/app/api/auth/login/route.js +1 -1
- package/app/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/auth/logout/route.js +1 -1
- package/app/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/auth/me/route.js +1 -1
- package/app/.next/server/app/api/auth/me/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/callback/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/start/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/test/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/auth/status/route.js +1 -1
- package/app/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/all-statuses/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/inject-auth/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/inject-auth/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/inject-auth/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/restart/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/restart/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/test/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/test/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +2 -1
- package/app/.next/server/app/api/cli-tools/cowork-settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/hermes-settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/cloud/auth/route.js +1 -1
- package/app/.next/server/app/api/cloud/auth/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/combos/route.js +1 -1
- package/app/.next/server/app/api/combos/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/health/route.js +1 -1
- package/app/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/init/route.js +1 -1
- package/app/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/keys/route.js +1 -1
- package/app/.next/server/app/api/keys/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/locale/route.js +1 -1
- package/app/.next/server/app/api/locale/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/message/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +2 -2
- package/app/.next/server/app/api/mcp/[plugin]/sse/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route_client-reference-manifest.js +1 -1
- 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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route_client-reference-manifest.js +1 -1
- 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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/models/alias/route.js +1 -1
- package/app/.next/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/models/availability/route.js +1 -1
- package/app/.next/server/app/api/models/availability/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/models/custom/route.js +1 -1
- package/app/.next/server/app/api/models/custom/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/models/disabled/route.js +1 -1
- package/app/.next/server/app/api/models/disabled/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/models/route.js +1 -1
- package/app/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/models/test/route.js +1 -1
- package/app/.next/server/app/api/models/test/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/network-analysis/route.js +2 -2
- package/app/.next/server/app/api/network-analysis/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +2 -2
- package/app/.next/server/app/api/oauth/[provider]/[action]/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/pricing/route.js +1 -1
- package/app/.next/server/app/api/pricing/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/providers/client/route.js +1 -1
- package/app/.next/server/app/api/providers/client/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/providers/route.js +1 -1
- package/app/.next/server/app/api/providers/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/providers/validate/route.js +1 -1
- package/app/.next/server/app/api/providers/validate/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/settings/database/route.js +1 -1
- package/app/.next/server/app/api/settings/database/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/settings/route.js +1 -1
- package/app/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/shutdown/route.js +1 -1
- package/app/.next/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/tags/route.js +1 -1
- package/app/.next/server/app/api/tags/route_client-reference-manifest.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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/translator/load/route.js +1 -1
- package/app/.next/server/app/api/translator/load/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/translator/save/route.js +1 -1
- package/app/.next/server/app/api/translator/save/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/translator/send/route.js +1 -1
- package/app/.next/server/app/api/translator/send/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/translator/translate/route.js +1 -1
- package/app/.next/server/app/api/translator/translate/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/disable/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/enable/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next/server/app/api/tunnel/status/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next/server/app/api/tunnel/tailscale-install/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-login/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-login/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route.js +2 -2
- package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/api-keys/route.js +1 -1
- package/app/.next/server/app/api/usage/api-keys/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/chart/route.js +1 -1
- package/app/.next/server/app/api/usage/chart/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/history/route.js +1 -1
- package/app/.next/server/app/api/usage/history/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/logs/route.js +1 -1
- package/app/.next/server/app/api/usage/logs/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/providers/route.js +1 -1
- package/app/.next/server/app/api/usage/providers/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/stats/route.js +1 -1
- package/app/.next/server/app/api/usage/stats/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/usage/stream/route.js +2 -2
- package/app/.next/server/app/api/usage/stream/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/users/[id]/route.js +1 -1
- package/app/.next/server/app/api/users/[id]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/users/route.js +1 -1
- package/app/.next/server/app/api/users/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/voices/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next/server/app/api/v1/embeddings/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next/server/app/api/v1/images/generations/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next/server/app/api/v1/models/[kind]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next/server/app/api/v1/models/info/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js +1 -1
- package/app/.next/server/app/api/v1/models/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/responses/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/route.js +1 -1
- package/app/.next/server/app/api/v1/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/search/route.js +1 -1
- package/app/.next/server/app/api/v1/search/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next/server/app/api/v1/web/fetch/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/version/route.js +1 -1
- package/app/.next/server/app/api/version/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next/server/app/api/version/shutdown/route_client-reference-manifest.js +1 -1
- package/app/.next/server/app/api/version/update/route.js +1 -1
- package/app/.next/server/app/api/version/update/route_client-reference-manifest.js +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 +7 -6
- package/app/.next/server/app/callback.segments/_full.segment.rsc +7 -6
- package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/callback.segments/_tree.segment.rsc +4 -3
- package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
- 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 +7 -6
- package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +7 -6
- 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 +5 -5
- package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +4 -3
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- 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/favicon.ico/route.js +1 -1
- package/app/.next/server/app/index.html +1 -1
- package/app/.next/server/app/index.rsc +6 -5
- package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_full.segment.rsc +6 -5
- package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/index.segments/_tree.segment.rsc +4 -3
- 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 +7 -6
- package/app/.next/server/app/landing.segments/_full.segment.rsc +7 -6
- package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/landing.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/landing.segments/_tree.segment.rsc +4 -3
- package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- 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 +7 -6
- package/app/.next/server/app/login.segments/_full.segment.rsc +7 -6
- package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/login.segments/_index.segment.rsc +5 -5
- package/app/.next/server/app/login.segments/_tree.segment.rsc +4 -3
- 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_client-reference-manifest.js +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 +4 -6
- package/app/.next/server/chunks/1350.js +1 -2
- package/app/.next/server/chunks/1500.js +1 -0
- package/app/.next/server/chunks/2560.js +1 -1
- package/app/.next/server/chunks/3110.js +1 -1
- package/app/.next/server/chunks/319.js +3 -3
- package/app/.next/server/chunks/3493.js +1 -2
- package/app/.next/server/chunks/412.js +1 -1
- package/app/.next/server/chunks/4126.js +1 -1
- package/app/.next/server/chunks/4922.js +2 -2
- package/app/.next/server/chunks/5627.js +6 -6
- package/app/.next/server/chunks/6182.js +3 -3
- package/app/.next/server/chunks/6393.js +1 -1
- package/app/.next/server/chunks/702.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/{9300.js → 8407.js} +2 -2
- package/app/.next/server/chunks/8520.js +1 -1
- package/app/.next/server/chunks/{2750.js → 9528.js} +3 -2
- package/app/.next/server/chunks/{4394.js → 9546.js} +1 -1
- 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/next-font-manifest.js +1 -1
- package/app/.next/server/next-font-manifest.json +1 -1
- package/app/.next/server/pages/404.html +1 -1
- package/app/.next/server/pages/500.html +1 -1
- package/app/.next/server/server-reference-manifest.js +1 -1
- package/app/.next/server/server-reference-manifest.json +1 -1
- package/app/.next/static/chunks/{1321-194580b028caec3a.js → 1321-b764e2be7fc92cc1.js} +1 -1
- package/app/.next/static/chunks/5095-ca2b12905f37ff4d.js +1 -0
- package/app/.next/static/chunks/5497-83030cc3d92a3519.js +7 -0
- package/app/.next/static/chunks/{4072-91de6609dc7e6753.js → 5769-77fa1ce7edb6f970.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/admin/keys/page-c74a5ba01f1699c5.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/admin/users/{page-972703d59d2a3986.js → page-2aa2cafdedb17bad.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-e1bd21507327d2bc.js → page-277c4575cca57177.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-211e322f002d5464.js → page-1a36c238dc35c08e.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-f0bae00ac45dd4b0.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/{page-55598932923e41ce.js → page-d98ac191ef4ff7e6.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-d3de2fdaf4bf9b1e.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/focus-ui/{page-fb59dea0e48968bf.js → page-90a2c72d1d8122a2.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-95d31a6372622fcf.js → page-73601a7b09338418.js} +2 -2
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-c64dd1d0b2bd9caf.js → page-3ab3cbba76b7cbad.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-9586c0b67f30a21b.js → page-c0ea5a27a13640b9.js} +2 -2
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-dcb9c64e0d95cee2.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/page-63735cb68f56f3b8.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/network-analysis/page-9c41fc55ad37021e.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/page-5a350e79586a5c80.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-4c8ad9c53c665fe6.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-31a6e1cb19ebc4d8.js → page-c28344f1dd08e982.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/{page-0bf3048423ab0128.js → page-81f02e4a6ce21347.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/{page-9d071b63170b7f71.js → page-a2ab26878f90c869.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-7762d83be0982941.js → page-67d99d453bfd8665.js} +2 -2
- package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/{page-e089ffa4138753d7.js → page-f30757bcda3daba7.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/page-6dd35c79bb83388b.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/{page-f77dc916ed5a6f99.js → page-2e9ac7094c9d8bae.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/user/page-86f6c9456e2e37bf.js +4 -0
- package/app/.next/static/chunks/app/(dashboard)/{layout-00b66bc0e6b38a14.js → layout-823fc1c94bc15026.js} +1 -1
- package/app/.next/static/chunks/app/_global-error/page-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/_not-found/page-8fcd6ba05909a2de.js +1 -0
- package/app/.next/static/chunks/app/api/auth/login/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/auth/logout/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/auth/me/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/callback/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/start/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/test/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/auth/status/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/inject-auth/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/restart/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/test/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/auth/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/credentials/update/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/model/resolve/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/cloud/models/alias/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/combos/[id]/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/combos/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/health/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/init/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/keys/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/locale/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/models/alias/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/models/availability/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/models/custom/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/models/disabled/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/models/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/models/test/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/network-analysis/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/providers/client/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/providers/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/providers/test-batch/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/providers/validate/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/settings/require-login/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/settings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/shutdown/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/tags/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/translator/load/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/translator/save/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/translator/send/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/translator/translate/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/disable/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/enable/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/status/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/usage/api-keys/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/usage/chart/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/usage/history/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/usage/logs/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/usage/providers/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-logs/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stats/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stream/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/users/[id]/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/users/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/api/chat/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/embeddings/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/images/generations/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/info/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/search/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/version/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/version/shutdown/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/api/version/update/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/callback/{page-97a750f0d51c3dbe.js → page-0b64ce6d90bfa697.js} +1 -1
- package/app/.next/static/chunks/app/dashboard/settings/pricing/page-0b53c6deac19b9be.js +1 -0
- package/app/.next/static/chunks/app/landing/{page-bf42a9c80c1e6776.js → page-370c3195c36d6e66.js} +1 -1
- package/app/.next/static/chunks/app/layout-55318fbfdf7dfacb.js +1 -0
- package/app/.next/static/chunks/app/login/page-65d3f9612064353f.js +1 -0
- package/app/.next/static/chunks/app/manifest.webmanifest/route-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/app/page-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/main-2237af167d2c1c35.js +5 -0
- package/app/.next/static/chunks/main-app-5fb630e627076bfd.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/global-error-8c0dda4490abacd4.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-1172e1764d69e954.js +1 -0
- package/app/.next/static/chunks/{webpack-b9b0d264958323b9.js → webpack-786de0e184ffd859.js} +1 -1
- package/app/.next/static/css/16878fc1d2cbb11a.css +1 -0
- package/app/.next/static/css/2e1b7d528c228ec3.css +1 -0
- package/app/.next/static/foKo1xDQER7YWTSg2B-qB/_buildManifest.js +1 -0
- package/app/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
- package/app/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
- package/app/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/app/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
- package/app/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
- package/app/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/app/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- package/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/app/package.json +1 -1
- package/app/server.js +1 -1
- package/app/src/mitm/config.js +1 -0
- package/app/src/mitm/dns/dnsConfig.js +20 -73
- package/app/src/mitm/handlers/base.js +19 -20
- package/app/src/mitm/manager.js +79 -45
- package/app/src/mitm/server.js +36 -36
- package/cli.js +0 -170
- package/hooks/postinstall.js +0 -92
- package/package.json +1 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/activate-account/route.js +0 -2
- package/app/.next/server/app/api/cli-tools/codex-settings/activate-account/route.js.nft.json +0 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/activate-account/route_client-reference-manifest.js +0 -1
- package/app/.next/server/app/api/startup-notices/route.js +0 -2
- package/app/.next/server/app/api/startup-notices/route.js.nft.json +0 -1
- package/app/.next/server/app/api/startup-notices/route_client-reference-manifest.js +0 -1
- package/app/.next/server/chunks/8866.js +0 -1
- package/app/.next/server/chunks/9856.js +0 -1
- package/app/.next/static/XHWEINo8HqIhskxHTrvjk/_buildManifest.js +0 -1
- package/app/.next/static/chunks/5095-fea302b55a08f07b.js +0 -2
- package/app/.next/static/chunks/5497-4a0f0c365aea0ea7.js +0 -7
- package/app/.next/static/chunks/app/(dashboard)/dashboard/admin/keys/page-0d5b57da4abb6962.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-69469b6440aff8d0.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-c8f75b084231c080.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-c7fbf29bdbdabee9.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/page-7ae37df256035f59.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/network-analysis/page-0ad4db60f9d14f60.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/page-8fceba7ec6407143.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-f005d7a30159ce4f.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/page-9202b5ce0650c3ab.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/user/page-12765c664b3c1f6d.js +0 -4
- package/app/.next/static/chunks/app/_global-error/page-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/_not-found/page-7927650ca4037264.js +0 -1
- package/app/.next/static/chunks/app/api/auth/login/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/auth/logout/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/auth/me/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/callback/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/start/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/test/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/auth/status/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/inject-auth/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/restart/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/test/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/activate-account/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/auth/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/credentials/update/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/model/resolve/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/models/alias/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/health/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/init/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/locale/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/models/custom/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/models/disabled/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/models/test/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/network-analysis/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/settings/require-login/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/startup-notices/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/disable/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/enable/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/status/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/usage/api-keys/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/usage/chart/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/usage/logs/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/usage/providers/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stats/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stream/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/users/[id]/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/users/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/info/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/search/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/version/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/version/shutdown/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/api/version/update/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/dashboard/settings/pricing/page-9d24273d41fadd28.js +0 -1
- package/app/.next/static/chunks/app/layout-2f20e93bb64f203d.js +0 -1
- package/app/.next/static/chunks/app/login/page-ef8d8c379c2ef99b.js +0 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/app/page-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/main-9b9267659a73e61e.js +0 -5
- package/app/.next/static/chunks/main-app-d5f2701c08554961.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/global-error-8d51a00b6c966622.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-1879675a73caf73c.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-1879675a73caf73c.js +0 -1
- package/app/.next/static/css/f6642f5333f94810.css +0 -1
- package/app/.next/static/css/fe3b2b4e527f4e99.css +0 -1
- /package/app/.next/static/{XHWEINo8HqIhskxHTrvjk → foKo1xDQER7YWTSg2B-qB}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const { log, err } = require("../logger");
|
|
2
2
|
|
|
3
|
-
const DEFAULT_LOCAL_ROUTER = "http://
|
|
3
|
+
const DEFAULT_LOCAL_ROUTER = "http://localhost:20502";
|
|
4
4
|
const ROUTER_BASE = String(process.env.MITM_ROUTER_BASE || DEFAULT_LOCAL_ROUTER)
|
|
5
5
|
.trim()
|
|
6
6
|
.replace(/\/+$/, "") || DEFAULT_LOCAL_ROUTER;
|
|
@@ -12,34 +12,33 @@ const STRIP_HEADERS = new Set([
|
|
|
12
12
|
"content-type", "authorization"
|
|
13
13
|
]);
|
|
14
14
|
|
|
15
|
+
function normalizeRouterPath(path) {
|
|
16
|
+
const rawPath = String(path || "").trim() || "/v1/chat/completions";
|
|
17
|
+
if (rawPath === "/v1") return "/api/v1";
|
|
18
|
+
if (rawPath.startsWith("/v1/")) return `/api${rawPath}`;
|
|
19
|
+
return rawPath;
|
|
20
|
+
}
|
|
21
|
+
|
|
15
22
|
/**
|
|
16
23
|
* Send body to OpenrouterX at the given path and return the fetch Response object.
|
|
17
24
|
* Optionally forwards client headers (stripped of hop-by-hop / overridden keys).
|
|
18
25
|
*/
|
|
19
26
|
async function fetchRouter(openaiBody, path = "/v1/chat/completions", clientHeaders = {}) {
|
|
27
|
+
const routerPath = normalizeRouterPath(path);
|
|
20
28
|
const forwarded = {};
|
|
21
29
|
for (const [k, v] of Object.entries(clientHeaders)) {
|
|
22
30
|
if (!STRIP_HEADERS.has(k.toLowerCase())) forwarded[k] = v;
|
|
23
31
|
}
|
|
24
32
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
body: JSON.stringify(openaiBody)
|
|
35
|
-
});
|
|
36
|
-
} catch (error) {
|
|
37
|
-
const cause = error.cause;
|
|
38
|
-
const causeDetail = cause
|
|
39
|
-
? ` (cause: ${cause.code || cause.name || "unknown"}: ${cause.message || cause})`
|
|
40
|
-
: "";
|
|
41
|
-
throw new Error(`Router fetch failed for ${ROUTER_BASE}${path}: ${error.message}${causeDetail}`);
|
|
42
|
-
}
|
|
33
|
+
const response = await fetch(`${ROUTER_BASE}${routerPath}`, {
|
|
34
|
+
method: "POST",
|
|
35
|
+
headers: {
|
|
36
|
+
...forwarded,
|
|
37
|
+
"Content-Type": "application/json",
|
|
38
|
+
...(API_KEY && { "Authorization": `Bearer ${API_KEY}` })
|
|
39
|
+
},
|
|
40
|
+
body: JSON.stringify(openaiBody)
|
|
41
|
+
});
|
|
43
42
|
|
|
44
43
|
// Forward response as-is (status + body). pipeSSE will propagate status.
|
|
45
44
|
return response;
|
|
@@ -74,4 +73,4 @@ async function pipeSSE(routerRes, res, dumper) {
|
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
module.exports = { fetchRouter, pipeSSE };
|
|
76
|
+
module.exports = { fetchRouter, normalizeRouterPath, pipeSSE };
|
package/app/src/mitm/manager.js
CHANGED
|
@@ -16,31 +16,90 @@ const { isCertExpired } = require("./cert/rootCA");
|
|
|
16
16
|
const { DATA_DIR, MITM_DIR } = require("./paths");
|
|
17
17
|
const { log, err } = require("./logger");
|
|
18
18
|
|
|
19
|
-
const DEFAULT_MITM_ROUTER_BASE = "http://
|
|
20
|
-
const LEGACY_DEFAULT_MITM_ROUTER_BASES = new Set([
|
|
21
|
-
"http://localhost:20128",
|
|
22
|
-
"http://127.0.0.1:20128",
|
|
23
|
-
]);
|
|
19
|
+
const DEFAULT_MITM_ROUTER_BASE = "http://localhost:20502";
|
|
24
20
|
|
|
25
21
|
function shellQuoteSingle(str) {
|
|
26
22
|
if (str == null || str === "") return "''";
|
|
27
23
|
return `'${String(str).replace(/'/g, "'\\''")}'`;
|
|
28
24
|
}
|
|
29
25
|
|
|
26
|
+
function normalizeHttpBaseUrl(input) {
|
|
27
|
+
const raw = input == null ? "" : String(input).trim();
|
|
28
|
+
if (!raw) return "";
|
|
29
|
+
try {
|
|
30
|
+
const u = new URL(raw.replace(/\/+$/, ""));
|
|
31
|
+
if (u.protocol !== "http:" && u.protocol !== "https:") return "";
|
|
32
|
+
return u.toString().replace(/\/+$/, "");
|
|
33
|
+
} catch {
|
|
34
|
+
return "";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function isLoopbackBaseUrl(baseUrl) {
|
|
39
|
+
try {
|
|
40
|
+
const host = new URL(baseUrl).hostname.toLowerCase();
|
|
41
|
+
return host === "localhost" || host === "127.0.0.1" || host === "::1";
|
|
42
|
+
} catch {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function readCurrentServerBaseUrl() {
|
|
48
|
+
try {
|
|
49
|
+
const file = path.join(DATA_DIR, "server.json");
|
|
50
|
+
if (!fs.existsSync(file)) return "";
|
|
51
|
+
const parsed = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
52
|
+
return normalizeHttpBaseUrl(parsed && parsed.baseUrl);
|
|
53
|
+
} catch {
|
|
54
|
+
return "";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function canConnectBaseUrl(baseUrl, timeoutMs = 350) {
|
|
59
|
+
return new Promise((resolve) => {
|
|
60
|
+
let u;
|
|
61
|
+
try {
|
|
62
|
+
u = new URL(baseUrl);
|
|
63
|
+
} catch {
|
|
64
|
+
resolve(false);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const port = Number(u.port || (u.protocol === "https:" ? 443 : 80));
|
|
69
|
+
const socket = net.connect({ host: u.hostname, port });
|
|
70
|
+
const done = (ok) => {
|
|
71
|
+
socket.removeAllListeners();
|
|
72
|
+
socket.destroy();
|
|
73
|
+
resolve(ok);
|
|
74
|
+
};
|
|
75
|
+
socket.setTimeout(timeoutMs, () => done(false));
|
|
76
|
+
socket.once("connect", () => done(true));
|
|
77
|
+
socket.once("error", () => done(false));
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
30
81
|
async function resolveMitmRouterBaseUrl() {
|
|
31
|
-
|
|
82
|
+
const currentServerBase = readCurrentServerBaseUrl();
|
|
83
|
+
if (!_getSettings) return currentServerBase || DEFAULT_MITM_ROUTER_BASE;
|
|
32
84
|
try {
|
|
33
85
|
const s = await _getSettings();
|
|
34
|
-
const
|
|
35
|
-
if (!
|
|
36
|
-
|
|
37
|
-
|
|
86
|
+
const configuredBase = normalizeHttpBaseUrl(s && s.mitmRouterBaseUrl);
|
|
87
|
+
if (!configuredBase) return currentServerBase || DEFAULT_MITM_ROUTER_BASE;
|
|
88
|
+
|
|
89
|
+
if (isLoopbackBaseUrl(configuredBase) && currentServerBase && configuredBase !== currentServerBase) {
|
|
90
|
+
const configuredAlive = await canConnectBaseUrl(configuredBase);
|
|
91
|
+
if (!configuredAlive && await canConnectBaseUrl(currentServerBase)) {
|
|
92
|
+
if (_updateSettings) {
|
|
93
|
+
_updateSettings({ mitmRouterBaseUrl: currentServerBase }).catch(() => { });
|
|
94
|
+
}
|
|
95
|
+
log(`🚀 MITM router base auto-corrected: ${configuredBase} → ${currentServerBase}`);
|
|
96
|
+
return currentServerBase;
|
|
97
|
+
}
|
|
38
98
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return raw.replace(/\/+$/, "");
|
|
99
|
+
|
|
100
|
+
return configuredBase;
|
|
42
101
|
} catch {
|
|
43
|
-
return DEFAULT_MITM_ROUTER_BASE;
|
|
102
|
+
return currentServerBase || DEFAULT_MITM_ROUTER_BASE;
|
|
44
103
|
}
|
|
45
104
|
}
|
|
46
105
|
|
|
@@ -405,7 +464,7 @@ async function scheduleMitmRestart(apiKey) {
|
|
|
405
464
|
mitmIsRestarting = false;
|
|
406
465
|
return;
|
|
407
466
|
}
|
|
408
|
-
await startServer(apiKey, password
|
|
467
|
+
await startServer(apiKey, password);
|
|
409
468
|
log("🔄 Restarted successfully");
|
|
410
469
|
mitmRestartCount = 0;
|
|
411
470
|
mitmIsRestarting = false;
|
|
@@ -439,23 +498,7 @@ async function killPort443Owner(owner, sudoPassword) {
|
|
|
439
498
|
await new Promise(r => setTimeout(r, 800));
|
|
440
499
|
}
|
|
441
500
|
|
|
442
|
-
async function
|
|
443
|
-
const health = await pollMitmHealth(1000, MITM_PORT);
|
|
444
|
-
if (!health) return null;
|
|
445
|
-
|
|
446
|
-
const pid = health.pid || serverPid || (() => {
|
|
447
|
-
try { return parseInt(fs.readFileSync(PID_FILE, "utf-8").trim(), 10); } catch { return null; }
|
|
448
|
-
})();
|
|
449
|
-
if (pid) {
|
|
450
|
-
serverPid = pid;
|
|
451
|
-
try { fs.writeFileSync(PID_FILE, String(pid)); } catch { /* ignore */ }
|
|
452
|
-
}
|
|
453
|
-
await saveMitmSettings(true, sudoPassword);
|
|
454
|
-
return { running: true, pid: serverPid || pid };
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
async function startServer(apiKey, sudoPassword, forceKillPort443 = false, options = {}) {
|
|
458
|
-
const isRestart = options.restart === true;
|
|
501
|
+
async function startServer(apiKey, sudoPassword, forceKillPort443 = false) {
|
|
459
502
|
if (!serverProcess || serverProcess.killed) {
|
|
460
503
|
try {
|
|
461
504
|
if (fs.existsSync(PID_FILE)) {
|
|
@@ -474,13 +517,7 @@ async function startServer(apiKey, sudoPassword, forceKillPort443 = false, optio
|
|
|
474
517
|
}
|
|
475
518
|
|
|
476
519
|
if (serverProcess && !serverProcess.killed) {
|
|
477
|
-
|
|
478
|
-
if (healthy) return healthy;
|
|
479
|
-
if (isRestart) {
|
|
480
|
-
await killLeftoverMitm(sudoPassword);
|
|
481
|
-
} else {
|
|
482
|
-
throw new Error("MITM server is already running");
|
|
483
|
-
}
|
|
520
|
+
throw new Error("MITM server is already running");
|
|
484
521
|
}
|
|
485
522
|
|
|
486
523
|
await killLeftoverMitm(sudoPassword);
|
|
@@ -673,18 +710,12 @@ async function startServer(apiKey, sudoPassword, forceKillPort443 = false, optio
|
|
|
673
710
|
const health = await pollMitmHealth(8000, MITM_PORT);
|
|
674
711
|
if (!health) {
|
|
675
712
|
if (serverProcess && !serverProcess.killed) { try { serverProcess.kill(); } catch { /* ignore */ } serverProcess = null; }
|
|
676
|
-
serverPid = null;
|
|
677
713
|
const processUsing443 = getProcessUsingPort443();
|
|
678
714
|
const portInfo = processUsing443 ? ` Port 443 already in use by ${processUsing443}.` : "";
|
|
679
715
|
const reason = startError || `Check sudo password or port 443 access.${portInfo}`;
|
|
680
716
|
throw new Error(`MITM server failed to start. ${reason}`);
|
|
681
717
|
}
|
|
682
718
|
|
|
683
|
-
if (health.pid && health.pid !== serverPid) {
|
|
684
|
-
serverPid = health.pid;
|
|
685
|
-
try { fs.writeFileSync(PID_FILE, String(serverPid)); } catch { /* ignore */ }
|
|
686
|
-
}
|
|
687
|
-
|
|
688
719
|
if (_updateSettings) await _updateSettings({ mitmCertInstalled: true }).catch(() => { });
|
|
689
720
|
|
|
690
721
|
log(`✅ Server healthy (PID: ${serverPid || health.pid})`);
|
|
@@ -827,4 +858,7 @@ module.exports = {
|
|
|
827
858
|
restoreToolDNS,
|
|
828
859
|
hasDnsPrivilege,
|
|
829
860
|
removeAllDNSEntriesSync,
|
|
861
|
+
resolveMitmRouterBaseUrl,
|
|
862
|
+
normalizeHttpBaseUrl,
|
|
863
|
+
readCurrentServerBaseUrl,
|
|
830
864
|
};
|
package/app/src/mitm/server.js
CHANGED
|
@@ -344,47 +344,47 @@ async function passthrough(req, res, bodyBuffer, onResponse, transformResponse)
|
|
|
344
344
|
servername: targetHost,
|
|
345
345
|
rejectUnauthorized: false
|
|
346
346
|
}, (forwardRes) => {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
347
|
+
// When transformResponse is provided, buffer the full response so we can
|
|
348
|
+
// modify it before sending to the client.
|
|
349
|
+
const shouldBuffer = transformResponse != null;
|
|
350
|
+
if (!shouldBuffer) res.writeHead(forwardRes.statusCode, forwardRes.headers);
|
|
351
351
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
352
|
+
if (!onResponse && !dumper && !shouldBuffer) {
|
|
353
|
+
forwardRes.pipe(res);
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
356
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
357
|
+
const chunks = [];
|
|
358
|
+
forwardRes.on("data", chunk => {
|
|
359
|
+
if (dumper) dumper.writeChunk(chunk);
|
|
360
|
+
if (onResponse || shouldBuffer) chunks.push(chunk);
|
|
361
|
+
if (!shouldBuffer) res.write(chunk);
|
|
362
|
+
});
|
|
363
|
+
forwardRes.on("end", () => {
|
|
364
|
+
const rawBuffer = Buffer.concat(chunks);
|
|
365
|
+
|
|
366
|
+
if (shouldBuffer) {
|
|
367
|
+
try {
|
|
368
|
+
const modified = transformResponse(rawBuffer, forwardRes.headers);
|
|
369
|
+
// Update Content-Length if present to match modified body
|
|
370
|
+
const headers = { ...forwardRes.headers };
|
|
371
|
+
if (headers["content-length"] != null) {
|
|
372
|
+
headers["content-length"] = String(Buffer.byteLength(modified));
|
|
373
|
+
}
|
|
374
|
+
res.writeHead(forwardRes.statusCode, headers);
|
|
375
|
+
res.end(modified);
|
|
376
|
+
} catch (e) {
|
|
377
|
+
err(`transformResponse error: ${e.message}`);
|
|
378
|
+
if (!res.headersSent) res.writeHead(502);
|
|
379
|
+
res.end("Bad Gateway");
|
|
373
380
|
}
|
|
374
|
-
|
|
375
|
-
res.end(
|
|
376
|
-
} catch (e) {
|
|
377
|
-
err(`transformResponse error: ${e.message}`);
|
|
378
|
-
if (!res.headersSent) res.writeHead(502);
|
|
379
|
-
res.end("Bad Gateway");
|
|
381
|
+
} else {
|
|
382
|
+
res.end();
|
|
380
383
|
}
|
|
381
|
-
} else {
|
|
382
|
-
res.end();
|
|
383
|
-
}
|
|
384
384
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
385
|
+
if (dumper) dumper.end();
|
|
386
|
+
if (onResponse) try { onResponse(rawBuffer, forwardRes.headers); } catch { /* ignore */ }
|
|
387
|
+
});
|
|
388
388
|
});
|
|
389
389
|
|
|
390
390
|
forwardReq.on("error", (e) => {
|
package/cli.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const { spawn } = require("node:child_process");
|
|
4
4
|
const fs = require("node:fs");
|
|
5
|
-
const https = require("node:https");
|
|
6
5
|
const os = require("node:os");
|
|
7
6
|
const path = require("node:path");
|
|
8
7
|
const net = require("node:net");
|
|
@@ -18,17 +17,8 @@ const PID_FILE = path.join(DATA_DIR, "server.pid");
|
|
|
18
17
|
const META_FILE = path.join(DATA_DIR, "server.json");
|
|
19
18
|
const LOG_FILE = path.join(DATA_DIR, "server.log");
|
|
20
19
|
const MITM_PID_FILE = path.join(DATA_DIR, "mitm", ".mitm.pid");
|
|
21
|
-
const STARTUP_NOTICE_DIR = path.join(DATA_DIR, "notices");
|
|
22
|
-
const PORT_MIGRATION_NOTICE_FILE = path.join(STARTUP_NOTICE_DIR, "port-migration.json");
|
|
23
20
|
const DEFAULT_PORT = "20502";
|
|
24
21
|
const DEFAULT_HOST = "0.0.0.0";
|
|
25
|
-
const NPM_PACKAGE_NAME = "@yina-npm/openrouterx";
|
|
26
|
-
const INSTALL_CMD_LATEST = `npm i -g ${NPM_PACKAGE_NAME}@latest --prefer-online --registry=https://registry.npmjs.org/`;
|
|
27
|
-
const DEFAULT_MITM_ROUTER_BASE_URL = `http://localhost:${DEFAULT_PORT}`;
|
|
28
|
-
const LEGACY_DEFAULT_MITM_ROUTER_BASE_URLS = new Set([
|
|
29
|
-
"http://localhost:20128",
|
|
30
|
-
"http://127.0.0.1:20128",
|
|
31
|
-
]);
|
|
32
22
|
|
|
33
23
|
function parseArgs(argv = process.argv.slice(2)) {
|
|
34
24
|
const options = {
|
|
@@ -129,156 +119,6 @@ function ensureDataDir() {
|
|
|
129
119
|
fs.mkdirSync(DATA_DIR, { recursive: true });
|
|
130
120
|
}
|
|
131
121
|
|
|
132
|
-
function stripTrailingSlash(value) {
|
|
133
|
-
return String(value || "").trim().replace(/\/+$/, "");
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function normalizeMitmRouterBaseUrl(value) {
|
|
137
|
-
const raw = stripTrailingSlash(value);
|
|
138
|
-
if (!raw || LEGACY_DEFAULT_MITM_ROUTER_BASE_URLS.has(raw)) {
|
|
139
|
-
return DEFAULT_MITM_ROUTER_BASE_URL;
|
|
140
|
-
}
|
|
141
|
-
return raw;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function migrateJsonSettingsFile() {
|
|
145
|
-
const jsonDbFile = path.join(DATA_DIR, "db.json");
|
|
146
|
-
if (!fs.existsSync(jsonDbFile)) return false;
|
|
147
|
-
|
|
148
|
-
try {
|
|
149
|
-
const data = JSON.parse(fs.readFileSync(jsonDbFile, "utf8"));
|
|
150
|
-
if (!data || typeof data !== "object") return false;
|
|
151
|
-
if (!data.settings || typeof data.settings !== "object" || Array.isArray(data.settings)) {
|
|
152
|
-
data.settings = {};
|
|
153
|
-
}
|
|
154
|
-
const current = data.settings.mitmRouterBaseUrl;
|
|
155
|
-
const next = normalizeMitmRouterBaseUrl(current);
|
|
156
|
-
if (current === next) return false;
|
|
157
|
-
data.settings.mitmRouterBaseUrl = next;
|
|
158
|
-
fs.writeFileSync(jsonDbFile, `${JSON.stringify(data, null, 2)}\n`);
|
|
159
|
-
return true;
|
|
160
|
-
} catch {
|
|
161
|
-
return false;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
function migrateSqliteSettingsFile() {
|
|
166
|
-
const sqliteFile = path.join(DATA_DIR, "db", "data.sqlite");
|
|
167
|
-
if (!fs.existsSync(sqliteFile)) return false;
|
|
168
|
-
|
|
169
|
-
let Database;
|
|
170
|
-
try {
|
|
171
|
-
Database = require("better-sqlite3");
|
|
172
|
-
} catch {
|
|
173
|
-
return false;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
let db;
|
|
177
|
-
try {
|
|
178
|
-
db = new Database(sqliteFile);
|
|
179
|
-
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'settings'").get();
|
|
180
|
-
if (!table) return false;
|
|
181
|
-
const row = db.prepare("SELECT id, data FROM settings WHERE id = 1").get();
|
|
182
|
-
if (!row) return false;
|
|
183
|
-
const settings = JSON.parse(row.data || "{}");
|
|
184
|
-
const current = settings.mitmRouterBaseUrl;
|
|
185
|
-
const next = normalizeMitmRouterBaseUrl(current);
|
|
186
|
-
if (current === next) return false;
|
|
187
|
-
settings.mitmRouterBaseUrl = next;
|
|
188
|
-
db.prepare("UPDATE settings SET data = ? WHERE id = ?").run(JSON.stringify(settings), row.id);
|
|
189
|
-
return true;
|
|
190
|
-
} catch {
|
|
191
|
-
return false;
|
|
192
|
-
} finally {
|
|
193
|
-
try {
|
|
194
|
-
db?.close();
|
|
195
|
-
} catch {}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
function writePortMigrationNotice(changedStores) {
|
|
200
|
-
if (!changedStores.length) return;
|
|
201
|
-
try {
|
|
202
|
-
fs.mkdirSync(STARTUP_NOTICE_DIR, { recursive: true });
|
|
203
|
-
fs.writeFileSync(PORT_MIGRATION_NOTICE_FILE, `${JSON.stringify({
|
|
204
|
-
id: "port-migration-20128-20502",
|
|
205
|
-
type: "port-migration",
|
|
206
|
-
fromPort: 20128,
|
|
207
|
-
toPort: Number(DEFAULT_PORT),
|
|
208
|
-
fromBaseUrl: "http://localhost:20128",
|
|
209
|
-
toBaseUrl: DEFAULT_MITM_ROUTER_BASE_URL,
|
|
210
|
-
stores: changedStores,
|
|
211
|
-
createdAt: new Date().toISOString(),
|
|
212
|
-
}, null, 2)}\n`);
|
|
213
|
-
} catch {}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
function refreshRuntimePortSettings({ quiet = true } = {}) {
|
|
217
|
-
ensureDataDir();
|
|
218
|
-
const changed = [];
|
|
219
|
-
if (migrateJsonSettingsFile()) changed.push("db.json");
|
|
220
|
-
if (migrateSqliteSettingsFile()) changed.push("data.sqlite");
|
|
221
|
-
writePortMigrationNotice(changed);
|
|
222
|
-
if (!quiet && changed.length > 0) {
|
|
223
|
-
console.log(`Refreshed MITM router port settings: ${changed.join(", ")} -> ${DEFAULT_MITM_ROUTER_BASE_URL}`);
|
|
224
|
-
}
|
|
225
|
-
return changed;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
function compareVersions(a, b) {
|
|
229
|
-
const pa = String(a || "").split(".").map(Number);
|
|
230
|
-
const pb = String(b || "").split(".").map(Number);
|
|
231
|
-
for (let i = 0; i < 3; i += 1) {
|
|
232
|
-
const av = Number.isFinite(pa[i]) ? pa[i] : 0;
|
|
233
|
-
const bv = Number.isFinite(pb[i]) ? pb[i] : 0;
|
|
234
|
-
if (av > bv) return 1;
|
|
235
|
-
if (av < bv) return -1;
|
|
236
|
-
}
|
|
237
|
-
return 0;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
function checkForUpdate({ skipUpdate } = {}) {
|
|
241
|
-
return new Promise((resolve) => {
|
|
242
|
-
if (skipUpdate) {
|
|
243
|
-
resolve(null);
|
|
244
|
-
return;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
let resolved = false;
|
|
248
|
-
const done = (version) => {
|
|
249
|
-
if (resolved) return;
|
|
250
|
-
resolved = true;
|
|
251
|
-
resolve(version);
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
const req = https.get(
|
|
255
|
-
`https://registry.npmjs.org/${encodeURIComponent(NPM_PACKAGE_NAME).replace("%40", "@")}/latest`,
|
|
256
|
-
{ timeout: 3000 },
|
|
257
|
-
(res) => {
|
|
258
|
-
let data = "";
|
|
259
|
-
res.on("data", (chunk) => {
|
|
260
|
-
data += chunk;
|
|
261
|
-
});
|
|
262
|
-
res.on("end", () => {
|
|
263
|
-
try {
|
|
264
|
-
const latest = JSON.parse(data);
|
|
265
|
-
const latestVersion = latest?.version;
|
|
266
|
-
done(latestVersion && compareVersions(latestVersion, pkg.version) > 0 ? latestVersion : null);
|
|
267
|
-
} catch {
|
|
268
|
-
done(null);
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
);
|
|
273
|
-
|
|
274
|
-
req.on("error", () => done(null));
|
|
275
|
-
req.on("timeout", () => {
|
|
276
|
-
req.destroy();
|
|
277
|
-
done(null);
|
|
278
|
-
});
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
|
|
282
122
|
function readMeta() {
|
|
283
123
|
try {
|
|
284
124
|
return JSON.parse(fs.readFileSync(META_FILE, "utf8"));
|
|
@@ -548,7 +388,6 @@ function printChooser(serverUrl) {
|
|
|
548
388
|
|
|
549
389
|
async function runCli() {
|
|
550
390
|
const options = parseArgs();
|
|
551
|
-
refreshRuntimePortSettings({ quiet: true });
|
|
552
391
|
|
|
553
392
|
if (options.help) {
|
|
554
393
|
console.log(formatHelp());
|
|
@@ -600,7 +439,6 @@ async function runCli() {
|
|
|
600
439
|
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || `http://localhost:${port}`;
|
|
601
440
|
const foreground = options.foreground || (process.env.ORX_CHOOSER_ACTION !== undefined && process.env.ORX_CHOOSER_ACTION !== "hide");
|
|
602
441
|
const runningPid = readPid();
|
|
603
|
-
const latestVersion = await checkForUpdate({ skipUpdate: options.skipUpdate });
|
|
604
442
|
|
|
605
443
|
if (isProcessRunning(runningPid) && options.command !== "restart") {
|
|
606
444
|
const runningMeta = readMeta();
|
|
@@ -618,10 +456,6 @@ async function runCli() {
|
|
|
618
456
|
}
|
|
619
457
|
|
|
620
458
|
printChooser(baseUrl);
|
|
621
|
-
if (latestVersion) {
|
|
622
|
-
console.log(`Update available: v${pkg.version} -> v${latestVersion}`);
|
|
623
|
-
console.log(`Run: ${INSTALL_CMD_LATEST}`);
|
|
624
|
-
}
|
|
625
459
|
|
|
626
460
|
const stdio = foreground ? "inherit" : createLogFileDescriptors();
|
|
627
461
|
const child = spawn(process.execPath, [serverEntry], {
|
|
@@ -682,8 +516,4 @@ module.exports = {
|
|
|
682
516
|
isProcessRunning,
|
|
683
517
|
printStatus,
|
|
684
518
|
stopServer,
|
|
685
|
-
refreshRuntimePortSettings,
|
|
686
|
-
normalizeMitmRouterBaseUrl,
|
|
687
|
-
compareVersions,
|
|
688
|
-
checkForUpdate,
|
|
689
519
|
};
|
package/hooks/postinstall.js
CHANGED
|
@@ -2,102 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
const { execSync } = require("node:child_process");
|
|
4
4
|
const fs = require("node:fs");
|
|
5
|
-
const os = require("node:os");
|
|
6
5
|
const path = require("node:path");
|
|
7
6
|
|
|
8
7
|
const appDir = path.join(__dirname, "..", "app");
|
|
9
8
|
const betterSqlitePath = path.join(appDir, "node_modules", "better-sqlite3");
|
|
10
|
-
const defaultMitmRouterBaseUrl = "http://localhost:20502";
|
|
11
|
-
const portMigrationNoticeName = "port-migration.json";
|
|
12
|
-
const legacyMitmRouterBaseUrls = new Set([
|
|
13
|
-
"http://localhost:20128",
|
|
14
|
-
"http://127.0.0.1:20128",
|
|
15
|
-
]);
|
|
16
|
-
|
|
17
|
-
function getDataDir() {
|
|
18
|
-
return process.platform === "win32"
|
|
19
|
-
? path.join(process.env.APPDATA || os.homedir(), "openrouterx")
|
|
20
|
-
: path.join(os.homedir(), ".openrouterx");
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function normalizeMitmRouterBaseUrl(value) {
|
|
24
|
-
const raw = String(value || "").trim().replace(/\/+$/, "");
|
|
25
|
-
if (!raw || legacyMitmRouterBaseUrls.has(raw)) return defaultMitmRouterBaseUrl;
|
|
26
|
-
return raw;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function refreshJsonSettings(dataDir) {
|
|
30
|
-
const filePath = path.join(dataDir, "db.json");
|
|
31
|
-
if (!fs.existsSync(filePath)) return false;
|
|
32
|
-
try {
|
|
33
|
-
const data = JSON.parse(fs.readFileSync(filePath, "utf8"));
|
|
34
|
-
if (!data || typeof data !== "object") return false;
|
|
35
|
-
if (!data.settings || typeof data.settings !== "object" || Array.isArray(data.settings)) {
|
|
36
|
-
data.settings = {};
|
|
37
|
-
}
|
|
38
|
-
const next = normalizeMitmRouterBaseUrl(data.settings.mitmRouterBaseUrl);
|
|
39
|
-
if (data.settings.mitmRouterBaseUrl === next) return false;
|
|
40
|
-
data.settings.mitmRouterBaseUrl = next;
|
|
41
|
-
fs.writeFileSync(filePath, JSON.stringify(data, null, 2) + "\n");
|
|
42
|
-
return true;
|
|
43
|
-
} catch {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function refreshSqliteSettings(dataDir) {
|
|
49
|
-
const filePath = path.join(dataDir, "db", "data.sqlite");
|
|
50
|
-
if (!fs.existsSync(filePath)) return false;
|
|
51
|
-
let Database;
|
|
52
|
-
try {
|
|
53
|
-
Database = require(path.join(appDir, "node_modules", "better-sqlite3"));
|
|
54
|
-
} catch {
|
|
55
|
-
try { Database = require("better-sqlite3"); } catch { return false; }
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
let db;
|
|
59
|
-
try {
|
|
60
|
-
db = new Database(filePath);
|
|
61
|
-
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'settings'").get();
|
|
62
|
-
if (!table) return false;
|
|
63
|
-
const row = db.prepare("SELECT id, data FROM settings WHERE id = 1").get();
|
|
64
|
-
if (!row) return false;
|
|
65
|
-
const settings = JSON.parse(row.data || "{}");
|
|
66
|
-
const next = normalizeMitmRouterBaseUrl(settings.mitmRouterBaseUrl);
|
|
67
|
-
if (settings.mitmRouterBaseUrl === next) return false;
|
|
68
|
-
settings.mitmRouterBaseUrl = next;
|
|
69
|
-
db.prepare("UPDATE settings SET data = ? WHERE id = ?").run(JSON.stringify(settings), row.id);
|
|
70
|
-
return true;
|
|
71
|
-
} catch {
|
|
72
|
-
return false;
|
|
73
|
-
} finally {
|
|
74
|
-
try { db?.close(); } catch {}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function refreshRuntimePortSettings() {
|
|
79
|
-
const dataDir = getDataDir();
|
|
80
|
-
const changed = [];
|
|
81
|
-
if (refreshJsonSettings(dataDir)) changed.push("db.json");
|
|
82
|
-
if (refreshSqliteSettings(dataDir)) changed.push("data.sqlite");
|
|
83
|
-
if (changed.length > 0) {
|
|
84
|
-
const noticeDir = path.join(dataDir, "notices");
|
|
85
|
-
fs.mkdirSync(noticeDir, { recursive: true });
|
|
86
|
-
fs.writeFileSync(path.join(noticeDir, portMigrationNoticeName), JSON.stringify({
|
|
87
|
-
id: "port-migration-20128-20502",
|
|
88
|
-
type: "port-migration",
|
|
89
|
-
fromPort: 20128,
|
|
90
|
-
toPort: 20502,
|
|
91
|
-
fromBaseUrl: "http://localhost:20128",
|
|
92
|
-
toBaseUrl: defaultMitmRouterBaseUrl,
|
|
93
|
-
stores: changed,
|
|
94
|
-
createdAt: new Date().toISOString(),
|
|
95
|
-
}, null, 2) + "\n");
|
|
96
|
-
console.log("refreshed MITM router port settings: " + changed.join(", ") + " -> " + defaultMitmRouterBaseUrl);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
refreshRuntimePortSettings();
|
|
101
9
|
|
|
102
10
|
if (!fs.existsSync(betterSqlitePath)) {
|
|
103
11
|
console.log("better-sqlite3 not found, skipping rebuild");
|