@yina-npm/openrouterx 0.4.28 → 0.4.32
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/app/.next/BUILD_ID +1 -1
- package/app/.next/app-path-routes-manifest.json +13 -2
- package/app/.next/build-manifest.json +3 -3
- package/app/.next/routes-manifest.json +70 -0
- 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 +13 -13
- 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 +3 -3
- 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 +4 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/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 +5 -6
- package/app/.next/server/app/_not-found.segments/_full.segment.rsc +5 -6
- 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 -6
- 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 +3 -4
- package/app/.next/server/app/api/auth/login/route.js +1 -1
- package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/logout/route.js +1 -1
- package/app/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/me/route.js +1 -1
- package/app/.next/server/app/api/auth/me/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -0
- package/app/.next/server/app/api/auth/oidc/callback/route.js.nft.json +1 -0
- package/app/.next/server/app/api/auth/oidc/callback/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/auth/oidc/start/route.js +1 -0
- package/app/.next/server/app/api/auth/oidc/start/route.js.nft.json +1 -0
- package/app/.next/server/app/api/auth/oidc/start/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/auth/oidc/test/route.js +1 -0
- package/app/.next/server/app/api/auth/oidc/test/route.js.nft.json +1 -0
- package/app/.next/server/app/api/auth/oidc/test/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/auth/status/route.js +1 -0
- package/app/.next/server/app/api/auth/status/route.js.nft.json +1 -0
- package/app/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js +9 -0
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/all-statuses/route_client-reference-manifest.js +1 -0
- 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/inject-auth/route.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/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/test/route.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.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cline-settings/route.js +2 -0
- package/app/.next/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -32
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -0
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -0
- package/app/.next/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +1 -0
- 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.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cloud/auth/route.js +1 -1
- package/app/.next/server/app/api/cloud/credentials/update/route.js +1 -1
- package/app/.next/server/app/api/cloud/model/resolve/route.js +1 -1
- package/app/.next/server/app/api/cloud/models/alias/route.js +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next/server/app/api/combos/route.js +1 -1
- package/app/.next/server/app/api/health/route.js +1 -1
- package/app/.next/server/app/api/init/route.js +1 -1
- package/app/.next/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/route.js +1 -1
- package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next/server/app/api/locale/route.js +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/message/route.js +7 -0
- package/app/.next/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -0
- package/app/.next/server/app/api/mcp/[plugin]/message/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +10 -0
- package/app/.next/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -0
- package/app/.next/server/app/api/mcp/[plugin]/sse/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.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/inworld/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next/server/app/api/models/alias/route.js +1 -1
- package/app/.next/server/app/api/models/availability/route.js +1 -1
- package/app/.next/server/app/api/models/custom/route.js +1 -1
- package/app/.next/server/app/api/models/disabled/route.js +1 -1
- package/app/.next/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/route.js +1 -1
- package/app/.next/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/test/route.js +1 -1
- package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/network-analysis/route.js +2 -2
- package/app/.next/server/app/api/network-analysis/route.js.nft.json +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.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next/server/app/api/oauth/iflow/cookie/route.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/import/route.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-exchange/route.js +1 -1
- package/app/.next/server/app/api/pricing/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next/server/app/api/providers/client/route.js +1 -1
- package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next/server/app/api/providers/route.js +1 -1
- package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next/server/app/api/providers/validate/route.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]/test/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next/server/app/api/settings/database/route.js +1 -1
- package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next/server/app/api/settings/route.js +1 -1
- package/app/.next/server/app/api/shutdown/route.js +1 -1
- package/app/.next/server/app/api/tags/route.js +1 -1
- package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next/server/app/api/translator/load/route.js +1 -1
- package/app/.next/server/app/api/translator/save/route.js +1 -1
- package/app/.next/server/app/api/translator/send/route.js +1 -1
- package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/translate/route.js +1 -1
- package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-login/route.js +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.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/api-keys/route.js +1 -1
- package/app/.next/server/app/api/usage/api-keys/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/chart/route.js +1 -1
- package/app/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/history/route.js +1 -1
- package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/logs/route.js +1 -1
- package/app/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/providers/route.js +1 -1
- package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stats/route.js +1 -1
- package/app/.next/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stream/route.js +2 -2
- package/app/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/users/[id]/route.js +1 -1
- package/app/.next/server/app/api/users/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/users/route.js +1 -1
- package/app/.next/server/app/api/users/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/voices/route.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.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/images/generations/route.js +2 -2
- package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/route.js +1 -1
- package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/search/route.js +1 -1
- package/app/.next/server/app/api/v1/search/route.js.nft.json +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.js.nft.json +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.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next/server/app/api/version/route.js +1 -1
- package/app/.next/server/app/api/version/shutdown/route.js +1 -0
- package/app/.next/server/app/api/version/shutdown/route.js.nft.json +1 -0
- package/app/.next/server/app/api/version/shutdown/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/version/update/route.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 +6 -7
- package/app/.next/server/app/callback.segments/_full.segment.rsc +6 -7
- package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/_index.segment.rsc +5 -6
- package/app/.next/server/app/callback.segments/_tree.segment.rsc +3 -4
- 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 +5 -6
- package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -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 -6
- package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +3 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/favicon.ico/route.js +1 -1
- package/app/.next/server/app/index.html +1 -1
- package/app/.next/server/app/index.rsc +5 -6
- package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_full.segment.rsc +5 -6
- package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_index.segment.rsc +5 -6
- package/app/.next/server/app/index.segments/_tree.segment.rsc +3 -4
- 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 +5 -6
- package/app/.next/server/app/landing.segments/_full.segment.rsc +5 -6
- package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/landing.segments/_index.segment.rsc +5 -6
- package/app/.next/server/app/landing.segments/_tree.segment.rsc +3 -4
- package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next/server/app/login/page.js +2 -2
- package/app/.next/server/app/login/page.js.nft.json +1 -1
- package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/login.html +1 -1
- package/app/.next/server/app/login.rsc +6 -7
- package/app/.next/server/app/login.segments/_full.segment.rsc +6 -7
- package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/login.segments/_index.segment.rsc +5 -6
- package/app/.next/server/app/login.segments/_tree.segment.rsc +3 -4
- 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/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 +13 -2
- package/app/.next/server/chunks/1263.js +2 -2
- package/app/.next/server/chunks/1350.js +7 -0
- package/app/.next/server/chunks/{2574.js → 2343.js} +1 -1
- package/app/.next/server/chunks/2506.js +4 -3
- package/app/.next/server/chunks/2560.js +1 -0
- package/app/.next/server/chunks/3110.js +1 -1
- package/app/.next/server/chunks/3593.js +9 -0
- package/app/.next/server/chunks/3855.js +1 -1
- package/app/.next/server/chunks/3913.js +2 -2
- package/app/.next/server/chunks/412.js +5 -5
- package/app/.next/server/chunks/4126.js +1 -0
- package/app/.next/server/chunks/4739.js +9 -0
- package/app/.next/server/chunks/4922.js +9 -0
- package/app/.next/server/chunks/4989.js +2 -2
- package/app/.next/server/chunks/5217.js +9 -0
- package/app/.next/server/chunks/5258.js +9 -0
- package/app/.next/server/chunks/{7937.js → 5330.js} +4 -4
- package/app/.next/server/chunks/5434.js +1 -1
- package/app/.next/server/chunks/5573.js +1 -1
- package/app/.next/server/chunks/5627.js +7 -7
- package/app/.next/server/chunks/5681.js +1 -1
- package/app/.next/server/chunks/5789.js +1 -0
- package/app/.next/server/chunks/{8838.js → 6001.js} +1 -1
- package/app/.next/server/chunks/6182.js +36 -2
- package/app/.next/server/chunks/63.js +3 -3
- package/app/.next/server/chunks/6393.js +1 -0
- package/app/.next/server/chunks/6936.js +1 -0
- package/app/.next/server/chunks/723.js +44 -0
- package/app/.next/server/chunks/7540.js +1 -0
- package/app/.next/server/chunks/7568.js +1 -0
- package/app/.next/server/chunks/7595.js +1 -1
- package/app/.next/server/chunks/8520.js +9 -0
- package/app/.next/server/chunks/8590.js +1 -1
- package/app/.next/server/chunks/8760.js +1 -1
- package/app/.next/server/chunks/8895.js +4 -4
- package/app/.next/server/chunks/8971.js +1 -0
- package/app/.next/server/chunks/906.js +1 -0
- package/app/.next/server/chunks/9460.js +1 -0
- package/app/.next/server/chunks/9489.js +1 -1
- package/app/.next/server/chunks/9528.js +32 -0
- package/app/.next/server/chunks/9546.js +1 -0
- package/app/.next/server/chunks/9609.js +1 -1
- package/app/.next/server/chunks/9641.js +1 -1
- package/app/.next/server/chunks/9718.js +1 -1
- package/app/.next/server/functions-config-manifest.json +2 -0
- package/app/.next/server/middleware-build-manifest.js +1 -1
- package/app/.next/server/middleware.js +2 -2
- package/app/.next/server/pages/404.html +1 -1
- package/app/.next/server/pages/500.html +1 -1
- package/app/.next/server/server-reference-manifest.js +1 -1
- package/app/.next/server/server-reference-manifest.json +1 -1
- package/app/.next/static/BuJLCErn-QhhM6_1rkOm9/_buildManifest.js +1 -0
- package/app/.next/static/chunks/1321-4d97c0c20625b433.js +1 -0
- package/app/.next/static/chunks/5497-83030cc3d92a3519.js +7 -0
- package/app/.next/static/chunks/5555-fe35208b285372b6.js +3 -0
- package/app/.next/static/chunks/5964-87a3fc549eda915f.js +44 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/admin/keys/{page-e7d9455fb9021069.js → page-0b0deda6732f2c17.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/admin/users/page-78953d3b1df0d645.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/page-c86af5c8f255b3b1.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-e6ab107aa0c88255.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/focus-ui/page-0e1c6e92394e082a.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-c77fedcd9ba7bcac.js → page-43a004ab7a9b604a.js} +12 -12
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-d7972070450d7abc.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/{page-4473f52ad379b661.js → page-320446d3e8bf8cdf.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-653d43b972894dc8.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-bafdc36ddde43d0d.js +3 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-d799365a8ef51d37.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-4319007c3ca0a634.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/{layout-7ea5a7abc543b04d.js → layout-f01d55c89fabcb07.js} +1 -1
- package/app/.next/static/chunks/app/_global-error/page-1172e1764d69e954.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-612232d68e5ef104.js +1 -0
- package/app/.next/static/chunks/app/layout-e2bc0634eb8e25c2.js +1 -0
- package/app/.next/static/chunks/app/login/page-618b0ac3d3cefbb3.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/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/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-d1740476c6ab968a.js → webpack-786de0e184ffd859.js} +1 -1
- package/app/.next/static/css/{081a0afca5a9bd20.css → 2e1b7d528c228ec3.css} +1 -1
- package/app/.next/static/css/d0e6cedf3e986854.css +1 -0
- package/app/.next/static/media/material-symbols-outlined.1060ac06.woff2 +0 -0
- package/app/package.json +2 -1
- package/app/public/i18n/literals/ar.json +2 -1
- package/app/public/i18n/literals/bn.json +2 -1
- package/app/public/i18n/literals/cs.json +2 -1
- package/app/public/i18n/literals/da.json +2 -1
- package/app/public/i18n/literals/de.json +2 -1
- package/app/public/i18n/literals/el.json +2 -1
- package/app/public/i18n/literals/es.json +2 -1
- package/app/public/i18n/literals/fi.json +2 -1
- package/app/public/i18n/literals/fr.json +2 -1
- package/app/public/i18n/literals/he.json +2 -1
- package/app/public/i18n/literals/hi.json +2 -1
- package/app/public/i18n/literals/hu.json +2 -1
- package/app/public/i18n/literals/id.json +2 -1
- package/app/public/i18n/literals/it.json +2 -1
- package/app/public/i18n/literals/ja.json +2 -1
- package/app/public/i18n/literals/ko.json +2 -1
- package/app/public/i18n/literals/nl.json +2 -1
- package/app/public/i18n/literals/no.json +2 -1
- package/app/public/i18n/literals/pl.json +2 -1
- package/app/public/i18n/literals/pt-BR.json +2 -1
- package/app/public/i18n/literals/pt-PT.json +2 -1
- package/app/public/i18n/literals/ro.json +2 -1
- package/app/public/i18n/literals/ru.json +2 -1
- package/app/public/i18n/literals/sv.json +2 -1
- package/app/public/i18n/literals/th.json +2 -1
- package/app/public/i18n/literals/tl.json +2 -1
- package/app/public/i18n/literals/tr.json +2 -1
- package/app/public/i18n/literals/uk.json +2 -1
- package/app/public/i18n/literals/ur.json +2 -1
- package/app/public/i18n/literals/vi.json +2 -1
- package/app/public/i18n/literals/zh-CN.json +124 -2
- package/app/public/i18n/literals/zh-TW.json +2 -1
- package/app/src/lib/db/adapters/betterSqliteAdapter.js +55 -0
- package/app/src/lib/db/adapters/bunSqliteAdapter.js +63 -0
- package/app/src/lib/db/adapters/nodeSqliteAdapter.js +84 -0
- package/app/src/lib/db/adapters/sqljsAdapter.js +115 -0
- package/app/src/lib/db/migrate.js +248 -0
- package/app/src/lib/updater/updater.js +25 -0
- package/app/src/mitm/cert/install.js +53 -3
- package/app/src/mitm/dbReader.js +22 -0
- package/app/src/mitm/dns/dnsConfig.js +37 -8
- package/app/src/mitm/manager.js +3 -0
- package/app/src/mitm/paths.js +1 -0
- package/app/src/mitm/server.js +3 -7
- package/cli.js +148 -18
- package/package.json +1 -1
- package/app/.next/server/chunks/2417.js +0 -1
- package/app/.next/server/chunks/2549.js +0 -1
- package/app/.next/server/chunks/3605.js +0 -1
- package/app/.next/server/chunks/4122.js +0 -1
- package/app/.next/server/chunks/5296.js +0 -1
- package/app/.next/server/chunks/6184.js +0 -1
- package/app/.next/server/chunks/6774.js +0 -1
- package/app/.next/server/chunks/7861.js +0 -1
- package/app/.next/server/chunks/9547.js +0 -28
- package/app/.next/static/chunks/1321-38758d19993d62bf.js +0 -1
- package/app/.next/static/chunks/2336-cef968b5640a96f8.js +0 -28
- package/app/.next/static/chunks/5497-2ef9901a04eb9472.js +0 -7
- package/app/.next/static/chunks/5555-595382d9c4d118fe.js +0 -3
- package/app/.next/static/chunks/app/(dashboard)/dashboard/admin/users/page-adc5d5e8da3a0761.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/page-a4b2b832a4892e6d.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-bd677c182bc2aae9.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/focus-ui/page-74a4a20467839a51.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-7cf63e1a3a8adecd.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-ceb9bffbc34711bc.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-aa4cac34e6e605a5.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-a0419a964a084f76.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-c41fbdb17b88c549.js +0 -1
- package/app/.next/static/chunks/app/_global-error/page-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/auth/login/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/auth/logout/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/auth/me/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/inject-auth/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/restart/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/test/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/auth/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/credentials/update/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/model/resolve/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/cloud/models/alias/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/health/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/init/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/locale/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/models/custom/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/models/disabled/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/models/test/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/network-analysis/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/settings/require-login/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/disable/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/enable/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/status/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/usage/api-keys/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/usage/chart/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/usage/logs/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/usage/providers/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stats/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stream/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/users/[id]/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/users/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/info/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/search/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/version/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/api/version/update/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/callback/page-ca2aafefd1c72edc.js +0 -1
- package/app/.next/static/chunks/app/layout-88b42fda4d7c38d2.js +0 -1
- package/app/.next/static/chunks/app/login/page-cfe122b0047956eb.js +0 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/app/page-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-e967880631a99483.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-e967880631a99483.js +0 -1
- package/app/.next/static/css/90eec4fabec62f30.css +0 -1
- package/app/.next/static/uJKVggqia7KT98gdWEdVM/_buildManifest.js +0 -1
- /package/app/.next/static/{uJKVggqia7KT98gdWEdVM → BuJLCErn-QhhM6_1rkOm9}/_ssgManifest.js +0 -0
|
@@ -3,8 +3,42 @@
|
|
|
3
3
|
certutil -delstore Root ${j(m)} 2>$null | Out-Null
|
|
4
4
|
$exit = & certutil -addstore Root ${j(a)} 2>&1
|
|
5
5
|
if ($LASTEXITCODE -ne 0) { throw "certutil exit $LASTEXITCODE" }
|
|
6
|
-
`;try{await i(b),k("\uD83D\uDD10 Cert: ✅ installed to Windows Root store")}catch(a){throw Error(`Failed to install certificate: ${a.message}`)}}async function x(a,b){let c=t(b).replace(/:/g,""),d=`security delete-certificate -Z "${c}" /Library/Keychains/System.keychain`;try{await g(d,a),k("\uD83D\uDD10 Cert: ✅ uninstalled from system keychain")}catch(a){throw Error("Failed to uninstall certificate")}}async function y(){let a=`certutil -delstore Root ${j(m)}`;try{await i(a),k("\uD83D\uDD10 Cert: ✅ uninstalled from Windows Root store")}catch(a){throw Error(`Failed to uninstall certificate: ${a.message}`)}}async function z(a,b){if(!h())return void k(`🔐 Cert: cannot install to system store without sudo — trust this file on clients: ${b}`);let c=`rm -f "${s}" && cp "${b}" "${r}" && (update-ca-certificates 2>/dev/null || update-ca-trust 2>/dev/null || true)`;try{await g(c,a),k("\uD83D\uDD10 Cert: ✅ installed to Linux trust store")}catch(a){throw Error("Certificate install failed")}}async function A(a){if(!h())return;let b=`rm -f "${r}" "${s}" && (update-ca-certificates 2>/dev/null || update-ca-trust 2>/dev/null || true)`;try{await g(b,a),k("\uD83D\uDD10 Cert: ✅ uninstalled from Linux trust store")}catch(a){throw Error("Failed to uninstall certificate")}}a.exports={installCert:async function a(a,b){if(!d.existsSync(b))throw Error(`Certificate file not found: ${b}`);await u(b)?k("\uD83D\uDD10 Cert: already trusted ✅"):n?await w(b):o?await v(a,b):await z(a,b)},uninstallCert:async function a(a,b){await u(b)?n?await y():o?await x(a,b):await A(a):k("\uD83D\uDD10 Cert: not found in system store")},checkCertInstalled:u}},26033:(a,b,c)=>{c(33873),c(29021);let{MITM_DIR:d}=c(82193),{generateRootCA:e,loadRootCA:f,generateLeafCert:g}=c(8578);a.exports={generateCert:async function a(){return await e()},getCertForDomain:function(a){try{let b=f(),c=g(a,b);return{key:c.key,cert:c.cert}}catch(b){return console.error(`Failed to generate cert for ${a}:`,b.message),null}}}},96182:(a,b,c)=>{let{exec:d,spawn:e,execSync:f}=c(79646),g=c(33873),h=c(29021),i=c(21820),j=c(91645),k=c(55591),l=c(55511),{addDNSEntry:m,removeDNSEntry:n,removeAllDNSEntries:o,removeAllDNSEntriesSync:p,checkAllDNSStatus:q,TOOL_HOSTS:r,isSudoAvailable:s,isSudoPasswordRequired:t}=c(66936),{isAdmin:u}=c(64809),v="win32"===process.platform,w="darwin"===process.platform,{generateCert:x}=c(26033),{installCert:y,uninstallCert:z}=c(9631),{isCertExpired:A}=c(8578),{DATA_DIR:B,MITM_DIR:C}=c(82193),{log:D,err:E}=c(87777),F="http://localhost:20128";function G(a){return null==a||""===a?"''":`'${String(a).replace(/'/g,"'\\''")}'`}async function H(){if(!Y)return F;try{let a=await Y(),b=a&&null!=a.mitmRouterBaseUrl?String(a.mitmRouterBaseUrl).trim():"";if(!b)return F;let c=new URL(b);if("http:"!==c.protocol&&"https:"!==c.protocol)return F;return b.replace(/\/+$/,"")}catch{return F}}let I=g.join(C,".mitm.pid"),J=[5e3,1e4,2e4,3e4,6e4],K=0,L=0,M=!1;function N(){if(process.env.MITM_SERVER_PATH)return process.env.MITM_SERVER_PATH;let a=g.join(__dirname,"server.js");if(h.existsSync(a))return a;let b=g.join(process.cwd(),"src","mitm","server.js");if(h.existsSync(b))return b;let c=g.join(process.cwd(),"..","src","mitm","server.js");return h.existsSync(c)?c:b}let O=N(),P="aes-256-gcm",Q="openrouterx-mitm-pwd",R=null,S=null;function T(){return globalThis.__mitmSudoPassword||null}function U(a){globalThis.__mitmSudoPassword=a}function V(a){try{return process.kill(a,0),!0}catch(a){return"EACCES"===a.code}}function W(a,b=!1,e=null){if(v)d(`taskkill ${b?"/F ":""}/PID ${a}`,{windowsHide:!0},()=>{});else{let f=b?"SIGKILL":"SIGTERM",g=`pkill -${f} -P ${a} 2>/dev/null; kill -${f} ${a} 2>/dev/null`;if(e||s()){let{execWithPassword:a}=c(66936);a(g,e||"").catch(()=>d(g,{windowsHide:!0},()=>{}))}else d(g,{windowsHide:!0},()=>{})}}function X(){try{let{machineIdSync:a}=c(19713),b=a();return l.createHash("sha256").update(b+Q).digest()}catch{return l.createHash("sha256").update(Q).digest()}}let Y=null,Z=null;async function $(a,b){if(Z)try{let c,d,e,f,g,h={mitmEnabled:a};b&&(c=X(),d=l.randomBytes(12),e=l.createCipheriv(P,c,d),f=Buffer.concat([e.update(b,"utf8"),e.final()]),g=e.getAuthTag(),h.mitmSudoEncrypted=`${d.toString("hex")}:${g.toString("hex")}:${f.toString("hex")}`),await Z(h)}catch(a){E(`Failed to save settings: ${a.message}`)}}async function _(){if(Z)try{await Z({mitmSudoEncrypted:null})}catch(a){E(`Failed to clear encrypted password: ${a.message}`)}}async function aa(){if(!Y)return null;try{let a=await Y();if(!a.mitmSudoEncrypted)return null;return function(a){try{let[b,c,d]=a.split(":");if(!b||!c||!d)return null;let e=X(),f=l.createDecipheriv(P,e,Buffer.from(b,"hex"));return f.setAuthTag(Buffer.from(c,"hex")),f.update(Buffer.from(d,"hex"))+f.final("utf8")}catch{return null}}(a.mitmSudoEncrypted)}catch{return null}}async function ab(a,b){if(Z&&Y)try{let c={...(await Y()).dnsToolEnabled||{},[a]:b};await Z({dnsToolEnabled:c})}catch(a){E(`Failed to save DNS state: ${a.message}`)}}async function ac(){if(!Y)return{};try{return(await Y()).dnsToolEnabled||{}}catch{return{}}}async function ad(a){let b=await ac(),c=a||T()||await aa();for(let[a,d]of Object.entries(b))if(d&&r[a])try{await m(a,c)}catch(b){E(`DNS ${a}: restore failed — ${b.message}`)}}async function ae(){return v?u():!(!u()&&t())||!!(T()||await aa())}function af(a){return new Promise(a=>{v?d('powershell -NonInteractive -WindowStyle Hidden -Command "$c = Get-NetTCPConnection -LocalPort 443 -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1; if ($c) { $c.OwningProcess } else { 0 }"',{windowsHide:!0},(b,c)=>{if(b)return a(null);let e=parseInt(c.trim(),10);if(!e||e<=4)return a(null);d(`tasklist /FI "PID eq ${e}" /FO CSV /NH`,{windowsHide:!0},(b,c)=>{let d=c?.match(/"([^"]+)"/);a({pid:e,name:d?d[1]:"unknown"})})}):d("lsof -nP -iTCP:443 -sTCP:LISTEN -t",{windowsHide:!0},(b,c)=>{if(b||!c?.trim())return a(null);let e=parseInt(c.trim().split("\n")[0],10);if(!e||isNaN(e))return a(null);d(`ps -p ${e} -o comm=`,{windowsHide:!0},(b,c)=>{a({pid:e,name:c?.trim()||"unknown"})})})})}async function ag(a){if(R&&!R.killed){try{R.kill("SIGKILL")}catch{}R=null,S=null}try{if(h.existsSync(I)){let b=parseInt(h.readFileSync(I,"utf-8").trim(),10);b&&V(b)&&(W(b,!0,a),await new Promise(a=>setTimeout(a,500))),h.unlinkSync(I)}}catch{}if(!v&&O)try{let b=O.replace(/'/g,"'\\''");if(a||s()){let{execWithPassword:d}=c(66936);await d(`pkill -SIGKILL -f "${b}" 2>/dev/null || true`,a||"").catch(()=>{})}else d(`pkill -SIGKILL -f "${b}" 2>/dev/null || true`,{windowsHide:!0},()=>{});await new Promise(a=>setTimeout(a,500))}catch{}}async function ah(){let a=null!==R&&!R.killed,b=S;if(!a)try{if(h.existsSync(I)){let c=parseInt(h.readFileSync(I,"utf-8").trim(),10);c&&V(c)?(a=!0,b=c):h.unlinkSync(I)}}catch{}let d=q(),e=g.join(C,"rootCA.crt"),f=h.existsSync(e),{checkCertInstalled:i}=c(9631),j=!!f&&await i(e);return{running:a,pid:b,certExists:f,certTrusted:j,dnsStatus:d}}async function ai(a){if(M)return;if(Date.now()-L>=6e4&&(K=0),K>=5)return void E("Max restart attempts reached. Giving up.");let b=J[Math.min(K,J.length-1)];K++,M=!0,D(`Restarting in ${b/1e3}s... (${K}/5)`),await new Promise(a=>setTimeout(a,b));try{let b=Y?await Y():null;if(b&&!b.mitmEnabled){D("MITM disabled, skipping restart"),M=!1;return}let c=T()||await aa();if(!c&&!v){E("No cached password, cannot auto-restart"),M=!1;return}await ak(a,c),D("\uD83D\uDD04 Restarted successfully"),K=0,M=!1}catch(b){E(`Restart attempt ${K}/5 failed: ${b.message}`),M=!1,ai(a)}}async function aj(a,b){if(a&&a.pid){if(v)try{f(`powershell -NonInteractive -WindowStyle Hidden -Command "Stop-Process -Id ${a.pid} -Force -ErrorAction SilentlyContinue"`,{windowsHide:!0})}catch{}else try{let{execWithPassword:d}=c(66936);b||s()?await d(`kill -9 ${a.pid}`,b||""):f(`kill -9 ${a.pid}`,{windowsHide:!0})}catch{}await new Promise(a=>setTimeout(a,800))}}async function ak(a,b,d=!1){if(!R||R.killed)try{if(h.existsSync(I)){let a=parseInt(h.readFileSync(I,"utf-8").trim(),10);if(a&&V(a))return S=a,D(`♻️ Reusing existing process (PID: ${a})`),await $(!0,b),b&&U(b),{running:!0,pid:a};h.unlinkSync(I)}}catch{}if(R&&!R.killed)throw Error("MITM server is already running");if(await ag(b),!v){let a=await new Promise(a=>{let b=j.createServer();b.once("error",b=>{"EADDRINUSE"===b.code?a("in-use"):a("no-permission")}),b.once("listening",()=>{b.close(()=>a("free"))}),b.listen(443,"127.0.0.1")});if("in-use"===a||"no-permission"===a){let a=await af(b);if(a){let c=a.name.includes("/")?a.name.split("/").filter(Boolean).pop():a.name;if(d)D(`Killing process on port 443 (PID ${a.pid}, name=${c})...`),await aj(a,b);else{let b=Error(`Port 443 is already in use by "${c}" (PID ${a.pid}).`);throw b.code="PORT_443_BUSY",b.portOwner={pid:a.pid,name:c},b}}}}let l=g.join(C,"rootCA.crt"),m=g.join(C,"rootCA.key"),n=h.existsSync(l)&&h.existsSync(m);if(!n||A(l)){if(n){D("\uD83D\uDD10 Cert expired — uninstalling old cert...");let a=b||T()||await aa();try{await z(a,l)}catch{}}D("\uD83D\uDD10 Generating Root CA..."),await x()}let{checkCertInstalled:o}=c(9631),p=await o(l),r=!v&&!w&&!s();if(p)D("\uD83D\uDD10 Cert: already trusted ✅");else{D("\uD83D\uDD10 Cert: not trusted → installing...");let a=b||T()||await aa();if(r)D(`🔐 Cert: skipping system trust (no sudo). Install ${l} as a trusted CA on machines that use this proxy.`);else{if(!a&&t())throw Error("Sudo password required to install Root CA certificate");try{await y(a,l),D("\uD83D\uDD10 Cert: ✅ trusted")}catch(a){throw Error(`Failed to trust certificate: ${a.message}`)}}}let u=O;if((!u||!h.existsSync(u))&&(D(`[MITM] server.js missing at ${u} → recopying`),!(u=ensureRuntimeServer(N()))||!h.existsSync(u)))throw Error(`MITM server.js not found at ${u}. Reinstall openrouterX.`);let B=await H(),F=C||i.homedir();h.mkdirSync(F,{recursive:!0});let J="1"===process.env.OPENROUTERX_AG_MOCK_BOOTSTRAP?"1":"0";if(D(`🚀 Starting server... (router: ${B})`),v){let c=await af(b);if(c)if(d)D(`Killing process on port 443 (PID ${c.pid}, name=${c.name})...`),await aj(c,b);else{let a=Error(`Port 443 is already in use by "${c.name}" (PID ${c.pid}).`);throw a.code="PORT_443_BUSY",a.portOwner={pid:c.pid,name:c.name},a}R=e(process.execPath,[u],{cwd:F,detached:!1,windowsHide:!0,stdio:["ignore","pipe","pipe"],env:{...process.env,ROUTER_API_KEY:a,NODE_ENV:"production",MITM_ROUTER_BASE:B,OPENROUTERX_AG_MOCK_BOOTSTRAP:J}}),Z&&await Z({mitmCertInstalled:!0}).catch(()=>{})}else s()?((R=e("sudo",["-S","-E","sh","-c",[`HOME=${G(i.homedir())}`,`ROUTER_API_KEY=${G(a)}`,`MITM_ROUTER_BASE=${G(B)}`,`OPENROUTERX_AG_MOCK_BOOTSTRAP=${G(J)}`,"NODE_ENV=production",G(process.execPath),G(u)].join(" ")],{cwd:F,detached:!1,windowsHide:!0,stdio:["pipe","pipe","pipe"]})).stdin.write(`${b}
|
|
7
|
-
|
|
6
|
+
`;try{await i(b),k("\uD83D\uDD10 Cert: ✅ installed to Windows Root store")}catch(a){throw Error(`Failed to install certificate: ${a.message}`)}}async function x(a,b){let c=t(b).replace(/:/g,""),d=`security delete-certificate -Z "${c}" /Library/Keychains/System.keychain`;try{await g(d,a),k("\uD83D\uDD10 Cert: ✅ uninstalled from system keychain")}catch(a){throw Error("Failed to uninstall certificate")}}async function y(){let a=`certutil -delstore Root ${j(m)}`;try{await i(a),k("\uD83D\uDD10 Cert: ✅ uninstalled from Windows Root store")}catch(a){throw Error(`Failed to uninstall certificate: ${a.message}`)}}async function z(a,b="add"){let c="9Router MITM Root CA",d=`
|
|
7
|
+
if ! command -v certutil &> /dev/null; then
|
|
8
|
+
exit 0
|
|
9
|
+
fi
|
|
10
|
+
|
|
11
|
+
DIRS="$HOME/.pki/nssdb $HOME/snap/chromium/current/.pki/nssdb"
|
|
12
|
+
|
|
13
|
+
if [ -d "$HOME/.mozilla/firefox" ]; then
|
|
14
|
+
for profile in "$HOME"/.mozilla/firefox/*/; do
|
|
15
|
+
if [ -f "\${profile}cert9.db" ] || [ -f "\${profile}cert8.db" ]; then
|
|
16
|
+
DIRS="$DIRS $profile"
|
|
17
|
+
fi
|
|
18
|
+
done
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ -d "$HOME/snap/firefox/common/.mozilla/firefox" ]; then
|
|
22
|
+
for profile in "$HOME"/snap/firefox/common/.mozilla/firefox/*/; do
|
|
23
|
+
if [ -f "\${profile}cert9.db" ] || [ -f "\${profile}cert8.db" ]; then
|
|
24
|
+
DIRS="$DIRS $profile"
|
|
25
|
+
fi
|
|
26
|
+
done
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
for db in $DIRS; do
|
|
30
|
+
if [ -d "$db" ]; then
|
|
31
|
+
if [ "${b}" = "add" ]; then
|
|
32
|
+
certutil -d sql:"$db" -A -t "C,," -n "${c}" -i "${a}" 2>/dev/null || \\
|
|
33
|
+
certutil -d "$db" -A -t "C,," -n "${c}" -i "${a}" 2>/dev/null || true
|
|
34
|
+
else
|
|
35
|
+
certutil -d sql:"$db" -D -n "${c}" 2>/dev/null || \\
|
|
36
|
+
certutil -d "$db" -D -n "${c}" 2>/dev/null || true
|
|
37
|
+
fi
|
|
38
|
+
fi
|
|
39
|
+
done
|
|
40
|
+
`;return new Promise(a=>{f(d,{shell:"/bin/bash"},()=>a())})}async function A(a,b){if(!h()){k(`🔐 Cert: cannot install to system store without sudo — trust this file on clients: ${b}`),await z(b,"add");return}let c=`rm -f "${s}" && cp "${b}" "${r}" && (update-ca-certificates 2>/dev/null || update-ca-trust 2>/dev/null || true)`;try{await g(c,a),await z(b,"add"),k(`🔐 Cert: ✅ installed to Linux trust store (${config.dir}) and user browser databases`)}catch(a){throw Error(`Certificate install failed: ${a.message}`)}}async function B(a){if(await z(null,"delete"),!h())return;let b=`rm -f "${r}" "${s}" && (update-ca-certificates 2>/dev/null || update-ca-trust 2>/dev/null || true)`;try{await g(b,a),k("\uD83D\uDD10 Cert: ✅ uninstalled from Linux trust store and user browser databases")}catch(a){throw Error("Failed to uninstall certificate")}}a.exports={installCert:async function a(a,b){if(!d.existsSync(b))throw Error(`Certificate file not found: ${b}`);await u(b)?k("\uD83D\uDD10 Cert: already trusted ✅"):n?await w(b):o?await v(a,b):await A(a,b)},uninstallCert:async function a(a,b){await u(b)?n?await y():o?await x(a,b):await B(a):k("\uD83D\uDD10 Cert: not found in system store")},checkCertInstalled:u}},26033:(a,b,c)=>{c(33873),c(29021);let{MITM_DIR:d}=c(82193),{generateRootCA:e,loadRootCA:f,generateLeafCert:g}=c(8578);a.exports={generateCert:async function a(){return await e()},getCertForDomain:function(a){try{let b=f(),c=g(a,b);return{key:c.key,cert:c.cert}}catch(b){return console.error(`Failed to generate cert for ${a}:`,b.message),null}}}},96182:(a,b,c)=>{let{exec:d,spawn:e,execSync:f}=c(79646),g=c(33873),h=c(29021),i=c(21820),j=c(91645),k=c(55591),l=c(55511),{addDNSEntry:m,removeDNSEntry:n,removeAllDNSEntries:o,removeAllDNSEntriesSync:p,checkAllDNSStatus:q,TOOL_HOSTS:r,isSudoAvailable:s,isSudoPasswordRequired:t}=c(66936),{isAdmin:u}=c(64809),v="win32"===process.platform,w="darwin"===process.platform,{generateCert:x}=c(26033),{installCert:y,uninstallCert:z}=c(9631),{isCertExpired:A}=c(8578),{DATA_DIR:B,MITM_DIR:C}=c(82193),{log:D,err:E}=c(87777),F="http://localhost:20128";function G(a){return null==a||""===a?"''":`'${String(a).replace(/'/g,"'\\''")}'`}async function H(){if(!Y)return F;try{let a=await Y(),b=a&&null!=a.mitmRouterBaseUrl?String(a.mitmRouterBaseUrl).trim():"";if(!b)return F;let c=new URL(b);if("http:"!==c.protocol&&"https:"!==c.protocol)return F;return b.replace(/\/+$/,"")}catch{return F}}let I=g.join(C,".mitm.pid"),J=[5e3,1e4,2e4,3e4,6e4],K=0,L=0,M=!1;function N(){if(process.env.MITM_SERVER_PATH)return process.env.MITM_SERVER_PATH;let a=g.join(__dirname,"server.js");if(h.existsSync(a))return a;let b=g.join(process.cwd(),"src","mitm","server.js");if(h.existsSync(b))return b;let c=g.join(process.cwd(),"..","src","mitm","server.js");return h.existsSync(c)?c:b}let O=N(),P="aes-256-gcm",Q="openrouterx-mitm-pwd",R=null,S=null;function T(){return globalThis.__mitmSudoPassword||null}function U(a){globalThis.__mitmSudoPassword=a}function V(a){try{return process.kill(a,0),!0}catch(a){return"EACCES"===a.code}}function W(a,b=!1,e=null){if(v)d(`taskkill ${b?"/F ":""}/PID ${a}`,{windowsHide:!0},()=>{});else{let f=b?"SIGKILL":"SIGTERM",g=`pkill -${f} -P ${a} 2>/dev/null; kill -${f} ${a} 2>/dev/null`;if(e||s()){let{execWithPassword:a}=c(66936);a(g,e||"").catch(()=>d(g,{windowsHide:!0},()=>{}))}else d(g,{windowsHide:!0},()=>{})}}function X(){try{let{machineIdSync:a}=c(19713),b=a();return l.createHash("sha256").update(b+Q).digest()}catch{return l.createHash("sha256").update(Q).digest()}}let Y=null,Z=null;async function $(a,b){if(Z)try{let c,d,e,f,g,h={mitmEnabled:a};b&&(c=X(),d=l.randomBytes(12),e=l.createCipheriv(P,c,d),f=Buffer.concat([e.update(b,"utf8"),e.final()]),g=e.getAuthTag(),h.mitmSudoEncrypted=`${d.toString("hex")}:${g.toString("hex")}:${f.toString("hex")}`),await Z(h)}catch(a){E(`Failed to save settings: ${a.message}`)}}async function _(){if(Z)try{await Z({mitmSudoEncrypted:null})}catch(a){E(`Failed to clear encrypted password: ${a.message}`)}}async function aa(){if(!Y)return null;try{let a=await Y();if(!a.mitmSudoEncrypted)return null;return function(a){try{let[b,c,d]=a.split(":");if(!b||!c||!d)return null;let e=X(),f=l.createDecipheriv(P,e,Buffer.from(b,"hex"));return f.setAuthTag(Buffer.from(c,"hex")),f.update(Buffer.from(d,"hex"))+f.final("utf8")}catch{return null}}(a.mitmSudoEncrypted)}catch{return null}}async function ab(a,b){if(Z&&Y)try{let c={...(await Y()).dnsToolEnabled||{},[a]:b};await Z({dnsToolEnabled:c})}catch(a){E(`Failed to save DNS state: ${a.message}`)}}async function ac(){if(!Y)return{};try{return(await Y()).dnsToolEnabled||{}}catch{return{}}}async function ad(a){let b=await ac(),c=a||T()||await aa();for(let[a,d]of Object.entries(b))if(d&&r[a])try{await m(a,c)}catch(b){E(`DNS ${a}: restore failed — ${b.message}`)}}async function ae(){return v?u():!(!u()&&t())||!!(T()||await aa())}function af(a){return new Promise(a=>{v?d('powershell -NonInteractive -WindowStyle Hidden -Command "$c = Get-NetTCPConnection -LocalPort 443 -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1; if ($c) { $c.OwningProcess } else { 0 }"',{windowsHide:!0},(b,c)=>{if(b)return a(null);let e=parseInt(c.trim(),10);if(!e||e<=4)return a(null);d(`tasklist /FI "PID eq ${e}" /FO CSV /NH`,{windowsHide:!0},(b,c)=>{let d=c?.match(/"([^"]+)"/);a({pid:e,name:d?d[1]:"unknown"})})}):d("lsof -nP -iTCP:443 -sTCP:LISTEN -t",{windowsHide:!0},(b,c)=>{if(b||!c?.trim())return a(null);let e=parseInt(c.trim().split("\n")[0],10);if(!e||isNaN(e))return a(null);d(`ps -p ${e} -o comm=`,{windowsHide:!0},(b,c)=>{a({pid:e,name:c?.trim()||"unknown"})})})})}async function ag(a){if(R&&!R.killed){try{R.kill("SIGKILL")}catch{}R=null,S=null}try{if(h.existsSync(I)){let b=parseInt(h.readFileSync(I,"utf-8").trim(),10);b&&V(b)&&(W(b,!0,a),await new Promise(a=>setTimeout(a,500))),h.unlinkSync(I)}}catch{}if(!v&&O)try{let b=O.replace(/'/g,"'\\''");if(a||s()){let{execWithPassword:d}=c(66936);await d(`pkill -SIGKILL -f "${b}" 2>/dev/null || true`,a||"").catch(()=>{})}else d(`pkill -SIGKILL -f "${b}" 2>/dev/null || true`,{windowsHide:!0},()=>{});await new Promise(a=>setTimeout(a,500))}catch{}}async function ah(){let a=null!==R&&!R.killed,b=S;if(!a)try{if(h.existsSync(I)){let c=parseInt(h.readFileSync(I,"utf-8").trim(),10);c&&V(c)?(a=!0,b=c):h.unlinkSync(I)}}catch{}let d=q(),e=g.join(C,"rootCA.crt"),f=h.existsSync(e),{checkCertInstalled:i}=c(9631),j=!!f&&await i(e);return{running:a,pid:b,certExists:f,certTrusted:j,dnsStatus:d}}async function ai(a){if(M)return;if(Date.now()-L>=6e4&&(K=0),K>=5)return void E("Max restart attempts reached. Giving up.");let b=J[Math.min(K,J.length-1)];K++,M=!0,D(`Restarting in ${b/1e3}s... (${K}/5)`),await new Promise(a=>setTimeout(a,b));try{let b=Y?await Y():null;if(b&&!b.mitmEnabled){D("MITM disabled, skipping restart"),M=!1;return}let c=T()||await aa();if(!c&&!v){E("No cached password, cannot auto-restart"),M=!1;return}await ak(a,c),D("\uD83D\uDD04 Restarted successfully"),K=0,M=!1}catch(b){E(`Restart attempt ${K}/5 failed: ${b.message}`),M=!1,ai(a)}}async function aj(a,b){if(a&&a.pid){if(v)try{f(`powershell -NonInteractive -WindowStyle Hidden -Command "Stop-Process -Id ${a.pid} -Force -ErrorAction SilentlyContinue"`,{windowsHide:!0})}catch{}else try{let{execWithPassword:d}=c(66936);b||s()?await d(`kill -9 ${a.pid}`,b||""):f(`kill -9 ${a.pid}`,{windowsHide:!0})}catch{}await new Promise(a=>setTimeout(a,800))}}async function ak(a,b,d=!1){if(!R||R.killed)try{if(h.existsSync(I)){let a=parseInt(h.readFileSync(I,"utf-8").trim(),10);if(a&&V(a))return S=a,D(`♻️ Reusing existing process (PID: ${a})`),await $(!0,b),b&&U(b),{running:!0,pid:a};h.unlinkSync(I)}}catch{}if(R&&!R.killed)throw Error("MITM server is already running");if(await ag(b),!v){let a=await new Promise(a=>{let b=j.createServer();b.once("error",b=>{"EADDRINUSE"===b.code?a("in-use"):a("no-permission")}),b.once("listening",()=>{b.close(()=>a("free"))}),b.listen(443,"127.0.0.1")});if("in-use"===a||"no-permission"===a){let a=await af(b);if(a){let c=a.name.includes("/")?a.name.split("/").filter(Boolean).pop():a.name;if(d)D(`Killing process on port 443 (PID ${a.pid}, name=${c})...`),await aj(a,b);else{let b=Error(`Port 443 is already in use by "${c}" (PID ${a.pid}).`);throw b.code="PORT_443_BUSY",b.portOwner={pid:a.pid,name:c},b}}}}let l=g.join(C,"rootCA.crt"),m=g.join(C,"rootCA.key"),n=h.existsSync(l)&&h.existsSync(m);if(!n||A(l)){if(n){D("\uD83D\uDD10 Cert expired — uninstalling old cert...");let a=b||T()||await aa();try{await z(a,l)}catch{}}D("\uD83D\uDD10 Generating Root CA..."),await x()}let{checkCertInstalled:o}=c(9631),p=await o(l),r=!v&&!w&&!s();if(p)D("\uD83D\uDD10 Cert: already trusted ✅");else{D("\uD83D\uDD10 Cert: not trusted → installing...");let a=b||T()||await aa();if(r)D(`🔐 Cert: skipping system trust (no sudo). Install ${l} as a trusted CA on machines that use this proxy.`);else{if(!a&&t())throw Error("Sudo password required to install Root CA certificate");try{await y(a,l),D("\uD83D\uDD10 Cert: ✅ trusted")}catch(a){throw Error(`Failed to trust certificate: ${a.message}`)}}}let u=O;if((!u||!h.existsSync(u))&&(D(`[MITM] server.js missing at ${u} → recopying`),!(u=ensureRuntimeServer(N()))||!h.existsSync(u)))throw Error(`MITM server.js not found at ${u}. Reinstall openrouterX.`);let B=await H(),F=C||i.homedir();h.mkdirSync(F,{recursive:!0});let J="1"===process.env.OPENROUTERX_AG_MOCK_BOOTSTRAP?"1":"0";if(D(`🚀 Starting server... (router: ${B})`),v){let c=await af(b);if(c)if(d)D(`Killing process on port 443 (PID ${c.pid}, name=${c.name})...`),await aj(c,b);else{let a=Error(`Port 443 is already in use by "${c.name}" (PID ${c.pid}).`);throw a.code="PORT_443_BUSY",a.portOwner={pid:c.pid,name:c.name},a}R=e(process.execPath,[u],{cwd:F,detached:!1,windowsHide:!0,cwd:i.tmpdir(),stdio:["ignore","pipe","pipe"],env:{...process.env,ROUTER_API_KEY:a,NODE_ENV:"production",MITM_ROUTER_BASE:B,OPENROUTERX_AG_MOCK_BOOTSTRAP:J}}),Z&&await Z({mitmCertInstalled:!0}).catch(()=>{})}else s()?((R=e("sudo",["-S","-E","sh","-c",[`HOME=${G(i.homedir())}`,`ROUTER_API_KEY=${G(a)}`,`MITM_ROUTER_BASE=${G(B)}`,`OPENROUTERX_AG_MOCK_BOOTSTRAP=${G(J)}`,"NODE_ENV=production",G(process.execPath),G(u)].join(" ")],{cwd:F,detached:!1,windowsHide:!0,stdio:["pipe","pipe","pipe"]})).stdin.write(`${b}
|
|
41
|
+
`),R.stdin.end()):R=e(process.execPath,[u],{cwd:F,detached:!1,windowsHide:!0,cwd:i.tmpdir(),stdio:["ignore","pipe","pipe"],env:{...process.env,ROUTER_API_KEY:a,NODE_ENV:"production",MITM_ROUTER_BASE:B,OPENROUTERX_AG_MOCK_BOOTSTRAP:J}});R&&(S=R.pid,h.writeFileSync(I,String(S)),L=Date.now());let K=null;R&&(R.stdout.on("data",a=>{process.stdout.write(a)}),R.stderr.on("data",a=>{let b=a.toString().trim();b&&(v||!b.includes("Password:")&&!b.includes("password for"))&&(E(b),K=b),!v&&(b.includes("incorrect password")||b.includes("no password was provided"))&&(U(null),_(),M=!0)}),R.on("exit",b=>{D(`Server exited (code: ${b})`),R=null,S=null;try{h.unlinkSync(I)}catch{}0===b||M||ai(a)}));let P=await function(a=443){return new Promise(b=>{let c=Date.now()+8e3,d=()=>{let e=k.request({hostname:"127.0.0.1",port:a,path:"/_mitm_health",method:"GET",rejectUnauthorized:!1},a=>{let c="";a.on("data",a=>{c+=a}),a.on("end",()=>{try{let a=JSON.parse(c);b(!0===a.ok?{ok:!0,pid:a.pid||null}:null)}catch{b(null)}})});e.on("error",()=>{Date.now()<c?setTimeout(d,500):b(null)}),e.end()};d()})}(443);if(!P){if(R&&!R.killed){try{R.kill()}catch{}R=null}let a=function(){try{if(v){let a=f('powershell -NonInteractive -WindowStyle Hidden -Command "$c = Get-NetTCPConnection -LocalPort 443 -State Listen -ErrorAction SilentlyContinue | Select-Object -First 1; if ($c) { $c.OwningProcess } else { 0 }"',{encoding:"utf8",windowsHide:!0}).trim(),b=parseInt(a,10);if(b&&b>4){let a=f(`tasklist /FI "PID eq ${b}" /FO CSV /NH`,{encoding:"utf8",windowsHide:!0}).match(/"([^"]+)"/);if(a)return a[1].replace(".exe","")}}else{let a=f("lsof -i :443",{encoding:"utf8",windowsHide:!0}).trim().split("\n");if(a.length>1)return a[1].split(/\s+/)[0]}}catch{}return null}(),b=a?` Port 443 already in use by ${a}.`:"",c=K||`Check sudo password or port 443 access.${b}`;throw Error(`MITM server failed to start. ${c}`)}for(let[a,b]of(Z&&await Z({mitmCertInstalled:!0}).catch(()=>{}),D(`✅ Server healthy (PID: ${S||P.pid})`),Object.entries(q())))D(`🌐 DNS ${a}: ${b?"✅ active":"❌ inactive"}`);return await $(!0,b),b&&U(b),{running:!0,pid:S}}async function al(a){M=!0,K=0,D("⏹ Stopping server...");let b=R,d=b&&!b.killed?b.pid:(()=>{try{return parseInt(h.readFileSync(I,"utf-8").trim(),10)}catch{return null}})();if(d&&V(d)&&(D(`Killing server (PID: ${d})...`),W(d,!1,a),await new Promise(a=>setTimeout(a,1e3)),V(d)&&W(d,!0,a)),R=null,S=null,v){let a=g.join(process.env.SystemRoot||"C:\\Windows","System32","drivers","etc","hosts"),b=Object.values(r).flat();try{let{isAdmin:d,runElevatedPowerShell:e,quotePs:f}=c(64809);if(d()){let d=h.readFileSync(a,"utf8"),e=d.split(/\r?\n/).filter(a=>!b.some(b=>a.includes(b))).join("\r\n").replace(/[\r\n\s]+$/g,"")+"\r\n";e!==d&&h.writeFileSync(a,e,"utf8");try{c(79646).execSync("ipconfig /flushdns",{windowsHide:!0,stdio:"ignore"})}catch{}D("\uD83C\uDF10 DNS: ✅ all tool hosts removed")}else{let c=b.map(f).join(","),d=`
|
|
8
42
|
$hosts = @(${c})
|
|
9
43
|
$lines = Get-Content -LiteralPath ${f(a)}
|
|
10
44
|
$filtered = $lines | Where-Object {
|