vansrouter 0.9.80 → 0.9.90
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-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +9 -8
- package/app/.next-cli-build/build-manifest.json +3 -3
- package/app/.next-cli-build/prerender-manifest.json +3 -3
- package/app/.next-cli-build/react-loadable-manifest.json +7 -7
- package/app/.next-cli-build/routes-manifest.json +6 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +7 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +8 -8
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +5 -5
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +4 -4
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +2 -2
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -0
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +23 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/gcp-projects/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/gcp-projects/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/circuit-breakers/[name]/reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/circuit-breakers/[name]/reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/circuit-breakers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/circuit-breakers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +23 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +32 -3
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +32 -3
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +32 -3
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +23 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +2 -2
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page.js +2 -2
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js +2 -2
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/masuk/page.js +2 -2
- package/app/.next-cli-build/server/app/masuk/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/masuk/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +9 -8
- package/app/.next-cli-build/server/chunks/1632.js +1 -1
- package/app/.next-cli-build/server/chunks/1688.js +2 -2
- package/app/.next-cli-build/server/chunks/1725.js +1 -0
- package/app/.next-cli-build/server/chunks/2136.js +1 -0
- package/app/.next-cli-build/server/chunks/2262.js +2 -2
- package/app/.next-cli-build/server/chunks/2445.js +1 -1
- package/app/.next-cli-build/server/chunks/2557.js +8 -7
- package/app/.next-cli-build/server/chunks/2764.js +1 -0
- package/app/.next-cli-build/server/chunks/3040.js +2 -2
- package/app/.next-cli-build/server/chunks/3128.js +1 -0
- package/app/.next-cli-build/server/chunks/32.js +2 -2
- package/app/.next-cli-build/server/chunks/3405.js +2 -2
- package/app/.next-cli-build/server/chunks/3409.js +9 -0
- package/app/.next-cli-build/server/chunks/343.js +10 -0
- package/app/.next-cli-build/server/chunks/3539.js +1 -1
- package/app/.next-cli-build/server/chunks/3712.js +1 -0
- package/app/.next-cli-build/server/chunks/3736.js +1 -1
- package/app/.next-cli-build/server/chunks/3750.js +1 -0
- package/app/.next-cli-build/server/chunks/4004.js +2 -2
- package/app/.next-cli-build/server/chunks/4029.js +1 -1
- package/app/.next-cli-build/server/chunks/4105.js +1 -1
- package/app/.next-cli-build/server/chunks/4132.js +48 -0
- package/app/.next-cli-build/server/chunks/4502.js +76 -0
- package/app/.next-cli-build/server/chunks/4539.js +2 -2
- package/app/.next-cli-build/server/chunks/4574.js +51 -29
- package/app/.next-cli-build/server/chunks/4836.js +1 -1
- package/app/.next-cli-build/server/chunks/5006.js +2 -2
- package/app/.next-cli-build/server/chunks/5009.js +1 -1
- package/app/.next-cli-build/server/chunks/5050.js +1 -1
- package/app/.next-cli-build/server/chunks/5198.js +1 -1
- package/app/.next-cli-build/server/chunks/5267.js +4 -4
- package/app/.next-cli-build/server/chunks/5302.js +1 -1
- package/app/.next-cli-build/server/chunks/5577.js +1 -1
- package/app/.next-cli-build/server/chunks/5598.js +1 -0
- package/app/.next-cli-build/server/chunks/575.js +15 -4
- package/app/.next-cli-build/server/chunks/5867.js +1 -1
- package/app/.next-cli-build/server/chunks/6165.js +2 -2
- package/app/.next-cli-build/server/chunks/622.js +1 -1
- package/app/.next-cli-build/server/chunks/6385.js +1 -1
- package/app/.next-cli-build/server/chunks/6723.js +1 -1
- package/app/.next-cli-build/server/chunks/690.js +1 -0
- package/app/.next-cli-build/server/chunks/6931.js +1 -0
- package/app/.next-cli-build/server/chunks/7006.js +2 -2
- package/app/.next-cli-build/server/chunks/7074.js +5 -1
- package/app/.next-cli-build/server/chunks/7100.js +9 -0
- package/app/.next-cli-build/server/chunks/7128.js +1 -0
- package/app/.next-cli-build/server/chunks/7916.js +1 -1
- package/app/.next-cli-build/server/chunks/7938.js +2 -2
- package/app/.next-cli-build/server/chunks/7950.js +1 -1
- package/app/.next-cli-build/server/chunks/859.js +1 -0
- package/app/.next-cli-build/server/chunks/8691.js +2 -2
- package/app/.next-cli-build/server/chunks/8711.js +1 -1
- package/app/.next-cli-build/server/chunks/8765.js +1 -1
- package/app/.next-cli-build/server/chunks/8772.js +1 -0
- package/app/.next-cli-build/server/chunks/883.js +1 -1
- package/app/.next-cli-build/server/chunks/912.js +1 -0
- package/app/.next-cli-build/server/chunks/9607.js +1 -1
- package/app/.next-cli-build/server/chunks/9614.js +1 -1
- package/app/.next-cli-build/server/chunks/9764.js +1 -0
- package/app/.next-cli-build/server/chunks/9787.js +1 -0
- package/app/.next-cli-build/server/chunks/9984.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +6 -6
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/OggHpsjRxX4fFKgfQFVc7/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/{1049.adc9916d5a6b95f8.js → 1049.437f4475b49e9f25.js} +1 -1
- package/app/.next-cli-build/static/chunks/1731-1db5ca0c20180658.js +48 -0
- package/app/.next-cli-build/static/chunks/{2940-e9e17b73a8dbb236.js → 2940-8abea0c199c32f9d.js} +1 -1
- package/app/.next-cli-build/static/chunks/3245.5c9d23d5d68f9b6f.js +1 -0
- package/app/.next-cli-build/static/chunks/{3657.512c2a8e4d8a3378.js → 3657.a211d6af230af940.js} +1 -1
- package/app/.next-cli-build/static/chunks/4385-55c4d1feb0a4ccda.js +1 -0
- package/app/.next-cli-build/static/chunks/{5331.049b1512362de1f4.js → 5331.de5a8e10de095128.js} +1 -1
- package/app/.next-cli-build/static/chunks/5479-4214d11ddca13cd7.js +1 -0
- package/app/.next-cli-build/static/chunks/{8914-408166aef83cfa7e.js → 8914-878835816a5f05d4.js} +5 -1
- package/app/.next-cli-build/static/chunks/{9078.ea6aeb4af0c25e5d.js → 9078.76edc4f70b7b9a52.js} +1 -1
- package/app/.next-cli-build/static/chunks/9131-d2c897637a43297d.js +3 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-8d2cf057877e520c.js → page-8a85cd383cc0f328.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-1f06b0306077df0d.js → page-80cf14df15cbec42.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-d350378931392d23.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-a70991c7cd4856fa.js → page-f4ac78f60d3f7407.js} +12 -12
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-7caa1878034401a6.js → page-d02cb515b908f899.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-15c5617ad2c27966.js → page-ccee260e760480d4.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-fb0d7d79c84c197c.js → page-6c7b84221d88e305.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-098e5884b208fa2b.js → page-a3e9a9887af0b4d9.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-a72ed093152d7a72.js → page-2f1f544590b01580.js} +4 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-e48caf3778a78abb.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-6bed0a11900ab240.js +4 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-3a28e6875fa6f7b6.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-15c53720e24055bc.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-40ce04b1b6199f3a.js → page-0d6a79be17b5f31e.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/check/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/gcp-projects/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/[name]/reset/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-d6b9d47ec01c7581.js +1 -0
- package/app/.next-cli-build/static/chunks/{webpack-ace861933f9767e3.js → webpack-5c0041a8d9aa7b59.js} +1 -1
- package/app/.next-cli-build/static/css/67fbe3ebc6a034d4.css +1 -0
- package/app/package.json +3 -4
- package/app/public/providers/devin-cli.png +0 -0
- package/app/src/lib/db/migrate.js +5 -3
- package/package.json +1 -1
- package/app/.next-cli-build/server/chunks/1253.js +0 -1
- package/app/.next-cli-build/server/chunks/1558.js +0 -1
- package/app/.next-cli-build/server/chunks/3235.js +0 -10
- package/app/.next-cli-build/server/chunks/3559.js +0 -1
- package/app/.next-cli-build/server/chunks/3813.js +0 -1
- package/app/.next-cli-build/server/chunks/383.js +0 -1
- package/app/.next-cli-build/server/chunks/3969.js +0 -48
- package/app/.next-cli-build/server/chunks/4203.js +0 -1
- package/app/.next-cli-build/server/chunks/5414.js +0 -1
- package/app/.next-cli-build/server/chunks/5638.js +0 -9
- package/app/.next-cli-build/server/chunks/6584.js +0 -1
- package/app/.next-cli-build/server/chunks/7216.js +0 -1
- package/app/.next-cli-build/server/chunks/740.js +0 -1
- package/app/.next-cli-build/server/chunks/8057.js +0 -9
- package/app/.next-cli-build/server/chunks/856.js +0 -1
- package/app/.next-cli-build/server/chunks/8574.js +0 -1
- package/app/.next-cli-build/server/chunks/8802.js +0 -1
- package/app/.next-cli-build/server/chunks/893.js +0 -1
- package/app/.next-cli-build/server/chunks/9212.js +0 -76
- package/app/.next-cli-build/static/4GddowTSrkDON2oCRMJE8/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/3245.6904fc6f8a6e325d.js +0 -1
- package/app/.next-cli-build/static/chunks/4385-d1795df73ea090e1.js +0 -1
- package/app/.next-cli-build/static/chunks/5479-1eae6e4ed4867f26.js +0 -1
- package/app/.next-cli-build/static/chunks/7617-ed9e49c9d0a3ac0f.js +0 -48
- package/app/.next-cli-build/static/chunks/9131-de9f8f7aa6d37223.js +0 -3
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-5de110c9d826db7a.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-31a282df958d7d97.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-406992910a018cfd.js +0 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-75ef1f12824c606e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-53ee573ca11cee82.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/check/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/gcp-projects/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/[name]/reset/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-5590629587a07736.js +0 -1
- package/app/.next-cli-build/static/css/176108f7913ea72b.css +0 -1
- /package/app/.next-cli-build/static/{4GddowTSrkDON2oCRMJE8 → OggHpsjRxX4fFKgfQFVc7}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
exports.id=2262,exports.ids=[2262],exports.modules={13018:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,88844,23))},31441:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(35732).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/VansRouter/VansRouter/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/VansRouter/VansRouter/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js","default")},35411:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(35732).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/VansRouter/VansRouter/src/app/(dashboard)/error.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/VansRouter/VansRouter/src/app/(dashboard)/error.js","default")},39364:(a,b,c)=>{"use strict";c.d(b,{default:()=>m});var d=c(66238),e=c(71183),f=c(43736),g=c(87571);c(7272);var h=c(58686);function i({label:a,url:b,copyId:c,copied:e,onCopy:g,badge:h,actions:j}){return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${"CF"===h||"TS"===h?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:a}),(0,d.jsx)(f.Input,{value:b,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>g(b,c),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:e===c?"check":"content_copy"})}),j]})}function j({status:a,className:b=""}){return(0,d.jsx)("div",{className:`p-2 rounded text-sm ${b} ${"success"===a.type?"bg-green-500/10 text-green-600 dark:text-green-400":"warning"===a.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"info"===a.type?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-red-500/10 text-red-600 dark:text-red-400"}`,children:a.message.split(/(https?:\/\/[^\s]+)/g).map((a,b)=>/^https?:\/\//.test(a)?(0,d.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:a},b):a)})}function k({text:a}){return(0,d.jsxs)("span",{className:"relative group inline-flex items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted cursor-help",children:"help"}),(0,d.jsx)("span",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 z-50 w-64 rounded bg-gray-900 dark:bg-gray-800 text-white text-xs px-2.5 py-1.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",children:a})]})}function l({message:a,action:b}){return(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] shrink-0 mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"text-xs flex-1",children:a}),b&&(0,d.jsx)("a",{href:b.href,className:"text-xs font-medium underline shrink-0 hover:opacity-80",onClick:b.href.startsWith("#")?a=>{a.preventDefault(),document.getElementById(b.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:b.label})]})}function m({machineId:a}){let[b,c]=(0,e.useState)([]),[n,o]=(0,e.useState)(!0),[p,q]=(0,e.useState)(!1),[r,s]=(0,e.useState)(""),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(null),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(""),[B,C]=(0,e.useState)([]),[D,E]=(0,e.useState)([]),[F,G]=(0,e.useState)([]),[H,I]=(0,e.useState)(!0),[J,K]=(0,e.useState)(!0),[L,M]=(0,e.useState)(!0),[N,O]=(0,e.useState)(!1),[P,Q]=(0,e.useState)([]),[R,S]=(0,e.useState)({}),[T,U]=(0,e.useState)([]),[V,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(!1),[Z,$]=(0,e.useState)(!0),[_,aa]=(0,e.useState)(!0),[ab,ac]=(0,e.useState)(!1),[ad,ae]=(0,e.useState)(!0),[af,ag]=(0,e.useState)(!1),[ah,ai]=(0,e.useState)("http://localhost:8787"),[aj,ak]=(0,e.useState)(!1),[al,am]=(0,e.useState)({installed:!1,running:!1,python:null,loading:!0}),[an,ao]=(0,e.useState)(!1),[ap,aq]=(0,e.useState)(!1),[ar,as]=(0,e.useState)(""),[at,au]=(0,e.useState)(!1),[av,aw]=(0,e.useState)("full"),[ax,ay]=(0,e.useState)(!1),[az,aA]=(0,e.useState)("full"),[aB,aC]=(0,e.useState)("en"),[aD,aE]=(0,e.useState)(!0),[aF,aG]=(0,e.useState)(!1),[aH,aI]=(0,e.useState)(!1),[aJ,aK]=(0,e.useState)(""),[aL,aM]=(0,e.useState)(""),[aN,aO]=(0,e.useState)(!1),[aP,aQ]=(0,e.useState)(""),[aR,aS]=(0,e.useState)(null),[aT,aU]=(0,e.useState)(!1),[aV,aW]=(0,e.useState)(!1),[aX,aY]=(0,e.useState)(!1),[aZ,a$]=(0,e.useState)(!1),[a_,a0]=(0,e.useState)(""),[a1,a2]=(0,e.useState)(!1),[a3,a4]=(0,e.useState)(""),[a5,a6]=(0,e.useState)(null),[a7,a8]=(0,e.useState)(""),[a9,ba]=(0,e.useState)(""),[bb,bc]=(0,e.useState)(null),[bd,be]=(0,e.useState)(!1),[bf,bg]=(0,e.useState)([]),[bh,bi]=(0,e.useState)(""),[bj,bk]=(0,e.useState)(!1),[bl,bm]=(0,e.useState)(!1),[bn,bo]=(0,e.useState)(!1),bp=(0,e.useRef)(null);(0,e.useRef)(0),(0,e.useRef)(0),(0,e.useRef)(!1),(0,e.useRef)(!1),(0,e.useRef)(!1),(0,e.useRef)(!1);let[bq,br]=(0,e.useState)(!1),[bs,bt]=(0,e.useState)(!1),[bu,bv]=(0,e.useState)(new Set),[bw,bx]=(0,e.useState)(!1),by=h.hT.includes(aB)?h.ev:h.ev.filter(a=>!a.wenyan),{copied:bz,copy:bA}=(0,g.C)(),bB=!Z||!_,bC=Z?"Change the default dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,e.useCallback)((a,b,c,d,e,f)=>{b.current?(c.current=0,d(!0),e.current||(e.current=!0,f(!0))):(c.current+=1,c.current>=h.t6&&d(!1))},[]);let bD=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tunnelDashboardAccess:a})})).ok&&ac(a)}catch(a){console.log("Error updating tunnelDashboardAccess:",a)}},bE=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireApiKey:a})})).ok&&W(a)}catch(a){console.log("Error updating requireApiKey:",a)}},bF=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({allowRemoteNoApiKey:a})})).ok&&Y(a)}catch(a){console.log("Error updating allowRemoteNoApiKey:",a)}},bG=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({rtkEnabled:a})})).ok&&ae(a)}catch(a){console.log("Error updating rtkEnabled:",a)}},bH=async a=>{try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})}catch(a){console.log("Error updating setting:",a)}},bI=async()=>{let a=ah.trim()||"http://localhost:8787";ai(a),await bH({headroomUrl:a}),bJ()},bJ=(0,e.useCallback)(async()=>{am(a=>({...a,loading:!0}));try{let a=await fetch("/api/headroom/status",{headers:{"Cache-Control":"no-store"}}),b=await a.json();am({...b,loading:!1})}catch{am({installed:!1,running:!1,python:null,loading:!1})}},[]),bK=(0,e.useCallback)(async()=>{as(""),aq(!0);try{let a=await fetch("/api/headroom/start",{method:"POST"}),b=await a.json().catch(()=>({}));if(!a.ok)throw Error(b.error||"Failed to start proxy");await bJ()}catch(a){as(a.message)}finally{aq(!1)}},[bJ]),bL=(0,e.useCallback)(async()=>{aq(!0);try{await fetch("/api/headroom/stop",{method:"POST"}),await bJ()}finally{aq(!1)}},[bJ]),bM=async()=>{if(x){O(!0);try{let a=await fetch(`/api/keys/${x.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({allowedProviders:J?null:D,allowedCombos:L?null:F,allowedKinds:H?null:B})});if(a.ok){let b=await a.json();c(a=>a.map(a=>a.id===x.id?{...a,...b.key}:a)),y(null)}}catch(a){console.log("Error saving key ACL:",a)}finally{O(!1)}}},bN=async()=>{try{let[a,b,d,e]=await Promise.all([fetch("/api/keys",{cache:"no-store"}),fetch("/api/providers",{cache:"no-store"}),fetch("/api/combos",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"})]),f=await a.json();a.ok&&c(f.keys||[]);let g=[],h=[];if(b.ok){let a=await b.json();g=a.connections||[],a.aliasMap&&S(a.aliasMap)}if(e.ok&&(h=(await e.json()).nodes||[]),Q(((a,b)=>{let c={};for(let a of b||[])c[a.id]={name:a.name,prefix:a.prefix||null,type:a.type};let d={};for(let b of a||[]){let a=b.provider;d[a]||(d[a]={id:a,count:0,alias:b.alias||null}),d[a].count++}return Object.values(d).map(({id:a,count:b,alias:d})=>{let e=c[a],f=a,g=null;return e&&(f=e.name||a,g=e.prefix||null),{id:a,displayName:f,prefix:g,alias:d,count:b}}).sort((a,b)=>a.displayName.localeCompare(b.displayName))})(g,h)),d.ok){let a=await d.json();U(a.combos||[])}}catch(a){console.log("Error fetching data:",a)}finally{o(!1)}},bO=async(...a)=>{aO(!0),aQ("Waiting for tunnel ready...");let b=a.filter(Boolean).map(a=>`${a}/api/health`),c=Date.now();for(;Date.now()-c<h.Cp;){if(await new Promise(a=>setTimeout(a,h.Hx)),await Promise.any(b.map(async a=>{if((await fetch(a,{mode:"cors",cache:"no-store"})).ok)return!0;throw Error("not ready")})).catch(()=>!1))return aG(!0),aO(!1),aQ(""),!0;if((Date.now()-c)%1e4<h.Hx)try{let a=await fetch("/api/tunnel/status");if(a.ok){let b=await a.json();if(!b.tunnel?.enabled)return aS({type:"error",message:"Tunnel process stopped unexpectedly."}),aO(!1),aQ(""),!1}}catch{}}return aS({type:"error",message:"Tunnel created but not reachable. Please try again."}),aO(!1),aQ(""),!1},bP=async()=>{aU(!1),aO(!0),aS(null),aQ("Creating tunnel...");let a=!0;(async()=>{for(;a;){try{let b=await fetch("/api/tunnel/status");if(b.ok){let c=await b.json();c.download?.downloading?aQ(`Downloading cloudflared... ${c.download.progress}%`):a&&aQ("Creating tunnel...")}}catch{}await new Promise(a=>setTimeout(a,1e3))}})();try{let b=await fetch("/api/tunnel/enable",{method:"POST"});a=!1;let c=await b.json();if(!b.ok)return void aS({type:"error",message:c.error||"Failed to enable tunnel"});let d=c.tunnelUrl;if(!d)return void aS({type:"error",message:"No tunnel URL returned"});aK(d),aM(c.publicUrl||""),await bO(c.publicUrl,d)}catch(a){aS({type:"error",message:a.message})}finally{a=!1,aO(!1),aQ("")}},bQ=async()=>{aO(!0),aS(null);try{let a=await fetch("/api/tunnel/disable",{method:"POST"}),b=await a.json();a.ok?(aG(!1),aK(""),aW(!1),aS({type:"success",message:"Tunnel disabled"})):aS({type:"error",message:b.error||"Failed to disable tunnel"})}catch(a){aS({type:"error",message:a.message})}finally{aO(!1)}},bR=async()=>{bc(null);try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok){let b=await a.json();return bc(b.installed),b}}catch{}return bc(!1),{installed:!1}},bS=async()=>{be(!0),a6(null),bg([]);try{let a=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:bh})});bi("");let b=a.body.getReader(),c=new TextDecoder,d="";for(;;){let{done:a,value:e}=await b.read();if(a)break;let f=(d+=c.decode(e,{stream:!0})).split("\n\n");for(let a of(d=f.pop()||"",f)){let b=a.split("\n"),c="progress",d=null;for(let a of b)if(a.startsWith("event: ")&&(c=a.slice(7).trim()),a.startsWith("data: "))try{d=JSON.parse(a.slice(6))}catch{}if(d)if("progress"===c)bg(a=>[...a.slice(-50),d.message]);else if("done"===c){bc(!0),be(!1),bm(!1),bW();return}else"error"===c&&a6({type:"error",message:d.error||"Install failed"})}}}catch(a){a6({type:"error",message:a.message})}finally{be(!1)}},bT=async a=>{a4("Waiting for Tailscale ready...");let b=`${a}/api/health`,c=Date.now();for(;Date.now()-c<h.Cp;){await new Promise(a=>setTimeout(a,h.Hx));try{let a=await fetch(b,{mode:"no-cors",cache:"no-store"});if(a.ok||"opaque"===a.type)return!0}catch{}}return!1},bU=(a,b)=>{a8(a),ba(b)},bV=()=>{a8(""),ba("")},bW=async()=>{bm(!1),bk(!0),a2(!0),a6(null),a4("Connecting..."),bV();try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){a0(b.tunnelUrl||"");let a=await bT(b.tunnelUrl);aY(!0),a6(a?null:{type:"warning",message:"Connected but not reachable yet."});return}if(b.needsLogin&&b.authUrl){bU(b.authUrl,"Open Login Page"),a4('Login required — click "Open Login Page" to continue');for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok&&(await a.json()).loggedIn){bV(),a4("Starting funnel...");let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){a0(b.tunnelUrl||"");let a=await bT(b.tunnelUrl);aY(!0),a6(a?null:{type:"warning",message:"Connected but not reachable yet."})}else b.funnelNotEnabled&&b.enableUrl?await bX(b.enableUrl):a6({type:"error",message:b.error||"Failed to start funnel"});return}}catch{}}bV(),a6({type:"error",message:"Login timed out. Please try again."});return}if(b.funnelNotEnabled&&b.enableUrl)return void await bX(b.enableUrl);a6({type:"error",message:b.error||"Failed to connect"})}catch(a){a6({type:"error",message:a.message})}finally{a2(!1),bk(!1),a4(""),bV()}},bX=async a=>{bU(a,"Open Funnel Settings"),a4('Click "Open Funnel Settings" to enable Funnel...');for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){bV(),a0(b.tunnelUrl||"");let a=await bT(b.tunnelUrl);aY(!0),a6(a?null:{type:"warning",message:"Connected but not reachable yet."});return}if(b.funnelNotEnabled)continue;if(b.error){bV(),a6({type:"error",message:b.error});return}}catch{}}bV(),a6({type:"error",message:"Timed out waiting for Funnel to be enabled."})},bY=async()=>{a2(!0),a6(null);try{let a=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),b=await a.json();a.ok?(aY(!1),a0(""),bo(!1),a6({type:"success",message:"Tailscale disabled"})):a6({type:"error",message:b.error||"Failed to disable Tailscale"})}catch(a){a6({type:"error",message:a.message})}finally{a2(!1)}},bZ=async()=>{a6(null),bg([]);let a=await bR();a?.installed&&a?.hasCachedPassword?bW():bm(!0)},b$=async()=>{if(r.trim())try{let a=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r})}),b=await a.json();a.ok&&(u(b.key),await bN(),s(""),q(!1))}catch(a){console.log("Error creating key:",a)}},b_=async a=>{w({title:"Delete API Key",message:"Delete this API key?",onConfirm:async()=>{w(null);try{(await fetch(`/api/keys/${a}`,{method:"DELETE"})).ok&&(c(b.filter(b=>b.id!==a)),bv(b=>{let c=new Set(b);return c.delete(a),c}))}catch(a){console.log("Error deleting key:",a)}}})},b0=async(a,b)=>{try{(await fetch(`/api/keys/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&c(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error toggling key:",a)}},[b1,b2]=(0,e.useState)("/v1");if(n)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(f.CardSkeleton,{}),(0,d.jsx)(f.CardSkeleton,{})]});let b3=!!al.running,b4=!1!==al.localUrl,b5=!!al.canStart,b6=b4&&!!al.managedPid,b7=al.loading?"Checking…":b3?"Running":b4&&!al.installed?"Not installed":b4?"Proxy off":"Unreachable";return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsxs)(f.Card,{children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"api"}),"API Endpoint"]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsx)(i,{label:"Local",url:b1,copyId:"local_url",copied:bz,onCopy:bA}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${aF?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tunnel"}),aF&&!aN&&aH?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Input,{value:`${aL||aJ}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>bA(`${aL||aJ}/v1`,"tunnel_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tunnel_url"===bz?"check":"content_copy"})}),(0,d.jsx)("button",{onClick:()=>aW(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!aF||aN||aH?aN?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),aP||"Creating tunnel..."]}),(0,d.jsx)("button",{onClick:()=>{aO(!1),aQ("")},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):aR?.type==="error"?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),aR.message]}),(0,d.jsx)(f.Button,{size:"sm",icon:"cloud_upload",onClick:()=>aU(!0),children:"Enable"})]}):aD?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),(0,d.jsx)("button",{onClick:()=>aE(!1),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):(0,d.jsx)(f.Button,{size:"sm",icon:"cloud_upload",onClick:()=>{bB?aS({type:"error",message:`Security required: ${bC}`}):V?aU(!0):aS({type:"error",message:'Security required: Enable "Require API key" before activating the tunnel.'})},children:"Enable"}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),bq?"Tunnel reconnecting...":"Tunnel checking..."]}),(0,d.jsx)("button",{onClick:()=>aW(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${aX?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tailscale"}),aX&&!a1&&aZ?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Input,{value:`${a_}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>bA(`${a_}/v1`,"ts_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"ts_url"===bz?"check":"content_copy"})}),(0,d.jsx)("button",{onClick:()=>bo(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!aX||a1||aZ?a1||bj?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),a3||"Connecting..."]}),a7&&(0,d.jsx)(f.Button,{size:"sm",icon:"open_in_new",onClick:()=>window.open(a7,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:a9||"Open"}),(0,d.jsx)("button",{onClick:()=>{a2(!1),bk(!1),a4(""),bV()},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):a5?.type==="error"?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),a5.message]}),(0,d.jsx)(f.Button,{size:"sm",icon:"vpn_lock",onClick:bZ,children:"Enable"})]}):(0,d.jsx)(f.Button,{size:"sm",icon:"vpn_lock",onClick:()=>{bB?a6({type:"error",message:`Security required: ${bC}`}):bZ()},className:"bg-linear-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600 text-white!",children:"Enable"}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),bs?"Tailscale reconnecting...":"Tailscale checking..."]}),(0,d.jsx)("button",{onClick:()=>bo(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]})]}),bB&&!aF&&!aX&&(0,d.jsx)("div",{className:"mt-4",children:(0,d.jsx)(l,{message:bC,action:{label:"Open settings",href:"/dashboard/profile"}})}),(aF||aX)&&(0,d.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!V&&(0,d.jsx)(l,{message:"Require API key is disabled — your endpoint is publicly accessible without authentication.",action:{label:"Enable",href:"#require-api-key"}}),(!Z||!_)&&(0,d.jsx)(l,{message:Z?"Dashboard uses the default password — change it in Profile settings.":"Require login is disabled — anyone can access your dashboard via tunnel.",action:{label:Z?"Change password":"Enable",href:"/dashboard/profile"}})]}),(aF||aX)&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-3",children:[(0,d.jsx)(f.Toggle,{checked:ab,onChange:()=>bD(!ab)}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("p",{className:"font-medium text-sm",children:"Allow dashboard access via tunnel"}),(0,d.jsx)(k,{text:"When enabled, the dashboard can be accessed through your tunnel or Tailscale URL (login still required). When disabled, dashboard access via tunnel/Tailscale is completely blocked."})]})]})]}),(0,d.jsxs)(f.Card,{id:"rtk",children:[(0,d.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,d.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"bolt"}),"Token Saver"]})}),(0,d.jsxs)("div",{className:"flex items-center justify-between pt-2 pb-4 border-b border-border gap-4",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("p",{className:"font-medium",children:["Compress tool output"," ",(0,d.jsx)("a",{href:"https://github.com/rtk-ai/rtk",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(RTK)"})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"git/grep/ls/tree/logs → 60-90% fewer input tokens"})]}),(0,d.jsx)(f.Toggle,{checked:ad,onChange:()=>bG(!ad)})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between py-4 border-b border-border gap-4 flex-wrap",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,d.jsxs)("p",{className:"font-medium",children:["Compress context"," ",(0,d.jsx)("a",{href:"https://github.com/chopratejas/headroom",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Headroom)"})]}),(0,d.jsx)("span",{className:`text-xs px-2 py-0.5 rounded ${b3?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:b7}),(0,d.jsx)("button",{type:"button",onClick:()=>ao(!0),className:"text-xs text-primary underline hover:opacity-80",children:b3?"Manage":"Setup"})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Compress prompts via /v1/compress before routing to the model"})]}),(0,d.jsx)(f.Toggle,{checked:af&&b3,disabled:!b3,onChange:()=>{var a;let b;return a=!af,void(ai(b=ah.trim()||"http://localhost:8787"),ag(a),bH({headroomEnabled:a,headroomUrl:b}))}})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between pt-4 gap-4 flex-wrap",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("p",{className:"font-medium",children:["Compress LLM output"," ",(0,d.jsx)("a",{href:"https://github.com/JuliusBrussee/caveman",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Caveman)"})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Terse-style system prompt → ~65% fewer output tokens (up to 87%)"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[at&&(0,d.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,d.jsx)("div",{className:"flex items-center gap-1.5",children:by.map(a=>(0,d.jsx)("button",{onClick:()=>{var b;aw(b=a.id),bH({cavemanLevel:b})},className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${av===a.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:a.desc,children:a.label},a.id))}),(0,d.jsx)("p",{className:"text-xs text-primary",children:h.ev.find(a=>a.id===av)?.desc})]}),(0,d.jsx)(f.Toggle,{checked:at,onChange:()=>{var a;au(a=!at),bH({cavemanEnabled:a})}})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between pt-4 mt-4 border-t border-border gap-4 flex-wrap",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("p",{className:"font-medium",children:["Lazy senior dev"," ",(0,d.jsx)("a",{href:"https://github.com/DietrichGebert/ponytail",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Ponytail)"})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Bias the model toward minimal code: YAGNI, reuse stdlib, deletion over addition"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[ax&&(0,d.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,d.jsx)("div",{className:"flex items-center gap-1.5",children:h.Nv.map(a=>(0,d.jsx)("button",{onClick:()=>{var b;aA(b=a.id),bH({ponytailLevel:b})},className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${az===a.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:a.desc,children:a.label},a.id))}),(0,d.jsx)("p",{className:"text-xs text-primary",children:h.Nv.find(a=>a.id===az)?.desc})]}),(0,d.jsx)(f.Toggle,{checked:ax,onChange:()=>{var a;ay(a=!ax),bH({ponytailEnabled:a})}})]})]})]}),(0,d.jsxs)(f.Card,{id:"require-api-key",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"vpn_key"}),"API Keys"]}),(0,d.jsx)(f.Button,{icon:"add",onClick:()=>q(!0),children:"Create Key"})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-4 border-b border-border",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-medium",children:"Require API key"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Requests without a valid key will be rejected"})]}),(0,d.jsx)(f.Toggle,{checked:V,onChange:()=>bE(!V)})]}),bw&&!V&&(0,d.jsx)("div",{className:"mb-4 -mt-2",children:(0,d.jsx)(l,{message:"Endpoint is exposed without an API key."})}),!V&&bw&&(0,d.jsxs)("div",{className:"flex items-center justify-between p-4 rounded-xl bg-surface/50 border border-border/30 mb-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm font-medium text-text-main",children:"Allow Remote Access Without API Key"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Let non-loopback requests reach /v1/* without a key (use with caution)"})]}),(0,d.jsx)(f.Toggle,{checked:X,onChange:()=>bF(!X)})]}),!V&&X&&(0,d.jsx)("div",{className:"mb-4 -mt-2",children:(0,d.jsx)(l,{message:"Remote access without an API key is enabled — anyone who can reach this endpoint can use your providers."})}),0===b.length?(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"vpn_key"})}),(0,d.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No API keys yet"}),(0,d.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create your first API key to get started"}),(0,d.jsx)(f.Button,{icon:"add",onClick:()=>q(!0),children:"Create Key"})]}):(0,d.jsx)("div",{className:"flex flex-col",children:b.map(a=>{var b;return(0,d.jsxs)("div",{className:`group flex items-center justify-between py-3 border-b border-black/[0.03] dark:border-white/[0.03] last:border-b-0 ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:a.name}),(0,d.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono",children:bu.has(a.id)?a.key:(b=a.key)&&!(b.length<=10)?b.slice(0,6)+"•".repeat(b.length-10)+b.slice(-4):b||""}),(0,d.jsx)("button",{onClick:()=>{var b;return b=a.id,void bv(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",title:bu.has(a.id)?"Hide key":"Show key",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:bu.has(a.id)?"visibility_off":"visibility"})}),(0,d.jsx)("button",{onClick:()=>bA(a.key,a.id),className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:bz===a.id?"check":"content_copy"})})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Created ",new Date(a.createdAt).toLocaleDateString()]}),!1===a.isActive&&(0,d.jsx)("p",{className:"text-xs text-orange-500 mt-1",children:"Paused"}),(a.allowedProviders||a.allowedCombos||a.allowedKinds)&&(0,d.jsxs)("div",{className:"flex flex-wrap gap-1 mt-1",children:[a.allowedProviders&&(0,d.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-blue-500/10 text-blue-500 dark:bg-blue-500/20",title:a.allowedProviders.join(", "),children:0===a.allowedProviders.length?"No providers":a.allowedProviders.map(a=>{let b=P.find(b=>b.id===a||b.alias===a||b.prefix===a);if(b)return b.displayName;let c=R[a];return c||a}).join(", ")}),a.allowedCombos&&(0,d.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-purple-500/10 text-purple-500 dark:bg-purple-500/20",children:0===a.allowedCombos.length?"No combos":a.allowedCombos.join(", ")}),a.allowedKinds&&(0,d.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-green-500/10 text-green-500 dark:bg-green-500/20",children:0===a.allowedKinds.length?"No kinds":a.allowedKinds.join(", ")})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("button",{onClick:()=>(a=>{y(a),A(a.name||"");let b=a.allowedProviders,c=a.allowedCombos,d=a.allowedKinds;if(K(!b),M(!c),I(!d),G(c||[]),C(d||[]),b&&P.length>0){let a=new Set;for(let c of b){let b=P.find(a=>a.id===c);if(b){a.add(b.id);continue}let d=P.find(a=>a.alias===c);if(d){a.add(d.id);continue}let e=P.find(a=>a.prefix===c);if(e){a.add(e.id);continue}a.add(c)}E([...a])}else E([])})(a),className:"p-2 hover:bg-primary/10 rounded text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",title:"Edit access control",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tune"})}),(0,d.jsx)(f.Toggle,{size:"sm",checked:a.isActive??!0,onChange:b=>{a.isActive&&!b?w({title:"Pause API Key",message:`Pause API key "${a.name}"?
|
|
1
|
+
exports.id=2262,exports.ids=[2262],exports.modules={12245:(a,b,c)=>{"use strict";c.d(b,{gm:()=>e});let d=new Map;function e(a,b={}){d.delete(JSON.stringify([String(a),b?.method||"GET",b?.headers||{},b?.body||null]))}},13018:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,88844,23))},31441:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(35732).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/VansRouter/VansRouter/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/VansRouter/VansRouter/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js","default")},35411:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(35732).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/VansRouter/VansRouter/src/app/(dashboard)/error.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/VansRouter/VansRouter/src/app/(dashboard)/error.js","default")},45961:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g});var d=c(66238);c(71183);var e=c(84725),f=c.n(e);function g({error:a,reset:b}){return(0,d.jsx)("section",{className:"flex min-h-[calc(100vh-9rem)] items-center justify-center",children:(0,d.jsxs)("div",{className:"w-full max-w-lg rounded-lg border border-border bg-surface p-6 shadow-soft",children:[(0,d.jsx)("div",{className:"mb-4 flex h-11 w-11 items-center justify-center rounded-lg bg-red-500/10 text-red-600 dark:text-red-400",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"warning"})}),(0,d.jsx)("h1",{className:"text-xl font-semibold text-text-main",children:"Dashboard error"}),(0,d.jsx)("p",{className:"mt-2 text-sm leading-6 text-text-muted",children:"This dashboard view failed to render. Retry the view or head back to the dashboard home."}),a?.message?(0,d.jsx)("pre",{className:"mt-4 max-h-36 overflow-auto rounded-md border border-border bg-surface-2 p-3 text-xs text-text-muted",children:a.message}):null,(0,d.jsxs)("div",{className:"mt-6 flex flex-wrap gap-3",children:[(0,d.jsxs)("button",{type:"button",onClick:b,className:"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-primary-hover",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"refresh"}),"Try again"]}),(0,d.jsxs)(f(),{href:"/dashboard",className:"inline-flex items-center gap-2 rounded-md border border-border bg-surface px-4 py-2 text-sm font-medium text-text-main transition-colors hover:bg-surface-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"home"}),"Dashboard"]})]})]})})}},47298:(a,b,c)=>{Promise.resolve().then(c.bind(c,43736))},48960:(a,b,c)=>{Promise.resolve().then(c.bind(c,74391))},58686:(a,b,c)=>{"use strict";c.d(b,{Cp:()=>g,Hx:()=>f,Iv:()=>k,Nv:()=>m,RL:()=>j,ev:()=>l,fl:()=>h,hT:()=>d,oX:()=>e,t6:()=>i});let d=["zh-CN","zh-TW"],e=[{icon:"public",title:"Access Anywhere",desc:"Use your API from any network"},{icon:"group",title:"Share Endpoint",desc:"Share URL with team members"},{icon:"code",title:"Use in Cursor/Cline",desc:"Connect AI tools remotely"},{icon:"lock",title:"Encrypted",desc:"End-to-end TLS via Cloudflare"}],f=2e3,g=3e5,h=5e3,i=5,j=1e4,k=5e3,l=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}],m=[{id:"lite",label:"Lite",desc:"Build asked, name lazier option"},{id:"full",label:"Full",desc:"Ladder enforced: stdlib/native first"},{id:"ultra",label:"Ultra",desc:"YAGNI extremist, deletion first"}]},61643:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(1904),e=c(88844);function f({children:a}){return(0,d.jsx)(e.DashboardLayout,{children:a})}},63420:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(65285);async function e(){return await (0,d.Xj)()}},65285:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(70690),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(88590);let l=h().join(k.n,"machine-id"),m=h().join(k.n,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.n,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="9r-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},74391:(a,b,c)=>{"use strict";c.d(b,{default:()=>n});var d=c(66238),e=c(71183),f=c(43736),g=c(87571),h=c(12245);c(7272);var i=c(58686);function j({label:a,url:b,copyId:c,copied:e,onCopy:g,badge:h,actions:i}){return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${"CF"===h||"TS"===h?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:a}),(0,d.jsx)(f.Input,{value:b,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>g(b,c),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:e===c?"check":"content_copy"})}),i]})}function k({status:a,className:b=""}){return(0,d.jsx)("div",{className:`p-2 rounded text-sm ${b} ${"success"===a.type?"bg-green-500/10 text-green-600 dark:text-green-400":"warning"===a.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"info"===a.type?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-red-500/10 text-red-600 dark:text-red-400"}`,children:a.message.split(/(https?:\/\/[^\s]+)/g).map((a,b)=>/^https?:\/\//.test(a)?(0,d.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:a},b):a)})}function l({text:a}){return(0,d.jsxs)("span",{className:"relative group inline-flex items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted cursor-help",children:"help"}),(0,d.jsx)("span",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 z-50 w-64 rounded bg-gray-900 dark:bg-gray-800 text-white text-xs px-2.5 py-1.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",children:a})]})}function m({message:a,action:b}){return(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] shrink-0 mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"text-xs flex-1",children:a}),b&&(0,d.jsx)("a",{href:b.href,className:"text-xs font-medium underline shrink-0 hover:opacity-80",onClick:b.href.startsWith("#")?a=>{a.preventDefault(),document.getElementById(b.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:b.label})]})}function n({machineId:a}){let[b,c]=(0,e.useState)([]),[o,p]=(0,e.useState)(!0),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(""),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)(null),[y,z]=(0,e.useState)(null),[A,B]=(0,e.useState)(""),[C,D]=(0,e.useState)([]),[E,F]=(0,e.useState)([]),[G,H]=(0,e.useState)([]),[I,J]=(0,e.useState)(!0),[K,L]=(0,e.useState)(!0),[M,N]=(0,e.useState)(!0),[O,P]=(0,e.useState)(!1),[Q,R]=(0,e.useState)([]),[S,T]=(0,e.useState)({}),[U,V]=(0,e.useState)([]),[W,X]=(0,e.useState)(!1),[Y,Z]=(0,e.useState)(!1),[$,_]=(0,e.useState)(!0),[aa,ab]=(0,e.useState)(!0),[ac,ad]=(0,e.useState)(!1),[ae,af]=(0,e.useState)(!0),[ag,ah]=(0,e.useState)(!1),[ai,aj]=(0,e.useState)("http://localhost:8787"),[ak,al]=(0,e.useState)(!1),[am,an]=(0,e.useState)({installed:!1,running:!1,python:null,loading:!0}),[ao,ap]=(0,e.useState)(!1),[aq,ar]=(0,e.useState)(!1),[as,at]=(0,e.useState)(""),[au,av]=(0,e.useState)(!1),[aw,ax]=(0,e.useState)("full"),[ay,az]=(0,e.useState)(!1),[aA,aB]=(0,e.useState)("full"),[aC,aD]=(0,e.useState)("en"),[aE,aF]=(0,e.useState)(!0),[aG,aH]=(0,e.useState)(!1),[aI,aJ]=(0,e.useState)(!1),[aK,aL]=(0,e.useState)(""),[aM,aN]=(0,e.useState)(""),[aO,aP]=(0,e.useState)(!1),[aQ,aR]=(0,e.useState)(""),[aS,aT]=(0,e.useState)(null),[aU,aV]=(0,e.useState)(!1),[aW,aX]=(0,e.useState)(!1),[aY,aZ]=(0,e.useState)(!1),[a$,a_]=(0,e.useState)(!1),[a0,a1]=(0,e.useState)(""),[a2,a3]=(0,e.useState)(!1),[a4,a5]=(0,e.useState)(""),[a6,a7]=(0,e.useState)(null),[a8,a9]=(0,e.useState)(""),[ba,bb]=(0,e.useState)(""),[bc,bd]=(0,e.useState)(null),[be,bf]=(0,e.useState)(!1),[bg,bh]=(0,e.useState)([]),[bi,bj]=(0,e.useState)(""),[bk,bl]=(0,e.useState)(!1),[bm,bn]=(0,e.useState)(!1),[bo,bp]=(0,e.useState)(!1),bq=(0,e.useRef)(null);(0,e.useRef)(0),(0,e.useRef)(0),(0,e.useRef)(!1),(0,e.useRef)(!1),(0,e.useRef)(!1),(0,e.useRef)(!1);let[br,bs]=(0,e.useState)(!1),[bt,bu]=(0,e.useState)(!1),[bv,bw]=(0,e.useState)(new Set),[bx,by]=(0,e.useState)(!1),bz=i.hT.includes(aC)?i.ev:i.ev.filter(a=>!a.wenyan),{copied:bA,copy:bB}=(0,g.C)(),bC=!$||!aa,bD=$?"Change the default dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,e.useCallback)((a,b,c,d,e,f)=>{b.current?(c.current=0,d(!0),e.current||(e.current=!0,f(!0))):(c.current+=1,c.current>=i.t6&&d(!1))},[]);let bE=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tunnelDashboardAccess:a})})).ok&&ad(a)}catch(a){console.log("Error updating tunnelDashboardAccess:",a)}},bF=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireApiKey:a})})).ok&&X(a)}catch(a){console.log("Error updating requireApiKey:",a)}},bG=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({allowRemoteNoApiKey:a})})).ok&&Z(a)}catch(a){console.log("Error updating allowRemoteNoApiKey:",a)}},bH=async a=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({rtkEnabled:a})})).ok&&af(a)}catch(a){console.log("Error updating rtkEnabled:",a)}},bI=async a=>{try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})}catch(a){console.log("Error updating setting:",a)}},bJ=async()=>{let a=ai.trim()||"http://localhost:8787";aj(a),await bI({headroomUrl:a}),bK()},bK=(0,e.useCallback)(async()=>{an(a=>({...a,loading:!0}));try{let a=await fetch("/api/headroom/status",{headers:{"Cache-Control":"no-store"}}),b=await a.json();an({...b,loading:!1})}catch{an({installed:!1,running:!1,python:null,loading:!1})}},[]),bL=(0,e.useCallback)(async()=>{at(""),ar(!0);try{let a=await fetch("/api/headroom/start",{method:"POST"}),b=await a.json().catch(()=>({}));if(!a.ok)throw Error(b.error||"Failed to start proxy");await bK()}catch(a){at(a.message)}finally{ar(!1)}},[bK]),bM=(0,e.useCallback)(async()=>{ar(!0);try{await fetch("/api/headroom/stop",{method:"POST"}),await bK()}finally{ar(!1)}},[bK]),bN=async a=>{z(a),B(a.name||"");let b=a.allowedProviders,c=a.allowedCombos,d=a.allowedKinds;if(L(!b),N(!c),J(!d),H(c||[]),D(d||[]),b&&Q.length>0){let a=new Set;for(let c of b){let b=Q.find(a=>a.id===c);if(b){a.add(b.id);continue}let d=Q.find(a=>a.alias===c);if(d){a.add(d.id);continue}let e=Q.find(a=>a.prefix===c);if(e){a.add(e.id);continue}a.add(c)}F([...a])}else F([])},bO=async()=>{if(y){P(!0);try{let a=await fetch(`/api/keys/${y.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({allowedProviders:K?null:E,allowedCombos:M?null:G,allowedKinds:I?null:C})});if(a.ok){let b=await a.json();c(a=>a.map(a=>a.id===y.id?{...a,...b.key}:a)),z(null)}}catch(a){console.log("Error saving key ACL:",a)}finally{P(!1)}}},bP=async()=>{try{let[a,b,d,e]=await Promise.all([fetch("/api/keys",{cache:"no-store"}),fetch("/api/providers",{cache:"no-store"}),fetch("/api/combos",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"})]),f=await a.json();a.ok&&c(f.keys||[]);let g=[],h=[],i=[];if(b.ok){let a=await b.json();g=a.connections||[],a.aliasMap&&T(a.aliasMap),i=a.providers||[]}if(e.ok&&(h=(await e.json()).nodes||[]),R(function(a,b,c=[]){let d={};for(let a of b||[])d[a.id]={name:a.name,prefix:a.prefix||null,type:a.type};let e={};for(let b of a||[]){let a=b.provider;e[a]||(e[a]={id:a,count:0,alias:b.alias||null}),e[a].count++}for(let a of c||[])a.noAuth&&(e[a.id]||(e[a.id]={id:a.id,count:0,alias:a.alias||null}));let f={};for(let a of c||[])f[a.id]=a;return Object.values(e).map(({id:a,count:b,alias:c})=>{let e=d[a],g=f[a],h=g?.displayName||a,i=null;return e&&(h=e.name||a,i=e.prefix||null),{id:a,displayName:h,prefix:i,alias:c,count:b}}).sort((a,b)=>a.displayName.localeCompare(b.displayName))}(g,h,i)),d.ok){let a=await d.json();V(a.combos||[])}}catch(a){console.log("Error fetching data:",a)}finally{p(!1)}},bQ=async(...a)=>{aP(!0),aR("Waiting for tunnel ready...");let b=a.filter(Boolean).map(a=>`${a}/api/health`),c=Date.now();for(;Date.now()-c<i.Cp;){if(await new Promise(a=>setTimeout(a,i.Hx)),await Promise.any(b.map(async a=>{if((await fetch(a,{mode:"cors",cache:"no-store"})).ok)return!0;throw Error("not ready")})).catch(()=>!1))return aH(!0),aP(!1),aR(""),!0;if((Date.now()-c)%1e4<i.Hx)try{let a=await fetch("/api/tunnel/status");if(a.ok){let b=await a.json();if(!b.tunnel?.enabled)return aT({type:"error",message:"Tunnel process stopped unexpectedly."}),aP(!1),aR(""),!1}}catch{}}return aT({type:"error",message:"Tunnel created but not reachable. Please try again."}),aP(!1),aR(""),!1},bR=async()=>{aV(!1),aP(!0),aT(null),aR("Creating tunnel...");let a=!0;(async()=>{for(;a;){try{let b=await fetch("/api/tunnel/status");if(b.ok){let c=await b.json();c.download?.downloading?aR(`Downloading cloudflared... ${c.download.progress}%`):a&&aR("Creating tunnel...")}}catch{}await new Promise(a=>setTimeout(a,1e3))}})();try{let b=await fetch("/api/tunnel/enable",{method:"POST"});a=!1;let c=await b.json();if(!b.ok)return void aT({type:"error",message:c.error||"Failed to enable tunnel"});let d=c.tunnelUrl;if(!d)return void aT({type:"error",message:"No tunnel URL returned"});aL(d),aN(c.publicUrl||""),await bQ(c.publicUrl,d)}catch(a){aT({type:"error",message:a.message})}finally{a=!1,aP(!1),aR("")}},bS=async()=>{aP(!0),aT(null);try{let a=await fetch("/api/tunnel/disable",{method:"POST"}),b=await a.json();a.ok?(aH(!1),aL(""),aX(!1),aT({type:"success",message:"Tunnel disabled"})):aT({type:"error",message:b.error||"Failed to disable tunnel"})}catch(a){aT({type:"error",message:a.message})}finally{aP(!1)}},bT=async()=>{bd(null);try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok){let b=await a.json();return bd(b.installed),b}}catch{}return bd(!1),{installed:!1}},bU=async()=>{bf(!0),a7(null),bh([]);try{let a=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:bi})});bj("");let b=a.body.getReader(),c=new TextDecoder,d="";for(;;){let{done:a,value:e}=await b.read();if(a)break;let f=(d+=c.decode(e,{stream:!0})).split("\n\n");for(let a of(d=f.pop()||"",f)){let b=a.split("\n"),c="progress",d=null;for(let a of b)if(a.startsWith("event: ")&&(c=a.slice(7).trim()),a.startsWith("data: "))try{d=JSON.parse(a.slice(6))}catch{}if(d)if("progress"===c)bh(a=>[...a.slice(-50),d.message]);else if("done"===c){bd(!0),bf(!1),bn(!1),bY();return}else"error"===c&&a7({type:"error",message:d.error||"Install failed"})}}}catch(a){a7({type:"error",message:a.message})}finally{bf(!1)}},bV=async a=>{a5("Waiting for Tailscale ready...");let b=`${a}/api/health`,c=Date.now();for(;Date.now()-c<i.Cp;){await new Promise(a=>setTimeout(a,i.Hx));try{let a=await fetch(b,{mode:"no-cors",cache:"no-store"});if(a.ok||"opaque"===a.type)return!0}catch{}}return!1},bW=(a,b)=>{a9(a),bb(b)},bX=()=>{a9(""),bb("")},bY=async()=>{bn(!1),bl(!0),a3(!0),a7(null),a5("Connecting..."),bX();try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){a1(b.tunnelUrl||"");let a=await bV(b.tunnelUrl);aZ(!0),a7(a?null:{type:"warning",message:"Connected but not reachable yet."});return}if(b.needsLogin&&b.authUrl){bW(b.authUrl,"Open Login Page"),a5('Login required — click "Open Login Page" to continue');for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-check");if(a.ok&&(await a.json()).loggedIn){bX(),a5("Starting funnel...");let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){a1(b.tunnelUrl||"");let a=await bV(b.tunnelUrl);aZ(!0),a7(a?null:{type:"warning",message:"Connected but not reachable yet."})}else b.funnelNotEnabled&&b.enableUrl?await bZ(b.enableUrl):a7({type:"error",message:b.error||"Failed to start funnel"});return}}catch{}}bX(),a7({type:"error",message:"Login timed out. Please try again."});return}if(b.funnelNotEnabled&&b.enableUrl)return void await bZ(b.enableUrl);a7({type:"error",message:b.error||"Failed to connect"})}catch(a){a7({type:"error",message:a.message})}finally{a3(!1),bl(!1),a5(""),bX()}},bZ=async a=>{bW(a,"Open Funnel Settings"),a5('Click "Open Funnel Settings" to enable Funnel...');for(let a=0;a<40;a++){await new Promise(a=>setTimeout(a,3e3));try{let a=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),b=await a.json();if(a.ok&&b.success){bX(),a1(b.tunnelUrl||"");let a=await bV(b.tunnelUrl);aZ(!0),a7(a?null:{type:"warning",message:"Connected but not reachable yet."});return}if(b.funnelNotEnabled)continue;if(b.error){bX(),a7({type:"error",message:b.error});return}}catch{}}bX(),a7({type:"error",message:"Timed out waiting for Funnel to be enabled."})},b$=async()=>{a3(!0),a7(null);try{let a=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),b=await a.json();a.ok?(aZ(!1),a1(""),bp(!1),a7({type:"success",message:"Tailscale disabled"})):a7({type:"error",message:b.error||"Failed to disable Tailscale"})}catch(a){a7({type:"error",message:a.message})}finally{a3(!1)}},b_=async()=>{a7(null),bh([]);let a=await bT();a?.installed&&a?.hasCachedPassword?bY():bn(!0)},b0=async()=>{if(s.trim())try{let a=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:s})}),b=await a.json();a.ok&&(v(b.key),(0,h.gm)("/api/keys"),await bP(),t(""),r(!1))}catch(a){console.log("Error creating key:",a)}},b1=async a=>{x({title:"Delete API Key",message:"Delete this API key?",onConfirm:async()=>{x(null);try{(await fetch(`/api/keys/${a}`,{method:"DELETE"})).ok&&(c(b.filter(b=>b.id!==a)),bw(b=>{let c=new Set(b);return c.delete(a),c}))}catch(a){console.log("Error deleting key:",a)}}})},b2=async(a,b)=>{try{(await fetch(`/api/keys/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&c(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error toggling key:",a)}},[b3,b4]=(0,e.useState)("/v1");if(o)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(f.CardSkeleton,{}),(0,d.jsx)(f.CardSkeleton,{})]});let b5=!!am.running,b6=!1!==am.localUrl,b7=!!am.canStart,b8=b6&&!!am.managedPid,b9=am.loading?"Checking…":b5?"Running":b6&&!am.installed?"Not installed":b6?"Proxy off":"Unreachable";return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsxs)(f.Card,{children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"api"}),"API Endpoint"]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsx)(j,{label:"Local",url:b3,copyId:"local_url",copied:bA,onCopy:bB}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${aG?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tunnel"}),aG&&!aO&&aI?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Input,{value:`${aM||aK}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>bB(`${aM||aK}/v1`,"tunnel_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tunnel_url"===bA?"check":"content_copy"})}),(0,d.jsx)("button",{onClick:()=>aX(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!aG||aO||aI?aO?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),aQ||"Creating tunnel..."]}),(0,d.jsx)("button",{onClick:()=>{aP(!1),aR("")},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):aS?.type==="error"?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),aS.message]}),(0,d.jsx)(f.Button,{size:"sm",icon:"cloud_upload",onClick:()=>aV(!0),children:"Enable"})]}):aE?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),(0,d.jsx)("button",{onClick:()=>aF(!1),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):(0,d.jsx)(f.Button,{size:"sm",icon:"cloud_upload",onClick:()=>{bC?aT({type:"error",message:`Security required: ${bD}`}):W?aV(!0):aT({type:"error",message:'Security required: Enable "Require API key" before activating the tunnel.'})},children:"Enable"}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),br?"Tunnel reconnecting...":"Tunnel checking..."]}),(0,d.jsx)("button",{onClick:()=>aX(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${aY?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tailscale"}),aY&&!a2&&a$?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Input,{value:`${a0}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)("button",{onClick:()=>bB(`${a0}/v1`,"ts_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"ts_url"===bA?"check":"content_copy"})}),(0,d.jsx)("button",{onClick:()=>bp(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!aY||a2||a$?a2||bk?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),a4||"Connecting..."]}),a8&&(0,d.jsx)(f.Button,{size:"sm",icon:"open_in_new",onClick:()=>window.open(a8,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:ba||"Open"}),(0,d.jsx)("button",{onClick:()=>{a3(!1),bl(!1),a5(""),bX()},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):a6?.type==="error"?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),a6.message]}),(0,d.jsx)(f.Button,{size:"sm",icon:"vpn_lock",onClick:b_,children:"Enable"})]}):(0,d.jsx)(f.Button,{size:"sm",icon:"vpn_lock",onClick:()=>{bC?a7({type:"error",message:`Security required: ${bD}`}):b_()},className:"bg-linear-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600 text-white!",children:"Enable"}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),bt?"Tailscale reconnecting...":"Tailscale checking..."]}),(0,d.jsx)("button",{onClick:()=>bp(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]})]}),bC&&!aG&&!aY&&(0,d.jsx)("div",{className:"mt-4",children:(0,d.jsx)(m,{message:bD,action:{label:"Open settings",href:"/dashboard/profile"}})}),(aG||aY)&&(0,d.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!W&&(0,d.jsx)(m,{message:"Require API key is disabled — your endpoint is publicly accessible without authentication.",action:{label:"Enable",href:"#require-api-key"}}),(!$||!aa)&&(0,d.jsx)(m,{message:$?"Dashboard uses the default password — change it in Profile settings.":"Require login is disabled — anyone can access your dashboard via tunnel.",action:{label:$?"Change password":"Enable",href:"/dashboard/profile"}})]}),(aG||aY)&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-3",children:[(0,d.jsx)(f.Toggle,{checked:ac,onChange:()=>bE(!ac)}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("p",{className:"font-medium text-sm",children:"Allow dashboard access via tunnel"}),(0,d.jsx)(l,{text:"When enabled, the dashboard can be accessed through your tunnel or Tailscale URL (login still required). When disabled, dashboard access via tunnel/Tailscale is completely blocked."})]})]})]}),(0,d.jsxs)(f.Card,{id:"rtk",children:[(0,d.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,d.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"bolt"}),"Token Saver"]})}),(0,d.jsxs)("div",{className:"flex items-center justify-between pt-2 pb-4 border-b border-border gap-4",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("p",{className:"font-medium",children:["Compress tool output"," ",(0,d.jsx)("a",{href:"https://github.com/rtk-ai/rtk",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(RTK)"})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"git/grep/ls/tree/logs → 60-90% fewer input tokens"})]}),(0,d.jsx)(f.Toggle,{checked:ae,onChange:()=>bH(!ae)})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between py-4 border-b border-border gap-4 flex-wrap",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,d.jsxs)("p",{className:"font-medium",children:["Compress context"," ",(0,d.jsx)("a",{href:"https://github.com/chopratejas/headroom",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Headroom)"})]}),(0,d.jsx)("span",{className:`text-xs px-2 py-0.5 rounded ${b5?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:b9}),(0,d.jsx)("button",{type:"button",onClick:()=>ap(!0),className:"text-xs text-primary underline hover:opacity-80",children:b5?"Manage":"Setup"})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Compress prompts via /v1/compress before routing to the model"})]}),(0,d.jsx)(f.Toggle,{checked:ag&&b5,disabled:!b5,onChange:()=>{var a;let b;return a=!ag,void(aj(b=ai.trim()||"http://localhost:8787"),ah(a),bI({headroomEnabled:a,headroomUrl:b}))}})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between pt-4 gap-4 flex-wrap",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("p",{className:"font-medium",children:["Compress LLM output"," ",(0,d.jsx)("a",{href:"https://github.com/JuliusBrussee/caveman",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Caveman)"})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Terse-style system prompt → ~65% fewer output tokens (up to 87%)"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[au&&(0,d.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,d.jsx)("div",{className:"flex items-center gap-1.5",children:bz.map(a=>(0,d.jsx)("button",{onClick:()=>{var b;ax(b=a.id),bI({cavemanLevel:b})},className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${aw===a.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:a.desc,children:a.label},a.id))}),(0,d.jsx)("p",{className:"text-xs text-primary",children:i.ev.find(a=>a.id===aw)?.desc})]}),(0,d.jsx)(f.Toggle,{checked:au,onChange:()=>{var a;av(a=!au),bI({cavemanEnabled:a})}})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between pt-4 mt-4 border-t border-border gap-4 flex-wrap",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("p",{className:"font-medium",children:["Lazy senior dev"," ",(0,d.jsx)("a",{href:"https://github.com/DietrichGebert/ponytail",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Ponytail)"})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Bias the model toward minimal code: YAGNI, reuse stdlib, deletion over addition"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[ay&&(0,d.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,d.jsx)("div",{className:"flex items-center gap-1.5",children:i.Nv.map(a=>(0,d.jsx)("button",{onClick:()=>{var b;aB(b=a.id),bI({ponytailLevel:b})},className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${aA===a.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:a.desc,children:a.label},a.id))}),(0,d.jsx)("p",{className:"text-xs text-primary",children:i.Nv.find(a=>a.id===aA)?.desc})]}),(0,d.jsx)(f.Toggle,{checked:ay,onChange:()=>{var a;az(a=!ay),bI({ponytailEnabled:a})}})]})]})]}),(0,d.jsxs)(f.Card,{id:"require-api-key",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"vpn_key"}),"API Keys"]}),(0,d.jsx)(f.Button,{icon:"add",onClick:()=>r(!0),children:"Create Key"})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-4 border-b border-border",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-medium",children:"Require API key"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Requests without a valid key will be rejected"})]}),(0,d.jsx)(f.Toggle,{checked:W,onChange:()=>bF(!W)})]}),bx&&!W&&(0,d.jsx)("div",{className:"mb-4 -mt-2",children:(0,d.jsx)(m,{message:"Endpoint is exposed without an API key."})}),!W&&bx&&(0,d.jsxs)("div",{className:"flex items-center justify-between p-4 rounded-xl bg-surface/50 border border-border/30 mb-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm font-medium text-text-main",children:"Allow Remote Access Without API Key"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Let non-loopback requests reach /v1/* without a key (use with caution)"})]}),(0,d.jsx)(f.Toggle,{checked:Y,onChange:()=>bG(!Y)})]}),!W&&Y&&(0,d.jsx)("div",{className:"mb-4 -mt-2",children:(0,d.jsx)(m,{message:"Remote access without an API key is enabled — anyone who can reach this endpoint can use your providers."})}),0===b.length?(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"vpn_key"})}),(0,d.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No API keys yet"}),(0,d.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create your first API key to get started"}),(0,d.jsx)(f.Button,{icon:"add",onClick:()=>r(!0),children:"Create Key"})]}):(0,d.jsx)("div",{className:"flex flex-col",children:b.map(a=>{var b;return(0,d.jsxs)("div",{className:`group flex items-center justify-between py-3 border-b border-black/[0.03] dark:border-white/[0.03] last:border-b-0 ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:a.name}),(0,d.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono",children:bv.has(a.id)?a.key:(b=a.key)&&!(b.length<=10)?b.slice(0,6)+"•".repeat(b.length-10)+b.slice(-4):b||""}),(0,d.jsx)("button",{onClick:()=>{var b;return b=a.id,void bw(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",title:bv.has(a.id)?"Hide key":"Show key",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:bv.has(a.id)?"visibility_off":"visibility"})}),(0,d.jsx)("button",{onClick:()=>bB(a.key,a.id),className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:bA===a.id?"check":"content_copy"})})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Created ",new Date(a.createdAt).toLocaleDateString()]}),!1===a.isActive&&(0,d.jsx)("p",{className:"text-xs text-orange-500 mt-1",children:"Paused"}),(a.allowedProviders||a.allowedCombos||a.allowedKinds)&&(0,d.jsxs)("div",{className:"flex flex-wrap gap-1 mt-1",children:[a.allowedProviders&&(0,d.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-blue-500/10 text-blue-500 dark:bg-blue-500/20",title:a.allowedProviders.join(", "),children:0===a.allowedProviders.length?"No providers":a.allowedProviders.map(a=>{let b=Q.find(b=>b.id===a||b.alias===a||b.prefix===a);if(b)return b.displayName;let c=S[a];return c||a}).join(", ")}),a.allowedCombos&&(0,d.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-purple-500/10 text-purple-500 dark:bg-purple-500/20",children:0===a.allowedCombos.length?"No combos":a.allowedCombos.join(", ")}),a.allowedKinds&&(0,d.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-green-500/10 text-green-500 dark:bg-green-500/20",children:0===a.allowedKinds.length?"No kinds":a.allowedKinds.join(", ")})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("button",{onClick:()=>bN(a),className:"p-2 hover:bg-primary/10 rounded text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",title:"Edit access control",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tune"})}),(0,d.jsx)(f.Toggle,{size:"sm",checked:a.isActive??!0,onChange:b=>{a.isActive&&!b?x({title:"Pause API Key",message:`Pause API key "${a.name}"?
|
|
2
2
|
|
|
3
|
-
This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{w(null),b0(a.id,b)}}):b0(a.id,b)},title:a.isActive?"Pause key":"Resume key"}),(0,d.jsx)("button",{onClick:()=>b_(a.id),className:"p-2 hover:bg-red-500/10 rounded text-red-500 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},a.id)})})]}),(0,d.jsx)(f.Modal,{isOpen:p,title:"Create API Key",onClose:()=>{q(!1),s("")},children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(f.Input,{label:"Key Name",value:r,onChange:a=>s(a.target.value),placeholder:"Production Key"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:b$,fullWidth:!0,disabled:!r.trim(),children:"Create"}),(0,d.jsx)(f.Button,{onClick:()=>{q(!1),s("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,d.jsx)(f.Modal,{isOpen:!!t,title:"API Key Created",onClose:()=>u(null),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,d.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:"Save this key now!"}),(0,d.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:"This is the only time you will see this key. Store it securely."})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Input,{value:t||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)(f.Button,{variant:"secondary",icon:"created_key"===bz?"check":"content_copy",onClick:()=>bA(t,"created_key"),children:"created_key"===bz?"Copied!":"Copy"})]}),(0,d.jsx)(f.Button,{onClick:()=>u(null),fullWidth:!0,children:"Done"})]})}),(0,d.jsx)(f.Modal,{isOpen:!!x,title:`Edit Access: ${x?.name||""}`,onClose:()=>!N&&y(null),children:(0,d.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Key Name"}),(0,d.jsx)(f.Input,{value:z,onChange:a=>A(a.target.value),placeholder:"Key name"})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsx)("label",{className:"text-sm font-medium",children:"Service Kinds"}),(0,d.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:H,onChange:a=>I(a.target.checked)}),(0,d.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!H&&(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:["llm","embedding","image","tts","stt","webSearch","webFetch"].map(a=>(0,d.jsxs)("label",{className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg border text-xs cursor-pointer transition-colors ${B.includes(a)?"border-primary bg-primary/10 text-primary":"border-border-subtle text-text-muted hover:border-primary/40"}`,children:[(0,d.jsx)("input",{type:"checkbox",className:"hidden",checked:B.includes(a),onChange:()=>{C(b=>b.includes(a)?b.filter(b=>b!==a):[...b,a])}}),a]},a))}),H&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"This key can access all service kinds."})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsx)("label",{className:"text-sm font-medium",children:"Providers"}),(0,d.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:J,onChange:a=>K(a.target.checked)}),(0,d.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!J&&(0,d.jsx)("div",{className:"max-h-60 overflow-y-auto border border-border-subtle rounded-lg p-2 space-y-1",children:0===P.length?(0,d.jsx)("p",{className:"text-xs text-text-muted p-2",children:"No providers configured."}):P.map(a=>{let b=D.includes(a.id);return(0,d.jsxs)("label",{className:`flex items-center gap-2 px-2 py-2 rounded text-xs cursor-pointer transition-colors ${b?"bg-primary/10 text-primary":"hover:bg-surface-2"}`,children:[(0,d.jsx)("input",{type:"checkbox",checked:b,onChange:()=>{var b;return b=a.id,void E(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"rounded"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"font-medium",children:a.displayName}),a.prefix&&(0,d.jsx)("span",{className:"ml-1.5 text-[10px] px-1 py-0.5 rounded bg-surface-2 text-text-muted font-mono",children:a.prefix})]}),(0,d.jsxs)("span",{className:"text-text-muted text-[10px] shrink-0",children:[a.count," conn"]})]},a.id)})}),J&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["This key can access all providers (",P.length,")."]})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsx)("label",{className:"text-sm font-medium",children:"Combos"}),(0,d.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:L,onChange:a=>M(a.target.checked)}),(0,d.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!L&&(0,d.jsx)("div",{className:"max-h-40 overflow-y-auto border border-border-subtle rounded-lg p-2 space-y-1",children:0===T.length?(0,d.jsx)("p",{className:"text-xs text-text-muted p-2",children:"No combos configured."}):T.map(a=>{let b=a.name||a.id,c=F.includes(b);return(0,d.jsxs)("label",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs cursor-pointer transition-colors ${c?"bg-primary/10 text-primary":"hover:bg-surface-2"}`,children:[(0,d.jsx)("input",{type:"checkbox",checked:c,onChange:()=>{G(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"rounded"}),(0,d.jsx)("span",{children:b}),(0,d.jsxs)("span",{className:"text-text-muted ml-auto text-[10px]",children:[Array.isArray(a.models)?a.models.length:0," models"]})]},b)})}),L&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"This key can access all combos."})]}),(0,d.jsxs)("div",{className:"text-xs text-text-muted bg-surface-2 rounded-lg p-3 border border-border-subtle",children:[(0,d.jsx)("p",{className:"font-medium mb-1",children:"How it works:"}),(0,d.jsxs)("ul",{className:"list-disc pl-4 space-y-0.5",children:[(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"All allowed"})," = unrestricted (default). No ACL filtering."]}),(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"Unchecked + empty"})," = deny everything of that type."]}),(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"Checked items"})," = only those items are accessible."]})]})]}),(0,d.jsxs)("div",{className:"flex gap-3",children:[(0,d.jsx)(f.Button,{onClick:()=>y(null),variant:"ghost",fullWidth:!0,disabled:N,children:"Cancel"}),(0,d.jsx)(f.Button,{onClick:bM,fullWidth:!0,disabled:N,children:N?"Saving...":"Save ACL"})]})]})}),(0,d.jsx)(f.Modal,{isOpen:aT,title:"Enable Tunnel",onClose:()=>aU(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"cloud_upload"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:"Cloudflare Tunnel"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Expose your local 9Router to the internet. No port forwarding, no static IP needed. Share endpoint URL with your team or use it in Cursor, Cline, and other AI tools from anywhere."})]})]})}),(0,d.jsx)("div",{className:"grid grid-cols-2 gap-3",children:h.oX.map(a=>(0,d.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-lg bg-sidebar/50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-xl text-primary mb-1",children:a.icon}),(0,d.jsx)("p",{className:"text-xs font-semibold",children:a.title}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:a.desc})]},a.title))}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:bP,fullWidth:!0,children:"Start Tunnel"}),(0,d.jsx)(f.Button,{onClick:()=>aU(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,d.jsx)(f.Modal,{isOpen:aV,title:"Disable Tunnel",onClose:()=>!aN&&aW(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:bQ,fullWidth:!0,disabled:aN,variant:"danger",children:aN?"Disabling...":"Disable"}),(0,d.jsx)(f.Button,{onClick:()=>aW(!1),variant:"ghost",fullWidth:!0,disabled:aN,children:"Cancel"})]})]})}),(0,d.jsx)(f.Modal,{isOpen:bl,title:"Tailscale Funnel",onClose:()=>{bd||(bm(!1),bi(""),a6(null))},children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[null===bb&&(0,d.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),!1===bb&&!bd&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:bS,fullWidth:!0,children:"Install Tailscale"}),(0,d.jsx)(f.Button,{onClick:()=>bm(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),bd&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),bf.length>0&&(0,d.jsx)("div",{ref:bp,className:"bg-black/5 dark:bg-white/5 rounded p-2 max-h-40 overflow-y-auto font-mono text-xs text-text-muted",children:bf.map((a,b)=>(0,d.jsx)("div",{children:a},b))})]}),!0===bb&&!bd&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:()=>bW(),fullWidth:!0,children:"Connect"}),(0,d.jsx)(f.Button,{onClick:()=>bm(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),a5&&(0,d.jsx)(j,{status:a5})]})}),(0,d.jsx)(f.Modal,{isOpen:bn,title:"Disable Tailscale",onClose:()=>!a1&&bo(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:bY,fullWidth:!0,disabled:a1,variant:"danger",children:a1?"Disabling...":"Disable"}),(0,d.jsx)(f.Button,{onClick:()=>bo(!1),variant:"ghost",fullWidth:!0,disabled:a1,children:"Cancel"})]})]})}),(0,d.jsx)(f.Modal,{isOpen:an,title:b3?"Headroom":"Setup Headroom",onClose:()=>ao(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,d.jsx)("span",{children:"Status"}),(0,d.jsx)("span",{className:b3?"text-success":"text-warning",children:b7})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:"Proxy URL"}),(0,d.jsx)(f.Input,{value:ah,onChange:a=>ai(a.target.value),onBlur:bI,placeholder:"http://localhost:8787",className:"font-mono text-sm"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Use a local proxy for Start/Stop, or an external Docker sidecar like http://headroom:8787."})]}),b6?(0,d.jsx)(f.Button,{onClick:bL,variant:"ghost",fullWidth:!0,disabled:ap,children:ap?"Stopping…":"Stop Headroom"}):b3?(0,d.jsx)("p",{className:"text-sm text-success",children:"Headroom proxy is reachable. You can enable the token saver."}):b5?(0,d.jsx)(f.Button,{onClick:bK,fullWidth:!0,disabled:ap,children:ap?"Starting…":"Start Headroom"}):b4?al.python?(0,d.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:"Install then click Start:"}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("pre",{className:"flex-1 rounded bg-black/5 dark:bg-white/5 p-2 text-xs font-mono overflow-x-auto",children:'pip install "headroom-ai[proxy]"'}),(0,d.jsx)(f.Button,{size:"sm",variant:"ghost",onClick:()=>bA('pip install "headroom-ai[proxy]"'),children:bz?"Copied":"Copy"})]})]}):(0,d.jsx)("p",{className:"text-sm text-warning",children:"Python ≥ 3.10 required for local managed mode. Install Python first, or use an external proxy URL."}):(0,d.jsx)("p",{className:"text-sm text-warning",children:"Start Headroom separately at the configured URL, then recheck."}),ar&&(0,d.jsx)("p",{className:"text-sm text-warning",children:ar}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:()=>bJ(),variant:"ghost",fullWidth:!0,children:"Recheck"}),(0,d.jsx)(f.Button,{onClick:()=>ao(!1),fullWidth:!0,children:"Done"})]})]})}),(0,d.jsx)(f.ConfirmModal,{isOpen:!!v,onClose:()=>w(null),onConfirm:v?.onConfirm,title:v?.title||"Confirm",message:v?.message,variant:"danger"})]})}},45961:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g});var d=c(66238);c(71183);var e=c(84725),f=c.n(e);function g({error:a,reset:b}){return(0,d.jsx)("section",{className:"flex min-h-[calc(100vh-9rem)] items-center justify-center",children:(0,d.jsxs)("div",{className:"w-full max-w-lg rounded-lg border border-border bg-surface p-6 shadow-soft",children:[(0,d.jsx)("div",{className:"mb-4 flex h-11 w-11 items-center justify-center rounded-lg bg-red-500/10 text-red-600 dark:text-red-400",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"warning"})}),(0,d.jsx)("h1",{className:"text-xl font-semibold text-text-main",children:"Dashboard error"}),(0,d.jsx)("p",{className:"mt-2 text-sm leading-6 text-text-muted",children:"This dashboard view failed to render. Retry the view or head back to the dashboard home."}),a?.message?(0,d.jsx)("pre",{className:"mt-4 max-h-36 overflow-auto rounded-md border border-border bg-surface-2 p-3 text-xs text-text-muted",children:a.message}):null,(0,d.jsxs)("div",{className:"mt-6 flex flex-wrap gap-3",children:[(0,d.jsxs)("button",{type:"button",onClick:b,className:"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-primary-hover",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"refresh"}),"Try again"]}),(0,d.jsxs)(f(),{href:"/dashboard",className:"inline-flex items-center gap-2 rounded-md border border-border bg-surface px-4 py-2 text-sm font-medium text-text-main transition-colors hover:bg-surface-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"home"}),"Dashboard"]})]})]})})}},47298:(a,b,c)=>{Promise.resolve().then(c.bind(c,43736))},48960:(a,b,c)=>{Promise.resolve().then(c.bind(c,39364))},58686:(a,b,c)=>{"use strict";c.d(b,{Cp:()=>g,Hx:()=>f,Iv:()=>k,Nv:()=>m,RL:()=>j,ev:()=>l,fl:()=>h,hT:()=>d,oX:()=>e,t6:()=>i});let d=["zh-CN","zh-TW"],e=[{icon:"public",title:"Access Anywhere",desc:"Use your API from any network"},{icon:"group",title:"Share Endpoint",desc:"Share URL with team members"},{icon:"code",title:"Use in Cursor/Cline",desc:"Connect AI tools remotely"},{icon:"lock",title:"Encrypted",desc:"End-to-end TLS via Cloudflare"}],f=2e3,g=3e5,h=5e3,i=5,j=1e4,k=5e3,l=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}],m=[{id:"lite",label:"Lite",desc:"Build asked, name lazier option"},{id:"full",label:"Full",desc:"Ladder enforced: stdlib/native first"},{id:"ultra",label:"Ultra",desc:"YAGNI extremist, deletion first"}]},61643:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(1904),e=c(88844);function f({children:a}){return(0,d.jsx)(e.DashboardLayout,{children:a})}},63420:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(65285);async function e(){return await (0,d.Xj)()}},65285:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(70690),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(88590);let l=h().join(k.n,"machine-id"),m=h().join(k.n,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.n,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="9r-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},85408:(a,b,c)=>{Promise.resolve().then(c.bind(c,31441))},85873:(a,b,c)=>{Promise.resolve().then(c.bind(c,45961))},88844:(a,b,c)=>{let{createProxy:d}=c(78291);a.exports=d("/home/runner/work/VansRouter/VansRouter/src/shared/components/index.js")},95601:(a,b,c)=>{Promise.resolve().then(c.bind(c,35411))}};
|
|
3
|
+
This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{x(null),b2(a.id,b)}}):b2(a.id,b)},title:a.isActive?"Pause key":"Resume key"}),(0,d.jsx)("button",{onClick:()=>b1(a.id),className:"p-2 hover:bg-red-500/10 rounded text-red-500 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},a.id)})})]}),(0,d.jsx)(f.Modal,{isOpen:q,title:"Create API Key",onClose:()=>{r(!1),t("")},children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(f.Input,{label:"Key Name",value:s,onChange:a=>t(a.target.value),placeholder:"Production Key"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:b0,fullWidth:!0,disabled:!s.trim(),children:"Create"}),(0,d.jsx)(f.Button,{onClick:()=>{r(!1),t("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,d.jsx)(f.Modal,{isOpen:!!u,title:"API Key Created",onClose:()=>v(null),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,d.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:"Save this key now!"}),(0,d.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:"This is the only time you will see this key. Store it securely."})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Input,{value:u||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,d.jsx)(f.Button,{variant:"secondary",icon:"created_key"===bA?"check":"content_copy",onClick:()=>bB(u,"created_key"),children:"created_key"===bA?"Copied!":"Copy"})]}),(0,d.jsx)(f.Button,{onClick:()=>v(null),fullWidth:!0,children:"Done"})]})}),(0,d.jsx)(f.Modal,{isOpen:!!y,title:`Edit Access: ${y?.name||""}`,onClose:()=>!O&&z(null),children:(0,d.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Key Name"}),(0,d.jsx)(f.Input,{value:A,onChange:a=>B(a.target.value),placeholder:"Key name"})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsx)("label",{className:"text-sm font-medium",children:"Service Kinds"}),(0,d.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:I,onChange:a=>J(a.target.checked)}),(0,d.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!I&&(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:["llm","embedding","image","tts","stt","webSearch","webFetch"].map(a=>(0,d.jsxs)("label",{className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg border text-xs cursor-pointer transition-colors ${C.includes(a)?"border-primary bg-primary/10 text-primary":"border-border-subtle text-text-muted hover:border-primary/40"}`,children:[(0,d.jsx)("input",{type:"checkbox",className:"hidden",checked:C.includes(a),onChange:()=>{D(b=>b.includes(a)?b.filter(b=>b!==a):[...b,a])}}),a]},a))}),I&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"This key can access all service kinds."})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsx)("label",{className:"text-sm font-medium",children:"Providers"}),(0,d.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:K,onChange:a=>L(a.target.checked)}),(0,d.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!K&&(0,d.jsx)("div",{className:"max-h-60 overflow-y-auto border border-border-subtle rounded-lg p-2 space-y-1",children:0===Q.length?(0,d.jsx)("p",{className:"text-xs text-text-muted p-2",children:"No providers configured."}):Q.map(a=>{let b=E.includes(a.id);return(0,d.jsxs)("label",{className:`flex items-center gap-2 px-2 py-2 rounded text-xs cursor-pointer transition-colors ${b?"bg-primary/10 text-primary":"hover:bg-surface-2"}`,children:[(0,d.jsx)("input",{type:"checkbox",checked:b,onChange:()=>{var b;return b=a.id,void F(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"rounded"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"font-medium",children:a.displayName}),a.prefix&&(0,d.jsx)("span",{className:"ml-1.5 text-[10px] px-1 py-0.5 rounded bg-surface-2 text-text-muted font-mono",children:a.prefix})]}),(0,d.jsxs)("span",{className:"text-text-muted text-[10px] shrink-0",children:[a.count," conn"]})]},a.id)})}),K&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["This key can access all providers (",Q.length,")."]})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,d.jsx)("label",{className:"text-sm font-medium",children:"Combos"}),(0,d.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:M,onChange:a=>N(a.target.checked)}),(0,d.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!M&&(0,d.jsx)("div",{className:"max-h-40 overflow-y-auto border border-border-subtle rounded-lg p-2 space-y-1",children:0===U.length?(0,d.jsx)("p",{className:"text-xs text-text-muted p-2",children:"No combos configured."}):U.map(a=>{let b=a.name||a.id,c=G.includes(b);return(0,d.jsxs)("label",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs cursor-pointer transition-colors ${c?"bg-primary/10 text-primary":"hover:bg-surface-2"}`,children:[(0,d.jsx)("input",{type:"checkbox",checked:c,onChange:()=>{H(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"rounded"}),(0,d.jsx)("span",{children:b}),(0,d.jsxs)("span",{className:"text-text-muted ml-auto text-[10px]",children:[Array.isArray(a.models)?a.models.length:0," models"]})]},b)})}),M&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"This key can access all combos."})]}),(0,d.jsxs)("div",{className:"text-xs text-text-muted bg-surface-2 rounded-lg p-3 border border-border-subtle",children:[(0,d.jsx)("p",{className:"font-medium mb-1",children:"How it works:"}),(0,d.jsxs)("ul",{className:"list-disc pl-4 space-y-0.5",children:[(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"All allowed"})," = unrestricted (default). No ACL filtering."]}),(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"Unchecked + empty"})," = deny everything of that type."]}),(0,d.jsxs)("li",{children:[(0,d.jsx)("strong",{children:"Checked items"})," = only those items are accessible."]})]})]}),(0,d.jsxs)("div",{className:"flex gap-3",children:[(0,d.jsx)(f.Button,{onClick:()=>z(null),variant:"ghost",fullWidth:!0,disabled:O,children:"Cancel"}),(0,d.jsx)(f.Button,{onClick:bO,fullWidth:!0,disabled:O,children:O?"Saving...":"Save ACL"})]})]})}),(0,d.jsx)(f.Modal,{isOpen:aU,title:"Enable Tunnel",onClose:()=>aV(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,d.jsxs)("div",{className:"flex items-start gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary",children:"cloud_upload"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:"Cloudflare Tunnel"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Expose your local 9Router to the internet. No port forwarding, no static IP needed. Share endpoint URL with your team or use it in Cursor, Cline, and other AI tools from anywhere."})]})]})}),(0,d.jsx)("div",{className:"grid grid-cols-2 gap-3",children:i.oX.map(a=>(0,d.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-lg bg-sidebar/50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-xl text-primary mb-1",children:a.icon}),(0,d.jsx)("p",{className:"text-xs font-semibold",children:a.title}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:a.desc})]},a.title))}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:bR,fullWidth:!0,children:"Start Tunnel"}),(0,d.jsx)(f.Button,{onClick:()=>aV(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,d.jsx)(f.Modal,{isOpen:aW,title:"Disable Tunnel",onClose:()=>!aO&&aX(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:bS,fullWidth:!0,disabled:aO,variant:"danger",children:aO?"Disabling...":"Disable"}),(0,d.jsx)(f.Button,{onClick:()=>aX(!1),variant:"ghost",fullWidth:!0,disabled:aO,children:"Cancel"})]})]})}),(0,d.jsx)(f.Modal,{isOpen:bm,title:"Tailscale Funnel",onClose:()=>{be||(bn(!1),bj(""),a7(null))},children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[null===bc&&(0,d.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),!1===bc&&!be&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:bU,fullWidth:!0,children:"Install Tailscale"}),(0,d.jsx)(f.Button,{onClick:()=>bn(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),be&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),bg.length>0&&(0,d.jsx)("div",{ref:bq,className:"bg-black/5 dark:bg-white/5 rounded p-2 max-h-40 overflow-y-auto font-mono text-xs text-text-muted",children:bg.map((a,b)=>(0,d.jsx)("div",{children:a},b))})]}),!0===bc&&!be&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:()=>bY(),fullWidth:!0,children:"Connect"}),(0,d.jsx)(f.Button,{onClick:()=>bn(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),a6&&(0,d.jsx)(k,{status:a6})]})}),(0,d.jsx)(f.Modal,{isOpen:bo,title:"Disable Tailscale",onClose:()=>!a2&&bp(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:b$,fullWidth:!0,disabled:a2,variant:"danger",children:a2?"Disabling...":"Disable"}),(0,d.jsx)(f.Button,{onClick:()=>bp(!1),variant:"ghost",fullWidth:!0,disabled:a2,children:"Cancel"})]})]})}),(0,d.jsx)(f.Modal,{isOpen:ao,title:b5?"Headroom":"Setup Headroom",onClose:()=>ap(!1),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,d.jsx)("span",{children:"Status"}),(0,d.jsx)("span",{className:b5?"text-success":"text-warning",children:b9})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:"Proxy URL"}),(0,d.jsx)(f.Input,{value:ai,onChange:a=>aj(a.target.value),onBlur:bJ,placeholder:"http://localhost:8787",className:"font-mono text-sm"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Use a local proxy for Start/Stop, or an external Docker sidecar like http://headroom:8787."})]}),b8?(0,d.jsx)(f.Button,{onClick:bM,variant:"ghost",fullWidth:!0,disabled:aq,children:aq?"Stopping…":"Stop Headroom"}):b5?(0,d.jsx)("p",{className:"text-sm text-success",children:"Headroom proxy is reachable. You can enable the token saver."}):b7?(0,d.jsx)(f.Button,{onClick:bL,fullWidth:!0,disabled:aq,children:aq?"Starting…":"Start Headroom"}):b6?am.python?(0,d.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,d.jsx)("p",{className:"text-sm font-medium",children:"Install then click Start:"}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("pre",{className:"flex-1 rounded bg-black/5 dark:bg-white/5 p-2 text-xs font-mono overflow-x-auto",children:'pip install "headroom-ai[proxy]"'}),(0,d.jsx)(f.Button,{size:"sm",variant:"ghost",onClick:()=>bB('pip install "headroom-ai[proxy]"'),children:bA?"Copied":"Copy"})]})]}):(0,d.jsx)("p",{className:"text-sm text-warning",children:"Python ≥ 3.10 required for local managed mode. Install Python first, or use an external proxy URL."}):(0,d.jsx)("p",{className:"text-sm text-warning",children:"Start Headroom separately at the configured URL, then recheck."}),as&&(0,d.jsx)("p",{className:"text-sm text-warning",children:as}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(f.Button,{onClick:()=>bK(),variant:"ghost",fullWidth:!0,children:"Recheck"}),(0,d.jsx)(f.Button,{onClick:()=>ap(!1),fullWidth:!0,children:"Done"})]})]})}),(0,d.jsx)(f.ConfirmModal,{isOpen:!!w,onClose:()=>x(null),onConfirm:w?.onConfirm,title:w?.title||"Confirm",message:w?.message,variant:"danger"})]})}},85408:(a,b,c)=>{Promise.resolve().then(c.bind(c,31441))},85873:(a,b,c)=>{Promise.resolve().then(c.bind(c,45961))},88844:(a,b,c)=>{let{createProxy:d}=c(78291);a.exports=d("/home/runner/work/VansRouter/VansRouter/src/shared/components/index.js")},95601:(a,b,c)=>{Promise.resolve().then(c.bind(c,35411))}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=2445,exports.ids=[1253,2445],exports.modules={5505:(a,b,c)=>{c.d(b,{UQ:()=>r,CR:()=>p,S5:()=>x,hk:()=>l,Fr:()=>B,Z6:()=>q,Qo:()=>m,kJ:()=>w,xK:()=>D,lE:()=>o,Bl:()=>v,qG:()=>C,iF:()=>y,p8:()=>A});var d=c(63448),e=c(97810),f=c(39764),g=c(91253);function h(a,b){let c=process.env[a];if(null==c||""===c)return b;let d=Number(c);return Number.isFinite(d)&&d>0?d:b}let i={oauth:{providerFailureThreshold:h("VANSROUTER_PROVIDER_FAILURE_OAUTH_THRESHOLD",10),providerFailureWindowMs:h("VANSROUTER_PROVIDER_FAILURE_OAUTH_WINDOW_MS",9e5),providerCooldownMs:h("VANSROUTER_PROVIDER_FAILURE_OAUTH_COOLDOWN_MS",3e5)},apikey:{providerFailureThreshold:h("VANSROUTER_PROVIDER_FAILURE_APIKEY_THRESHOLD",5),providerFailureWindowMs:h("VANSROUTER_PROVIDER_FAILURE_APIKEY_WINDOW_MS",3e4),providerCooldownMs:h("VANSROUTER_PROVIDER_FAILURE_APIKEY_COOLDOWN_MS",3e4)},local:{providerFailureThreshold:h("VANSROUTER_PROVIDER_FAILURE_LOCAL_THRESHOLD",2),providerFailureWindowMs:h("VANSROUTER_PROVIDER_FAILURE_LOCAL_WINDOW_MS",3e5),providerCooldownMs:h("VANSROUTER_PROVIDER_FAILURE_LOCAL_COOLDOWN_MS",6e4)}},j=new Map;function k(a,b){return Array.isArray(a)?a.some(a=>String(a).toLowerCase()===b):!!a&&"object"==typeof a&&Object.keys(a).some(a=>String(a).toLowerCase()===b)}function l(a,b,c=0){let e=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"";for(let b of d.t2)if(b.text&&e&&e.includes(b.text)||b.status&&b.status===a){if(!1===b.shouldFallback)return{shouldFallback:!1,cooldownMs:0};if(b.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(a),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:b.cooldownMs}}return{shouldFallback:!0,cooldownMs:d.wf}}function m(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return"reset after 0s";let c=Math.ceil(b/1e3),d=Math.floor(c/3600),e=Math.floor(c%3600/60),f=c%60,g=[];return d>0&&g.push(`${d}h`),e>0&&g.push(`${e}m`),(f>0||0===g.length)&&g.push(`${f}s`),`reset after ${g.join(" ")}`}let n=[/credits?.{0,20}exhausted/i,/quota.{0,20}exhausted/i,/no remaining credits/i,/insufficient[ _-]?credits/i,/payment.{0,10}required/i,/has exhausted its credits/i];function o(a,b){if(!b||"kimchi"!==a)return!1;let c="string"==typeof b?b:(()=>{try{return JSON.stringify(b)}catch{return String(b)}})();return n.some(a=>a.test(c))}function p(a=new Date){let b=function(a=new Date){let b=new Date(a.getTime());return new Date(Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()+1,0,0,0,0))}(a);return{isActive:!1,rateLimitedUntil:b.toISOString(),testStatus:"quota_exhausted",lastErrorType:"quota_exhausted",errorCode:402,quotaExhaustedAt:a.toISOString(),quotaResetsAt:b.toISOString()}}function q(a,b){if(!b||"kimchi"===a)return null;let c="string"==typeof b?b:(()=>{try{return JSON.stringify(b)}catch{return String(b)}})(),d=(0,f._c)({status:429,body:c,provider:a});return"daily_quota"!==d.kind?null:d}function r(a,b=new Date){if(!a)return{};let c=function(a=new Date){return Math.max(new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()+1,0,0,0,0)).getTime()-a.getTime(),1e3)}(b);return{[u(a)]:new Date(b.getTime()+c).toISOString()}}let s="modelLock_",t=`${s}__all`;function u(a){return a?`${s}${a}`:t}function v(a,b){let c=a[u(b)]||a[t];return!!c&&new Date(c).getTime()>Date.now()}function w(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(s)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function x(a,b){return{[u(a)]:new Date(Date.now()+b).toISOString()}}function y(a,b="direct"){if(!a)return!1;let c=(0,e.qF)(`${a}:${b}`);return!!c&&!c.canExecute()}let z=new Map;function A(a,b,c,d,f,l="direct"){if(!a)return;if(f){let b=`${a}:${l}:${f}`,c=Date.now(),d=z.get(b);if(d&&c-d<5e3)return;if(z.set(b,c),z.size>1e4){let a=Math.floor(1e3);for(let b of Array.from(z.keys()).slice(0,a))z.delete(b)}}if(b&&!e.rz.has(b))return;let m="a6api"===a||"a6api-cli"===a?{providerFailureThreshold:h("VANSROUTER_PROVIDER_FAILURE_A6API_THRESHOLD",5),providerFailureWindowMs:h("VANSROUTER_PROVIDER_FAILURE_A6API_WINDOW_MS",3e4),providerCooldownMs:3e3}:i[function(a){if(!a)return"apikey";if(j.has(a))return j.get(a);let b=String(a).toLowerCase(),c="apikey";return k(g.zN,b)?c="oauth":k(g.fg,b)?c="apikey":("ollama"===b||"local"===b||"lmstudio"===b||"kobold"===b)&&(c="local"),j.set(a,c),c}(a)]??i.apikey,n=`${a}:${l}`,o=(0,e.qF)(n,{failureThreshold:m.providerFailureThreshold,failureWindowMs:m.providerFailureWindowMs,resetTimeout:m.providerCooldownMs});!o||o.canExecute()&&(o._onFailure({statusCode:b,message:c}),o.canExecute()||d?.warn?.(`[ProviderFailure] ${n}: circuit breaker opened after ${o.failureCount} failures`))}function B(a,b="direct"){a&&(0,e.Nc)(`${a}:${b}`)}function C(a){if(!a)return!1;let b=(0,e.NO)().filter(b=>{let c=b.name||"";return c===a||c.startsWith(`${a}:`)});return 0!==b.length&&b.every(a=>{let b=(0,e.qF)(a.name);return!!(b&&!b.canExecute())})}function D(a){if(!a)return 0;let b=(0,e.NO)(),c=1/0;for(let d of b){let b=d.name||"";if(b!==a&&!b.startsWith(`${a}:`))continue;let f=(0,e.qF)(d.name);if(f&&!f.canExecute()){let a=f.getRetryAfterMs();a>0&&a<c&&(c=a)}}return c===1/0?0:c}},15261:(a,b,c)=>{c.d(b,{A1:()=>h,VO:()=>j,lR:()=>k,wO:()=>i,yj:()=>f,zL:()=>g});var d=c(63448),e=c(98757);function f(a,b){let c;return new Response(JSON.stringify((c=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:c.type,code:c.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function g(a,b=null){let c="";try{c=await a.text()}catch{c=""}if(b&&"function"==typeof b.parseError)try{let e=b.parseError(a,c);if(e&&"object"==typeof e){let b=e.message||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:e.status||a.status,message:b,resetsAtMs:e.resetsAtMs}}}catch{}let f="";try{let a=JSON.parse(c),{error:d}=(0,e.K)(a,b?.getProvider?.()||b?.provider);f=d?d.message:a.error?.message||a.message||a.error||c}catch{f=c}let h=("string"==typeof f?f:JSON.stringify(f))||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:a.status,message:h}}function h(a,b,c,d=!1){return{success:!1,status:a,error:b,resetsAtMs:c,policyError:d,response:f(a,b)}}function i(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function j(a,b){if(!a||!b)return a;let c=new Headers(a.headers);return c.set("X-VansRoute-Selected-Connection-Id",b),new Response(a.body,{status:a.status,statusText:a.statusText,headers:c})}function k(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}},39764:(a,b,c)=>{c.d(b,{_c:()=>g});let d=[/today'?s quota/i,/daily quota (exhaust|exceed|reached|used)/i,/daily limit (exhaust|exceed|reached|used)/i,/per.?day (limit|quota)/i,/daily.*exhaust/i,/exhaust.*daily/i,/daily.*cap/i,/cap.*daily/i,/reset.*tomorrow/i,/try again tomorrow/i,/come back tomorrow/i,/free.*usage.*exhaust/i,/used all.*free usage/i],e=[/monthly.*limit/i,/monthly.*quota/i,/per.?month.*limit/i,/quota.*exceed/i,/exceed.*quota/i,/insufficient.*quota/i,/billing.*cap/i,/credit.*exhaust/i,/out of credits/i,/hard.?limit/i,/plan.*limit/i,/resource.*exhaust/i,/check.*quota/i,/individual quota reached/i,/enable overages/i,/402.*billing/i,/billing.*required/i,/payment.*required/i];function f(a){if("string"==typeof a)return a;if(null==a)return"";try{return JSON.stringify(a)}catch{return""}}function g(a){let b,c;return!a||("gemini"===a.provider||"gemini-cli"===a.provider)&&function(a){let b="string"==typeof a?a:(()=>{try{return JSON.stringify(a)}catch{return String(a)}})();if(!b)return!1;let c=/resource has been exhausted/i.test(b),d=/exceeded your (current )?quota/i.test(b);return(!!c||!!d)&&!/per[- ]?minute|rpm|daily quota|per[- ]?day|monthly|user[- ]?project|billing required|payment required|reset (tomorrow|at)|will reset/i.test(b)}(a.body)?{kind:"rate_limit",cooldownMs:6e4}:(b=f(a.body))&&d.some(a=>a.test(b))?{kind:"daily_quota",cooldownMs:function(a=new Date){return Math.max(1,new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()+1,0,0,0,0)).getTime()-a.getTime())}()}:(c=f(a.body))&&e.some(a=>a.test(c))?{kind:"quota_exhausted",cooldownMs:36e5}:{kind:"rate_limit",cooldownMs:6e4}}},91253:(a,b,c)=>{c.d(b,{AI_PROVIDERS:()=>s,js:()=>w,DI:()=>n,fg:()=>k,Pd:()=>o,IS:()=>h,nJ:()=>i,zN:()=>j,JH:()=>m,jO:()=>y,wb:()=>x,br:()=>l,wG:()=>v,zt:()=>t,gb:()=>q,gC:()=>r,mq:()=>p,rs:()=>u});var d=c(53813);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.A.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.A.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.authModes?{authModes:a.authModes}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m="openai-compatible-",n="anthropic-compatible-",o="custom-embedding-";function p(a){return"string"==typeof a&&a.startsWith(m)}function q(a){return"string"==typeof a&&a.startsWith(n)}function r(a){return"string"==typeof a&&a.startsWith(o)}let s={...h,...i,...j,...k,...l};function t(a){for(let b of Object.values(s))if(b.alias===a||b.id===a)return b;return null}function u(a){let b=t(a);return b?.id||a}function v(a){let b=s[a];return b?.alias||a}let w=Object.values(s).reduce((a,b)=>(a[b.alias]=b.id,a),{});Object.values(s).reduce((a,b)=>(a[b.id]=b.alias,a),{});let x=d.A.filter(a=>a.features?.usage).map(a=>a.id),y=d.A.filter(a=>a.features?.usageApikey).map(a=>a.id)},97810:(a,b,c)=>{c.d(b,{NO:()=>l,Nc:()=>m,qF:()=>k,rz:()=>h});let d="CLOSED",e="DEGRADED",f="OPEN",g="HALF_OPEN",h=new Set([408,500,502,503,504]);class i{constructor(a,b={}){this.name=a,this.state=d,this.failureCount=0,this.successCount=0,this.lastFailureTime=null,this.lastStateChange=Date.now(),this.openedAt=null,this.resetTimeoutMs=b.resetTimeout||3e4,this.failureThreshold=b.failureThreshold||5,this.failureWindowMs=b.failureWindowMs||0,this.failureTimestamps=[],this.halfOpenRequests=b.halfOpenRequests||1,this.halfOpenRemaining=0,this.maxBackoffMultiplier=b.maxBackoffMultiplier||16,this.backoffEscalationCount=b.backoffEscalationCount||3,this.openProbeCycles=0,this.degradationThreshold=b.degradationThreshold||Math.floor(.6*this.failureThreshold),this.cooldownByKind=b.cooldownByKind||{},this.classifyError=b.classifyError||null,this.isFailure=b.isFailure||null,this.kindThresholds=b.kindThresholds||{},this._transitionHistory=[]}_transition(a){let b=this.state;this.state=a,this.lastStateChange=Date.now(),this._transitionHistory.push({from:b,to:a,at:new Date().toISOString()}),this._transitionHistory.length>20&&this._transitionHistory.shift(),a===f?(this.openedAt=Date.now(),this.halfOpenRemaining=0):a===g?this.halfOpenRemaining=this.halfOpenRequests:a===d&&(this.failureCount=0,this.successCount=0,this.openProbeCycles=0,this.openedAt=null)}canExecute(){let a=Date.now();if(this.state===d||this.state===e)return!0;if(this.state===f){let b=a-(this.openedAt||a),c=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier);return b>=this.resetTimeoutMs*c&&(this._transition(g),!0)}return this.state!==g||this.halfOpenRemaining>0&&(this.halfOpenRemaining--,!0)}_onSuccess(){this.successCount++,this.state===g?this._transition(d):this.state===e&&this.successCount>=this.failureThreshold&&this._transition(d)}_pruneFailureTimestamps(){if(!this.failureWindowMs||this.failureWindowMs<=0)return;let a=Date.now()-this.failureWindowMs,b=this.failureTimestamps.findIndex(b=>b>=a);b>0?this.failureTimestamps=this.failureTimestamps.slice(b):-1===b&&(this.failureTimestamps=[])}_countFailuresInWindow(){return!this.failureWindowMs||this.failureWindowMs<=0?this.failureCount:(this._pruneFailureTimestamps(),this.failureTimestamps.length)}_onFailure(a){if(this.isFailure&&!this.isFailure(a))return;if(this.failureCount++,this.lastFailureTime=Date.now(),this.failureWindowMs>0&&(this.failureTimestamps.push(Date.now()),this._pruneFailureTimestamps()),this.state===g){this.openProbeCycles++,this._transition(f);return}if(this.state===f)return;let b=this.classifyError?this.classifyError(a):"transient",c=this.kindThresholds[b];if(c?.immediateOpen)return void this._transition(f);let h=c?.threshold||this.failureThreshold,i=this._countFailuresInWindow();i>=h?this._transition(f):i>=this.degradationThreshold&&this.state===d&&this._transition(e)}getRetryAfterMs(){if(this.state!==f||!this.openedAt)return 0;let a=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier),b=this.resetTimeoutMs*a-(Date.now()-(this.openedAt||Date.now()));return b>0?b:0}reset(){this._transition(d)}getStatus(){return{name:this.name,state:this.state,failureCount:this.failureCount,successCount:this.successCount,lastFailureTime:this.lastFailureTime,retryAfterMs:this.getRetryAfterMs(),openedAt:this.openedAt,transitions:this._transitionHistory.slice(-5)}}}let j=new Map;function k(a,b){if(!a)return null;let c=j.get(a);return c?(b&&(null!=b.failureThreshold&&(c.failureThreshold=b.failureThreshold),null!=b.resetTimeout&&(c.resetTimeoutMs=b.resetTimeout),null!=b.degradationThreshold&&(c.degradationThreshold=b.degradationThreshold),b.cooldownByKind&&(c.cooldownByKind=b.cooldownByKind),b.classifyError&&(c.classifyError=b.classifyError),b.isFailure&&(c.isFailure=b.isFailure),b.kindThresholds&&(c.kindThresholds=b.kindThresholds),null!=b.maxBackoffMultiplier&&(c.maxBackoffMultiplier=b.maxBackoffMultiplier),null!=b.backoffEscalationCount&&(c.backoffEscalationCount=b.backoffEscalationCount)),c):b?(c=new i(a,b),j.set(a,c),c):null}function l(){return Array.from(j.values()).map(a=>a.getStatus())}function m(a){let b=j.get(a);b&&b.reset()}},98757:(a,b,c)=>{c.d(b,{K:()=>d});function d(a,b){return!("clinepass"!==b||!a||"object"!=typeof a||Array.isArray(a))&&"success"in a?!1===a.success?{body:null,error:{message:"string"==typeof a.error?a.error:a.error?.message||a.message||"Upstream error",status:a.statusCode||null}}:!0===a.success&&"data"in a&&null!==a.data&&"object"==typeof a.data?{body:a.data,error:null}:{body:a,error:null}:{body:a,error:null}}}};
|
|
1
|
+
"use strict";exports.id=2445,exports.ids=[2445,3128],exports.modules={5505:(a,b,c)=>{c.d(b,{UQ:()=>r,CR:()=>p,S5:()=>x,hk:()=>l,Fr:()=>B,Z6:()=>q,Qo:()=>m,kJ:()=>w,xK:()=>D,lE:()=>o,Bl:()=>v,qG:()=>C,iF:()=>y,p8:()=>A});var d=c(63448),e=c(97810),f=c(39764),g=c(10747);function h(a,b){let c=process.env[a];if(null==c||""===c)return b;let d=Number(c);return Number.isFinite(d)&&d>0?d:b}let i={oauth:{providerFailureThreshold:h("VANSROUTER_PROVIDER_FAILURE_OAUTH_THRESHOLD",10),providerFailureWindowMs:h("VANSROUTER_PROVIDER_FAILURE_OAUTH_WINDOW_MS",9e5),providerCooldownMs:h("VANSROUTER_PROVIDER_FAILURE_OAUTH_COOLDOWN_MS",3e5)},apikey:{providerFailureThreshold:h("VANSROUTER_PROVIDER_FAILURE_APIKEY_THRESHOLD",5),providerFailureWindowMs:h("VANSROUTER_PROVIDER_FAILURE_APIKEY_WINDOW_MS",3e4),providerCooldownMs:h("VANSROUTER_PROVIDER_FAILURE_APIKEY_COOLDOWN_MS",3e4)},local:{providerFailureThreshold:h("VANSROUTER_PROVIDER_FAILURE_LOCAL_THRESHOLD",2),providerFailureWindowMs:h("VANSROUTER_PROVIDER_FAILURE_LOCAL_WINDOW_MS",3e5),providerCooldownMs:h("VANSROUTER_PROVIDER_FAILURE_LOCAL_COOLDOWN_MS",6e4)}},j=new Map;function k(a,b){return Array.isArray(a)?a.some(a=>String(a).toLowerCase()===b):!!a&&"object"==typeof a&&Object.keys(a).some(a=>String(a).toLowerCase()===b)}function l(a,b,c=0){let e=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"";for(let b of d.t2)if(b.text&&e&&e.includes(b.text)||b.status&&b.status===a){if(!1===b.shouldFallback)return{shouldFallback:!1,cooldownMs:0};if(b.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(a),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:b.cooldownMs}}return{shouldFallback:!0,cooldownMs:d.wf}}function m(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return"reset after 0s";let c=Math.ceil(b/1e3),d=Math.floor(c/3600),e=Math.floor(c%3600/60),f=c%60,g=[];return d>0&&g.push(`${d}h`),e>0&&g.push(`${e}m`),(f>0||0===g.length)&&g.push(`${f}s`),`reset after ${g.join(" ")}`}let n=[/credits?.{0,20}exhausted/i,/quota.{0,20}exhausted/i,/no remaining credits/i,/insufficient[ _-]?credits/i,/payment.{0,10}required/i,/has exhausted its credits/i];function o(a,b){if(!b||"kimchi"!==a)return!1;let c="string"==typeof b?b:(()=>{try{return JSON.stringify(b)}catch{return String(b)}})();return n.some(a=>a.test(c))}function p(a=new Date){let b=function(a=new Date){let b=new Date(a.getTime());return new Date(Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()+1,0,0,0,0))}(a);return{isActive:!1,rateLimitedUntil:b.toISOString(),testStatus:"quota_exhausted",lastErrorType:"quota_exhausted",errorCode:402,quotaExhaustedAt:a.toISOString(),quotaResetsAt:b.toISOString()}}function q(a,b){if(!b||"kimchi"===a)return null;let c="string"==typeof b?b:(()=>{try{return JSON.stringify(b)}catch{return String(b)}})(),d=(0,f._c)({status:429,body:c,provider:a});return"daily_quota"!==d.kind?null:d}function r(a,b=new Date){if(!a)return{};let c=function(a=new Date){return Math.max(new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()+1,0,0,0,0)).getTime()-a.getTime(),1e3)}(b);return{[u(a)]:new Date(b.getTime()+c).toISOString()}}let s="modelLock_",t=`${s}__all`;function u(a){return a?`${s}${a}`:t}function v(a,b){let c=a[u(b)]||a[t];return!!c&&new Date(c).getTime()>Date.now()}function w(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(s)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function x(a,b){return{[u(a)]:new Date(Date.now()+b).toISOString()}}function y(a,b="direct"){if(!a)return!1;let c=(0,e.qF)(`${a}:${b}`);return!!c&&!c.canExecute()}let z=new Map;function A(a,b,c,d,f,l="direct"){if(!a)return;if(f){let b=`${a}:${l}:${f}`,c=Date.now(),d=z.get(b);if(d&&c-d<5e3)return;if(z.set(b,c),z.size>1e4){let a=Math.floor(1e3);for(let b of Array.from(z.keys()).slice(0,a))z.delete(b)}}if(b&&!e.rz.has(b))return;let m="a6api"===a||"a6api-cli"===a?{providerFailureThreshold:h("VANSROUTER_PROVIDER_FAILURE_A6API_THRESHOLD",5),providerFailureWindowMs:h("VANSROUTER_PROVIDER_FAILURE_A6API_WINDOW_MS",3e4),providerCooldownMs:3e3}:i[function(a){if(!a)return"apikey";if(j.has(a))return j.get(a);let b=String(a).toLowerCase(),c="apikey";return k(g.zN,b)?c="oauth":k(g.fg,b)?c="apikey":("ollama"===b||"local"===b||"lmstudio"===b||"kobold"===b)&&(c="local"),j.set(a,c),c}(a)]??i.apikey,n=`${a}:${l}`,o=(0,e.qF)(n,{failureThreshold:m.providerFailureThreshold,failureWindowMs:m.providerFailureWindowMs,resetTimeout:m.providerCooldownMs});!o||o.canExecute()&&(o._onFailure({statusCode:b,message:c}),o.canExecute()||d?.warn?.(`[ProviderFailure] ${n}: circuit breaker opened after ${o.failureCount} failures`))}function B(a,b="direct"){a&&(0,e.Nc)(`${a}:${b}`)}function C(a){if(!a)return!1;let b=(0,e.NO)().filter(b=>{let c=b.name||"";return c===a||c.startsWith(`${a}:`)});return 0!==b.length&&b.every(a=>{let b=(0,e.qF)(a.name);return!!(b&&!b.canExecute())})}function D(a){if(!a)return 0;let b=(0,e.NO)(),c=1/0;for(let d of b){let b=d.name||"";if(b!==a&&!b.startsWith(`${a}:`))continue;let f=(0,e.qF)(d.name);if(f&&!f.canExecute()){let a=f.getRetryAfterMs();a>0&&a<c&&(c=a)}}return c===1/0?0:c}},10747:(a,b,c)=>{c.d(b,{AI_PROVIDERS:()=>r,DI:()=>m,IS:()=>g,JH:()=>l,Pd:()=>n,br:()=>k,fg:()=>j,gC:()=>q,gb:()=>p,jO:()=>x,js:()=>v,mq:()=>o,nJ:()=>h,rs:()=>t,wG:()=>u,wb:()=>w,zN:()=>i,zt:()=>s});var d=c(67128);let e=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","modelsFetcher","mediaPriority","hiddenKinds"],f=a=>Object.fromEntries(d.A.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),e))void 0!==a[c]&&(b[c]=a[c]);return{...{...a.display||{}},id:a.id,alias:a.uiAlias||a.alias,...a.aliases?{aliases:a.aliases}:{},...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.authModes?{authModes:a.authModes}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{}}}(a)])),g=f("free"),h=f("freeTier"),i=f("oauth"),j=f("apikey"),k=f("webCookie"),l="openai-compatible-",m="anthropic-compatible-",n="custom-embedding-";function o(a){return"string"==typeof a&&a.startsWith(l)}function p(a){return"string"==typeof a&&a.startsWith(m)}function q(a){return"string"==typeof a&&a.startsWith(n)}let r={...g,...h,...i,...j,...k};function s(a){for(let b of Object.values(r))if(b.alias===a||b.id===a||b.aliases?.includes(a))return b;return null}function t(a){let b=s(a);return b?.id||a}function u(a){let b=r[a];return b?.alias||a}let v=Object.values(r).reduce((a,b)=>{for(let c of(a[b.alias]=b.id,b.aliases||[]))a[c]=b.id;return a},{});Object.values(r).reduce((a,b)=>(a[b.id]=b.alias,a),{});let w=d.A.filter(a=>a.features?.usage).map(a=>a.id),x=d.A.filter(a=>a.features?.usageApikey).map(a=>a.id)},15261:(a,b,c)=>{c.d(b,{A1:()=>h,VO:()=>j,lR:()=>k,wO:()=>i,yj:()=>f,zL:()=>g});var d=c(63448),e=c(98757);function f(a,b){let c;return new Response(JSON.stringify((c=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:c.type,code:c.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function g(a,b=null){let c="";try{c=await a.text()}catch{c=""}if(b&&"function"==typeof b.parseError)try{let e=b.parseError(a,c);if(e&&"object"==typeof e){let b=e.message||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:e.status||a.status,message:b,resetsAtMs:e.resetsAtMs}}}catch{}let f="";try{let a=JSON.parse(c),{error:d}=(0,e.K)(a,b?.getProvider?.()||b?.provider);f=d?d.message:a.error?.message||a.message||a.error||c}catch{f=c}let h=("string"==typeof f?f:JSON.stringify(f))||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:a.status,message:h}}function h(a,b,c,d=!1){return{success:!1,status:a,error:b,resetsAtMs:c,policyError:d,response:f(a,b)}}function i(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function j(a,b){if(!a||!b)return a;let c=new Headers(a.headers);return c.set("X-VansRoute-Selected-Connection-Id",b),new Response(a.body,{status:a.status,statusText:a.statusText,headers:c})}function k(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}},39764:(a,b,c)=>{c.d(b,{_c:()=>g});let d=[/today'?s quota/i,/daily quota (exhaust|exceed|reached|used)/i,/daily limit (exhaust|exceed|reached|used)/i,/per.?day (limit|quota)/i,/daily.*exhaust/i,/exhaust.*daily/i,/daily.*cap/i,/cap.*daily/i,/reset.*tomorrow/i,/try again tomorrow/i,/come back tomorrow/i,/free.*usage.*exhaust/i,/used all.*free usage/i],e=[/monthly.*limit/i,/monthly.*quota/i,/per.?month.*limit/i,/quota.*exceed/i,/exceed.*quota/i,/insufficient.*quota/i,/billing.*cap/i,/credit.*exhaust/i,/out of credits/i,/hard.?limit/i,/plan.*limit/i,/resource.*exhaust/i,/check.*quota/i,/individual quota reached/i,/enable overages/i,/402.*billing/i,/billing.*required/i,/payment.*required/i];function f(a){if("string"==typeof a)return a;if(null==a)return"";try{return JSON.stringify(a)}catch{return""}}function g(a){let b,c;return!a||("gemini"===a.provider||"gemini-cli"===a.provider)&&function(a){let b="string"==typeof a?a:(()=>{try{return JSON.stringify(a)}catch{return String(a)}})();if(!b)return!1;let c=/resource has been exhausted/i.test(b),d=/exceeded your (current )?quota/i.test(b);return(!!c||!!d)&&!/per[- ]?minute|rpm|daily quota|per[- ]?day|monthly|user[- ]?project|billing required|payment required|reset (tomorrow|at)|will reset/i.test(b)}(a.body)?{kind:"rate_limit",cooldownMs:6e4}:(b=f(a.body))&&d.some(a=>a.test(b))?{kind:"daily_quota",cooldownMs:function(a=new Date){return Math.max(1,new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()+1,0,0,0,0)).getTime()-a.getTime())}()}:(c=f(a.body))&&e.some(a=>a.test(c))?{kind:"quota_exhausted",cooldownMs:36e5}:{kind:"rate_limit",cooldownMs:6e4}}},97810:(a,b,c)=>{c.d(b,{NO:()=>l,Nc:()=>m,qF:()=>k,rz:()=>h});let d="CLOSED",e="DEGRADED",f="OPEN",g="HALF_OPEN",h=new Set([408,500,502,503,504]);class i{constructor(a,b={}){this.name=a,this.state=d,this.failureCount=0,this.successCount=0,this.lastFailureTime=null,this.lastStateChange=Date.now(),this.openedAt=null,this.resetTimeoutMs=b.resetTimeout||3e4,this.failureThreshold=b.failureThreshold||5,this.failureWindowMs=b.failureWindowMs||0,this.failureTimestamps=[],this.halfOpenRequests=b.halfOpenRequests||1,this.halfOpenRemaining=0,this.maxBackoffMultiplier=b.maxBackoffMultiplier||16,this.backoffEscalationCount=b.backoffEscalationCount||3,this.openProbeCycles=0,this.degradationThreshold=b.degradationThreshold||Math.floor(.6*this.failureThreshold),this.cooldownByKind=b.cooldownByKind||{},this.classifyError=b.classifyError||null,this.isFailure=b.isFailure||null,this.kindThresholds=b.kindThresholds||{},this._transitionHistory=[]}_transition(a){let b=this.state;this.state=a,this.lastStateChange=Date.now(),this._transitionHistory.push({from:b,to:a,at:new Date().toISOString()}),this._transitionHistory.length>20&&this._transitionHistory.shift(),a===f?(this.openedAt=Date.now(),this.halfOpenRemaining=0):a===g?this.halfOpenRemaining=this.halfOpenRequests:a===d&&(this.failureCount=0,this.successCount=0,this.openProbeCycles=0,this.openedAt=null)}canExecute(){let a=Date.now();if(this.state===d||this.state===e)return!0;if(this.state===f){let b=a-(this.openedAt||a),c=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier);return b>=this.resetTimeoutMs*c&&(this._transition(g),!0)}return this.state!==g||this.halfOpenRemaining>0&&(this.halfOpenRemaining--,!0)}_onSuccess(){this.successCount++,this.state===g?this._transition(d):this.state===e&&this.successCount>=this.failureThreshold&&this._transition(d)}_pruneFailureTimestamps(){if(!this.failureWindowMs||this.failureWindowMs<=0)return;let a=Date.now()-this.failureWindowMs,b=this.failureTimestamps.findIndex(b=>b>=a);b>0?this.failureTimestamps=this.failureTimestamps.slice(b):-1===b&&(this.failureTimestamps=[])}_countFailuresInWindow(){return!this.failureWindowMs||this.failureWindowMs<=0?this.failureCount:(this._pruneFailureTimestamps(),this.failureTimestamps.length)}_onFailure(a){if(this.isFailure&&!this.isFailure(a))return;if(this.failureCount++,this.lastFailureTime=Date.now(),this.failureWindowMs>0&&(this.failureTimestamps.push(Date.now()),this._pruneFailureTimestamps()),this.state===g){this.openProbeCycles++,this._transition(f);return}if(this.state===f)return;let b=this.classifyError?this.classifyError(a):"transient",c=this.kindThresholds[b];if(c?.immediateOpen)return void this._transition(f);let h=c?.threshold||this.failureThreshold,i=this._countFailuresInWindow();i>=h?this._transition(f):i>=this.degradationThreshold&&this.state===d&&this._transition(e)}getRetryAfterMs(){if(this.state!==f||!this.openedAt)return 0;let a=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier),b=this.resetTimeoutMs*a-(Date.now()-(this.openedAt||Date.now()));return b>0?b:0}reset(){this._transition(d)}getStatus(){return{name:this.name,state:this.state,failureCount:this.failureCount,successCount:this.successCount,lastFailureTime:this.lastFailureTime,retryAfterMs:this.getRetryAfterMs(),openedAt:this.openedAt,transitions:this._transitionHistory.slice(-5)}}}let j=new Map;function k(a,b){if(!a)return null;let c=j.get(a);return c?(b&&(null!=b.failureThreshold&&(c.failureThreshold=b.failureThreshold),null!=b.resetTimeout&&(c.resetTimeoutMs=b.resetTimeout),null!=b.degradationThreshold&&(c.degradationThreshold=b.degradationThreshold),b.cooldownByKind&&(c.cooldownByKind=b.cooldownByKind),b.classifyError&&(c.classifyError=b.classifyError),b.isFailure&&(c.isFailure=b.isFailure),b.kindThresholds&&(c.kindThresholds=b.kindThresholds),null!=b.maxBackoffMultiplier&&(c.maxBackoffMultiplier=b.maxBackoffMultiplier),null!=b.backoffEscalationCount&&(c.backoffEscalationCount=b.backoffEscalationCount)),c):b?(c=new i(a,b),j.set(a,c),c):null}function l(){return Array.from(j.values()).map(a=>a.getStatus())}function m(a){let b=j.get(a);b&&b.reset()}},98757:(a,b,c)=>{c.d(b,{K:()=>d});function d(a,b){return!("clinepass"!==b||!a||"object"!=typeof a||Array.isArray(a))&&"success"in a?!1===a.success?{body:null,error:{message:"string"==typeof a.error?a.error:a.error?.message||a.message||"Upstream error",status:a.statusCode||null}}:!0===a.success&&"data"in a&&null!==a.data&&"object"==typeof a.data?{body:a.data,error:null}:{body:a,error:null}:{body:a,error:null}}}};
|