@techysy/10router 1.0.4 → 1.0.5
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 +12 -10
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +4 -4
- package/app/.next-cli-build/routes-manifest.json +12 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-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 +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
- 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 +1 -1
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
- 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 +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/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/codebuddy-cn/bulk-import/route.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/json-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/json-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
- 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/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
- 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 +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
- 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 +5 -5
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- 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/_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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- 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/_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 +7 -7
- 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/_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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- 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/_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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
- 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 +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
- 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 +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +5 -5
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
- 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 +5 -5
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
- 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 +6 -6
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +12 -10
- package/app/.next-cli-build/server/chunks/{6832.js → 1332.js} +1 -1
- package/app/.next-cli-build/server/chunks/1377.js +1 -1
- package/app/.next-cli-build/server/chunks/1564.js +1 -0
- package/app/.next-cli-build/server/chunks/2283.js +1 -1
- package/app/.next-cli-build/server/chunks/318.js +3 -3
- package/app/.next-cli-build/server/chunks/3212.js +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/4037.js +1 -1
- package/app/.next-cli-build/server/chunks/412.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4125.js +1 -1
- package/app/.next-cli-build/server/chunks/4665.js +2 -2
- package/app/.next-cli-build/server/chunks/5081.js +3 -3
- package/app/.next-cli-build/server/chunks/5612.js +1 -1
- package/app/.next-cli-build/server/chunks/5615.js +1 -1
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6306.js +1 -1
- package/app/.next-cli-build/server/chunks/6763.js +1 -1
- package/app/.next-cli-build/server/chunks/7211.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -0
- package/app/.next-cli-build/server/chunks/7598.js +1 -0
- package/app/.next-cli-build/server/chunks/8038.js +1 -1
- package/app/.next-cli-build/server/chunks/827.js +1 -1
- package/app/.next-cli-build/server/chunks/8444.js +3 -0
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +3 -3
- package/app/.next-cli-build/server/chunks/8920.js +1 -1
- package/app/.next-cli-build/server/chunks/8936.js +1 -1
- package/app/.next-cli-build/server/chunks/915.js +1 -1
- package/app/.next-cli-build/server/chunks/{8847.js → 9381.js} +1 -1
- package/app/.next-cli-build/server/chunks/9463.js +1 -0
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +1 -1
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- 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/static/chunks/1321-f66031be5e32c2cb.js +1 -0
- package/app/.next-cli-build/static/chunks/{5116-bd22c80869d4be20.js → 5116-4618105f24431c4a.js} +1 -1
- package/app/.next-cli-build/static/chunks/5497-857449e2441f5955.js +7 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-5fa69f9a11a9abac.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-93a480448464bc2c.js +14 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-595256b6306fa952.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-e16aaf24dc525a49.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-a52d19cb5aacd04f.js +1 -0
- package/app/.next-cli-build/static/chunks/app/_global-error/page-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/json-models/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-e2820b80e5f98f0b.js +1 -0
- package/app/.next-cli-build/static/css/87048d3b7e880a4f.css +1 -0
- package/app/.next-cli-build/static/twXIb88JirT5kgPRe8HTu/_buildManifest.js +1 -0
- package/app/package.json +1 -1
- package/app/public/i18n/changelog/en.md +101 -82
- package/app/public/i18n/changelog/zh-CN.md +18 -0
- package/app/public/i18n/changelog/zh-TW.md +101 -82
- package/app/public/i18n/literals/zh-CN.json +18 -2
- package/app/public/i18n/literals/zh-TW.json +32 -3
- package/app/public/providers/agnes-ai-cn.png +0 -0
- package/app/public/providers/agnes-ai.png +0 -0
- package/app/public/providers/apinex.png +0 -0
- package/app/src/mitm/server.js +1 -1
- package/cli.js +857 -873
- package/package.json +1 -1
- package/src/cli/i18n/index.js +83 -0
- package/src/cli/i18n/locales/en/api-keys.json +31 -0
- package/src/cli/i18n/locales/en/core.json +40 -0
- package/src/cli/i18n/locales/en/menus-clitools.json +50 -0
- package/src/cli/i18n/locales/en/menus-combos.json +76 -0
- package/src/cli/i18n/locales/en/menus-providers.json +97 -0
- package/src/cli/i18n/locales/en/settings.json +35 -0
- package/src/cli/i18n/locales/en/terminal-ui.json +19 -0
- package/src/cli/i18n/locales/en/tray.json +15 -0
- package/src/cli/i18n/locales/en/utils.json +27 -0
- package/src/cli/i18n/locales/zh-CN/api-keys.json +31 -0
- package/src/cli/i18n/locales/zh-CN/core.json +40 -0
- package/src/cli/i18n/locales/zh-CN/menus-clitools.json +50 -0
- package/src/cli/i18n/locales/zh-CN/menus-combos.json +76 -0
- package/src/cli/i18n/locales/zh-CN/menus-providers.json +97 -0
- package/src/cli/i18n/locales/zh-CN/settings.json +35 -0
- package/src/cli/i18n/locales/zh-CN/terminal-ui.json +19 -0
- package/src/cli/i18n/locales/zh-CN/tray.json +15 -0
- package/src/cli/i18n/locales/zh-CN/utils.json +27 -0
- package/src/cli/i18n/locales/zh-TW/api-keys.json +31 -0
- package/src/cli/i18n/locales/zh-TW/core.json +40 -0
- package/src/cli/i18n/locales/zh-TW/menus-clitools.json +50 -0
- package/src/cli/i18n/locales/zh-TW/menus-combos.json +76 -0
- package/src/cli/i18n/locales/zh-TW/menus-providers.json +97 -0
- package/src/cli/i18n/locales/zh-TW/settings.json +35 -0
- package/src/cli/i18n/locales/zh-TW/terminal-ui.json +19 -0
- package/src/cli/i18n/locales/zh-TW/tray.json +15 -0
- package/src/cli/i18n/locales/zh-TW/utils.json +27 -0
- package/src/cli/menus/apiKeys.js +50 -49
- package/src/cli/menus/cliTools.js +93 -92
- package/src/cli/menus/combos.js +131 -130
- package/src/cli/menus/providers.js +142 -138
- package/src/cli/menus/settings.js +33 -32
- package/src/cli/terminalUI.js +26 -19
- package/src/cli/tray/tray.js +14 -13
- package/src/cli/utils/format.js +13 -8
- package/src/cli/utils/input.js +6 -5
- package/src/cli/utils/menuHelper.js +3 -2
- package/src/cli/utils/modelSelector.js +6 -5
- package/app/.next-cli-build/server/chunks/112.js +0 -3
- package/app/.next-cli-build/server/chunks/5699.js +0 -1
- package/app/.next-cli-build/server/chunks/7356.js +0 -1
- package/app/.next-cli-build/server/chunks/7419.js +0 -1
- package/app/.next-cli-build/server/chunks/8123.js +0 -1
- package/app/.next-cli-build/static/AFIMSU-vh_yXimJozqVPF/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-ba0a9ba95063bed9.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-17b531f18a6a3a3c.js +0 -7
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-90106fd2380ae2f8.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-928e8fa95cccfc03.js +0 -14
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-bccad1d38f846812.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-19ac7c0fa9dd6792.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-f4af951b9e6f6d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/json-models/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-7c4d396dcbcd6a83.js +0 -1
- package/app/.next-cli-build/static/css/744832b960884f40.css +0 -1
- /package/app/.next-cli-build/static/{AFIMSU-vh_yXimJozqVPF → twXIb88JirT5kgPRe8HTu}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var a={};a.id=2134,a.ids=[2134],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},6069:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>R});var d=c(48249),e=c(67484),f=c(19099),g=c(2116),h=c.n(g),i=c(81220),j=c(29225),k=c(50412),l=c(92592),m=c(91431),n=c(59160),o=c(18982);c(87592);let p=["none","low","medium","high"],q=["none","thinking"],r=["none","low","medium","high","max"],s={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":r,"claude-budget":["none","low","medium","high","xhigh","max"],"gemini-level":["minimal","low","medium","high"],"gemini-budget":p,zai:q,qwen:p,kimi:r,deepseek:["none","high","max"],minimax:q,hunyuan:p,step:p},t=["none","minimal","low","medium","high","xhigh","max"],u=[{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...t,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...t,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:t},{pattern:"*codex*",levels:["low","medium","high","xhigh"]}];function v(a,b){if("kiro"===a&&null===function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(b))return"reasoning";if(!b.includes("claude"))return null;let c=b.match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);if(!c)return null;let[,d,e]=c,f=Number(d),g=void 0===e?null:Number(e);return f<4||4===f&&(null===g||g<=5||null!==g&&g>=1e3)?null:"output_config"}(b))return null;let c=(0,n.nl)(a,b);if(!c.reasoning)return null;let d=u.find(c=>(!c.provider||c.provider===a)&&(0,o.gH)(c.pattern,b)),e=d?.levels||s[c.thinkingFormat]||p;return!1===c.thinkingCanDisable&&(e=e.filter(a=>"none"!==a)),e}var w=c(50377),x=c(29476),y=c(99258),z=c(41371);function A({customModels:a=[],modelAliases:b={},providerAlias:c,builtInModels:d=[],type:e="llm",includeLegacyAliases:f=!0}){let g=new Set(d.map(a=>a.id)),h=new Set,i=[];for(let b of a){if(!b?.id||b.providerAlias!==c)continue;let a=b?.kind||b?.type||"llm";if(e&&a!==e||g.has(b.id))continue;let d=`${c}/${b.id}`;h.has(d)||(h.add(d),i.push({id:b.id,name:b.name||b.id,fullModel:d,source:"custom",type:a,enabled:!1!==b.enabled,...void 0===b.vision?{}:{vision:b.vision},...void 0===b.reasoning?{}:{reasoning:b.reasoning},...void 0===b.contextWindow?{}:{contextWindow:b.contextWindow},...void 0===b.maxOutput?{}:{maxOutput:b.maxOutput}}))}if(!f)return i;let j=`${c}/`;for(let[a,c]of Object.entries(b||{})){if("string"!=typeof c||!c.startsWith(j))continue;let b=c.slice(j.length);!b||g.has(b)||h.has(c)||(h.add(c),i.push({id:b,alias:a,fullModel:c,source:"legacyAlias",type:e||"llm"}))}return i}var B=c(49885),C=c.n(B);function D({model:a,fullModel:b,alias:c,copied:e,onCopy:f,testStatus:g,isCustom:h,isFree:i,onDeleteAlias:j,onTest:l,isTesting:m,onDisable:n,caps:o,thinkingSuffix:p}){let q=p?`${b}(${p})`:b,r="ok"===g?"#22c55e":"error"===g?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===g?"border-green-500/40":"error"===g?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,d.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:r?{color:r}:void 0,children:"ok"===g?"check_circle":"error"===g?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,d.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:q}),(0,d.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[a.name&&(0,d.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:a.name}),(0,d.jsx)(k.nh,{caps:o,colorOverride:"text-text-muted/70",size:12})]})]}),l&&(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:l,disabled:m,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${m?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:m?{animation:"spin 1s linear infinite"}:void 0,children:m?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:m?"Testing...":"Test"})]}),(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:()=>f(q,`model-${a.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:e===`model-${a.id}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:e===`model-${a.id}`?"Copied!":"Copy"})]}),h?(0,d.jsx)("button",{onClick:j,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):n?(0,d.jsx)("button",{onClick:n,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function E({modelId:a,fullModel:b,copied:c,onCopy:e,onDeleteAlias:f,onTest:g,testStatus:h,isTesting:i}){let j="ok"===h?"#22c55e":"error"===h?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===h?"border-green-500/40":"error"===h?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:j?{color:j}:void 0,children:"ok"===h?"check_circle":"error"===h?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,d.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a}`?"Copied!":"Copy"})]}),g&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:g,disabled:i,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:i?{animation:"spin 1s linear infinite"}:void 0,children:i?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:i?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:f,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function F({modelId:a,fullModel:b,copied:c,onCopy:e,onToggle:f,enabled:g,onTest:h,testStatus:i,isTesting:j}){let k="ok"===i?"#22c55e":"error"===i?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===i?"border-green-500/40":"error"===i?"border-red-500/40":"border-border"} hover:bg-sidebar/50 ${g?"":"opacity-60"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:k?{color:k}:void 0,children:"ok"===i?"check_circle":"error"===i?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,d.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a}`?"Copied!":"Copy"})]}),h&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:h,disabled:j,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:j?{animation:"spin 1s linear infinite"}:void 0,children:j?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:j?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:f,className:`p-1 rounded ${g?"text-amber-500 hover:bg-amber-50 dark:hover:bg-amber-500/10":"text-green-600 hover:bg-green-50 dark:hover:bg-green-500/10"}`,title:g?"Disable model":"Activate model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:g?"block":"restart_alt"})})]})}function G({providerStorageAlias:a,providerDisplayAlias:b,modelAliases:c,customModels:f,copied:g,onCopy:h,onDeleteAlias:i,onAddCustomModel:j,onDeleteCustomModel:l,connections:m,isAnthropic:n,jsonModels:o,importingJsonModels:p,onImportJsonModels:q,onToggleJsonModel:r,onBulkJsonModels:s,useJsonCatalog:t}){let u=(0,z.i)(),[v,w]=(0,e.useState)(""),[x,y]=(0,e.useState)(!1),[B,C]=(0,e.useState)(!1),[D,H]=(0,e.useState)(null),[I,J]=(0,e.useState)({}),K=async b=>{if(!D){H(b);try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${a}/${b}`})}),d=await c.json();J(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{J(a=>({...a,[b]:"error"}))}finally{H(null)}}},L=A({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),M=async()=>{if(!v.trim()||x)return;let a=v.trim();if(L.some(b=>b.id===a))return void u.warning("Model already exists for this provider.");y(!0);try{await j(a),w("")}catch(a){console.log("Error adding model:",a)}finally{y(!1)}},N=async()=>{if(B)return;let a=m.find(a=>!1!==a.isActive);if(a){C(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void u.error(c.error||"Failed to import models");let d=c.models||[];if(0===d.length)return void u.warning("No models returned from /models.");let e=0;for(let a of d){let b=a.id||a.name||a.model;b&&(L.some(a=>a.id===b)||(await j(b),e+=1))}0===e&&u.warning("No new models were added.")}catch(a){console.log("Error importing models:",a)}finally{C(!1)}}},O=m.some(a=>!1!==a.isActive),P=Array.isArray(o),Q=P?o.filter(a=>!1!==a.enabled):[],R=P?o.filter(a=>!1===a.enabled):[],S=t&&Q.length>0;return(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",n?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,d.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,d.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,d.jsx)("input",{id:"new-compatible-model-input",type:"text",value:v,onChange:a=>w(a.target.value),onKeyDown:a=>"Enter"===a.key&&M(),placeholder:n?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})]}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:M,disabled:!v.trim()||x,children:x?"Adding...":"Add"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"download",onClick:N,disabled:!O||B,children:B?"Importing...":"Import from /models"})]}),!O&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),P&&(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"download",onClick:q,disabled:!O||p,children:p?"Fetching...":"Fetch Models from JSON"}),S&&R.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:()=>s(!0),children:"Active All"}),S&&Q.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>s(!1),children:"Disable All"})]}),S&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:Q.map(a=>(0,d.jsx)(F,{modelId:a.id,fullModel:`${b}/${a.id}`,copied:g,onCopy:h,enabled:!0,onToggle:()=>r(a.id,!1)},`json-${a.id}`))}),!S&&L.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:L.map(({id:c,alias:e,source:f})=>(0,d.jsx)(E,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:m.length>0?()=>K(c):void 0,testStatus:I[c],isTesting:D===c},`${f}-${a}/${c}`))}),t&&R.length>0&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Disabled (activate to expose again):"}),R.map(a=>(0,d.jsx)(F,{modelId:a.id,fullModel:`${b}/${a.id}`,copied:g,onCopy:h,enabled:!1,onToggle:()=>r(a.id,!0)},`json-disabled-${a.id}`))]})]})}D.propTypes={model:C().shape({id:C().string.isRequired}).isRequired,fullModel:C().string.isRequired,alias:C().string,copied:C().string,onCopy:C().func.isRequired,testStatus:C().oneOf(["ok","error"]),isCustom:C().bool,isFree:C().bool,onDeleteAlias:C().func,onTest:C().func,isTesting:C().bool,onDisable:C().func,caps:C().object,thinkingSuffix:C().string},C().string.isRequired,C().string.isRequired,C().string,C().func.isRequired,C().func.isRequired,C().func,C().oneOf(["ok","error"]),C().bool,C().string.isRequired,C().object.isRequired,C().arrayOf(C().object),C().string,C().func.isRequired,C().func.isRequired,C().func.isRequired,C().func.isRequired,G.propTypes={providerStorageAlias:C().string.isRequired,providerDisplayAlias:C().string.isRequired,modelAliases:C().object.isRequired,customModels:C().arrayOf(C().object),copied:C().string,onCopy:C().func.isRequired,onDeleteAlias:C().func.isRequired,onAddCustomModel:C().func.isRequired,onDeleteCustomModel:C().func.isRequired,connections:C().arrayOf(C().shape({id:C().string,isActive:C().bool})).isRequired,isAnthropic:C().bool,jsonModels:C().arrayOf(C().object),importingJsonModels:C().bool,onImportJsonModels:C().func,onToggleJsonModel:C().func,onBulkJsonModels:C().func,useJsonCatalog:C().bool};var H=c(74875);function I({until:a}){let[b,c]=(0,e.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function J({connection:a,proxyPools:b,isOAuth:c,isFirst:f,isLast:g,onMoveUp:h,onMoveDown:i,onToggleActive:j,onUpdateProxy:l,onEdit:m,onDelete:n,oneByOneStatus:o=null,autoPing:p=null}){let[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(!1),u=(0,e.useRef)(null),v=new Map((b||[]).map(a=>[a.id,a])),w=a.providerSpecificData?.proxyPoolId||null,x=w?v.get(w):null,z=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,A=!!w||z,B=x?`Pool: ${x.name}`:w?`Pool: ${w} (inactive/missing)`:z?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",C=p?.provider==="codex"?"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota.":"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",D="";if(x?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=x?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);D=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{D=b}}let E=x?.noProxy||a.providerSpecificData?.connectionNoProxy||"",F="default";x?.isActive===!0?F="success":(w||z)&&(F="error");let G=async a=>{t(!0);try{await l("__none__"===a?null:a)}finally{t(!1),r(!1)}},K=a.authType||(c?"oauth":"apikey"),L="oauth"===K,M="cookie"===K,N=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(L?"OAuth Account":M?"Cookie Account":"API Key"),O=a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()?a.email.trim():a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()?a.displayName.trim():null,[P,Q]=(0,e.useState)(!1),R=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,S="unavailable"!==a.testStatus||P?a.testStatus:"active",T=()=>o?"queued"===o.state?(0,y.Tl)("queued"):"testing"===o.state?(0,y.Tl)("testing"):"success"===o.state?(0,y.Tl)("success"):"failed"===o.state?o.error?`${(0,y.Tl)("failed")}: ${o.error}`:(0,y.Tl)("failed"):null:null;return(0,d.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,d.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,d.jsx)("button",{onClick:h,disabled:f,className:`p-0.5 rounded ${f?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:i,disabled:g,className:`p-0.5 rounded ${g?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:M?"cookie":L?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:N}),O&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:O}),(0,d.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,d.jsx)(k.Ex,{variant:(0,H.g)(a.isActive,S),size:"sm",dot:!0,children:!1===a.isActive?(0,y.Tl)("disabled"):S||(0,y.Tl)("Unknown")}),(0,d.jsx)(k.Ex,{variant:"default",size:"sm",children:L?"OAuth":M?"Cookie":"API Key"}),A&&(0,d.jsx)(k.Ex,{variant:F,size:"sm",children:"Proxy"}),P&&!1!==a.isActive&&(0,d.jsx)(I,{until:R}),a.lastError&&!1!==a.isActive&&(0,d.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:a.lastError,children:a.lastError}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]}),a.globalPriority&&(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",a.globalPriority]}),T()&&(0,d.jsx)(k.Ex,{variant:o?"success"===o.state?"success":"failed"===o.state?"error":"testing"===o.state?"primary":"default":"default",size:"sm",children:T()})]}),A&&(0,d.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:B,children:B}),D&&(0,d.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:D}),E&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:E,children:["no_proxy: ",E]})]})]})]}),(0,d.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,d.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(b||[]).length>0&&(0,d.jsxs)("div",{className:"relative",ref:u,children:[(0,d.jsxs)("button",{onClick:()=>r(a=>!a),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${A?"text-primary":"text-text-muted hover:text-primary"}`,disabled:s,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:s?"progress_activity":"lan"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),q&&(0,d.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,d.jsx)("button",{onClick:()=>G("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!w?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,d.jsx)("button",{onClick:()=>G(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${w===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]})]}),p&&(0,d.jsx)(k.m_,{text:C,children:(0,d.jsxs)("button",{onClick:()=>p.onToggle(!p.on),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${p.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,d.jsxs)("button",{onClick:m,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:n,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,d.jsx)(k.lM,{size:"sm",checked:a.isActive??!0,onChange:j,title:a.isActive??!0?"Disable connection":"Enable connection"})]})]})}I.propTypes={until:C().string.isRequired},J.propTypes={connection:C().shape({id:C().string,name:C().string,email:C().string,displayName:C().string,modelLockUntil:C().string,testStatus:C().string,isActive:C().bool,lastError:C().string,priority:C().number,globalPriority:C().number}).isRequired,proxyPools:C().arrayOf(C().shape({id:C().string,name:C().string,proxyUrl:C().string,noProxy:C().string,isActive:C().bool})),isOAuth:C().bool.isRequired,isFirst:C().bool.isRequired,isLast:C().bool.isRequired,onMoveUp:C().func.isRequired,onMoveDown:C().func.isRequired,onToggleActive:C().func.isRequired,onUpdateProxy:C().func,onEdit:C().func.isRequired,onDelete:C().func.isRequired,oneByOneStatus:C().shape({state:C().string,error:C().string}),autoPing:C().shape({on:C().bool,onToggle:C().func,provider:C().string})};let K=`name1|sk-key1
|
|
1
|
+
(()=>{var a={};a.id=2134,a.ids=[2134],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},9422:(a,b,c)=>{Promise.resolve().then(c.bind(c,46997))},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},40956:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>x,handler:()=>z,routeModule:()=>y});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,93110))),"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\providers\\[id]\\page.js"]}]},{"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},["new"]]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"F:\\Files\\GitHub Files\\10router\\src\\app\\layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,w=(0,e.H)({tree:v,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),x=w.__next_app__,y=w.routeModule,z=w.handler},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},46997:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>S});var d=c(48249),e=c(67484),f=c(19099),g=c(2116),h=c.n(g),i=c(81220),j=c(29225),k=c(50412),l=c(92592),m=c(91431),n=c(59160),o=c(18982);c(87592);let p=["none","low","medium","high"],q=["none","thinking"],r=["none","low","medium","high","max"],s={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":r,"claude-budget":["none","low","medium","high","xhigh","max"],"gemini-level":["minimal","low","medium","high"],"gemini-budget":p,zai:q,qwen:p,kimi:r,deepseek:["none","high","max"],minimax:q,hunyuan:p,step:p},t=["none","minimal","low","medium","high","xhigh","max"],u=[{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...t,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...t,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:t},{pattern:"*codex*",levels:["low","medium","high","xhigh"]}];function v(a,b){if("kiro"===a&&null===function(a){if("string"!=typeof a)return null;let b=a.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(b))return"reasoning";if(!b.includes("claude"))return null;let c=b.match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);if(!c)return null;let[,d,e]=c,f=Number(d),g=void 0===e?null:Number(e);return f<4||4===f&&(null===g||g<=5||null!==g&&g>=1e3)?null:"output_config"}(b))return null;let c=(0,n.nl)(a,b);if(!c.reasoning)return null;let d=u.find(c=>(!c.provider||c.provider===a)&&(0,o.gH)(c.pattern,b)),e=d?.levels||s[c.thinkingFormat]||p;return!1===c.thinkingCanDisable&&(e=e.filter(a=>"none"!==a)),e}var w=c(50377),x=c(29476),y=c(99258),z=c(41371);function A({customModels:a=[],modelAliases:b={},providerAlias:c,builtInModels:d=[],type:e="llm",includeLegacyAliases:f=!0}){let g=new Set(d.map(a=>a.id)),h=new Set,i=[];for(let b of a){if(!b?.id||b.providerAlias!==c)continue;let a=b?.kind||b?.type||"llm";if(e&&a!==e||g.has(b.id))continue;let d=`${c}/${b.id}`;h.has(d)||(h.add(d),i.push({id:b.id,name:b.name||b.id,fullModel:d,source:"custom",type:a,enabled:!1!==b.enabled,...void 0===b.vision?{}:{vision:b.vision},...void 0===b.reasoning?{}:{reasoning:b.reasoning},...void 0===b.contextWindow?{}:{contextWindow:b.contextWindow},...void 0===b.maxOutput?{}:{maxOutput:b.maxOutput}}))}if(!f)return i;let j=`${c}/`;for(let[a,c]of Object.entries(b||{})){if("string"!=typeof c||!c.startsWith(j))continue;let b=c.slice(j.length);!b||g.has(b)||h.has(c)||(h.add(c),i.push({id:b,alias:a,fullModel:c,source:"legacyAlias",type:e||"llm"}))}return i}var B=c(49885),C=c.n(B);function D({model:a,fullModel:b,alias:c,copied:e,onCopy:f,testStatus:g,isCustom:h,isFree:i,onDeleteAlias:j,onTest:l,isTesting:m,onDisable:n,caps:o,thinkingSuffix:p}){let q=p?`${b}(${p})`:b,r="ok"===g?"#22c55e":"error"===g?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===g?"border-green-500/40":"error"===g?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,d.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:r?{color:r}:void 0,children:"ok"===g?"check_circle":"error"===g?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,d.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:q}),(0,d.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[a.name&&(0,d.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:a.name}),(0,d.jsx)(k.nh,{caps:o,colorOverride:"text-text-muted/70",size:12})]})]}),l&&(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:l,disabled:m,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${m?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:m?{animation:"spin 1s linear infinite"}:void 0,children:m?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:m?"Testing...":"Test"})]}),(0,d.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,d.jsx)("button",{onClick:()=>f(q,`model-${a.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:e===`model-${a.id}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:e===`model-${a.id}`?"Copied!":"Copy"})]}),h?(0,d.jsx)("button",{onClick:j,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):n?(0,d.jsx)("button",{onClick:n,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function E({modelId:a,fullModel:b,copied:c,onCopy:e,onDeleteAlias:f,onTest:g,testStatus:h,isTesting:i}){let j="ok"===h?"#22c55e":"error"===h?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===h?"border-green-500/40":"error"===h?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:j?{color:j}:void 0,children:"ok"===h?"check_circle":"error"===h?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,d.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a}`?"Copied!":"Copy"})]}),g&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:g,disabled:i,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:i?{animation:"spin 1s linear infinite"}:void 0,children:i?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:i?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:f,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function F({modelId:a,fullModel:b,copied:c,onCopy:e,onToggle:f,enabled:g,onTest:h,testStatus:i,isTesting:j}){let k="ok"===i?"#22c55e":"error"===i?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===i?"border-green-500/40":"error"===i?"border-red-500/40":"border-border"} hover:bg-sidebar/50 ${g?"":"opacity-60"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:k?{color:k}:void 0,children:"ok"===i?"check_circle":"error"===i?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,d.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a}`?"Copied!":"Copy"})]}),h&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:h,disabled:j,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:j?{animation:"spin 1s linear infinite"}:void 0,children:j?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:j?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:f,className:`p-1 rounded ${g?"text-amber-500 hover:bg-amber-50 dark:hover:bg-amber-500/10":"text-green-600 hover:bg-green-50 dark:hover:bg-green-500/10"}`,title:g?"Disable model":"Activate model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:g?"block":"restart_alt"})})]})}function G({providerStorageAlias:a,providerDisplayAlias:b,modelAliases:c,customModels:f,copied:g,onCopy:h,onDeleteAlias:i,onAddCustomModel:j,onDeleteCustomModel:l,connections:m,isAnthropic:n,jsonModels:o,importingJsonModels:p,onImportJsonModels:q,onToggleJsonModel:r,onBulkJsonModels:s,useJsonCatalog:t}){let u=(0,z.i)(),[v,w]=(0,e.useState)(""),[x,y]=(0,e.useState)(!1),[B,C]=(0,e.useState)(!1),[D,H]=(0,e.useState)(null),[I,J]=(0,e.useState)({}),K=async b=>{if(!D){H(b);try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${a}/${b}`})}),d=await c.json();J(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{J(a=>({...a,[b]:"error"}))}finally{H(null)}}},L=A({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),M=async()=>{if(!v.trim()||x)return;let a=v.trim();if(L.some(b=>b.id===a))return void u.warning("Model already exists for this provider.");y(!0);try{await j(a),w("")}catch(a){console.log("Error adding model:",a)}finally{y(!1)}},N=async()=>{if(B)return;let a=m.find(a=>!1!==a.isActive);if(a){C(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void u.error(c.error||"Failed to import models");let d=c.models||[];if(0===d.length)return void u.warning("No models returned from /models.");let e=0;for(let a of d){let b=a.id||a.name||a.model;b&&(L.some(a=>a.id===b)||(await j(b),e+=1))}0===e&&u.warning("No new models were added.")}catch(a){console.log("Error importing models:",a)}finally{C(!1)}}},O=m.some(a=>!1!==a.isActive),P=Array.isArray(o),Q=P?o.filter(a=>!1!==a.enabled):[],R=P?o.filter(a=>!1===a.enabled):[],S=t&&Q.length>0;return(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",n?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,d.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,d.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,d.jsx)("input",{id:"new-compatible-model-input",type:"text",value:v,onChange:a=>w(a.target.value),onKeyDown:a=>"Enter"===a.key&&M(),placeholder:n?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})]}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:M,disabled:!v.trim()||x,children:x?"Adding...":"Add"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"download",onClick:N,disabled:!O||B,children:B?"Importing...":"Import from /models"})]}),!O&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),P&&(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"download",onClick:q,disabled:!O||p,children:p?"Fetching...":"Fetch Models from JSON"}),S&&R.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:()=>s(!0),children:"Active All"}),S&&Q.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>s(!1),children:"Disable All"})]}),S&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:Q.map(a=>(0,d.jsx)(F,{modelId:a.id,fullModel:`${b}/${a.id}`,copied:g,onCopy:h,enabled:!0,onToggle:()=>r(a.id,!1)},`json-${a.id}`))}),!S&&L.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:L.map(({id:c,alias:e,source:f})=>(0,d.jsx)(E,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:m.length>0?()=>K(c):void 0,testStatus:I[c],isTesting:D===c},`${f}-${a}/${c}`))}),t&&R.length>0&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Disabled (activate to expose again):"}),R.map(a=>(0,d.jsx)(F,{modelId:a.id,fullModel:`${b}/${a.id}`,copied:g,onCopy:h,enabled:!1,onToggle:()=>r(a.id,!0)},`json-disabled-${a.id}`))]})]})}D.propTypes={model:C().shape({id:C().string.isRequired}).isRequired,fullModel:C().string.isRequired,alias:C().string,copied:C().string,onCopy:C().func.isRequired,testStatus:C().oneOf(["ok","error"]),isCustom:C().bool,isFree:C().bool,onDeleteAlias:C().func,onTest:C().func,isTesting:C().bool,onDisable:C().func,caps:C().object,thinkingSuffix:C().string},C().string.isRequired,C().string.isRequired,C().string,C().func.isRequired,C().func.isRequired,C().func,C().oneOf(["ok","error"]),C().bool,C().string.isRequired,C().object.isRequired,C().arrayOf(C().object),C().string,C().func.isRequired,C().func.isRequired,C().func.isRequired,C().func.isRequired,G.propTypes={providerStorageAlias:C().string.isRequired,providerDisplayAlias:C().string.isRequired,modelAliases:C().object.isRequired,customModels:C().arrayOf(C().object),copied:C().string,onCopy:C().func.isRequired,onDeleteAlias:C().func.isRequired,onAddCustomModel:C().func.isRequired,onDeleteCustomModel:C().func.isRequired,connections:C().arrayOf(C().shape({id:C().string,isActive:C().bool})).isRequired,isAnthropic:C().bool,jsonModels:C().arrayOf(C().object),importingJsonModels:C().bool,onImportJsonModels:C().func,onToggleJsonModel:C().func,onBulkJsonModels:C().func,useJsonCatalog:C().bool};var H=c(74875);function I({until:a}){let[b,c]=(0,e.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function J({connection:a,proxyPools:b,isOAuth:c,isFirst:f,isLast:g,onMoveUp:h,onMoveDown:i,onToggleActive:j,onUpdateProxy:l,onEdit:m,onDelete:n,oneByOneStatus:o=null,autoPing:p=null}){let[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(!1),u=(0,e.useRef)(null),v=new Map((b||[]).map(a=>[a.id,a])),w=a.providerSpecificData?.proxyPoolId||null,x=w?v.get(w):null,z=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,A=!!w||z,B=x?`Pool: ${x.name}`:w?`Pool: ${w} (inactive/missing)`:z?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",C=p?.provider==="codex"?"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota.":"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",D="";if(x?.proxyUrl||a.providerSpecificData?.connectionProxyUrl){let b=x?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);D=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{D=b}}let E=x?.noProxy||a.providerSpecificData?.connectionNoProxy||"",F="default";x?.isActive===!0?F="success":(w||z)&&(F="error");let G=async a=>{t(!0);try{await l("__none__"===a?null:a)}finally{t(!1),r(!1)}},K=a.authType||(c?"oauth":"apikey"),L="oauth"===K,M="cookie"===K,N=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(L?"OAuth Account":M?"Cookie Account":"API Key"),O=a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()?a.email.trim():a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()?a.displayName.trim():null,[P,Q]=(0,e.useState)(!1),R=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,S="unavailable"!==a.testStatus||P?a.testStatus:"active",T=()=>o?"queued"===o.state?(0,y.Tl)("queued"):"testing"===o.state?(0,y.Tl)("testing"):"success"===o.state?(0,y.Tl)("success"):"failed"===o.state?o.error?`${(0,y.Tl)("failed")}: ${o.error}`:(0,y.Tl)("failed"):null:null;return(0,d.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,d.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,d.jsx)("button",{onClick:h,disabled:f,className:`p-0.5 rounded ${f?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:i,disabled:g,className:`p-0.5 rounded ${g?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:M?"cookie":L?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:N}),O&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:O}),(0,d.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,d.jsx)(k.Ex,{variant:(0,H.g)(a.isActive,S),size:"sm",dot:!0,children:!1===a.isActive?(0,y.Tl)("disabled"):S||(0,y.Tl)("Unknown")}),(0,d.jsx)(k.Ex,{variant:"default",size:"sm",children:L?"OAuth":M?"Cookie":"API Key"}),A&&(0,d.jsx)(k.Ex,{variant:F,size:"sm",children:"Proxy"}),P&&!1!==a.isActive&&(0,d.jsx)(I,{until:R}),a.lastError&&!1!==a.isActive&&(0,d.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:a.lastError,children:a.lastError}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]}),a.globalPriority&&(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",a.globalPriority]}),T()&&(0,d.jsx)(k.Ex,{variant:o?"success"===o.state?"success":"failed"===o.state?"error":"testing"===o.state?"primary":"default":"default",size:"sm",children:T()})]}),A&&(0,d.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:B,children:B}),D&&(0,d.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:D}),E&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:E,children:["no_proxy: ",E]})]})]})]}),(0,d.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,d.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(b||[]).length>0&&(0,d.jsxs)("div",{className:"relative",ref:u,children:[(0,d.jsxs)("button",{onClick:()=>r(a=>!a),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${A?"text-primary":"text-text-muted hover:text-primary"}`,disabled:s,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:s?"progress_activity":"lan"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),q&&(0,d.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,d.jsx)("button",{onClick:()=>G("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!w?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,d.jsx)("button",{onClick:()=>G(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${w===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]})]}),p&&(0,d.jsx)(k.m_,{text:C,children:(0,d.jsxs)("button",{onClick:()=>p.onToggle(!p.on),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${p.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,d.jsxs)("button",{onClick:m,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:n,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,d.jsx)(k.lM,{size:"sm",checked:a.isActive??!0,onChange:j,title:a.isActive??!0?"Disable connection":"Enable connection"})]})]})}I.propTypes={until:C().string.isRequired},J.propTypes={connection:C().shape({id:C().string,name:C().string,email:C().string,displayName:C().string,modelLockUntil:C().string,testStatus:C().string,isActive:C().bool,lastError:C().string,priority:C().number,globalPriority:C().number}).isRequired,proxyPools:C().arrayOf(C().shape({id:C().string,name:C().string,proxyUrl:C().string,noProxy:C().string,isActive:C().bool})),isOAuth:C().bool.isRequired,isFirst:C().bool.isRequired,isLast:C().bool.isRequired,onMoveUp:C().func.isRequired,onMoveDown:C().func.isRequired,onToggleActive:C().func.isRequired,onUpdateProxy:C().func,onEdit:C().func.isRequired,onDelete:C().func.isRequired,oneByOneStatus:C().shape({state:C().string,error:C().string}),autoPing:C().shape({on:C().bool,onToggle:C().func,provider:C().string})};let K=`name1|sk-key1
|
|
2
2
|
name2|sk-key2
|
|
3
3
|
sk-key-only-auto-named`;function L({isOpen:a,provider:b,providerName:c,isCompatible:f,isAnthropic:g,authType:h,authHint:i,website:j,proxyPools:m,error:n,existingNames:o,onSave:p,onBulkDone:q,onClose:r}){let s="__none__",t="ollama-local"===b,u="cookie"===h,v="xai"===b&&!u,w=u?"Cookie Value":"qoder"===b?"Personal Access Token (PAT)":"API Key",x="azure"===b,y="cloudflare-ai"===b,z=l.Q2?.[b]?.regions||null,A=l.Q2?.[b]?.defaultRegion||z?.[0]?.id||"",[B,C]=(0,e.useState)({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:s,ollamaHostUrl:""}),[D,E]=(0,e.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[F,G]=(0,e.useState)({accountId:""}),[H,I]=(0,e.useState)(A),[J,M]=(0,e.useState)(!1),[N,O]=(0,e.useState)(null),[P,Q]=(0,e.useState)(null),[R,S]=(0,e.useState)(!1),[T,U]=(0,e.useState)(!1),V=y?`name1|sk-key1|acc123456
|
|
4
4
|
name2|sk-key2|def789012
|
|
@@ -11,4 +11,4 @@ pt-only-auto-named`:K,[W,X]=(0,e.useState)("single"),[Y,Z]=(0,e.useState)(""),[$
|
|
|
11
11
|
"idToken": "eyJhbGc...",
|
|
12
12
|
"email": "user@example.com"
|
|
13
13
|
}
|
|
14
|
-
]`;function P({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[j,l]=(0,e.useState)(""),[m,n]=(0,e.useState)(null),o=()=>{h||(g(""),l(""),n(null),b())},p=async()=>{var a;let b;l(""),n(null);let d=f.trim();if(!d)return;try{b=JSON.parse(d)}catch(a){l(`${(0,y.Tl)("Invalid JSON")}: ${a.message}`);return}let e=Array.isArray(a=b)?a:a&&"object"==typeof a?Array.isArray(a.accounts)?a.accounts:[a]:null;if(!e||0===e.length)return void l((0,y.Tl)("No accounts found in input"));i(!0);try{let a=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:e})}),b=await a.json();if(!a.ok)return void l(b?.error||`Request failed: ${a.status}`);n(b),b.success>0&&"function"==typeof c&&c()}catch(a){l(a.message||(0,y.Tl)("Request failed"))}finally{i(!1)}},q=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(k.aF,{isOpen:a,title:(0,y.Tl)("Bulk Add Codex Accounts"),onClose:o,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:(0,y.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,d.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:O,value:f,onChange:a=>g(a.target.value),disabled:h}),j&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:j}),m&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:`text-sm font-medium ${m.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",m.success," ",(0,y.Tl)("added"),m.failed>0?`, ✗ ${m.failed} ${(0,y.Tl)("failed")}`:""]}),q.length>0&&(0,d.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:q.map(a=>(0,d.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:p,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,y.Tl)("Importing..."):(0,y.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:o,variant:"ghost",fullWidth:!0,disabled:h,children:(0,y.Tl)("Close")})]})]})})}P.propTypes={isOpen:C().bool.isRequired,onClose:C().func.isRequired,onSuccess:C().func};let Q={claude:"claudeAutoPing",codex:"codexAutoPing"};function R(){let a,b,c,g,n,o,p=(0,f.useParams)(),q=(0,f.useRouter)(),r=p.id,{getCaps:s}=(0,x.y)(),t=(0,z.i)(),[u,B]=(0,e.useState)([]),[C,E]=(0,e.useState)(!0),[F,H]=(0,e.useState)(null),[I,K]=(0,e.useState)([]),[O,R]=(0,e.useState)(!1),[S,T]=(0,e.useState)(!1),[U,V]=(0,e.useState)(!1),[W,X]=(0,e.useState)(""),[Y,Z]=(0,e.useState)(!1),[$,_]=(0,e.useState)(!1),[aa,ab]=(0,e.useState)(!1),[ac,ad]=(0,e.useState)(!1),[ae,af]=(0,e.useState)(null),[ag,ah]=(0,e.useState)({}),[ai,aj]=(0,e.useState)([]),[ak,al]=(0,e.useState)(()=>null),[am,an]=(0,e.useState)(!1),[ao,ap]=(0,e.useState)(!1),[aq,ar]=(0,e.useState)({}),[as,at]=(0,e.useState)(""),[au,av]=(0,e.useState)(()=>new Set),[aw,ax]=(0,e.useState)(!1),[ay,az]=(0,e.useState)([]),[aA,aB]=(0,e.useState)("__none__"),[aC,aD]=(0,e.useState)(!1),[aE,aF]=(0,e.useState)(null),[aG,aH]=(0,e.useState)(""),[aI,aJ]=(0,e.useState)("auto"),[aK,aL]=(0,e.useState)({enabled:!1,connections:{}}),[aM,aN]=(0,e.useState)([]),[aO,aP]=(0,e.useState)([]),[aQ,aR]=(0,e.useState)([]),[aS,aT]=(0,e.useState)([]),[aU,aV]=(0,e.useState)(null),[aW,aX]=(0,e.useState)(!1),[aY,aZ]=(0,e.useState)(!1),[a$,a_]=(0,e.useState)(!1),[a0,a1]=(0,e.useState)(null),[a2,a3]=(0,e.useState)({}),[a4,a5]=(0,e.useState)(null),a6=(0,e.useRef)(!1),[a7,a8]=(0,e.useState)(!1),[a9,ba]=(0,e.useState)(!1),{copied:bb,copy:bc}=(0,w.C)(),bd=()=>{R(!0)},be=()=>{bk?bd():(X(""),V(!0))},bf=()=>{X(""),V(!0)},bg=()=>{bk?be():bf()},bh=F?{id:F.id,name:F.name||("anthropic-compatible"===F.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===F.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===F.type?"AC":"OC",apiType:F.apiType,baseUrl:F.baseUrl,type:F.type,modelsJsonUrl:F.modelsJsonUrl||void 0,fallbackModelsJsonUrl:F.fallbackModelsJsonUrl||void 0}:l.zN[r]||l.fg[r]||l.IS[r]||l.nJ[r]||l.br[r],bi=bh?.modelsJsonUrl,bj=bh?.authModes||[],bk=!!l.zN[r]||!!l.IS[r]||bj.includes("oauth"),bl=!!l.fg[r]||bj.includes("apikey"),bm=!!l.IS[r]?.noAuth,bn=(0,m.KC)(r),bo="cursor"===r&&aO.length>0?aO:bn,bp=(0,l.wG)(r),bq=(0,l.mq)(r),br=(0,l.gb)(r),bs=bq||br,bt=!bs&&bk&&bl,bu="xai"===r?"Grok Build OAuth":"grok-cli"===r?"Grok CLI Device Login":"kimi"===r?"Kimi Coding OAuth":"OAuth",bv="xai"===r?"xAI API Key":"kimi"===r?"Kimi API Key":"qoder"===r?"PAT":"API Key",bw=a=>{if(!aI||"auto"===aI)return null;let b=v(r,a);return b&&b.includes(aI)?aI:null},bx=bs?r:bp,by=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=v(r,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of bo)c(a.id);for(let a of aQ)c(a.id);for(let a of ai)a.providerAlias===bx&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),bz=bs?F?.prefix||r:bp,bA=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bx)}`,{cache:"no-store"}),b=await a.json();a.ok&&aT(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[bx]),bB=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bx,ids:[a]})})).ok&&await bA()}catch(a){console.log("Error disabling model:",a)}},bC=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bx)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bA()}catch(a){console.log("Error enabling model:",a)}},bD=async a=>{a.length&&aV({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aV(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bx,ids:a})})).ok&&await bA()}catch(a){console.log("Error disabling all models:",a)}}})},bE=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bx)}`,{method:"DELETE"})).ok&&await bA()}catch(a){console.log("Error enabling all models:",a)}},bF=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&ah(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bG=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&aj(b.models||[])}catch(a){console.log("Error fetching custom models:",a)}},[]),bH=(0,e.useCallback)(async()=>{if(bi)try{let a=await fetch(`/api/providers/${r}/json-models`,{cache:"no-store"}),b=await a.json();a.ok&&al(b.models||[])}catch(a){console.log("Error fetching provider JSON models:",a)}},[r,bi]),bI=(0,e.useCallback)(async()=>{try{let[a,b,c,d]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),e=await a.json(),f=await b.json(),g=await c.json(),h=d.ok?await d.json():{};if(a.ok){let a=(e.connections||[]).filter(a=>a.provider===r);B(a)}c.ok&&K(g.proxyPools||[]);let i=(h.providerStrategies||{})[r]||{};aF(i.fallbackStrategy||null),aH(null!=i.stickyRoundRobinLimit?String(i.stickyRoundRobinLimit):"1");let j=(h.providerThinking||{})[r]||{};aJ(j.mode||"auto");let k=Q[r],l=k&&h[k]||{};if(aL({enabled:!0===l.enabled,connections:l.connections||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===r)||null;if(!a&&bs)for(let b=0;b<3;b+=1){await new Promise(a=>setTimeout(a,150));let b=await fetch("/api/provider-nodes",{cache:"no-store"});if(b.ok&&(a=((await b.json()).nodes||[]).find(a=>a.id===r)||null))break}H(a)}}catch(a){console.log("Error fetching connections:",a)}finally{E(!1)}},[r,bs]),bJ=async a=>{try{let b=await fetch(`/api/provider-nodes/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(H(c.node),await bI(),ab(!1))}catch(a){console.log("Error updating provider node:",a)}},bK=async(a,b)=>{try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{}).providerStrategies||{},e={};a&&(e.fallbackStrategy=a),"round-robin"===a&&""!==b&&(e.stickyRoundRobinLimit=Number(b)||3);let f={...d};0===Object.keys(e).length?delete f[r]:f[r]=e,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:f})})}catch(a){console.log("Error saving provider strategy:",a)}},bL=async a=>{try{let b=await fetch("/api/settings",{cache:"no-store"}),c={...(b.ok?await b.json():{}).providerThinking||{}};a&&"auto"!==a?c[r]={mode:a}:delete c[r],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:c})})}catch(a){console.log("Error saving thinking config:",a)}},bM=async a=>{let b=Q[r];if(b){aL(a);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[b]:a})})}catch(a){console.log("Error saving auto-ping config:",a)}}},bN=async(a,b,c=bp)=>{let d=`${c}/${a}`;try{let a=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:d,alias:b})});if(a.ok)await bF();else{let b=await a.json();t.error(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},bO=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bF()}catch(a){console.log("Error deleting alias:",a)}},bP=async(a,b="llm",c=bx,d={},e)=>{try{let f={providerAlias:c,id:a,type:b};if(void 0!==e&&(f.enabled=e),d&&"object"==typeof d)for(let a of["vision","reasoning","contextWindow","maxOutput","thinkingFormat"])void 0!==d[a]&&(f[a]=d[a]);let g=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)});if(g.ok)await bG();else{let a=await g.json();t.error(a.error||"Failed to add custom model")}}catch(a){console.log("Error adding custom model:",a)}},bQ=async(a,b="llm",c=bx)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});(await fetch(`/api/models/custom?${d}`,{method:"DELETE"})).ok&&await bG()}catch(a){console.log("Error deleting custom model:",a)}},bR=async()=>{if(a7)return;let a=u.find(a=>!1!==a.isActive);if(!a)return void t.warning((0,y.Tl)("Please add an active Qoder connection first"));a8(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void t.error(c.error||(0,y.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void t.warning((0,y.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=b.replace(/^qoder\//,"");ai.some(a=>a.providerAlias===bx&&a.id===c&&"llm"===(a.kind||a.type||"llm"))||Object.values(ag).includes(`${bx}/${c}`)||(await bP(c,"llm",bx),e+=1)}0===e?t.warning((0,y.Tl)("All models already exist, no new models added")):t.success((0,y.Tl)("Successfully added")+` ${e} `+(0,y.Tl)("models"))}catch(a){console.log("Error importing Qoder models:",a),t.error((0,y.Tl)("Error fetching models")+": "+a.message)}finally{a8(!1)}},bS=async()=>{if(!a9){ba(!0);try{let a=await fetch(`/api/providers/${r}/json-models`,{method:"POST"}),b=await a.json();if(!a.ok)return void t.error(b.error||(0,y.Tl)("Failed to fetch models"));await bH();let c=b.total||b.models?.length||0;t.success((0,y.Tl)("Sync complete")+` (${c} ${(0,y.Tl)("models")})`)}catch(a){console.log("Error importing models from JSON:",a),t.error((0,y.Tl)("Error fetching models")+": "+a.message)}finally{ba(!1)}}},bT=async(a,b)=>{try{(await fetch(`/api/providers/${r}/json-models`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({modelId:a,enabled:b})})).ok&&await bH()}catch(a){console.log("Error toggling JSON model:",a)}},bU=async a=>{try{(await fetch(`/api/providers/${r}/json-models`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({all:!0,enabled:a})})).ok&&await bH()}catch(a){console.log("Error bulk-toggling JSON models:",a)}},bV=async()=>{if(aY||0===u.length)return;let a=Object.fromEntries(u.map(a=>[a.id,{state:"queued",error:null}]));a6.current=!1,aZ(!0),a_(!1),a1(null),a3(a),a5({total:u.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<u.length;a+=1){if(a6.current){a5({total:u.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=u[a];a1(d.id),a3(a=>({...a,[d.id]:{state:"testing",error:null}}));try{let a=await fetch(`/api/providers/${d.id}/test`,{method:"POST"}),e=await a.json(),f=!!e.valid;f?b+=1:c+=1,a3(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,a3(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}a5({total:u.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<u.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{a1(null),aZ(!1),a_(!1),a6.current=!1}},bW=async a=>{aV({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{aV(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&B(b=>b.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},bX=()=>{bI(),R(!1)},bY=async a=>{X("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bI(),V(!1);return}X(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),X("Failed to save connection")}},bZ=async a=>{try{(await fetch(`/api/providers/${ae.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bI(),_(!1))}catch(a){console.log("Error updating connection:",a)}},b$=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&B(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error updating connection status:",a)}},b_=async(a,b)=>{let c=[...u];[c[a],c[b]]=[c[b],c[a]],B(c);try{await Promise.all([fetch(`/api/providers/${c[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${c[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b})})])}catch(a){console.log("Error swapping priority:",a),await bI()}},b0=u.filter(a=>ay.includes(a.id)),b1=u.length>0&&ay.length===u.length;(()=>{if(0===b0.length)return;let a=new Set(b0.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=I.find(a=>a.id===b);return c?.name}})();let b2=()=>{aC||ad(!1)},b3=async a=>{aD(!0);try{let b=0;for(let{connectionId:c,proxyPoolId:d}of a)try{(await fetch(`/api/providers/${c}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:d})})).ok||(b+=1)}catch(a){console.log("Error applying proxy for",c,a),b+=1}b>0&&alert(`Updated with ${b} failed request(s).`),await bI(),ad(!1)}finally{aD(!1)}},b4=a=>b3(u.map(b=>({connectionId:b.id,proxyPoolId:a}))),b5=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:u.map((a,b)=>{let c;return(0,d.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,d.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,d.jsx)("input",{type:"checkbox",checked:(c=a.id,ay.includes(c)),onChange:()=>{var b;return b=a.id,void az(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(J,{connection:a,proxyPools:I,isOAuth:bk,isFirst:0===b,isLast:b===u.length-1,onMoveUp:()=>b_(b,b-1),onMoveDown:()=>b_(b,b+1),onToggleActive:b=>b$(a.id,b),autoPing:Q[r]&&"oauth"===a.authType?{on:!0===aK.connections[a.id],onToggle:b=>{var c;return c=a.id,void bM({...aK,connections:{...aK.connections,[c]:b}})},provider:r}:null,onUpdateProxy:async b=>{try{(await fetch(`/api/providers/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&B(c=>c.map(c=>c.id===a.id?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c))}catch(a){console.log("Error updating proxy:",a)}},onEdit:()=>{af(a),_(!0)},onDelete:()=>bW(a.id),oneByOneStatus:a2[a.id]||null})})]},a.id)})}),b6=I.filter(a=>!0===a.isActive),b7=(0,d.jsx)(k.aF,{isOpen:ac,onClose:b2,title:`Apply Proxy (${u.length} connections)`,children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsxs)("button",{onClick:()=>{let a=I.filter(a=>!0===a.isActive);return 0===a.length?void t.warning("No active proxy pools available."):b3(u.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:aC||0===b6.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,d.jsxs)("button",{onClick:()=>b4(null),disabled:aC,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),I.map(a=>(0,d.jsxs)("button",{onClick:()=>b4(a.id),disabled:aC||!0!==a.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,d.jsx)("span",{className:"truncate text-sm text-text-main",children:a.name}),!0!==a.isActive&&(0,d.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},a.id))]}),aC&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(k.$n,{onClick:b2,variant:"ghost",fullWidth:!0,disabled:aC,children:"Cancel"})]})}),b8=async a=>{if(!au.has(a)){av(b=>new Set(b).add(a));try{let b=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${bx}/${a}`})}),c=await b.json();ar(b=>({...b,[a]:c.ok?"ok":"error"})),at(c.ok?"":c.error||"Model not reachable")}catch{ar(b=>({...b,[a]:"error"})),at("Network error")}finally{av(b=>{let c=new Set(b);return c.delete(a),c})}}};if(C)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(k.Qv,{}),(0,d.jsx)(k.Qv,{})]});if(!bh)return(0,d.jsxs)("div",{className:"text-center py-20",children:[(0,d.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,d.jsx)(h(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let b9=()=>bq&&bh.apiType?"responses"===bh.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":br?"/providers/anthropic-m.png":(0,j.HY)(bh.id);return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)(h(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,d.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${bh.color}15`},children:ao||!b9()?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bh.color},children:bh.textIcon||bh.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:b9(),alt:bh.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,j.Kw)(bh.id),ap(!0)},loading:"lazy",decoding:"async"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,d.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:bh.name}),(bh.notice?.apiKeyUrl||bh.notice?.signupUrl||bh.website)&&(0,d.jsxs)("a",{href:bh.notice?.apiKeyUrl||bh.notice?.signupUrl||bh.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),bh.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[u.length," connection",1===u.length?"":"s"]})]})]})]}),bh.deprecated&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:bh.deprecationNotice})]}),bh.notice?.text&&!bh.deprecated&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,d.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:bh.notice.text}),bh.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bh.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"})]}),bs&&F&&(0,d.jsx)(k.Zp,{children:(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:br?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[br?"Messages API":"responses"===F.apiType?"Responses API":"Chat Completions"," \xb7 ",(F.baseUrl||"").replace(/\/$/,""),"/",br?"messages":"responses"===F.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:()=>{X(""),V(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ab(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aV({title:"Delete Compatible Node",message:`Delete this ${br?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aV(null);try{(await fetch(`/api/provider-nodes/${r}`,{method:"DELETE"})).ok&&q.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),bm?(0,d.jsx)(k.gw,{providerId:r}):(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[u.length>0&&I.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>ad(!0),children:"Apply Proxy"}),u.length>0&&(0,d.jsxs)(d.Fragment,{children:[ay.length>0&&(0,d.jsxs)(k.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=ay.length;0!==a&&aV({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aV(null);let a=0,b=[...ay];for(let c of b)try{(await fetch(`/api/providers/${c}`,{method:"DELETE"})).ok||(a+=1)}catch(b){console.log("Error deleting connection:",b),a+=1}B(a=>a.filter(a=>!b.includes(a.id))),az([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",ay.length,")"]}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:bV,disabled:aY,children:aY?(0,y.Tl)("Testing Connection One-by-One..."):(0,y.Tl)("Test Connection One-by-One")}),aY&&(0,d.jsx)(k.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{aY&&(a6.current=!0,a_(!0))},disabled:a$,children:a$?(0,y.Tl)("Stopping..."):(0,y.Tl)("Stop")})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted font-medium",children:(0,y.Tl)("Round Robin")}),(0,d.jsx)(k.lM,{checked:"round-robin"===aE,onChange:a=>{let b=a?"round-robin":null,c=a?aG||"1":aG;a&&!aG&&aH("1"),aF(b),bK(b,c)}}),"round-robin"===aE&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:(0,y.Tl)("Sticky:")}),(0,d.jsx)("input",{type:"number",min:1,value:aG,onChange:a=>{var b;aH(b=a.target.value),bK("round-robin",b)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===u.length?(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:bk?"lock":"key"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),bt&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bu," or ",bv,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bt?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:be,children:bu}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bf,children:bv})]}):(0,d.jsxs)(d.Fragment,{children:[!bs&&"iflow"===r&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>T(!0),children:"Cookie"}),"codex"===r&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Z(!0),children:(0,y.Tl)("Bulk Add")}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bg,children:bs?"Add API Key":"iflow"===r?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[a4&&(0,d.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,d.jsxs)("span",{children:[(0,y.Tl)("Total:")," ",a4.total]}),(0,d.jsxs)("span",{children:[(0,y.Tl)("Completed:")," ",a4.completed]}),(0,d.jsxs)("span",{children:[(0,y.Tl)("Passed:")," ",a4.passed]}),(0,d.jsxs)("span",{children:[(0,y.Tl)("Failed:")," ",a4.failed]}),a4.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:(0,y.Tl)("Stopped")}),aY&&a0&&(0,d.jsxs)("span",{children:[(0,y.Tl)("Running:")," ",u.find(a=>a.id===a0)?.name||a0]})]})}),u.length>0&&(0,d.jsx)("div",{className:"mb-3 flex items-center gap-2 border-b border-black/[0.03] pb-2 dark:border-white/[0.03]",children:(0,d.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,d.jsx)("input",{type:"checkbox",checked:b1,onChange:()=>{b1?az([]):az(u.map(a=>a.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),b5,!bs&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===r&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>T(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===r&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Z(!0),title:(0,y.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,y.Tl)("Bulk Add")}),bt?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:be,className:"w-full sm:w-auto",children:bu}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bf,className:"w-full sm:w-auto",children:bv})]}):(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bg,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),by&&(0,d.jsx)("select",{value:aI,onChange:a=>{var b;aJ(b=a.target.value),bL(b)},title:"Appends (level) suffix to copied model names",className:"rounded-md border border-border bg-background px-2 py-1 text-xs focus:border-primary focus:outline-none",children:by.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!bs&&(a=am&&!!bi,b=(ak||[]).filter(a=>!1!==a.enabled).length,c=(ak||[]).length-b,g=[...bo,...aQ.filter(a=>!bo.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}).map(a=>a.id).filter(a=>!aS.includes(a)),n=a?c>0:aS.length>0,o=a?b>0:g.length>0,(0,d.jsxs)("div",{className:"flex gap-2",children:[n&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:()=>a?bU(!0):bE(),children:"Active All"}),o&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>a?bU(!1):bD(g),children:"Disable All"})]}))]}),!!as&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:as}),(()=>{let a,b,c;if(bs)return(0,d.jsx)(G,{providerStorageAlias:bx,providerDisplayAlias:bz,modelAliases:ag,customModels:ai,copied:bb,onCopy:bc,onSetAlias:bN,onDeleteAlias:bO,onAddCustomModel:a=>bP(a,"llm",bx),onDeleteCustomModel:a=>bQ(a,"llm",bx),connections:u,isAnthropic:br,jsonModels:bi?ak:null,importingJsonModels:a9,onImportJsonModels:bS,onToggleJsonModel:bT,onBulkJsonModels:bU,useJsonCatalog:am&&!!bi});let e=[...bo,...aQ.filter(a=>!bo.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}),f=new Set(aS),g=am&&!!bi,h=g?(ak||[]).filter(a=>!1!==a.enabled):[],i=g?(ak||[]).filter(a=>!1===a.enabled):[],j=g?[]:e.filter(a=>!f.has(a.id)),k=g?[]:e.filter(a=>f.has(a.id)),l=A({customModels:ai,modelAliases:ag,providerAlias:bx,builtInModels:bo,type:"llm"});return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[l.filter(a=>!1!==a.enabled).map(a=>(0,d.jsx)(D,{model:{id:a.id,name:a.name},fullModel:`${bz}/${a.id}`,alias:a.alias,copied:bb,onCopy:bc,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?bQ(a.id,"llm",bx):bO(a.alias)},testStatus:aq[a.id],onTest:u.length>0||bm?()=>b8(a.id):void 0,isTesting:au.has(a.id),isCustom:!0,isFree:!1,caps:{...s(`${r}/${a.id}`)||{},...void 0===a.vision?{}:{vision:a.vision},...void 0===a.reasoning?{}:{reasoning:a.reasoning},...void 0===a.contextWindow?{}:{contextWindow:a.contextWindow},...void 0===a.maxOutput?{}:{maxOutput:a.maxOutput}},thinkingSuffix:bw(a.id)},`${a.source}-${a.fullModel}`)),h.map(a=>(0,d.jsx)(D,{model:{id:a.id,name:a.name},fullModel:`${bz}/${a.id}`,copied:bb,onCopy:bc,testStatus:aq[a.id],onTest:u.length>0||bm?()=>b8(a.id):void 0,isTesting:au.has(a.id),onDisable:()=>bT(a.id,!1),isFree:!1,caps:{...s(`${r}/${a.id}`)||{},...void 0===a.vision?{}:{vision:a.vision},...void 0===a.reasoning?{}:{reasoning:a.reasoning},...void 0===a.contextWindow?{}:{contextWindow:a.contextWindow},...void 0===a.maxOutput?{}:{maxOutput:a.maxOutput}},thinkingSuffix:bw(a.id)},`json-${a.id}`)),j.map(a=>{let b=`${bx}/${a.id}`,c=`${r}/${a.id}`,e=Object.entries(ag).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(D,{model:a,fullModel:`${bz}/${a.id}`,alias:e,copied:bb,onCopy:bc,onSetAlias:b=>bN(a.id,b,bx),onDeleteAlias:()=>bO(e),testStatus:aq[a.id],onTest:u.length>0||bm?()=>b8(a.id):void 0,isTesting:au.has(a.id),isFree:a.isFree,onDisable:()=>bB(a.id),caps:s(`${r}/${a.id}`),thinkingSuffix:bw(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>ax(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"qoder"===r&&u.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bR,disabled:a7,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:a7?{animation:"spin 1s linear infinite"}:void 0,children:a7?"progress_activity":"download"}),a7?(0,y.Tl)("Fetching..."):(0,y.Tl)("Fetch Qoder Models")]}),am&&bi&&u.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bS,disabled:a9,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:a9?{animation:"spin 1s linear infinite"}:void 0,children:a9?"progress_activity":"download"}),a9?(0,y.Tl)("Fetching..."):(0,y.Tl)("Fetch Models")]}),aM.length>0&&(a=new Set([...Object.values(ag),...l.map(a=>a.fullModel)]),b=new Set(bo.map(a=>a.id)),0===(c=aM.filter(c=>!a.has(`${bx}/${c.id}`)&&!b.has(c.id))).length?null:(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(a=>(0,d.jsxs)("button",{onClick:async()=>{await bP(a.id,"llm",bx)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${a.name} \xb7 ${(a.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id.split("/").pop()]},a.id))})]})),(i.length>0||k.length>0)&&(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",i.length+k.length,"):"]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[i.map(a=>(0,d.jsxs)("button",{onClick:()=>bT(a.id,!0),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id]},`json-${a.id}`)),k.map(a=>(0,d.jsxs)("button",{onClick:()=>bC(a.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id]},a.id))]})]})]})})()]}),b7,"kiro"===r?(0,d.jsx)(k.Mh,{isOpen:O,providerInfo:bh,onSuccess:bX,onClose:()=>R(!1)}):"cursor"===r?(0,d.jsx)(k.G9,{isOpen:O,onSuccess:bX,onClose:()=>R(!1)}):"gitlab"===r?(0,d.jsx)(k.vj,{isOpen:O,providerInfo:bh,onSuccess:bX,onClose:()=>R(!1)}):(0,d.jsx)(k.LF,{isOpen:O,provider:r,providerInfo:bh,onSuccess:bX,onClose:()=>R(!1)}),"iflow"===r&&(0,d.jsx)(k.vE,{isOpen:S,onSuccess:()=>{bI(),T(!1)},onClose:()=>T(!1)}),(0,d.jsx)(L,{isOpen:U,provider:r,providerName:bh.name,isCompatible:bs,isAnthropic:br,authType:bh?.authType,authHint:bh?.authHint,website:bh?.website,proxyPools:I,error:W,existingNames:u.map(a=>a.name).filter(Boolean),onSave:bY,onBulkDone:bI,onClose:()=>{X(""),V(!1)}}),(0,d.jsx)(k.wI,{isOpen:$,connection:ae,proxyPools:I,onSave:bZ,onClose:()=>_(!1)}),bs&&(0,d.jsx)(M,{isOpen:aa,node:F,onSave:bJ,onClose:()=>ab(!1),isAnthropic:br}),!bs&&(0,d.jsx)(N,{isOpen:aw,providerAlias:bx,providerDisplayAlias:bz,onSave:async a=>{await bP(a,"llm",bx),ax(!1)},onClose:()=>ax(!1)}),"codex"===r&&(0,d.jsx)(P,{isOpen:Y,onClose:()=>Z(!1),onSuccess:bI}),(0,d.jsx)(k.uo,{isOpen:aW,onClose:()=>aX(!1),onConfirm:()=>{(aX(!1),bk)?bd():bf()},title:"Risk Notice",message:bh?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(k.uo,{isOpen:!!aU,onClose:()=>aV(null),onConfirm:aU?.onConfirm,title:aU?.title||"Confirm",message:aU?.message,variant:"danger"})]})}},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},9422:(a,b,c)=>{Promise.resolve().then(c.bind(c,6069))},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},74875:(a,b,c)=>{"use strict";function d(a,b){return!1===a?"default":"active"===b||"success"===b?"success":"error"===b||"expired"===b||"unavailable"===b?"error":"default"}c.d(b,{g:()=>d})},74918:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81424:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>x,handler:()=>z,routeModule:()=>y});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,93110))),"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\providers\\[id]\\page.js"]}]},{"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},["new"]]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"F:\\Files\\GitHub Files\\10router\\src\\app\\layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,w=(0,e.H)({tree:v,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),x=w.__next_app__,y=w.routeModule,z=w.handler},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},93110:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\providers\\\\[id]\\\\page.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.")},"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\providers\\[id]\\page.js","default")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1260,2430,4613,4665,1220,9703,5448,7419,6070,869,915,6457,4123,1377,412,7356],()=>b(b.s=81424));module.exports=c})();
|
|
14
|
+
]`;function P({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[j,l]=(0,e.useState)(""),[m,n]=(0,e.useState)(null),o=()=>{h||(g(""),l(""),n(null),b())},p=async()=>{var a;let b;l(""),n(null);let d=f.trim();if(!d)return;try{b=JSON.parse(d)}catch(a){l(`${(0,y.Tl)("Invalid JSON")}: ${a.message}`);return}let e=Array.isArray(a=b)?a:a&&"object"==typeof a?Array.isArray(a.accounts)?a.accounts:[a]:null;if(!e||0===e.length)return void l((0,y.Tl)("No accounts found in input"));i(!0);try{let a=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:e})}),b=await a.json();if(!a.ok)return void l(b?.error||`Request failed: ${a.status}`);n(b),b.success>0&&"function"==typeof c&&c()}catch(a){l(a.message||(0,y.Tl)("Request failed"))}finally{i(!1)}},q=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(k.aF,{isOpen:a,title:(0,y.Tl)("Bulk Add Codex Accounts"),onClose:o,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:(0,y.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,d.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:O,value:f,onChange:a=>g(a.target.value),disabled:h}),j&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:j}),m&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:`text-sm font-medium ${m.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",m.success," ",(0,y.Tl)("added"),m.failed>0?`, ✗ ${m.failed} ${(0,y.Tl)("failed")}`:""]}),q.length>0&&(0,d.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:q.map(a=>(0,d.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:p,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,y.Tl)("Importing..."):(0,y.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:o,variant:"ghost",fullWidth:!0,disabled:h,children:(0,y.Tl)("Close")})]})]})})}function Q({isOpen:a,onClose:b,onSuccess:c,password:f=""}){let[g,h]=(0,e.useState)(""),[i,j]=(0,e.useState)(""),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(""),[p,q]=(0,e.useState)(null),r=(0,e.useRef)(null),s=()=>{l||(h(""),j(""),o(""),q(null),r.current&&(r.current.value=""),b())},t=async()=>{let a;o(""),q(null);let b=g.trim();if(!b)return;try{a=JSON.parse(b)}catch(a){o(`${(0,y.Tl)("Invalid JSON")}: ${a.message}`);return}let d=Array.isArray(a)?a:a&&"object"==typeof a?Array.isArray(a.accounts)?a.accounts:[a]:null;if(!d||0===d.length)return void o((0,y.Tl)("No accounts found in input"));m(!0);try{let a=await fetch("/api/oauth/codebuddy-cn/bulk-import",{method:"POST",headers:{"Content-Type":"application/json",...f?{"x-9r-password":f}:{}},body:JSON.stringify({accounts:d})}),b=await a.json();if(!a.ok)return void o(401===a.status?(0,y.Tl)("Invalid password"):b?.error||`Request failed: ${a.status}`);q(b),(b.imported>0||b.updated>0)&&"function"==typeof c&&c()}catch(a){o(a.message||(0,y.Tl)("Request failed"))}finally{m(!1)}},u=p?.results?.filter(a=>!a.ok)||[],v=p?.skipped??0;return(0,d.jsx)(k.aF,{isOpen:a,title:(0,y.Tl)("Import CodeBuddy CN Accounts"),onClose:s,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsx)(k.$n,{variant:"secondary",fullWidth:!0,icon:"upload_file",onClick:()=>r.current?.click(),disabled:l,children:i||(0,y.Tl)("Choose JSON file...")}),(0,d.jsx)("input",{ref:r,type:"file",accept:".json,application/json",className:"hidden",onChange:a=>{let b=a.target.files?.[0];if(!b)return;j(b.name),o(""),q(null);let c=new FileReader;c.onload=()=>h(String(c.result||"")),c.onerror=()=>o((0,y.Tl)("Failed to read file")),c.readAsText(b)}})]}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("div",{className:"absolute -top-2 left-2 bg-sidebar px-1 text-[10px] text-text-muted",children:(0,y.Tl)("Or paste JSON")}),(0,d.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 pt-4 text-sm font-mono resize-y min-h-[160px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:'[{ "access_token": "eyJ...", "refresh_token": "eyJ...", "nickname": "<nickname>" }]',value:g,onChange:a=>h(a.target.value),disabled:l})]}),n&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:n}),p&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:`text-sm font-medium ${p.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",p.imported," ",(0,y.Tl)("added"),", ",p.updated," ",(0,y.Tl)("updated"),v>0?`, ${v} ${(0,y.Tl)("skipped")}`:"",p.failed>0?`, ✗ ${p.failed} ${(0,y.Tl)("failed")}`:""]}),u.length>0&&(0,d.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:u.map(a=>(0,d.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(k.$n,{onClick:t,fullWidth:!0,disabled:l||!g.trim(),children:l?(0,y.Tl)("Importing..."):(0,y.Tl)("Import All")}),(0,d.jsx)(k.$n,{onClick:s,variant:"ghost",fullWidth:!0,disabled:l,children:(0,y.Tl)("Close")})]})]})})}P.propTypes={isOpen:C().bool.isRequired,onClose:C().func.isRequired,onSuccess:C().func},Q.propTypes={isOpen:C().bool.isRequired,onClose:C().func.isRequired,onSuccess:C().func,password:C().string};let R={claude:"claudeAutoPing",codex:"codexAutoPing"};function S(){let a,b,c,g,n,o,p=(0,f.useParams)(),q=(0,f.useRouter)(),r=p.id,{getCaps:s}=(0,x.y)(),t=(0,z.i)(),[u,B]=(0,e.useState)([]),[C,E]=(0,e.useState)(!0),[F,H]=(0,e.useState)(null),[I,K]=(0,e.useState)([]),[O,S]=(0,e.useState)(!1),[T,U]=(0,e.useState)(!1),[V,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(""),[Z,$]=(0,e.useState)(!1),[_,aa]=(0,e.useState)(!1),[ab,ac]=(0,e.useState)(!1),[ad,ae]=(0,e.useState)(!1),[af,ag]=(0,e.useState)(!1),[ah,ai]=(0,e.useState)(null),[aj,ak]=(0,e.useState)({}),[al,am]=(0,e.useState)([]),[an,ao]=(0,e.useState)(()=>null),[ap,aq]=(0,e.useState)(!1),[ar,as]=(0,e.useState)(!1),[at,au]=(0,e.useState)({open:!1,action:null,value:""}),[av,aw]=(0,e.useState)(""),[ax,ay]=(0,e.useState)(!1),[az,aA]=(0,e.useState)({}),[aB,aC]=(0,e.useState)(""),[aD,aE]=(0,e.useState)(()=>new Set),[aF,aG]=(0,e.useState)(!1),[aH,aI]=(0,e.useState)([]),[aJ,aK]=(0,e.useState)("__none__"),[aL,aM]=(0,e.useState)(!1),[aN,aO]=(0,e.useState)(null),[aP,aQ]=(0,e.useState)(""),[aR,aS]=(0,e.useState)("auto"),[aT,aU]=(0,e.useState)({enabled:!1,connections:{}}),[aV,aW]=(0,e.useState)([]),[aX,aY]=(0,e.useState)([]),[aZ,a$]=(0,e.useState)([]),[a_,a0]=(0,e.useState)([]),[a1,a2]=(0,e.useState)(null),[a3,a4]=(0,e.useState)(!1),[a5,a6]=(0,e.useState)(!1),[a7,a8]=(0,e.useState)(!1),[a9,ba]=(0,e.useState)(null),[bb,bc]=(0,e.useState)({}),[bd,be]=(0,e.useState)(null),bf=(0,e.useRef)(!1),[bg,bh]=(0,e.useState)(!1),[bi,bj]=(0,e.useState)(!1),{copied:bk,copy:bl}=(0,w.C)(),bm=()=>{S(!0)},bn=()=>{bw?bm():(Y(""),W(!0))},bo=()=>{Y(""),W(!0)},bp=()=>{bw?bn():bo()},bq=async()=>{let{action:a,value:b}=at;au({open:!1,action:null,value:""}),"export"===a?await bs(b):"import"===a&&(aw(b),aa(!0))},br=a=>{aw(""),au({open:!0,action:a,value:""})},bs=async a=>{try{let b=await fetch("/api/oauth/codebuddy-cn/export",{cache:"no-store",headers:a?{"x-9r-password":a}:{}}),c=await b.json();if(!b.ok){if(401===b.status)throw Error((0,y.Tl)("Invalid password"));throw Error(c?.error||`Request failed: ${b.status}`)}let d=Array.isArray(c)?c:[];if(0===d.length)return void t.warning((0,y.Tl)("No CodeBuddy CN connections to export"));let e=new Blob([JSON.stringify(d,null,2)],{type:"application/json"}),f=URL.createObjectURL(e),g=document.createElement("a");g.href=f,g.download=`codebuddy-cn-accounts-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(g),g.click(),g.remove(),setTimeout(()=>URL.revokeObjectURL(f),1e3),t.success(`${d.length} ${(0,y.Tl)("accounts exported")}`)}catch(a){t.error((0,y.Tl)("Export failed")+": "+a.message)}},bt=F?{id:F.id,name:F.name||("anthropic-compatible"===F.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===F.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===F.type?"AC":"OC",apiType:F.apiType,baseUrl:F.baseUrl,type:F.type,modelsJsonUrl:F.modelsJsonUrl||void 0,fallbackModelsJsonUrl:F.fallbackModelsJsonUrl||void 0}:l.zN[r]||l.fg[r]||l.IS[r]||l.nJ[r]||l.br[r],bu=bt?.modelsJsonUrl,bv=bt?.authModes||[],bw=!!l.zN[r]||!!l.IS[r]||bv.includes("oauth"),bx=!!l.fg[r]||bv.includes("apikey"),by=!!l.IS[r]?.noAuth,bz="codebuddy-cn"===r&&ar,bA=(0,m.KC)(r),bB="cursor"===r&&aX.length>0?aX:bA,bC=(0,l.wG)(r),bD=(0,l.mq)(r),bE=(0,l.gb)(r),bF=bD||bE,bG=!bF&&bw&&bx,bH="xai"===r?"Grok Build OAuth":"grok-cli"===r?"Grok CLI Device Login":"kimi"===r?"Kimi Coding OAuth":"OAuth",bI="xai"===r?"xAI API Key":"kimi"===r?"Kimi API Key":"qoder"===r?"PAT":"API Key",bJ=a=>{if(!aR||"auto"===aR)return null;let b=v(r,a);return b&&b.includes(aR)?aR:null},bK=bF?r:bC,bL=(()=>{let a=new Set,b=new Set,c=c=>{if(!c||b.has(c))return;b.add(c);let d=v(r,c);d&&d.forEach(b=>{"none"!==b&&a.add(b)})};for(let a of bB)c(a.id);for(let a of aZ)c(a.id);for(let a of al)a.providerAlias===bK&&"llm"===(a.kind||a.type||"llm")&&c(a.id);return a.size?["auto",...a]:null})(),bM=bF?F?.prefix||r:bC,bN=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bK)}`,{cache:"no-store"}),b=await a.json();a.ok&&a0(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[bK]),bO=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bK,ids:[a]})})).ok&&await bN()}catch(a){console.log("Error disabling model:",a)}},bP=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bK)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bN()}catch(a){console.log("Error enabling model:",a)}},bQ=async a=>{a.length&&a2({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{a2(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bK,ids:a})})).ok&&await bN()}catch(a){console.log("Error disabling all models:",a)}}})},bR=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bK)}`,{method:"DELETE"})).ok&&await bN()}catch(a){console.log("Error enabling all models:",a)}},bS=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&ak(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bT=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&am(b.models||[])}catch(a){console.log("Error fetching custom models:",a)}},[]),bU=(0,e.useCallback)(async()=>{if(bu)try{let a=await fetch(`/api/providers/${r}/json-models`,{cache:"no-store"}),b=await a.json();a.ok&&ao(b.models||[])}catch(a){console.log("Error fetching provider JSON models:",a)}},[r,bu]),bV=(0,e.useCallback)(async()=>{try{let[a,b,c,d]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),e=await a.json(),f=await b.json(),g=await c.json(),h=d.ok?await d.json():{};if(a.ok){let a=(e.connections||[]).filter(a=>a.provider===r);B(a)}c.ok&&K(g.proxyPools||[]);let i=(h.providerStrategies||{})[r]||{};aO(i.fallbackStrategy||null),aQ(null!=i.stickyRoundRobinLimit?String(i.stickyRoundRobinLimit):"1");let j=(h.providerThinking||{})[r]||{};aS(j.mode||"auto");let k=R[r],l=k&&h[k]||{};if(aU({enabled:!0===l.enabled,connections:l.connections||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===r)||null;if(!a&&bF)for(let b=0;b<3;b+=1){await new Promise(a=>setTimeout(a,150));let b=await fetch("/api/provider-nodes",{cache:"no-store"});if(b.ok&&(a=((await b.json()).nodes||[]).find(a=>a.id===r)||null))break}H(a)}}catch(a){console.log("Error fetching connections:",a)}finally{E(!1)}},[r,bF]),bW=async a=>{try{let b=await fetch(`/api/provider-nodes/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(H(c.node),await bV(),ae(!1))}catch(a){console.log("Error updating provider node:",a)}},bX=async(a,b)=>{try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{}).providerStrategies||{},e={};a&&(e.fallbackStrategy=a),"round-robin"===a&&""!==b&&(e.stickyRoundRobinLimit=Number(b)||3);let f={...d};0===Object.keys(e).length?delete f[r]:f[r]=e,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:f})})}catch(a){console.log("Error saving provider strategy:",a)}},bY=async a=>{try{let b=await fetch("/api/settings",{cache:"no-store"}),c={...(b.ok?await b.json():{}).providerThinking||{}};a&&"auto"!==a?c[r]={mode:a}:delete c[r],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:c})})}catch(a){console.log("Error saving thinking config:",a)}},bZ=async a=>{let b=R[r];if(b){aU(a);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[b]:a})})}catch(a){console.log("Error saving auto-ping config:",a)}}},b$=async(a,b,c=bC)=>{let d=`${c}/${a}`;try{let a=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:d,alias:b})});if(a.ok)await bS();else{let b=await a.json();t.error(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},b_=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bS()}catch(a){console.log("Error deleting alias:",a)}},b0=async(a,b="llm",c=bK,d={},e)=>{try{let f={providerAlias:c,id:a,type:b};if(void 0!==e&&(f.enabled=e),d&&"object"==typeof d)for(let a of["vision","reasoning","contextWindow","maxOutput","thinkingFormat"])void 0!==d[a]&&(f[a]=d[a]);let g=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)});if(g.ok)await bT();else{let a=await g.json();t.error(a.error||"Failed to add custom model")}}catch(a){console.log("Error adding custom model:",a)}},b1=async(a,b="llm",c=bK)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});(await fetch(`/api/models/custom?${d}`,{method:"DELETE"})).ok&&await bT()}catch(a){console.log("Error deleting custom model:",a)}},b2=async()=>{if(bg)return;let a=u.find(a=>!1!==a.isActive);if(!a)return void t.warning((0,y.Tl)("Please add an active Qoder connection first"));bh(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void t.error(c.error||(0,y.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void t.warning((0,y.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=b.replace(/^qoder\//,"");al.some(a=>a.providerAlias===bK&&a.id===c&&"llm"===(a.kind||a.type||"llm"))||Object.values(aj).includes(`${bK}/${c}`)||(await b0(c,"llm",bK),e+=1)}0===e?t.warning((0,y.Tl)("All models already exist, no new models added")):t.success((0,y.Tl)("Successfully added")+` ${e} `+(0,y.Tl)("models"))}catch(a){console.log("Error importing Qoder models:",a),t.error((0,y.Tl)("Error fetching models")+": "+a.message)}finally{bh(!1)}},b3=async()=>{if(!bi){bj(!0);try{let a=await fetch(`/api/providers/${r}/json-models`,{method:"POST"}),b=await a.json();if(!a.ok)return void t.error(b.error||(0,y.Tl)("Failed to fetch models"));await bU();let c=b.total||b.models?.length||0;t.success((0,y.Tl)("Sync complete")+` (${c} ${(0,y.Tl)("models")})`)}catch(a){console.log("Error importing models from JSON:",a),t.error((0,y.Tl)("Error fetching models")+": "+a.message)}finally{bj(!1)}}},b4=async(a,b)=>{try{(await fetch(`/api/providers/${r}/json-models`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({modelId:a,enabled:b})})).ok&&await bU()}catch(a){console.log("Error toggling JSON model:",a)}},b5=async a=>{try{(await fetch(`/api/providers/${r}/json-models`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({all:!0,enabled:a})})).ok&&await bU()}catch(a){console.log("Error bulk-toggling JSON models:",a)}},b6=async()=>{if(a5||0===u.length)return;let a=Object.fromEntries(u.map(a=>[a.id,{state:"queued",error:null}]));bf.current=!1,a6(!0),a8(!1),ba(null),bc(a),be({total:u.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<u.length;a+=1){if(bf.current){be({total:u.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=u[a];ba(d.id),bc(a=>({...a,[d.id]:{state:"testing",error:null}}));try{let a=await fetch(`/api/providers/${d.id}/test`,{method:"POST"}),e=await a.json(),f=!!e.valid;f?b+=1:c+=1,bc(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,bc(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}be({total:u.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<u.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{ba(null),a6(!1),a8(!1),bf.current=!1}},b7=async a=>{a2({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{a2(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&B(b=>b.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},b8=()=>{bV(),S(!1)},b9=async a=>{Y("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bV(),W(!1);return}Y(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),Y("Failed to save connection")}},ca=async a=>{try{(await fetch(`/api/providers/${ah.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bV(),ac(!1))}catch(a){console.log("Error updating connection:",a)}},cb=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&B(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error updating connection status:",a)}},cc=async(a,b)=>{let c=[...u];[c[a],c[b]]=[c[b],c[a]],B(c);try{await Promise.all([fetch(`/api/providers/${c[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${c[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b})})])}catch(a){console.log("Error swapping priority:",a),await bV()}},cd=u.filter(a=>aH.includes(a.id)),ce=u.length>0&&aH.length===u.length;(()=>{if(0===cd.length)return;let a=new Set(cd.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=I.find(a=>a.id===b);return c?.name}})();let cf=()=>{aL||ag(!1)},cg=async a=>{aM(!0);try{let b=0;for(let{connectionId:c,proxyPoolId:d}of a)try{(await fetch(`/api/providers/${c}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:d})})).ok||(b+=1)}catch(a){console.log("Error applying proxy for",c,a),b+=1}b>0&&alert(`Updated with ${b} failed request(s).`),await bV(),ag(!1)}finally{aM(!1)}},ch=a=>cg(u.map(b=>({connectionId:b.id,proxyPoolId:a}))),ci=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:u.map((a,b)=>{let c;return(0,d.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,d.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,d.jsx)("input",{type:"checkbox",checked:(c=a.id,aH.includes(c)),onChange:()=>{var b;return b=a.id,void aI(a=>a.includes(b)?a.filter(a=>a!==b):[...a,b])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(J,{connection:a,proxyPools:I,isOAuth:bw,isFirst:0===b,isLast:b===u.length-1,onMoveUp:()=>cc(b,b-1),onMoveDown:()=>cc(b,b+1),onToggleActive:b=>cb(a.id,b),autoPing:R[r]&&"oauth"===a.authType?{on:!0===aT.connections[a.id],onToggle:b=>{var c;return c=a.id,void bZ({...aT,connections:{...aT.connections,[c]:b}})},provider:r}:null,onUpdateProxy:async b=>{try{(await fetch(`/api/providers/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&B(c=>c.map(c=>c.id===a.id?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c))}catch(a){console.log("Error updating proxy:",a)}},onEdit:()=>{ai(a),ac(!0)},onDelete:()=>b7(a.id),oneByOneStatus:bb[a.id]||null})})]},a.id)})}),cj=I.filter(a=>!0===a.isActive),ck=(0,d.jsx)(k.aF,{isOpen:af,onClose:cf,title:`Apply Proxy (${u.length} connections)`,children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsxs)("button",{onClick:()=>{let a=I.filter(a=>!0===a.isActive);return 0===a.length?void t.warning("No active proxy pools available."):cg(u.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:aL||0===cj.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,d.jsxs)("button",{onClick:()=>ch(null),disabled:aL,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),I.map(a=>(0,d.jsxs)("button",{onClick:()=>ch(a.id),disabled:aL||!0!==a.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,d.jsx)("span",{className:"truncate text-sm text-text-main",children:a.name}),!0!==a.isActive&&(0,d.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},a.id))]}),aL&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(k.$n,{onClick:cf,variant:"ghost",fullWidth:!0,disabled:aL,children:"Cancel"})]})}),cl=async a=>{if(!aD.has(a)){aE(b=>new Set(b).add(a));try{let b=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${bK}/${a}`})}),c=await b.json();aA(b=>({...b,[a]:c.ok?"ok":"error"})),aC(c.ok?"":c.error||"Model not reachable")}catch{aA(b=>({...b,[a]:"error"})),aC("Network error")}finally{aE(b=>{let c=new Set(b);return c.delete(a),c})}}};if(C)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(k.Qv,{}),(0,d.jsx)(k.Qv,{})]});if(!bt)return(0,d.jsxs)("div",{className:"text-center py-20",children:[(0,d.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,d.jsx)(h(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let cm=()=>bD&&bt.apiType?"responses"===bt.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":bE?"/providers/anthropic-m.png":(0,j.HY)(bt.id);return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)(h(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,d.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${bt.color}15`},children:ax||!cm()?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bt.color},children:bt.textIcon||bt.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:cm(),alt:bt.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,j.Kw)(bt.id),ay(!0)},loading:"lazy",decoding:"async"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,d.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:bt.name}),(bt.notice?.apiKeyUrl||bt.notice?.signupUrl||bt.website)&&(0,d.jsxs)("a",{href:bt.notice?.apiKeyUrl||bt.notice?.signupUrl||bt.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),bt.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]}),(0,d.jsx)(k.N5,{code:bt.notice?.inviteCode})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[u.length," connection",1===u.length?"":"s"]})]})]})]}),bt.deprecated&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:bt.deprecationNotice})]}),bt.notice?.text&&!bt.deprecated&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,d.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:bt.notice.text}),bt.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bt.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"}),(0,d.jsx)(k.N5,{code:bt.notice?.inviteCode})]}),bF&&F&&(0,d.jsx)(k.Zp,{children:(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:bE?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[bE?"Messages API":"responses"===F.apiType?"Responses API":"Chat Completions"," \xb7 ",(F.baseUrl||"").replace(/\/$/,""),"/",bE?"messages":"responses"===F.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:()=>{Y(""),W(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ae(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{a2({title:"Delete Compatible Node",message:`Delete this ${bE?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{a2(null);try{(await fetch(`/api/provider-nodes/${r}`,{method:"DELETE"})).ok&&q.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),by?(0,d.jsx)(k.gw,{providerId:r}):(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[u.length>0&&I.length>0&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>ag(!0),children:"Apply Proxy"}),u.length>0&&(0,d.jsxs)(d.Fragment,{children:[aH.length>0&&(0,d.jsxs)(k.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=aH.length;0!==a&&a2({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{a2(null);let a=0,b=[...aH];for(let c of b)try{(await fetch(`/api/providers/${c}`,{method:"DELETE"})).ok||(a+=1)}catch(b){console.log("Error deleting connection:",b),a+=1}B(a=>a.filter(a=>!b.includes(a.id))),aI([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",aH.length,")"]}),(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:b6,disabled:a5,children:a5?(0,y.Tl)("Testing Connection One-by-One..."):(0,y.Tl)("Test Connection One-by-One")}),a5&&(0,d.jsx)(k.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{a5&&(bf.current=!0,a8(!0))},disabled:a7,children:a7?(0,y.Tl)("Stopping..."):(0,y.Tl)("Stop")})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted font-medium",children:(0,y.Tl)("Round Robin")}),(0,d.jsx)(k.lM,{checked:"round-robin"===aN,onChange:a=>{let b=a?"round-robin":null,c=a?aP||"1":aP;a&&!aP&&aQ("1"),aO(b),bX(b,c)}}),"round-robin"===aN&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:(0,y.Tl)("Sticky:")}),(0,d.jsx)("input",{type:"number",min:1,value:aP,onChange:a=>{var b;aQ(b=a.target.value),bX("round-robin",b)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===u.length?(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:bw?"lock":"key"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),bG&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bH," or ",bI,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bG?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bn,children:bH}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bo,children:bI}),bz&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"file_download",variant:"secondary",onClick:()=>br("export"),children:(0,y.Tl)("Export")}),(0,d.jsx)(k.$n,{size:"sm",icon:"upload_file",variant:"secondary",onClick:()=>br("import"),children:(0,y.Tl)("Import")})]})]}):(0,d.jsxs)(d.Fragment,{children:[!bF&&"iflow"===r&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>U(!0),children:"Cookie"}),"codex"===r&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>$(!0),children:(0,y.Tl)("Bulk Add")}),(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bp,children:bF?"Add API Key":"iflow"===r?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[bd&&(0,d.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,d.jsxs)("span",{children:[(0,y.Tl)("Total:")," ",bd.total]}),(0,d.jsxs)("span",{children:[(0,y.Tl)("Completed:")," ",bd.completed]}),(0,d.jsxs)("span",{children:[(0,y.Tl)("Passed:")," ",bd.passed]}),(0,d.jsxs)("span",{children:[(0,y.Tl)("Failed:")," ",bd.failed]}),bd.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:(0,y.Tl)("Stopped")}),a5&&a9&&(0,d.jsxs)("span",{children:[(0,y.Tl)("Running:")," ",u.find(a=>a.id===a9)?.name||a9]})]})}),u.length>0&&(0,d.jsx)("div",{className:"mb-3 flex items-center gap-2 border-b border-black/[0.03] pb-2 dark:border-white/[0.03]",children:(0,d.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,d.jsx)("input",{type:"checkbox",checked:ce,onChange:()=>{ce?aI([]):aI(u.map(a=>a.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),ci,!bF&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===r&&(0,d.jsx)(k.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>U(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===r&&(0,d.jsx)(k.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>$(!0),title:(0,y.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,y.Tl)("Bulk Add")}),bG?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bn,className:"w-full sm:w-auto",children:bH}),(0,d.jsx)(k.$n,{size:"sm",icon:"key",onClick:bo,className:"w-full sm:w-auto",children:bI}),bz&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{size:"sm",icon:"file_download",variant:"secondary",onClick:()=>br("export"),className:"w-full sm:w-auto",children:(0,y.Tl)("Export")}),(0,d.jsx)(k.$n,{size:"sm",icon:"upload_file",variant:"secondary",onClick:()=>br("import"),className:"w-full sm:w-auto",children:(0,y.Tl)("Import")})]})]}):(0,d.jsx)(k.$n,{size:"sm",icon:"add",onClick:bp,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsxs)(k.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),bL&&(0,d.jsx)("select",{value:aR,onChange:a=>{var b;aS(b=a.target.value),bY(b)},title:"Appends (level) suffix to copied model names",className:"rounded-md border border-border bg-background px-2 py-1 text-xs focus:border-primary focus:outline-none",children:bL.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),!bF&&(a=ap&&!!bu,b=(an||[]).filter(a=>!1!==a.enabled).length,c=(an||[]).length-b,g=[...bB,...aZ.filter(a=>!bB.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}).map(a=>a.id).filter(a=>!a_.includes(a)),n=a?c>0:a_.length>0,o=a?b>0:g.length>0,(0,d.jsxs)("div",{className:"flex gap-2",children:[n&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:()=>a?b5(!0):bR(),children:"Active All"}),o&&(0,d.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>a?b5(!1):bQ(g),children:"Disable All"})]}))]}),!!aB&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:aB}),(()=>{let a,b,c;if(bF)return(0,d.jsx)(G,{providerStorageAlias:bK,providerDisplayAlias:bM,modelAliases:aj,customModels:al,copied:bk,onCopy:bl,onSetAlias:b$,onDeleteAlias:b_,onAddCustomModel:a=>b0(a,"llm",bK),onDeleteCustomModel:a=>b1(a,"llm",bK),connections:u,isAnthropic:bE,jsonModels:bu?an:null,importingJsonModels:bi,onImportJsonModels:b3,onToggleJsonModel:b4,onBulkJsonModels:b5,useJsonCatalog:ap&&!!bu});let e=[...bB,...aZ.filter(a=>!bB.some(b=>b.id===a.id))].filter(a=>{let b=(0,m.CP)(a);return!b||"llm"===b}),f=new Set(a_),g=ap&&!!bu,h=g?(an||[]).filter(a=>!1!==a.enabled):[],i=g?(an||[]).filter(a=>!1===a.enabled):[],j=g?[]:e.filter(a=>!f.has(a.id)),k=g?[]:e.filter(a=>f.has(a.id)),l=A({customModels:al,modelAliases:aj,providerAlias:bK,builtInModels:bB,type:"llm"});return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[l.filter(a=>!1!==a.enabled).map(a=>(0,d.jsx)(D,{model:{id:a.id,name:a.name},fullModel:`${bM}/${a.id}`,alias:a.alias,copied:bk,onCopy:bl,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?b1(a.id,"llm",bK):b_(a.alias)},testStatus:az[a.id],onTest:u.length>0||by?()=>cl(a.id):void 0,isTesting:aD.has(a.id),isCustom:!0,isFree:!1,caps:{...s(`${r}/${a.id}`)||{},...void 0===a.vision?{}:{vision:a.vision},...void 0===a.reasoning?{}:{reasoning:a.reasoning},...void 0===a.contextWindow?{}:{contextWindow:a.contextWindow},...void 0===a.maxOutput?{}:{maxOutput:a.maxOutput}},thinkingSuffix:bJ(a.id)},`${a.source}-${a.fullModel}`)),h.map(a=>(0,d.jsx)(D,{model:{id:a.id,name:a.name},fullModel:`${bM}/${a.id}`,copied:bk,onCopy:bl,testStatus:az[a.id],onTest:u.length>0||by?()=>cl(a.id):void 0,isTesting:aD.has(a.id),onDisable:()=>b4(a.id,!1),isFree:!1,caps:{...s(`${r}/${a.id}`)||{},...void 0===a.vision?{}:{vision:a.vision},...void 0===a.reasoning?{}:{reasoning:a.reasoning},...void 0===a.contextWindow?{}:{contextWindow:a.contextWindow},...void 0===a.maxOutput?{}:{maxOutput:a.maxOutput}},thinkingSuffix:bJ(a.id)},`json-${a.id}`)),j.map(a=>{let b=`${bK}/${a.id}`,c=`${r}/${a.id}`,e=Object.entries(aj).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(D,{model:a,fullModel:`${bM}/${a.id}`,alias:e,copied:bk,onCopy:bl,onSetAlias:b=>b$(a.id,b,bK),onDeleteAlias:()=>b_(e),testStatus:az[a.id],onTest:u.length>0||by?()=>cl(a.id):void 0,isTesting:aD.has(a.id),isFree:a.isFree,onDisable:()=>bO(a.id),caps:s(`${r}/${a.id}`),thinkingSuffix:bJ(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>aG(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"qoder"===r&&u.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:b2,disabled:bg,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:bg?{animation:"spin 1s linear infinite"}:void 0,children:bg?"progress_activity":"download"}),bg?(0,y.Tl)("Fetching..."):(0,y.Tl)("Fetch Qoder Models")]}),ap&&bu&&u.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:b3,disabled:bi,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:bi?{animation:"spin 1s linear infinite"}:void 0,children:bi?"progress_activity":"download"}),bi?(0,y.Tl)("Fetching..."):(0,y.Tl)("Fetch Models")]}),aV.length>0&&(a=new Set([...Object.values(aj),...l.map(a=>a.fullModel)]),b=new Set(bB.map(a=>a.id)),0===(c=aV.filter(c=>!a.has(`${bK}/${c.id}`)&&!b.has(c.id))).length?null:(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(a=>(0,d.jsxs)("button",{onClick:async()=>{await b0(a.id,"llm",bK)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${a.name} \xb7 ${(a.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id.split("/").pop()]},a.id))})]})),(i.length>0||k.length>0)&&(0,d.jsxs)("div",{className:"w-full mt-2",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",i.length+k.length,"):"]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[i.map(a=>(0,d.jsxs)("button",{onClick:()=>b4(a.id,!0),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id]},`json-${a.id}`)),k.map(a=>(0,d.jsxs)("button",{onClick:()=>bP(a.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),a.id]},a.id))]})]})]})})()]}),ck,"kiro"===r?(0,d.jsx)(k.Mh,{isOpen:O,providerInfo:bt,onSuccess:b8,onClose:()=>S(!1)}):"cursor"===r?(0,d.jsx)(k.G9,{isOpen:O,onSuccess:b8,onClose:()=>S(!1)}):"gitlab"===r?(0,d.jsx)(k.vj,{isOpen:O,providerInfo:bt,onSuccess:b8,onClose:()=>S(!1)}):(0,d.jsx)(k.LF,{isOpen:O,provider:r,providerInfo:bt,onSuccess:b8,onClose:()=>S(!1)}),"iflow"===r&&(0,d.jsx)(k.vE,{isOpen:T,onSuccess:()=>{bV(),U(!1)},onClose:()=>U(!1)}),(0,d.jsx)(L,{isOpen:V,provider:r,providerName:bt.name,isCompatible:bF,isAnthropic:bE,authType:bt?.authType,authHint:bt?.authHint,website:bt?.website,proxyPools:I,error:X,existingNames:u.map(a=>a.name).filter(Boolean),onSave:b9,onBulkDone:bV,onClose:()=>{Y(""),W(!1)}}),(0,d.jsx)(k.wI,{isOpen:ab,connection:ah,proxyPools:I,onSave:ca,onClose:()=>ac(!1)}),bF&&(0,d.jsx)(M,{isOpen:ad,node:F,onSave:bW,onClose:()=>ae(!1),isAnthropic:bE}),!bF&&(0,d.jsx)(N,{isOpen:aF,providerAlias:bK,providerDisplayAlias:bM,onSave:async a=>{await b0(a,"llm",bK),aG(!1)},onClose:()=>aG(!1)}),"codex"===r&&(0,d.jsx)(P,{isOpen:Z,onClose:()=>$(!1),onSuccess:bV}),"codebuddy-cn"===r&&(0,d.jsx)(Q,{isOpen:_,password:av,onClose:()=>aa(!1),onSuccess:bV}),(0,d.jsxs)(k.aF,{isOpen:at.open,onClose:()=>au({open:!1,action:null,value:""}),title:(0,y.Tl)("Confirm Password"),size:"sm",footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.$n,{variant:"ghost",onClick:()=>au({open:!1,action:null,value:""}),children:(0,y.Tl)("Cancel")}),(0,d.jsx)(k.$n,{variant:"primary",onClick:bq,disabled:!at.value,children:(0,y.Tl)("Confirm")})]}),children:[(0,d.jsx)("p",{className:"text-text-muted mb-3 text-sm",children:(0,y.Tl)("export"===at.action?"Enter your current password to export CodeBuddy CN accounts.":"Enter your current password to import CodeBuddy CN accounts.")}),(0,d.jsx)(k.pd,{type:"password",autoFocus:!0,value:at.value,onChange:a=>au(b=>({...b,value:a.target.value})),onKeyDown:a=>{"Enter"===a.key&&at.value&&bq()},placeholder:(0,y.Tl)("Password")})]}),(0,d.jsx)(k.uo,{isOpen:a3,onClose:()=>a4(!1),onConfirm:()=>{(a4(!1),bw)?bm():bo()},title:"Risk Notice",message:bt?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(k.uo,{isOpen:!!a1,onClose:()=>a2(null),onConfirm:a1?.onConfirm,title:a1?.title||"Confirm",message:a1?.message,variant:"danger"})]})}},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},74875:(a,b,c)=>{"use strict";function d(a,b){return!1===a?"default":"active"===b||"success"===b?"success":"error"===b||"expired"===b||"unavailable"===b?"error":"default"}c.d(b,{g:()=>d})},74918:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},93110:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\providers\\\\[id]\\\\page.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.")},"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\providers\\[id]\\page.js","default")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1260,2430,4613,4665,1220,9703,5448,9463,6070,869,915,6457,4123,1377,412,1564],()=>b(b.s=40956));module.exports=c})();
|
package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/bundle-name/index.js","../../../../../../../node_modules/bundle-name/package.json","../../../../../../../node_modules/default-browser-id/index.js","../../../../../../../node_modules/default-browser-id/package.json","../../../../../../../node_modules/default-browser/index.js","../../../../../../../node_modules/default-browser/package.json","../../../../../../../node_modules/default-browser/windows.js","../../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/is-docker/index.js","../../../../../../../node_modules/is-docker/package.json","../../../../../../../node_modules/is-in-ssh/index.js","../../../../../../../node_modules/is-in-ssh/package.json","../../../../../../../node_modules/is-inside-container/index.js","../../../../../../../node_modules/is-inside-container/package.json","../../../../../../../node_modules/is-wsl/index.js","../../../../../../../node_modules/is-wsl/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/open/index.js","../../../../../../../node_modules/open/package.json","../../../../../../../node_modules/open/xdg-open","../../../../../../../node_modules/powershell-utils/index.js","../../../../../../../node_modules/powershell-utils/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/run-applescript/index.js","../../../../../../../node_modules/run-applescript/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../node_modules/wsl-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../../node_modules/wsl-utils/package.json","../../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/112.js","../../../../../chunks/1129.js","../../../../../chunks/1220.js","../../../../../chunks/1260.js","../../../../../chunks/1377.js","../../../../../chunks/1813.js","../../../../../chunks/1998.js","../../../../../chunks/2051.js","../../../../../chunks/2283.js","../../../../../chunks/2391.js","../../../../../chunks/241.js","../../../../../chunks/2430.js","../../../../../chunks/3016.js","../../../../../chunks/318.js","../../../../../chunks/3212.js","../../../../../chunks/3225.js","../../../../../chunks/3350.js","../../../../../chunks/3535.js","../../../../../chunks/3546.js","../../../../../chunks/3558.js","../../../../../chunks/3593.js","../../../../../chunks/3943.js","../../../../../chunks/4037.js","../../../../../chunks/4055.js","../../../../../chunks/412.js","../../../../../chunks/4123.js","../../../../../chunks/4125.js","../../../../../chunks/4452.js","../../../../../chunks/4613.js","../../../../../chunks/4665.js","../../../../../chunks/4730.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4780.js","../../../../../chunks/507.js","../../../../../chunks/5081.js","../../../../../chunks/5182.js","../../../../../chunks/5217.js","../../../../../chunks/5258.js","../../../../../chunks/5433.js","../../../../../chunks/5448.js","../../../../../chunks/5573.js","../../../../../chunks/5612.js","../../../../../chunks/5615.js","../../../../../chunks/5640.js","../../../../../chunks/5699.js","../../../../../chunks/5781.js","../../../../../chunks/595.js","../../../../../chunks/6070.js","../../../../../chunks/615.js","../../../../../chunks/6306.js","../../../../../chunks/6457.js","../../../../../chunks/6763.js","../../../../../chunks/6832.js","../../../../../chunks/6844.js","../../../../../chunks/6877.js","../../../../../chunks/698.js","../../../../../chunks/7211.js","../../../../../chunks/7322.js","../../../../../chunks/7356.js","../../../../../chunks/7419.js","../../../../../chunks/7774.js","../../../../../chunks/7828.js","../../../../../chunks/7914.js","../../../../../chunks/7965.js","../../../../../chunks/8038.js","../../../../../chunks/8123.js","../../../../../chunks/8145.js","../../../../../chunks/8185.js","../../../../../chunks/827.js","../../../../../chunks/8292.js","../../../../../chunks/8499.js","../../../../../chunks/8520.js","../../../../../chunks/869.js","../../../../../chunks/8847.js","../../../../../chunks/8895.js","../../../../../chunks/8910.js","../../../../../chunks/8920.js","../../../../../chunks/8936.js","../../../../../chunks/915.js","../../../../../chunks/9528.js","../../../../../chunks/9703.js","../../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
1
|
+
{"version":1,"files":["../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/bundle-name/index.js","../../../../../../../node_modules/bundle-name/package.json","../../../../../../../node_modules/default-browser-id/index.js","../../../../../../../node_modules/default-browser-id/package.json","../../../../../../../node_modules/default-browser/index.js","../../../../../../../node_modules/default-browser/package.json","../../../../../../../node_modules/default-browser/windows.js","../../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/is-docker/index.js","../../../../../../../node_modules/is-docker/package.json","../../../../../../../node_modules/is-in-ssh/index.js","../../../../../../../node_modules/is-in-ssh/package.json","../../../../../../../node_modules/is-inside-container/index.js","../../../../../../../node_modules/is-inside-container/package.json","../../../../../../../node_modules/is-wsl/index.js","../../../../../../../node_modules/is-wsl/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/open/index.js","../../../../../../../node_modules/open/package.json","../../../../../../../node_modules/open/xdg-open","../../../../../../../node_modules/powershell-utils/index.js","../../../../../../../node_modules/powershell-utils/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/run-applescript/index.js","../../../../../../../node_modules/run-applescript/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../node_modules/wsl-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../../node_modules/wsl-utils/package.json","../../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1129.js","../../../../../chunks/1220.js","../../../../../chunks/1260.js","../../../../../chunks/1332.js","../../../../../chunks/1377.js","../../../../../chunks/1564.js","../../../../../chunks/1813.js","../../../../../chunks/1998.js","../../../../../chunks/2051.js","../../../../../chunks/2283.js","../../../../../chunks/2391.js","../../../../../chunks/241.js","../../../../../chunks/2430.js","../../../../../chunks/3016.js","../../../../../chunks/318.js","../../../../../chunks/3212.js","../../../../../chunks/3225.js","../../../../../chunks/3350.js","../../../../../chunks/3535.js","../../../../../chunks/3546.js","../../../../../chunks/3558.js","../../../../../chunks/3593.js","../../../../../chunks/3943.js","../../../../../chunks/4037.js","../../../../../chunks/4055.js","../../../../../chunks/412.js","../../../../../chunks/4123.js","../../../../../chunks/4125.js","../../../../../chunks/4452.js","../../../../../chunks/4613.js","../../../../../chunks/4665.js","../../../../../chunks/4730.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4780.js","../../../../../chunks/507.js","../../../../../chunks/5081.js","../../../../../chunks/5182.js","../../../../../chunks/5217.js","../../../../../chunks/5258.js","../../../../../chunks/5433.js","../../../../../chunks/5448.js","../../../../../chunks/5573.js","../../../../../chunks/5612.js","../../../../../chunks/5615.js","../../../../../chunks/5640.js","../../../../../chunks/5781.js","../../../../../chunks/595.js","../../../../../chunks/6070.js","../../../../../chunks/615.js","../../../../../chunks/6306.js","../../../../../chunks/6457.js","../../../../../chunks/6763.js","../../../../../chunks/6844.js","../../../../../chunks/6877.js","../../../../../chunks/698.js","../../../../../chunks/7211.js","../../../../../chunks/7247.js","../../../../../chunks/7322.js","../../../../../chunks/7598.js","../../../../../chunks/7774.js","../../../../../chunks/7828.js","../../../../../chunks/7914.js","../../../../../chunks/7965.js","../../../../../chunks/8038.js","../../../../../chunks/8145.js","../../../../../chunks/8185.js","../../../../../chunks/827.js","../../../../../chunks/8292.js","../../../../../chunks/8444.js","../../../../../chunks/8499.js","../../../../../chunks/8520.js","../../../../../chunks/869.js","../../../../../chunks/8895.js","../../../../../chunks/8910.js","../../../../../chunks/8920.js","../../../../../chunks/8936.js","../../../../../chunks/915.js","../../../../../chunks/9381.js","../../../../../chunks/9463.js","../../../../../chunks/9528.js","../../../../../chunks/9703.js","../../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|