switchboard-router 0.9.21 → 0.9.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/app/.next/static/Oip-FyIASqjmiuQY-U5sh/_buildManifest.js +1 -0
- package/app/.next/static/chunks/1321-35e513b8c2f5842d.js +1 -0
- package/app/{.next-cli-build/static/chunks/1330-a43190104575ffe5.js → .next/static/chunks/1330-d724a11d8bbd02b6.js} +2 -2
- package/app/.next/static/chunks/3794-a6cbe3f16d804637.js +52 -0
- package/app/.next/static/chunks/app/_global-error/page-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/catalog/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/doctor/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/export/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/mcp/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/skills/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/sync/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/updates/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/auth/login/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/auth/logout/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/auth/status/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/aider-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-full-catalog/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-picker-labels/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/gemini-cli-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/grok-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/pi-settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/picker-labels/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/combos/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/combos/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/extras/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/restart/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/start/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/status/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/stop/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/health/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/keys/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/locale/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/health/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/metrics/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/providers/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/routing/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/usage/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/version/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/models/alias/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/models/availability/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/models/custom/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/models/disabled/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/models/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/models/test/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/defaults/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/batch/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/cache/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/prepare/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/client/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/test-batch/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/providers/validate/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/health/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/install/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/start/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/status/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/routing/feedback/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/routing/insights/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/routing/learn/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/routing/stats/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/routing/versions/promote/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/routing/versions/rollback/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/settings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/shutdown/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/skills/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/tags/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/token-saver/vault-stats/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/translator/load/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/translator/save/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/translator/send/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/translator/translate/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/usage/chart/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/usage/history/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/usage/logs/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/usage/providers/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-logs/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stats/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stream/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/api/chat/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/embeddings/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/images/generations/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/info/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/search/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/edits/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/extensions/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/version/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/version/shutdown/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/api/version/update/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/login/page-f326e6c17a8b0e04.js +1 -0
- package/app/.next/static/chunks/app/manifest.webmanifest/route-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/app/page-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/{main-d2d664d299c2e1bc.js → main-2b2e5496298f74dc.js} +1 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-2734b35464a728af.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +14 -12
- package/app/.next-cli-build/build-manifest.json +3 -3
- 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/agent-library/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/agent-library/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/agent-library/page_client-reference-manifest.js +1 -1
- 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 +1 -1
- 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/combos/routing/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/routing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/routing/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 +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +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/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/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/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/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/[id]/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 +2 -2
- 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 +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/catalog/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/catalog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/doctor/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/doctor/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/mcp/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/mcp/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/skills/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/skills/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/updates/route.js +1 -1
- package/app/.next-cli-build/server/app/api/agent-library/updates/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -0
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/auth/login/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -0
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/auth/logout/route_client-reference-manifest.js +1 -0
- 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/aider-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/aider-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-full-catalog/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-full-catalog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-picker-labels/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-picker-labels/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
- 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 +2 -2
- 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/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 +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +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/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/gemini-cli-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/gemini-cli-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/grok-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- 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/cli-tools/pi-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/picker-labels/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/picker-labels/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/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/mgmt/v1/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/strategy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/combos/[id]/strategy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/metrics/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/metrics/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/routing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/routing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/usage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/usage/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mgmt/v1/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +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/defaults/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/defaults/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]/model-probes/batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/cache/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/cache/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/prepare/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/prepare/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/remove-unavailable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/remove-unavailable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/cancel/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/cancel/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/model-probes/verify/status/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/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +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/routing/feedback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/feedback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing/insights/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/insights/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing/learn/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/learn/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing/versions/promote/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/versions/promote/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing/versions/rollback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing/versions/rollback/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/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/skills/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/skills/[id]/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/token-saver/vault-stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/vault-stats/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 +1 -1
- 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/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +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 +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +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 +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
- 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 +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
- 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 +3 -3
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- 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 +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
- 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.meta +0 -2
- package/app/.next-cli-build/server/app/login.rsc +19 -15
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +19 -15
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +26 -22
- 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 +14 -12
- package/app/.next-cli-build/server/chunks/232.js +1 -0
- package/app/.next-cli-build/server/chunks/2430.js +3 -3
- package/app/.next-cli-build/server/chunks/3423.js +1 -1
- package/app/.next-cli-build/server/chunks/4330.js +1 -7
- package/app/.next-cli-build/server/chunks/4741.js +3 -3
- package/app/.next-cli-build/server/chunks/519.js +1 -1
- package/app/.next-cli-build/server/chunks/7454.js +1 -1
- package/app/.next-cli-build/server/chunks/{3787.js → 7812.js} +2 -2
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/8915.js +7 -0
- package/app/.next-cli-build/server/chunks/8976.js +1 -1
- package/app/.next-cli-build/server/chunks/8998.js +25 -25
- package/app/.next-cli-build/server/chunks/9059.js +1 -1
- package/app/.next-cli-build/server/chunks/9421.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +5 -5
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/Oip-FyIASqjmiuQY-U5sh/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/1321-35e513b8c2f5842d.js +1 -0
- package/app/{.next/static/chunks/1330-a43190104575ffe5.js → .next-cli-build/static/chunks/1330-d724a11d8bbd02b6.js} +2 -2
- package/app/.next-cli-build/static/chunks/3794-a6cbe3f16d804637.js +52 -0
- package/app/.next-cli-build/static/chunks/app/_global-error/page-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/catalog/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/doctor/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/export/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/mcp/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/skills/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/sync/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/updates/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/aider-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-full-catalog/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-picker-labels/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/gemini-cli-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/picker-labels/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/health/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/metrics/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/providers/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/routing/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/usage/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/version/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/defaults/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/batch/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/cache/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/prepare/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/feedback/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/insights/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/learn/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/stats/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/promote/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/rollback/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/vault-stats/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/login/page-f326e6c17a8b0e04.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/{main-d2d664d299c2e1bc.js → main-2b2e5496298f74dc.js} +1 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-2734b35464a728af.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-2734b35464a728af.js +1 -0
- package/app/node_modules/@next/env/package.json +1 -1
- package/app/node_modules/@swc/helpers/esm/_interop_require_default.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js +36 -0
- package/app/node_modules/@swc/helpers/package.json +703 -469
- package/app/node_modules/baseline-browser-mapping/dist/index.cjs +1 -1
- package/app/node_modules/baseline-browser-mapping/package.json +6 -6
- package/app/node_modules/next/dist/build/swc/index.js +1 -1
- package/app/node_modules/next/dist/build/webpack-config.js +3 -3
- package/app/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +8 -6
- package/app/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +26 -20
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +2 -1
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +5 -2
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +2 -1
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +3 -1
- package/app/node_modules/next/dist/client/components/segment-cache/cache.js +171 -201
- package/app/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +16 -54
- package/app/node_modules/next/dist/client/components/segment-cache/navigation.js +115 -23
- package/app/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +61 -6
- package/app/node_modules/next/dist/client/components/segment-cache/scheduler.js +53 -36
- package/app/node_modules/next/dist/client/route-params.js +4 -8
- package/app/node_modules/next/dist/compiled/mini-css-extract-plugin/cjs.js +1 -1
- package/app/node_modules/next/dist/compiled/mini-css-extract-plugin/index.js +1 -1
- package/app/node_modules/next/dist/compiled/next-devtools/index.js +21 -21
- package/app/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +26 -26
- package/app/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +26 -26
- package/app/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +26 -26
- package/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +26 -26
- package/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +2 -2
- package/app/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +8 -8
- package/app/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +8 -8
- package/app/node_modules/next/dist/compiled/sass-loader/cjs.js +1 -1
- package/app/node_modules/next/dist/experimental/testmode/fetch.js +10 -2
- package/app/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/app/node_modules/next/dist/lib/turbopack-cache-seed.js +15 -7
- package/app/node_modules/next/dist/lib/typescript/runTypeScriptCli.js +2 -2
- package/app/node_modules/next/dist/lib/verify-typescript-setup.js +3 -1
- package/app/node_modules/next/dist/server/app-render/app-render.js +2 -0
- package/app/node_modules/next/dist/server/app-render/dev-validation-worker-snapshot.js +2 -1
- package/app/node_modules/next/dist/server/async-storage/request-store.js +29 -20
- package/app/node_modules/next/dist/server/async-storage/work-store.js +1 -0
- package/app/node_modules/next/dist/server/config.js +1 -1
- package/app/node_modules/next/dist/server/dev/dev-validation-worker-pool.js +90 -11
- package/app/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +24 -4
- package/app/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/app/node_modules/next/dist/server/image-optimizer.js +1 -0
- package/app/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/app/node_modules/next/dist/server/lib/encode-header-safe.js +44 -0
- package/app/node_modules/next/dist/server/lib/implicit-tags.js +3 -3
- package/app/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +17 -4
- package/app/node_modules/next/dist/server/lib/patch-fetch.js +2 -2
- package/app/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/app/node_modules/next/dist/server/use-cache/handlers.js +14 -0
- package/app/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +88 -2
- package/app/node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js +1 -1
- package/app/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/app/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/app/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/app/node_modules/next/package.json +12 -12
- package/app/open-sse/identity/tls/bin/darwin/arm64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/darwin/x64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/linux/arm64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/linux/x64/switchboard-claude-tls +0 -0
- package/app/open-sse/identity/tls/bin/win32/arm64/switchboard-claude-tls.exe +0 -0
- package/app/open-sse/identity/tls/bin/win32/x64/switchboard-claude-tls.exe +0 -0
- package/app/package.json +3 -3
- package/cli.js +22 -5
- package/package.json +4 -5
- package/src/cli/cliOptions.js +4 -1
- package/src/cli/processManager.js +80 -1
- package/app/.next/static/chunks/1321-de2662d28ab47cf8.js +0 -1
- package/app/.next/static/chunks/3794-d7cddff008311ab3.js +0 -52
- package/app/.next/static/chunks/app/_global-error/page-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/catalog/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/doctor/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/export/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/mcp/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/skills/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/sync/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/updates/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/auth/status/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/aider-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-full-catalog/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-picker-labels/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/gemini-cli-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/grok-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/pi-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/picker-labels/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/extras/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/restart/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/start/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/status/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/stop/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/health/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/locale/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/health/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/metrics/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/providers/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/routing/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/usage/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/version/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/models/custom/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/models/disabled/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/models/test/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/defaults/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/batch/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/cache/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/prepare/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/health/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/install/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/start/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/status/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/routing/feedback/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/routing/insights/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/routing/learn/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/routing/stats/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/routing/versions/promote/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/routing/versions/rollback/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/skills/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/token-saver/vault-stats/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/chart/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/logs/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/providers/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stats/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stream/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/info/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/search/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/edits/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/extensions/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/version/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/version/shutdown/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/api/version/update/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/login/page-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/app/page-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-d23122546cc60c2d.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-d23122546cc60c2d.js +0 -1
- package/app/.next/static/lkpY_OQyrCAqK5SbBagdh/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-de2662d28ab47cf8.js +0 -1
- package/app/.next-cli-build/static/chunks/3794-d7cddff008311ab3.js +0 -52
- package/app/.next-cli-build/static/chunks/app/_global-error/page-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/catalog/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/doctor/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/export/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/mcp/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/skills/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/sync/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/updates/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/aider-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-full-catalog/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-picker-labels/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/gemini-cli-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/picker-labels/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/health/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/metrics/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/providers/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/routing/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/usage/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/version/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/defaults/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/batch/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/cache/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/prepare/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/feedback/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/insights/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/learn/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/stats/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/promote/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/rollback/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/vault-stats/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/login/page-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-d23122546cc60c2d.js +0 -1
- package/app/.next-cli-build/static/lkpY_OQyrCAqK5SbBagdh/_buildManifest.js +0 -1
- package/app/node_modules/next/dist/server/lib/encode-cache-tag.js +0 -45
- /package/app/.next/static/{lkpY_OQyrCAqK5SbBagdh → Oip-FyIASqjmiuQY-U5sh}/_ssgManifest.js +0 -0
- /package/app/.next-cli-build/static/{lkpY_OQyrCAqK5SbBagdh → Oip-FyIASqjmiuQY-U5sh}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var a={};a.id=2134,a.ids=[2134],a.modules={3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},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")},22588:(a,b,c)=>{"use strict";c.d(b,{T:()=>f});let d=Symbol("delete-provider-strategy"),e=Promise.resolve();async function f(a,b,c=fetch){let d=e.then(()=>g(a,b,c));return e=d.catch(()=>{}),d}async function g(a,b,c){let e=await c("/api/settings",{cache:"no-store"});if(!e.ok)throw Error(`Failed to load settings (${e.status})`);let f=(await e.json()).providerStrategies||{},g=f[a]||{},h=b(g);if(void 0===h)return console.warn(`[patchProviderStrategy] updater for "${a}" returned undefined; keeping previous entry`),g;let i={...f};h===d?delete i[a]:h&&Object.keys(h).length>0?i[a]=h:delete i[a];let j=await c("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:i})});if(!j.ok)throw Error(`Failed to save settings (${j.status})`);return h===d?void 0:h}},24889:(a,b,c)=>{Promise.resolve().then(c.bind(c,43702))},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")},33873:a=>{"use strict";a.exports=require("path")},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43702:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>U});var d=c(48249),e=c(67484),f=c(19099),g=c(2116),h=c.n(g),i=c(81220),j=c(50412),k=c(92592),l=c(91431),m=c(90774),n=c(80212);let o=["none","low","medium","high"],p=["none","thinking"],q=["none","low","medium","high","max"],r={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":q,"claude-budget":["none","low","medium","high","xhigh","max"],"gemini-level":["minimal","low","medium","high"],"gemini-budget":o,zai:p,qwen:o,kimi:q,deepseek:["none","high","max"],minimax:p,hunyuan:o,step:o},s=[{pattern:"*codex*",levels:["low","medium","high","xhigh"]}];function t(a,b){let c=(0,m.nl)(a,b);if(!c.reasoning)return null;let d=s.find(a=>(0,n.gH)(a.pattern,b)),e=d?.levels||r[c.thinkingFormat]||o;return!1===c.thinkingCanDisable&&(e=e.filter(a=>"none"!==a)),e}var u=c(50377),v=c(29476),w=c(99258),x=c(18753),y=c(23419),z=c(49885),A=c.n(z);function B({model:a,fullModel:b,alias:c,copied:e,onCopy:f,testStatus:g,isCustom:h,isFree:i,onDeleteAlias:k,onTest:l,isTesting:m,onDisable:n,caps:o,thinkingSuffix:p,latencyMs:q,probeState:r}){let s=p?`${b}(${p})`:b,t="ok"===g||"ok"===r,u="error"===g||"dead"===r,v="retry"===r||m||"testing"===r;return(0,d.jsx)("div",{className:`group relative min-w-0 max-w-full rounded-xl border bg-surface/50 p-3 transition-all hover:bg-surface/80 hover:shadow-soft ${t?"border-green-500/30 hover:border-green-500/50":u?"border-red-500/30 hover:border-red-500/50":v?"border-amber-500/30 hover:border-amber-500/50":"border-border/60 hover:border-primary/40"}`,children:(0,d.jsxs)("div",{className:"flex min-w-0 items-start justify-between gap-2.5",children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2.5",children:[(0,d.jsx)("div",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-lg bg-surface-2 border border-border/40 text-text-muted",children:m||"testing"===r?(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 animate-spin text-[15px] text-primary",title:"Testing model...",children:"progress_activity"}):t?(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[16px] text-green-500",title:"Model reachable",children:"check_circle"}):u?(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[16px] text-red-500",title:"Model unavailable",children:"cancel"}):"retry"===r?(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[16px] text-amber-500",title:"Retry later",children:"schedule"}):(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[16px]","aria-hidden":"true",children:"smart_toy"})}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,d.jsx)("code",{className:"max-w-[70vw] truncate rounded-md bg-surface-2 border border-border/40 px-2 py-0.5 font-mono text-xs font-medium text-text-main sm:max-w-[340px]",children:s}),h&&(0,d.jsx)("span",{className:"rounded bg-primary/10 px-1.5 py-0.5 text-[10px] font-medium text-primary",children:"Custom"})]}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2 text-xs",children:[a.name&&(0,d.jsx)("span",{className:"truncate text-xs text-text-muted",children:a.name}),Number.isFinite(q)&&(0,d.jsxs)("span",{className:"inline-flex items-center gap-0.5 text-[11px] font-medium text-text-muted tabular-nums",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px] text-primary",children:"bolt"}),Math.round(q),"ms"]}),(0,d.jsx)(j.nh,{caps:o,colorOverride:"text-text-muted/80",size:13})]})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[l&&(0,d.jsx)("button",{onClick:l,disabled:m,"aria-label":m?`Testing ${s}`:`Test ${s}`,title:m?"Testing...":"Test model",className:`rounded-lg p-1 text-text-muted transition-all hover:bg-surface-2 hover:text-primary ${m?"opacity-100":"opacity-70 group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",style:m?{animation:"spin 1s linear infinite"}:void 0,children:m?"progress_activity":"science"})}),(0,d.jsx)("button",{onClick:()=>f(s,`model-${a.id}`),"aria-label":e===`model-${a.id}`?`Copied ${s}`:`Copy ${s}`,title:e===`model-${a.id}`?"Copied!":"Copy model name",className:"rounded-lg p-1 text-text-muted transition-all hover:bg-surface-2 hover:text-primary opacity-70 group-hover:opacity-100",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:e===`model-${a.id}`?"check":"content_copy"})}),h?(0,d.jsx)("button",{onClick:k,className:"rounded-lg p-1 text-text-muted transition-all hover:bg-red-500/10 hover:text-red-400 opacity-60 hover:opacity-100","aria-label":`Remove custom model ${s}`,title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:"close"})}):n?(0,d.jsx)("button",{onClick:n,className:"rounded-lg p-1 text-text-muted transition-all hover:bg-red-500/10 hover:text-red-400 opacity-60 hover:opacity-100","aria-label":`Disable ${s}`,title:"Disable this model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:"close"})}):null]})]})})}B.propTypes={model:A().shape({id:A().string.isRequired}).isRequired,fullModel:A().string.isRequired,alias:A().string,copied:A().string,onCopy:A().func.isRequired,testStatus:A().oneOf(["ok","error"]),isCustom:A().bool,isFree:A().bool,onDeleteAlias:A().func,onTest:A().func,isTesting:A().bool,onDisable:A().func,caps:A().object,thinkingSuffix:A().string,latencyMs:A().number,probeState:A().string};var C=c(6297);function D({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 E({providerStorageAlias:a,providerDisplayAlias:b,modelAliases:c,customModels:f,copied:g,onCopy:h,onDeleteAlias:i,onAddCustomModel:k,onDeleteCustomModel:l,onRefreshModels:m,connections:n,isAnthropic:o,disabledModelIds:p=[],onEnableModel:q}){let[r,s]=(0,e.useState)(""),[t,u]=(0,e.useState)(!1),[v,w]=(0,e.useState)(!1),[y,z]=(0,e.useState)(""),[A,B]=(0,e.useState)(null),[F,G]=(0,e.useState)({}),H=async b=>{if(!A){B(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();G(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{G(a=>({...a,[b]:"error"}))}finally{B(null)}}},I=(0,x.Iz)(p,a),J=[...I],K=(0,x.R3)({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),L=K.filter(b=>!(0,x.uJ)(I,b.id,a)),M=async()=>{if(!r.trim()||t)return;let b=r.trim();if(L.some(a=>a.id===b))return void(0,C.s)("Model already exists for this provider.");u(!0);try{if((0,x.uJ)(I,b,a)){let a=await q?.(b);if(!1===a)throw Error("Failed to enable removed model")}await k(b),s("")}catch(a){(0,C.s)("Error adding model:",a)}finally{u(!1)}},N=async()=>{if(v)return;let b=n.find(a=>!1!==a.isActive);if(b){w(!0),z("");try{let c=await fetch(`/api/providers/${b.id}/models`),d=await c.json().catch(()=>({}));if(!c.ok)return void(0,C.s)(d.error||"Failed to import models");let e=d.models||[];if(0===e.length)return void(0,C.s)("No models returned from /models.");let f=new Set(K.map(a=>a.id)),g=[],h=new Set;for(let b of e){let c=String(b.id||b.name||b.model||"").trim();!c||f.has(c)||h.has(c)||(0,x.uJ)(I,c,a)||(h.add(c),g.push({providerAlias:a,id:c,type:"llm",name:b.display_name||b.displayName||b.name||c}))}if(0===g.length)return void z("All models already in list");let i=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:g})}),j=await i.json().catch(()=>({}));if(!i.ok){let a=0;for(let b of g)await k(b.id),a+=1;z(a?`Imported ${a} model(s)`:"No new models were added");return}z(`Imported ${j.added??g.length} model(s)`),"function"==typeof m&&await m()}catch(a){(0,C.s)("Error importing models:",a),(0,C.s)(a?.message||"Import failed")}finally{w(!1)}}},O=n.some(a=>!1!==a.isActive);return(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",o?"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:r,onChange:a=>s(a.target.value),onKeyDown:a=>"Enter"===a.key&&M(),placeholder:o?"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)(j.$n,{size:"sm",icon:"add",onClick:M,disabled:!r.trim()||t,children:t?"Adding...":"Add"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"cloud_download",onClick:N,disabled:!O||v,children:v?"Importing...":"Import models"})]}),!O&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),y&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:y}),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)(D,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:n.length>0?()=>H(c):void 0,testStatus:F[c],isTesting:A===c},`${f}-${a}/${c}`))}),J.length>0&&(0,d.jsxs)("details",{className:"rounded-lg border border-border bg-surface/30 p-3",children:[(0,d.jsxs)("summary",{className:"cursor-pointer text-sm font-medium text-text-main",children:["Removed models (",J.length,")"]}),(0,d.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Enable a model to make it available for import and selection again."}),(0,d.jsx)("div",{className:"mt-3 flex max-h-56 flex-col gap-1.5 overflow-y-auto",children:J.map(a=>(0,d.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded border border-border bg-background px-2 py-1.5",children:[(0,d.jsx)("code",{className:"min-w-0 flex-1 truncate text-xs",title:a,children:a}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",onClick:()=>q?.(a),children:"Enable"})]},a))})]})]})}A().string.isRequired,A().string.isRequired,A().string,A().func.isRequired,A().func.isRequired,A().func,A().oneOf(["ok","error"]),A().bool,A().string.isRequired,A().object.isRequired,A().arrayOf(A().object),A().string,A().func.isRequired,A().func.isRequired,A().func.isRequired,A().func.isRequired,E.propTypes={providerStorageAlias:A().string.isRequired,providerDisplayAlias:A().string.isRequired,modelAliases:A().object.isRequired,customModels:A().arrayOf(A().object),copied:A().string,onCopy:A().func.isRequired,onDeleteAlias:A().func.isRequired,onAddCustomModel:A().func.isRequired,onDeleteCustomModel:A().func.isRequired,onRefreshModels:A().func,connections:A().arrayOf(A().shape({id:A().string,isActive:A().bool})).isRequired,isAnthropic:A().bool,disabledModelIds:A().arrayOf(A().string),onEnableModel:A().func};var F=c(74875);function G({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 H({connection:a,isOAuth:b,isFirst:c,isLast:f,onMoveUp:g,onMoveDown:h,onToggleActive:i,onEdit:k,onDelete:l,onAllowlistHost:m=null,oneByOneStatus:n=null,autoPing:o=null}){let p=a.authType||(b?"oauth":"apikey"),q="oauth"===p,r="cookie"===p,s=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(q?"OAuth Account":r?"Cookie Account":"API Key"),t=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,u=/SSRF blocked|Blocked URL: (private IP|internal host)/i.test(a.lastError||""),v=(a=>{if(!a)return null;let b=String(a).trim();try{let a=b.match(/\{[\s\S]*\}$/);if(a){let c=JSON.parse(a[0]),d=c?.error?.message||c?.message||c?.error;"string"==typeof d&&d.trim()&&(b=d.trim())}}catch{}return(b=b.replace(/^\[\d+\]:\s*/,""),/not have a valid license|license of this product|license required/i.test(b))?{type:"license",title:"License Required",message:"No active Gemini Code Assist or Antigravity license found for this Google account. Visit antigravity.google to activate, or reconnect.",action:q?"reconnect":null}:/invalid_grant|token expired|credentials expired|expired or revoked|session expired/i.test(b)?{type:"auth",title:"Session Expired",message:"OAuth token expired or was revoked. Please reconnect.",action:q?"reconnect":null}:/rate limit|quota|429|resource has been exhausted/i.test(b)?{type:"quota",title:"Rate Limited",message:b||"Upstream rate limit reached.",action:null}:u?{type:"ssrf",title:"Network Guard",message:"SSRF guard blocked local/private IP address.",action:"allowlist"}:{type:"error",title:"Error",message:b,action:q?"reconnect":null}})(a.lastError),w=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,x=w?`Proxy: ${a.providerSpecificData?.connectionProxyUrl}`:"",y=o?.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.",z="";if(a.providerSpecificData?.connectionProxyUrl){let b=a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);z=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{z=b}}let A=a.providerSpecificData?.connectionNoProxy||"",B=w?"success":"default",[C,D]=(0,e.useState)(!1),E=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,I="unavailable"!==a.testStatus||C?a.testStatus:"active",J=()=>n?"queued"===n.state?"queued":"testing"===n.state?"testing":"success"===n.state?"success":"failed"===n.state?n.error?`failed: ${n.error}`:"failed":null:null;return(0,d.jsx)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-xl border border-border/60 bg-surface/40 p-3 transition-all hover:border-border hover:bg-surface/70 ${!1===a.isActive?"opacity-60":""}`,children:(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-2",children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,d.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,d.jsx)("button",{onClick:g,disabled:c,"aria-label":`Move ${s} up`,title:`Move ${s} up`,className:`p-0.5 rounded ${c?"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","aria-hidden":"true",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:h,disabled:f,"aria-label":`Move ${s} down`,title:`Move ${s} down`,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","aria-hidden":"true",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-surface-2 border border-border/40 text-text-muted",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]","aria-hidden":"true",children:r?"cookie":q?"lock":"key"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-text-main truncate",children:s}),t&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:t})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[o&&(0,d.jsx)(j.m_,{text:y,children:(0,d.jsxs)("button",{onClick:()=>o.onToggle(!o.on),className:`flex items-center gap-1 rounded-lg px-2 py-1 text-xs transition-colors hover:bg-white/5 ${o.on?"text-primary bg-primary/10 font-medium":"text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"bolt"}),(0,d.jsx)("span",{className:"hidden sm:inline text-xs",children:"Auto-ping"})]})}),(0,d.jsxs)("button",{onClick:k,className:"flex items-center gap-1 rounded-lg px-2.5 py-1 text-xs text-text-muted hover:bg-white/5 hover:text-primary transition-colors",title:"Edit connection",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"edit"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:l,className:"flex items-center gap-1 rounded-lg px-2.5 py-1 text-xs text-red-400 hover:bg-red-500/10 transition-colors",title:"Delete connection",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"delete"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Delete"})]})]}),(0,d.jsx)("div",{className:"h-4 w-px bg-border/60 mx-1"}),(0,d.jsx)(j.lM,{size:"sm",checked:a.isActive??!0,onChange:i,title:a.isActive??!0?"Disable connection":"Enable connection"})]})]}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5 pl-0 sm:pl-10",children:[(0,d.jsx)(j.Ex,{variant:(0,F.g)(a.isActive,I),size:"sm",dot:!0,children:!1===a.isActive?"disabled":I||"Unknown"}),(0,d.jsx)(j.Ex,{variant:"default",size:"sm",children:q?"OAuth":r?"Cookie":"API Key"}),w&&(0,d.jsx)(j.Ex,{variant:B,size:"sm",children:"Proxy"}),C&&!1!==a.isActive&&(0,d.jsx)(G,{until:E}),(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]}),J()&&(0,d.jsx)(j.Ex,{variant:n?"success"===n.state?"success":"failed"===n.state?"error":"testing"===n.state?"primary":"default":"default",size:"sm",children:J()})]}),v&&!1!==a.isActive&&(0,d.jsxs)("div",{className:"mt-1.5 flex min-w-0 flex-col sm:flex-row sm:items-center justify-between gap-2 rounded-lg border border-red-500/25 bg-red-500/8 px-3 py-2 text-xs text-red-600 dark:text-red-400 sm:ml-10",children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-start sm:items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[16px] text-red-500 mt-0.5 sm:mt-0",children:"license"===v.type?"workspace_premium":"auth"===v.type?"key_off":"error"}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("span",{className:"font-semibold",children:[v.title,": "]}),(0,d.jsx)("span",{className:"break-words",children:v.message})]})]}),"reconnect"===v.action&&(0,d.jsxs)("button",{onClick:k,className:"inline-flex shrink-0 items-center justify-center gap-1 rounded-md bg-red-500/15 hover:bg-red-500/25 px-2.5 py-1 text-xs font-medium text-red-600 dark:text-red-300 transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"}),"Reconnect"]}),"allowlist"===v.action&&m&&(0,d.jsxs)("button",{onClick:m,className:"inline-flex shrink-0 items-center justify-center gap-1 rounded-md border border-amber-500/40 bg-amber-500/10 px-2.5 py-1 text-xs font-medium text-amber-600 dark:text-amber-300 hover:bg-amber-500/20 transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"verified_user"}),"Add to allow list"]})]}),w&&(0,d.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap sm:ml-10",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:x,children:x}),z&&(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:z}),A&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:A,children:["no_proxy: ",A]})]})]})})}G.propTypes={until:A().string.isRequired},H.propTypes={connection:A().shape({id:A().string,name:A().string,email:A().string,displayName:A().string,modelLockUntil:A().string,testStatus:A().string,isActive:A().bool,lastError:A().string,priority:A().number,globalPriority:A().number,providerSpecificData:A().object}).isRequired,isOAuth:A().bool.isRequired,isFirst:A().bool.isRequired,isLast:A().bool.isRequired,onMoveUp:A().func.isRequired,onMoveDown:A().func.isRequired,onToggleActive:A().func.isRequired,onEdit:A().func.isRequired,onDelete:A().func.isRequired,onAllowlistHost:A().func,oneByOneStatus:A().shape({state:A().string,error:A().string}),autoPing:A().shape({on:A().bool,onToggle:A().func,provider:A().string})};let I=`name1|sk-key1
|
|
1
|
+
(()=>{var a={};a.id=2134,a.ids=[2134],a.modules={3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},20863:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>z,handler:()=>B,routeModule:()=>A});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,32059))),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.bind(c,57097))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),t=(0,d.p)(()=>Promise.resolve().then(c.bind(c,70160))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),w=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),x={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,93110))),"/home/runner/work/switchboard-router/switchboard-router/src/app/(dashboard)/dashboard/providers/[id]/page.js"]}]},{"global-error":[w,"next/dist/client/components/builtin/global-error.js"]},["new"]]},{"global-error":[v,"next/dist/client/components/builtin/global-error.js"]},[]]},{loading:[t,"/home/runner/work/switchboard-router/switchboard-router/src/app/(dashboard)/dashboard/loading.js"],"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"/home/runner/work/switchboard-router/switchboard-router/src/app/(dashboard)/layout.js"],error:[o,"/home/runner/work/switchboard-router/switchboard-router/src/app/(dashboard)/error.js"],"global-error":[p,"next/dist/client/components/builtin/global-error.js"],"not-found":[q,"next/dist/client/components/builtin/not-found.js"],forbidden:[r,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[s,"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,"/home/runner/work/switchboard-router/switchboard-router/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,y=(0,e.H)({tree:x,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),z=y.__next_app__,A=y.routeModule,B=y.handler},21820:a=>{"use strict";a.exports=require("os")},22588:(a,b,c)=>{"use strict";c.d(b,{T:()=>f});let d=Symbol("delete-provider-strategy"),e=Promise.resolve();async function f(a,b,c=fetch){let d=e.then(()=>g(a,b,c));return e=d.catch(()=>{}),d}async function g(a,b,c){let e=await c("/api/settings",{cache:"no-store"});if(!e.ok)throw Error(`Failed to load settings (${e.status})`);let f=(await e.json()).providerStrategies||{},g=f[a]||{},h=b(g);if(void 0===h)return console.warn(`[patchProviderStrategy] updater for "${a}" returned undefined; keeping previous entry`),g;let i={...f};h===d?delete i[a]:h&&Object.keys(h).length>0?i[a]=h:delete i[a];let j=await c("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:i})});if(!j.ok)throw Error(`Failed to save settings (${j.status})`);return h===d?void 0:h}},24889:(a,b,c)=>{Promise.resolve().then(c.bind(c,43702))},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")},33873:a=>{"use strict";a.exports=require("path")},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},43702:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>U});var d=c(48249),e=c(67484),f=c(19099),g=c(2116),h=c.n(g),i=c(81220),j=c(50412),k=c(92592),l=c(91431),m=c(90774),n=c(80212);let o=["none","low","medium","high"],p=["none","thinking"],q=["none","low","medium","high","max"],r={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":q,"claude-budget":["none","low","medium","high","xhigh","max"],"gemini-level":["minimal","low","medium","high"],"gemini-budget":o,zai:p,qwen:o,kimi:q,deepseek:["none","high","max"],minimax:p,hunyuan:o,step:o},s=[{pattern:"*codex*",levels:["low","medium","high","xhigh"]}];function t(a,b){let c=(0,m.nl)(a,b);if(!c.reasoning)return null;let d=s.find(a=>(0,n.gH)(a.pattern,b)),e=d?.levels||r[c.thinkingFormat]||o;return!1===c.thinkingCanDisable&&(e=e.filter(a=>"none"!==a)),e}var u=c(50377),v=c(29476),w=c(99258),x=c(18753),y=c(23419),z=c(49885),A=c.n(z);function B({model:a,fullModel:b,alias:c,copied:e,onCopy:f,testStatus:g,isCustom:h,isFree:i,onDeleteAlias:k,onTest:l,isTesting:m,onDisable:n,caps:o,thinkingSuffix:p,latencyMs:q,probeState:r}){let s=p?`${b}(${p})`:b,t="ok"===g||"ok"===r,u="error"===g||"dead"===r,v="retry"===r||m||"testing"===r;return(0,d.jsx)("div",{className:`group relative min-w-0 max-w-full rounded-xl border bg-surface/50 p-3 transition-all hover:bg-surface/80 hover:shadow-soft ${t?"border-green-500/30 hover:border-green-500/50":u?"border-red-500/30 hover:border-red-500/50":v?"border-amber-500/30 hover:border-amber-500/50":"border-border/60 hover:border-primary/40"}`,children:(0,d.jsxs)("div",{className:"flex min-w-0 items-start justify-between gap-2.5",children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2.5",children:[(0,d.jsx)("div",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-lg bg-surface-2 border border-border/40 text-text-muted",children:m||"testing"===r?(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 animate-spin text-[15px] text-primary",title:"Testing model...",children:"progress_activity"}):t?(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[16px] text-green-500",title:"Model reachable",children:"check_circle"}):u?(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[16px] text-red-500",title:"Model unavailable",children:"cancel"}):"retry"===r?(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[16px] text-amber-500",title:"Retry later",children:"schedule"}):(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[16px]","aria-hidden":"true",children:"smart_toy"})}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,d.jsx)("code",{className:"max-w-[70vw] truncate rounded-md bg-surface-2 border border-border/40 px-2 py-0.5 font-mono text-xs font-medium text-text-main sm:max-w-[340px]",children:s}),h&&(0,d.jsx)("span",{className:"rounded bg-primary/10 px-1.5 py-0.5 text-[10px] font-medium text-primary",children:"Custom"})]}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2 text-xs",children:[a.name&&(0,d.jsx)("span",{className:"truncate text-xs text-text-muted",children:a.name}),Number.isFinite(q)&&(0,d.jsxs)("span",{className:"inline-flex items-center gap-0.5 text-[11px] font-medium text-text-muted tabular-nums",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px] text-primary",children:"bolt"}),Math.round(q),"ms"]}),(0,d.jsx)(j.nh,{caps:o,colorOverride:"text-text-muted/80",size:13})]})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[l&&(0,d.jsx)("button",{onClick:l,disabled:m,"aria-label":m?`Testing ${s}`:`Test ${s}`,title:m?"Testing...":"Test model",className:`rounded-lg p-1 text-text-muted transition-all hover:bg-surface-2 hover:text-primary ${m?"opacity-100":"opacity-70 group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",style:m?{animation:"spin 1s linear infinite"}:void 0,children:m?"progress_activity":"science"})}),(0,d.jsx)("button",{onClick:()=>f(s,`model-${a.id}`),"aria-label":e===`model-${a.id}`?`Copied ${s}`:`Copy ${s}`,title:e===`model-${a.id}`?"Copied!":"Copy model name",className:"rounded-lg p-1 text-text-muted transition-all hover:bg-surface-2 hover:text-primary opacity-70 group-hover:opacity-100",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:e===`model-${a.id}`?"check":"content_copy"})}),h?(0,d.jsx)("button",{onClick:k,className:"rounded-lg p-1 text-text-muted transition-all hover:bg-red-500/10 hover:text-red-400 opacity-60 hover:opacity-100","aria-label":`Remove custom model ${s}`,title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:"close"})}):n?(0,d.jsx)("button",{onClick:n,className:"rounded-lg p-1 text-text-muted transition-all hover:bg-red-500/10 hover:text-red-400 opacity-60 hover:opacity-100","aria-label":`Disable ${s}`,title:"Disable this model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:"close"})}):null]})]})})}B.propTypes={model:A().shape({id:A().string.isRequired}).isRequired,fullModel:A().string.isRequired,alias:A().string,copied:A().string,onCopy:A().func.isRequired,testStatus:A().oneOf(["ok","error"]),isCustom:A().bool,isFree:A().bool,onDeleteAlias:A().func,onTest:A().func,isTesting:A().bool,onDisable:A().func,caps:A().object,thinkingSuffix:A().string,latencyMs:A().number,probeState:A().string};var C=c(6297);function D({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 E({providerStorageAlias:a,providerDisplayAlias:b,modelAliases:c,customModels:f,copied:g,onCopy:h,onDeleteAlias:i,onAddCustomModel:k,onDeleteCustomModel:l,onRefreshModels:m,connections:n,isAnthropic:o,disabledModelIds:p=[],onEnableModel:q}){let[r,s]=(0,e.useState)(""),[t,u]=(0,e.useState)(!1),[v,w]=(0,e.useState)(!1),[y,z]=(0,e.useState)(""),[A,B]=(0,e.useState)(null),[F,G]=(0,e.useState)({}),H=async b=>{if(!A){B(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();G(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{G(a=>({...a,[b]:"error"}))}finally{B(null)}}},I=(0,x.Iz)(p,a),J=[...I],K=(0,x.R3)({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),L=K.filter(b=>!(0,x.uJ)(I,b.id,a)),M=async()=>{if(!r.trim()||t)return;let b=r.trim();if(L.some(a=>a.id===b))return void(0,C.s)("Model already exists for this provider.");u(!0);try{if((0,x.uJ)(I,b,a)){let a=await q?.(b);if(!1===a)throw Error("Failed to enable removed model")}await k(b),s("")}catch(a){(0,C.s)("Error adding model:",a)}finally{u(!1)}},N=async()=>{if(v)return;let b=n.find(a=>!1!==a.isActive);if(b){w(!0),z("");try{let c=await fetch(`/api/providers/${b.id}/models`),d=await c.json().catch(()=>({}));if(!c.ok)return void(0,C.s)(d.error||"Failed to import models");let e=d.models||[];if(0===e.length)return void(0,C.s)("No models returned from /models.");let f=new Set(K.map(a=>a.id)),g=[],h=new Set;for(let b of e){let c=String(b.id||b.name||b.model||"").trim();!c||f.has(c)||h.has(c)||(0,x.uJ)(I,c,a)||(h.add(c),g.push({providerAlias:a,id:c,type:"llm",name:b.display_name||b.displayName||b.name||c}))}if(0===g.length)return void z("All models already in list");let i=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:g})}),j=await i.json().catch(()=>({}));if(!i.ok){let a=0;for(let b of g)await k(b.id),a+=1;z(a?`Imported ${a} model(s)`:"No new models were added");return}z(`Imported ${j.added??g.length} model(s)`),"function"==typeof m&&await m()}catch(a){(0,C.s)("Error importing models:",a),(0,C.s)(a?.message||"Import failed")}finally{w(!1)}}},O=n.some(a=>!1!==a.isActive);return(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",o?"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:r,onChange:a=>s(a.target.value),onKeyDown:a=>"Enter"===a.key&&M(),placeholder:o?"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)(j.$n,{size:"sm",icon:"add",onClick:M,disabled:!r.trim()||t,children:t?"Adding...":"Add"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"cloud_download",onClick:N,disabled:!O||v,children:v?"Importing...":"Import models"})]}),!O&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),y&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:y}),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)(D,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:n.length>0?()=>H(c):void 0,testStatus:F[c],isTesting:A===c},`${f}-${a}/${c}`))}),J.length>0&&(0,d.jsxs)("details",{className:"rounded-lg border border-border bg-surface/30 p-3",children:[(0,d.jsxs)("summary",{className:"cursor-pointer text-sm font-medium text-text-main",children:["Removed models (",J.length,")"]}),(0,d.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Enable a model to make it available for import and selection again."}),(0,d.jsx)("div",{className:"mt-3 flex max-h-56 flex-col gap-1.5 overflow-y-auto",children:J.map(a=>(0,d.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded border border-border bg-background px-2 py-1.5",children:[(0,d.jsx)("code",{className:"min-w-0 flex-1 truncate text-xs",title:a,children:a}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",onClick:()=>q?.(a),children:"Enable"})]},a))})]})]})}A().string.isRequired,A().string.isRequired,A().string,A().func.isRequired,A().func.isRequired,A().func,A().oneOf(["ok","error"]),A().bool,A().string.isRequired,A().object.isRequired,A().arrayOf(A().object),A().string,A().func.isRequired,A().func.isRequired,A().func.isRequired,A().func.isRequired,E.propTypes={providerStorageAlias:A().string.isRequired,providerDisplayAlias:A().string.isRequired,modelAliases:A().object.isRequired,customModels:A().arrayOf(A().object),copied:A().string,onCopy:A().func.isRequired,onDeleteAlias:A().func.isRequired,onAddCustomModel:A().func.isRequired,onDeleteCustomModel:A().func.isRequired,onRefreshModels:A().func,connections:A().arrayOf(A().shape({id:A().string,isActive:A().bool})).isRequired,isAnthropic:A().bool,disabledModelIds:A().arrayOf(A().string),onEnableModel:A().func};var F=c(74875);function G({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 H({connection:a,isOAuth:b,isFirst:c,isLast:f,onMoveUp:g,onMoveDown:h,onToggleActive:i,onEdit:k,onDelete:l,onAllowlistHost:m=null,oneByOneStatus:n=null,autoPing:o=null}){let p=a.authType||(b?"oauth":"apikey"),q="oauth"===p,r="cookie"===p,s=a.name?.trim()||a.email?.trim()||a.displayName?.trim()||(q?"OAuth Account":r?"Cookie Account":"API Key"),t=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,u=/SSRF blocked|Blocked URL: (private IP|internal host)/i.test(a.lastError||""),v=(a=>{if(!a)return null;let b=String(a).trim();try{let a=b.match(/\{[\s\S]*\}$/);if(a){let c=JSON.parse(a[0]),d=c?.error?.message||c?.message||c?.error;"string"==typeof d&&d.trim()&&(b=d.trim())}}catch{}return(b=b.replace(/^\[\d+\]:\s*/,""),/not have a valid license|license of this product|license required/i.test(b))?{type:"license",title:"License Required",message:"No active Gemini Code Assist or Antigravity license found for this Google account. Visit antigravity.google to activate, or reconnect.",action:q?"reconnect":null}:/invalid_grant|token expired|credentials expired|expired or revoked|session expired/i.test(b)?{type:"auth",title:"Session Expired",message:"OAuth token expired or was revoked. Please reconnect.",action:q?"reconnect":null}:/rate limit|quota|429|resource has been exhausted/i.test(b)?{type:"quota",title:"Rate Limited",message:b||"Upstream rate limit reached.",action:null}:u?{type:"ssrf",title:"Network Guard",message:"SSRF guard blocked local/private IP address.",action:"allowlist"}:{type:"error",title:"Error",message:b,action:q?"reconnect":null}})(a.lastError),w=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,x=w?`Proxy: ${a.providerSpecificData?.connectionProxyUrl}`:"",y=o?.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.",z="";if(a.providerSpecificData?.connectionProxyUrl){let b=a.providerSpecificData?.connectionProxyUrl;try{let a=new URL(b);z=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{z=b}}let A=a.providerSpecificData?.connectionNoProxy||"",B=w?"success":"default",[C,D]=(0,e.useState)(!1),E=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(a=>!!a).sort()[0]||null,I="unavailable"!==a.testStatus||C?a.testStatus:"active",J=()=>n?"queued"===n.state?"queued":"testing"===n.state?"testing":"success"===n.state?"success":"failed"===n.state?n.error?`failed: ${n.error}`:"failed":null:null;return(0,d.jsx)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-xl border border-border/60 bg-surface/40 p-3 transition-all hover:border-border hover:bg-surface/70 ${!1===a.isActive?"opacity-60":""}`,children:(0,d.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-2",children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,d.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,d.jsx)("button",{onClick:g,disabled:c,"aria-label":`Move ${s} up`,title:`Move ${s} up`,className:`p-0.5 rounded ${c?"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","aria-hidden":"true",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:h,disabled:f,"aria-label":`Move ${s} down`,title:`Move ${s} down`,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","aria-hidden":"true",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-surface-2 border border-border/40 text-text-muted",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]","aria-hidden":"true",children:r?"cookie":q?"lock":"key"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-text-main truncate",children:s}),t&&(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:t})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[o&&(0,d.jsx)(j.m_,{text:y,children:(0,d.jsxs)("button",{onClick:()=>o.onToggle(!o.on),className:`flex items-center gap-1 rounded-lg px-2 py-1 text-xs transition-colors hover:bg-white/5 ${o.on?"text-primary bg-primary/10 font-medium":"text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"bolt"}),(0,d.jsx)("span",{className:"hidden sm:inline text-xs",children:"Auto-ping"})]})}),(0,d.jsxs)("button",{onClick:k,className:"flex items-center gap-1 rounded-lg px-2.5 py-1 text-xs text-text-muted hover:bg-white/5 hover:text-primary transition-colors",title:"Edit connection",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"edit"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:l,className:"flex items-center gap-1 rounded-lg px-2.5 py-1 text-xs text-red-400 hover:bg-red-500/10 transition-colors",title:"Delete connection",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"delete"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Delete"})]})]}),(0,d.jsx)("div",{className:"h-4 w-px bg-border/60 mx-1"}),(0,d.jsx)(j.lM,{size:"sm",checked:a.isActive??!0,onChange:i,title:a.isActive??!0?"Disable connection":"Enable connection"})]})]}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5 pl-0 sm:pl-10",children:[(0,d.jsx)(j.Ex,{variant:(0,F.g)(a.isActive,I),size:"sm",dot:!0,children:!1===a.isActive?"disabled":I||"Unknown"}),(0,d.jsx)(j.Ex,{variant:"default",size:"sm",children:q?"OAuth":r?"Cookie":"API Key"}),w&&(0,d.jsx)(j.Ex,{variant:B,size:"sm",children:"Proxy"}),C&&!1!==a.isActive&&(0,d.jsx)(G,{until:E}),(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]}),J()&&(0,d.jsx)(j.Ex,{variant:n?"success"===n.state?"success":"failed"===n.state?"error":"testing"===n.state?"primary":"default":"default",size:"sm",children:J()})]}),v&&!1!==a.isActive&&(0,d.jsxs)("div",{className:"mt-1.5 flex min-w-0 flex-col sm:flex-row sm:items-center justify-between gap-2 rounded-lg border border-red-500/25 bg-red-500/8 px-3 py-2 text-xs text-red-600 dark:text-red-400 sm:ml-10",children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-start sm:items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[16px] text-red-500 mt-0.5 sm:mt-0",children:"license"===v.type?"workspace_premium":"auth"===v.type?"key_off":"error"}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("span",{className:"font-semibold",children:[v.title,": "]}),(0,d.jsx)("span",{className:"break-words",children:v.message})]})]}),"reconnect"===v.action&&(0,d.jsxs)("button",{onClick:k,className:"inline-flex shrink-0 items-center justify-center gap-1 rounded-md bg-red-500/15 hover:bg-red-500/25 px-2.5 py-1 text-xs font-medium text-red-600 dark:text-red-300 transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"}),"Reconnect"]}),"allowlist"===v.action&&m&&(0,d.jsxs)("button",{onClick:m,className:"inline-flex shrink-0 items-center justify-center gap-1 rounded-md border border-amber-500/40 bg-amber-500/10 px-2.5 py-1 text-xs font-medium text-amber-600 dark:text-amber-300 hover:bg-amber-500/20 transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"verified_user"}),"Add to allow list"]})]}),w&&(0,d.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap sm:ml-10",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:x,children:x}),z&&(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:z}),A&&(0,d.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:A,children:["no_proxy: ",A]})]})]})})}G.propTypes={until:A().string.isRequired},H.propTypes={connection:A().shape({id:A().string,name:A().string,email:A().string,displayName:A().string,modelLockUntil:A().string,testStatus:A().string,isActive:A().bool,lastError:A().string,priority:A().number,globalPriority:A().number,providerSpecificData:A().object}).isRequired,isOAuth:A().bool.isRequired,isFirst:A().bool.isRequired,isLast:A().bool.isRequired,onMoveUp:A().func.isRequired,onMoveDown:A().func.isRequired,onToggleActive:A().func.isRequired,onEdit:A().func.isRequired,onDelete:A().func.isRequired,onAllowlistHost:A().func,oneByOneStatus:A().shape({state:A().string,error:A().string}),autoPing:A().shape({on:A().bool,onToggle:A().func,provider:A().string})};let I=`name1|sk-key1
|
|
2
2
|
name2|sk-key2
|
|
3
3
|
sk-key-only-auto-named`;function J({isOpen:a,provider:b,providerName:c,isCompatible:f,isAnthropic:g,authType:h,authHint:i,website:l,error:m,onSave:n,onBulkDone:o,onClose:p}){let q="ollama-local"===b,r=b.startsWith("selfhosted-"),s="cookie"===h,t="xai"===b&&!s,u=s?"Cookie Value":"API Key",v=s?"grok-web"===b?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":t?"xai-...":"",w="azure"===b,x="cloudflare-ai"===b,y=k.Q2?.[b]?.regions||null,z=k.Q2?.[b]?.defaultRegion||y?.[0]?.id||"",[A,B]=(0,e.useState)({name:"",apiKey:"",defaultModel:"",priority:1,ollamaHostUrl:"",baseUrl:""}),[C,D]=(0,e.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[E,F]=(0,e.useState)({accountId:""}),[G,H]=(0,e.useState)(z),[K,L]=(0,e.useState)(!1),[M,N]=(0,e.useState)(null),[O,P]=(0,e.useState)(!1),[Q,R]=(0,e.useState)("single"),[S,T]=(0,e.useState)(""),[U,V]=(0,e.useState)(null),W=A.name.trim().length>0,X=A.apiKey.trim().length>0,Y=()=>r?{baseUrl:A.baseUrl.trim()}:q&&A.ollamaHostUrl.trim()?{baseUrl:A.ollamaHostUrl.trim()}:w?{azureEndpoint:C.azureEndpoint,apiVersion:C.apiVersion,deployment:C.deployment,organization:C.organization}:x?{accountId:E.accountId}:y&&G?{region:G}:void 0,Z=async()=>{let a=A.apiKey.trim();if(a){L(!0);try{let c=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:a,providerSpecificData:Y()})}),d=await c.json();N(d.valid?"success":"failed")}catch{N("failed")}finally{L(!1)}}},$=async()=>{if(!b)return;let a=A.name.trim(),c=A.apiKey.trim();if((q||r||c)&&(!r||A.baseUrl.trim())&&(q||a)&&(!f||A.defaultModel.trim())){P(!0);try{let d=!1;try{L(!0),N(null);let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:c,providerSpecificData:Y()})});d=!!(await a.json()).valid,N(d?"success":"failed")}catch{N("failed")}finally{L(!1)}await n({name:a||(q?"Ollama Local":""),apiKey:c,defaultModel:f?A.defaultModel.trim():void 0,priority:A.priority,testStatus:d?"active":"unknown",providerSpecificData:Y()})}finally{P(!1)}}},_=async()=>{let a=S.split("\n").map(a=>a.trim()).filter(Boolean);if(!a.length)return;P(!0),V(null);let c=0,d=0;for(let e=0;e<a.length;e++){let f=a[e].split("|"),g=f.length>=2?f.slice(1).join("|").trim():f[0].trim();if(!g){d++;continue}let h=f.length>=2&&f[0].trim()||"Key",i=`${h} ${e+1}`;try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:g,name:i,priority:1,testStatus:"unknown"})})).ok?c++:d++}catch{d++}}P(!1),V({success:c,failed:d}),c>0&&o&&o()};return b?(0,d.jsx)(j.aF,{isOpen:a,title:`Add ${c||b} ${u}`,onClose:p,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[!r&&(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{size:"sm",variant:"single"===Q?"primary":"ghost",onClick:()=>{R("single"),V(null)},children:"Single"}),(0,d.jsx)(j.$n,{size:"sm",variant:"bulk"===Q?"primary":"ghost",onClick:()=>{R("bulk"),V(null)},children:"Bulk Add"})]}),"bulk"===Q&&!r&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["One key per line. Format: ",(0,d.jsx)("code",{children:"name|apiKey"})," or just ",(0,d.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}),(0,d.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:I,value:S,onChange:a=>T(a.target.value)}),U&&(0,d.jsxs)("div",{className:`text-sm font-medium ${U.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",U.success," added",U.failed>0?`, ✗ ${U.failed} failed`:""]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{onClick:_,fullWidth:!0,disabled:O||!S.trim(),children:O?"Adding...":"Add All Keys"}),(0,d.jsx)(j.$n,{onClick:p,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),("single"===Q||r)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.pd,{label:"Name",value:A.name,onChange:a=>B({...A,name:a.target.value}),placeholder:q?"Ollama Local":"Production Key"}),r&&(0,d.jsx)(j.pd,{label:"Base URL",value:A.baseUrl,onChange:a=>B({...A,baseUrl:a.target.value}),placeholder:"selfhosted-stt"===b?"http://localhost:8080/v1/audio/transcriptions":"selfhosted-tts"===b?"http://localhost:8880":"http://localhost:8080/v1"}),q&&(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.pd,{label:"Ollama Host URL",value:A.ollamaHostUrl,onChange:a=>B({...A,ollamaHostUrl:a.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(j.$n,{onClick:Z,disabled:K||O,variant:"secondary",children:K?"Checking...":"Check"})})]}),!q&&(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.pd,{label:r?"API Key (optional)":u,type:s?"text":"password",autoComplete:"off",value:A.apiKey,onChange:a=>B({...A,apiKey:a.target.value}),placeholder:v,className:"flex-1"}),!r&&(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(j.$n,{onClick:Z,disabled:!A.apiKey||K||O,variant:"secondary",children:K?"Checking...":"Check"})})]}),t&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Use a direct xAI API key from console.x.ai. This is separate from Grok Build OAuth."}),s&&i&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:[i,l&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,d.jsxs)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",l.replace(/^https?:\/\//,"")]})]})]}),y&&(0,d.jsx)(j.l6,{label:"Region",value:G,onChange:a=>H(a.target.value),options:y.map(a=>({value:a.id,label:a.label}))}),f&&(0,d.jsx)(j.pd,{label:"Default Model",value:A.defaultModel,onChange:a=>B({...A,defaultModel:a.target.value}),placeholder:g?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),q&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,d.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,d.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),M&&(0,d.jsx)(j.Ex,{variant:"success"===M?"success":"error",children:"success"===M?"Valid":"Invalid"}),m&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:m}),f&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Enter the model ID exactly as your compatible endpoint expects it. This model will be saved as the connection default."}),x&&(0,d.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,d.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,d.jsx)(j.pd,{label:"Account ID",value:E.accountId,onChange:a=>F({...E,accountId:a.target.value}),placeholder:"abc123def456..."}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,d.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),w&&(0,d.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,d.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)(j.pd,{label:"Azure Endpoint",value:C.azureEndpoint,onChange:a=>D({...C,azureEndpoint:a.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,d.jsx)(j.pd,{label:"Deployment Name",value:C.deployment,onChange:a=>D({...C,deployment:a.target.value}),placeholder:"gpt-4"}),(0,d.jsx)(j.pd,{label:"API Version",value:C.apiVersion,onChange:a=>D({...C,apiVersion:a.target.value}),placeholder:"2024-10-01-preview"}),(0,d.jsx)(j.pd,{label:"Organization",value:C.organization,onChange:a=>D({...C,organization:a.target.value}),placeholder:"Organization ID"})]})]}),(0,d.jsx)(j.pd,{label:"Priority",type:"number",min:1,value:A.priority,onChange:a=>B({...A,priority:Number.parseInt(a.target.value)||1})}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{onClick:$,fullWidth:!0,disabled:O||!q&&!r&&(!W||!X)||r&&(!W||!A.baseUrl.trim())||f&&!A.defaultModel.trim()||w&&(!C.azureEndpoint||!C.deployment||!C.organization)||x&&!E.accountId,children:O?"Saving...":"Save"}),(0,d.jsx)(j.$n,{onClick:p,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}function K({isOpen:a,node:b,onSave:c,onClose:f,isAnthropic:g}){let[h,i]=(0,e.useState)({name:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[k,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(""),[o,p]=(0,e.useState)(""),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(null),u=function(a){try{return["http:","https:"].includes(new URL(a).protocol)}catch{return!1}}(h.baseUrl.trim()),v=async()=>{if(h.name.trim()&&u){l(!0);try{let a={name:h.name.trim(),baseUrl:h.baseUrl.trim()};g||(a.apiType=h.apiType),await c(a)}finally{l(!1)}}},w=async()=>{r(!0);try{let a=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:h.baseUrl,apiKey:m,type:g?"anthropic-compatible":"openai-compatible",modelId:o.trim()||void 0})}),b=await a.json();t(b.valid?"success":"failed")}catch{t("failed")}finally{r(!1)}};return b?(0,d.jsx)(j.aF,{isOpen:a,title:`Edit ${g?"Anthropic":"OpenAI"} Compatible`,onClose:f,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(j.pd,{label:"Name",value:h.name,onChange:a=>i({...h,name:a.target.value}),placeholder:`${g?"Anthropic":"OpenAI"} Compatible`,hint:"Friendly label for this provider."}),!g&&(0,d.jsx)(j.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:h.apiType,onChange:a=>i({...h,apiType:a.target.value})}),(0,d.jsx)(j.pd,{label:"Base URL",value:h.baseUrl,onChange:a=>i({...h,baseUrl:a.target.value}),placeholder:g?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Base URL ending in /v1 for your ${g?"Anthropic":"OpenAI"}-compatible API.`}),b.prefix?(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Model IDs use prefix ",(0,d.jsx)("code",{className:"bg-sidebar px-1 rounded font-mono",children:b.prefix})," ","(auto-assigned; stable so combos keep working)."]}):null,(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.pd,{label:"API Key (for Check)",type:"password",autoComplete:"off",value:m,onChange:a=>n(a.target.value),className:"flex-1"}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(j.$n,{onClick:w,disabled:!m||q||!u,variant:"secondary",children:q?"Checking...":"Check"})})]}),(0,d.jsx)(j.pd,{label:"Model ID (optional)",value:o,onChange:a=>p(a.target.value),placeholder:"e.g. my-model-id",hint:"If the provider has no /models endpoint, test with a model ID."}),s&&(0,d.jsx)(j.Ex,{variant:"success"===s?"success":"error",children:"success"===s?"Valid":"Invalid"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{onClick:v,fullWidth:!0,disabled:!h.name.trim()||!u||k,children:k?"Saving...":"Save"}),(0,d.jsx)(j.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function L({isOpen:a,providerAlias:b,providerDisplayAlias:c,onSave:f,onClose:g}){let[h,i]=(0,e.useState)(""),[k,l]=(0,e.useState)(null),[m,n]=(0,e.useState)(""),[o,p]=(0,e.useState)(!1),q=a=>{let c=`${b}/`;return a.startsWith(c)?a.slice(c.length):a},r=async()=>{let a=q(h.trim());if(a){l("testing"),n("");try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${b}/${a}`})}),d=await c.json();l(d.ok?"ok":"error"),n(d.error||"")}catch(a){l("error"),n(a.message)}}},s=async()=>{let a=q(h.trim());if(a&&!o){p(!0);try{await f(a)}finally{p(!1)}}};return(0,d.jsx)(j.aF,{isOpen:a,onClose:g,title:"Add Custom Model",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("input",{type:"text",value:h,onChange:a=>{i(a.target.value),l(null),n("")},onKeyDown:a=>{"Enter"===a.key&&r()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",autoFocus:!0}),(0,d.jsx)(j.$n,{variant:"secondary",icon:"science",loading:"testing"===k,onClick:r,disabled:!h.trim()||"testing"===k,children:"testing"===k?"Testing...":"Test"})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,d.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:q(h.trim())||"model-id"})]})]}),"ok"===k&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===k&&(0,d.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,d.jsx)("span",{children:m||"Model not reachable"})]}),(0,d.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,d.jsx)(j.$n,{onClick:g,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,d.jsx)(j.$n,{onClick:s,fullWidth:!0,size:"sm",disabled:!h.trim()||o,children:o?"Adding...":"Add Model"})]})]})})}J.propTypes={isOpen:A().bool.isRequired,provider:A().string,providerName:A().string,isCompatible:A().bool,isAnthropic:A().bool,authType:A().string,authHint:A().string,website:A().string,error:A().string,onSave:A().func.isRequired,onBulkDone:A().func,onClose:A().func.isRequired},K.propTypes={isOpen:A().bool.isRequired,node:A().shape({id:A().string,name:A().string,prefix:A().string,apiType:A().string,baseUrl:A().string}),onSave:A().func.isRequired,onClose:A().func.isRequired,isAnthropic:A().bool},L.propTypes={isOpen:A().bool.isRequired,providerAlias:A().string.isRequired,providerDisplayAlias:A().string.isRequired,onSave:A().func.isRequired,onClose:A().func.isRequired};let M=`[
|
|
4
4
|
{
|
|
@@ -7,4 +7,4 @@ sk-key-only-auto-named`;function J({isOpen:a,provider:b,providerName:c,isCompati
|
|
|
7
7
|
"idToken": "eyJhbGc...",
|
|
8
8
|
"email": "user@example.com"
|
|
9
9
|
}
|
|
10
|
-
]`;function N({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[k,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,w.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,w.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,w.Tl)("Request failed"))}finally{i(!1)}},q=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(j.aF,{isOpen:a,title:(0,w.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,w.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:M,value:f,onChange:a=>g(a.target.value),disabled:h}),k&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:k}),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,w.Tl)("added"),m.failed>0?`, ✗ ${m.failed} ${(0,w.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)(j.$n,{onClick:p,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,w.Tl)("Importing..."):(0,w.Tl)("Import All")}),(0,d.jsx)(j.$n,{onClick:o,variant:"ghost",fullWidth:!0,disabled:h,children:(0,w.Tl)("Close")})]})]})})}N.propTypes={isOpen:A().bool.isRequired,onClose:A().func.isRequired,onSuccess:A().func};var O=c(78097);function P({connectionId:a,providerAlias:b,models:c,jobSnapshot:f,onComplete:g,onStarted:h,onClose:i}){let[k,l]=(0,e.useState)(4),[m,n]=(0,e.useState)(50),[o,p]=(0,e.useState)(Math.round(20)),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(null),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)(""),[y,z]=(0,e.useState)(""),[A,B]=(0,e.useState)(""),C=(0,e.useRef)({onComplete:g,onStarted:h}),D=(0,e.useRef)(null),E=(0,e.useRef)(a),F=(0,e.useRef)(null),G=c?.length||0,H=(0,e.useMemo)(()=>`max concurrency 16 \xb7 batch 200 \xb7 timeout ${60}s`,[]);async function I(){if(q||!a||0===G)return;r(!0),x(""),v(null),z("Starting…");let d={concurrency:Math.max(1,Math.min(16,Number(k)||4)),batchSize:Math.max(1,Math.min(200,Number(m)||50)),timeoutMs:Math.max(1e3,Math.min(6e4,1e3*(Number(o)||20)))};F.current=a;try{let e=await fetch(`/api/providers/${a}/model-probes/verify/start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:c,providerAlias:b,...d,timeoutMs:d.timeoutMs})}),f=await e.json().catch(()=>({}));if(E.current!==a){F.current=null,r(!1);return}if(!e.ok){F.current=null,x(f.error||"Failed to start"),r(!1);return}C.current.onStarted?.(f),function(a){if(a){if("idle"===a.status){F.current=null,r(!1);return}if(t({done:a.done||0,total:a.total||0,ok:a.ok||0,dead:a.dead||0,retryable:a.retryable||0,skippedDead:a.skippedDead||0,skippedDup:a.skippedDup||0}),"running"===a.status&&(F.current=a.connectionId||E.current,D.current=null,r(!0)),a.currentRange&&z(`Probing ${a.currentRange.from}–${a.currentRange.to} of ${a.total}…`),a.error&&x(a.error),"done"===a.status||"cancelled"===a.status||"error"===a.status){F.current=null,r(!1);let b={ok:a.ok||0,dead:a.dead||0,retryable:a.retryable||0,tested:a.done||0,skippedDead:a.skippedDead||0,skippedDup:a.skippedDup||0,cancelled:"cancelled"===a.status,retryableAuthOnly:!0===a.retryableAuthOnly};v(b),z("cancelled"===a.status?"Cancelled (partial results saved).":"error"===a.status?"Stopped.":"Done.");let c=`${a.startedAt||"unknown"}:${a.status}`;D.current!==c&&(D.current=c,C.current.onComplete?.(b))}}}(f),"running"!==f.status&&r(!1)}catch(a){F.current=null,x(a?.message||"Verify failed"),r(!1)}}async function J(){let b=F.current||a;await fetch(`/api/providers/${b}/model-probes/verify/cancel`,{method:"POST"}).catch(()=>{})}async function K(c){if(!a)return;let d="retryable"===c,e=d?Number(u?.retryable||0):Number(u?.dead||0);if(!d||await (0,O.l)({title:"Remove retry-failed models?",message:`Review ${e} retryable result(s) and remove the eligible models? Timeouts, rate limits, network failures, and provider errors may be temporary. Credential failures are kept. Removed models can be enabled or imported again later.`,confirmText:"Remove eligible"})){B(c),x(""),z(`Removing ${d?"retry-failed":"dead"} models…`);try{let e=await fetch(`/api/providers/${a}/model-probes/remove-unavailable`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:b,kind:"llm",status:c})}),f=await e.json().catch(()=>({}));if(!e.ok)return void x(f.error||"Remove failed");let g=Number(f.removed||0),h=Number(f.kept||0),i=u?{...u,[d?"retryable":"dead"]:h,...d?{retryableAuthOnly:h>0}:{}}:u;v(i),z(`Removed ${g} ${d?"retry-failed":"dead"} model(s).`+(h>0?` Kept ${h} credential failure(s).`:"")),C.current.onComplete?.({...i||{},removed:g,kept:h,removedStatus:c})}catch(a){x(a?.message||"Remove failed")}finally{B("")}}}async function L(){if(!a)return;let b=await fetch(`/api/providers/${a}/model-probes/cache`,{method:"DELETE"}),c=await b.json().catch(()=>({}));b.ok?(z(`Cleared probe cache (${c.cleared||0} rows). Next verify will re-test everything.`),v(null),t(null),C.current.onComplete?.({cacheCleared:!0,cleared:c.cleared||0})):x(c.error||"Clear cache failed")}let M=s?.total?Math.min(100,Math.round(s.done/s.total*100)):0;return(0,d.jsxs)("div",{className:"mb-4 rounded-lg border border-border bg-sidebar/40 p-3 space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"text-sm font-semibold text-text-main",children:"Verify models"}),(0,d.jsxs)("p",{className:"text-[11px] text-text-muted mt-0.5",children:["Batch-ping availability and latency. Dead = permanently unavailable (missing, blocked, or deprecated) and can be removed; retry = transient (timeout/429/5xx). Known-dead models are skipped until you Clear cache. Caps: ",H,"."]})]}),i&&(0,d.jsx)("button",{type:"button",onClick:i,className:"p-1 text-text-muted hover:text-text-main rounded",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-3 items-end",children:[(0,d.jsxs)("label",{className:"text-xs text-text-muted",children:["Concurrency",(0,d.jsx)("input",{type:"number",min:1,max:16,value:k,disabled:q,onChange:a=>l(a.target.value),className:"mt-1 block w-20 rounded-md border border-border bg-background px-2 py-1 text-xs"})]}),(0,d.jsxs)("label",{className:"text-xs text-text-muted",children:["Batch size",(0,d.jsx)("input",{type:"number",min:1,max:200,value:m,disabled:q,onChange:a=>n(a.target.value),className:"mt-1 block w-20 rounded-md border border-border bg-background px-2 py-1 text-xs"})]}),(0,d.jsxs)("label",{className:"text-xs text-text-muted",children:["Timeout (s)",(0,d.jsx)("input",{type:"number",min:1,max:60,value:o,disabled:q,onChange:a=>p(a.target.value),className:"mt-1 block w-20 rounded-md border border-border bg-background px-2 py-1 text-xs"})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[q?(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"stop",onClick:J,children:"Cancel"}):(0,d.jsx)(j.$n,{size:"sm",icon:"science",onClick:I,disabled:!a||0===G,children:"Start"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"delete_sweep",onClick:L,disabled:q,children:"Clear cache"})]})]}),s&&(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsx)("div",{className:"h-1.5 w-full rounded-full bg-border overflow-hidden",children:(0,d.jsx)("div",{className:"h-full bg-primary transition-all",style:{width:`${M}%`}})}),(0,d.jsxs)("p",{className:"text-[11px] text-text-muted flex flex-wrap gap-x-2",children:[(0,d.jsxs)("span",{title:"Models probed this run",children:[s.done,"/",s.total," tested"]}),(0,d.jsxs)("span",{title:"Reachable",children:["\xb7 ok ",s.ok]}),(0,d.jsxs)("span",{title:"Permanently unavailable this run (missing, blocked, or deprecated)",children:["\xb7 dead ",s.dead]}),(0,d.jsxs)("span",{title:"Transient failure this run (timeout / 429 / 5xx / network); re-testable",children:["\xb7 retry ",s.retryable]}),s.skippedDead?(0,d.jsxs)("span",{title:"Not probed — cache already marks them dead. Clear cache to re-test.",children:["\xb7 skipped known-dead ",s.skippedDead]}):null,s.skippedDup?(0,d.jsxs)("span",{title:"Duplicate ids collapsed",children:["\xb7 dupes ",s.skippedDup]}):null]})]}),y&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:y}),w&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:w}),u&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 pt-1",children:[(0,d.jsxs)("span",{className:"text-xs text-text-main",children:["Summary: ",u.ok," ok \xb7 ",u.dead," dead \xb7 ",u.retryable," retry",u.skippedDead?` \xb7 ${u.skippedDead} skipped known-dead`:"",u.cancelled?" \xb7 cancelled":""]}),u.dead>0&&(0,d.jsxs)(j.$n,{size:"sm",variant:"primary",icon:"delete_sweep",onClick:()=>K("dead"),disabled:q||!!A,loading:"dead"===A,children:["Remove ",u.dead," dead"]}),u.retryable>0&&!u.retryableAuthOnly&&(0,d.jsxs)(j.$n,{size:"sm",variant:"danger",icon:"delete_sweep",onClick:()=>K("retryable"),disabled:q||!!A,loading:"retryable"===A,children:["Remove ",u.retryable," retry failures"]})]})]})}P.propTypes={connectionId:A().string,providerAlias:A().string,models:A().arrayOf(A().object),jobSnapshot:A().object,onComplete:A().func,onStarted:A().func,onClose:A().func};var Q=c(15279),R=c(54918),S=c(22588);let T={claude:"claudeAutoPing",codex:"codexAutoPing"};function U(){let a,b,c,g=(0,f.useParams)(),m=(0,f.useRouter)(),n=g.id,{getCaps:o}=(0,v.y)(),[p,q]=(0,e.useState)([]),[r,s]=(0,e.useState)([]),[z,A]=(0,e.useState)(!0),[D,F]=(0,e.useState)(null),[G,I]=(0,e.useState)(!1),[M,O]=(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)(null),[ae,af]=(0,e.useState)({}),[ag,ah]=(0,e.useState)([]),[ai,aj]=(0,e.useState)(!1),[ak,al]=(0,e.useState)({}),[am,an]=(0,e.useState)(""),[ao,ap]=(0,e.useState)(()=>new Set),[aq,ar]=(0,e.useState)(!1),[as,at]=(0,e.useState)(null),[au,av]=(0,e.useState)(""),[aw,ax]=(0,e.useState)(!1),[ay,az]=(0,e.useState)("30"),[aA,aB]=(0,e.useState)("auto"),[aC,aD]=(0,e.useState)({enabled:!1,connections:{}}),[aE,aF]=(0,e.useState)([]),[aG,aH]=(0,e.useState)([]),[aI,aJ]=(0,e.useState)([]),[aK,aL]=(0,e.useState)([]),[aM,aN]=(0,e.useState)(null),[aO,aP]=(0,e.useState)(!1),[aQ,aR]=(0,e.useState)(!1),[aS,aT]=(0,e.useState)(!1),[aU,aV]=(0,e.useState)(null),[aW,aX]=(0,e.useState)({}),[aY,aZ]=(0,e.useState)(null),a$=(0,e.useRef)(!1),a_=(0,e.useRef)(null),a0=(0,e.useRef)(0),a1=(0,e.useRef)(0),[a2,a3]=(0,e.useState)(!1),[a4,a5]=(0,e.useState)(""),[a6,a7]=(0,e.useState)(!1),[a8,a9]=(0,e.useState)(null),[ba,bb]=(0,e.useState)({}),[bc,bd]=(0,e.useState)({}),[be,bf]=(0,e.useState)("all"),{copied:bg,copy:bh}=(0,u.C)(),bi=D?{id:D.id,name:D.name||("anthropic-compatible"===D.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===D.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===D.type?"AC":"OC",apiType:D.apiType,baseUrl:D.baseUrl,type:D.type}:k.zN[n]||k.fg[n]||k.IS[n]||k.nJ[n]||k.br[n],bj=bi?.authModes||[],bk=!!k.zN[n]||!!k.IS[n]||bj.includes("oauth"),bl=!!k.fg[n]||bj.includes("apikey"),bm=!!k.IS[n]?.noAuth,bn=(0,l.KC)(n),bo=(()=>{let a=new Map(bn.map(a=>[a.id,a]));for(let b of aG)b?.id&&a.set(b.id,{...a.get(b.id),...b});return[...a.values()]})(),bp=(0,k.wG)(n),bq=(0,k.mq)(n),br=(0,k.gb)(n),bs=bq||br,bt=p.some(a=>!1!==a.isActive),bu=function({isCompatible:a,hasActiveConnection:b}){let c=!a,d=!a;return{showToolbar:c||b||d,showImport:c,showVerify:b,showBulkControls:d}}({isCompatible:bs,hasActiveConnection:bt}),bv=!bs&&bk&&bl,bw="xai"===n?"Grok Build OAuth":"OAuth",bx="xai"===n?"xAI API Key":"API Key",by=()=>{I(!0)},bz=()=>{bk?by():(X(""),V(!0))},bA=()=>{X(""),V(!0)},bB=()=>{bk?bz():bA()},bC=a=>{if(!aA||"auto"===aA)return null;let b=t(n,a);return b&&b.includes(aA)?aA:null},bD=(()=>{let a=new Set;for(let b of bo){let c=t(n,b.id);c&&c.forEach(b=>{"none"!==b&&a.add(b)})}return a.size?["auto",...a]:null})(),bE=bs?n:bp,bF=bs?D?.prefix||n:bp,bG=(0,x.Iz)(aK,bE),bH=a=>(0,x.uJ)(bG,a,bE),bI=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bE)}`,{cache:"no-store"}),b=await a.json();a.ok&&aL(b.ids||[])}catch(a){(0,C.s)("Error fetching disabled models:",a)}},[bE]),bJ=async a=>{try{await (0,R.x)("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bE,ids:[a]})}),await bI()}catch(a){(0,C.s)("Error disabling model:",a)}},bK=async a=>{try{return await (0,R.x)(`/api/models/disabled?providerAlias=${encodeURIComponent(bE)}&id=${encodeURIComponent(a)}`,{method:"DELETE"}),await bI(),!0}catch(a){return(0,C.s)("Error enabling model:",a),!1}},bL=async a=>{a.length&&aN({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aN(null);try{await (0,R.x)("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bE,ids:a})}),await bI()}catch(a){(0,C.s)("Error disabling all models:",a)}}})},bM=async()=>{try{await (0,R.x)(`/api/models/disabled?providerAlias=${encodeURIComponent(bE)}`,{method:"DELETE"}),await bI()}catch(a){(0,C.s)("Error enabling all models:",a)}},bN=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&af(b.aliases||{})}catch(a){(0,C.s)("Error fetching aliases:",a)}},[]),bO=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&ah(b.models||[])}catch(a){(0,C.s)("Error fetching custom models:",a)}},[]),bP=(0,e.useCallback)(async()=>{try{let[a,b,c]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),d=await a.json(),e=await b.json(),f=c.ok?await c.json():{};if(a.ok){let a=(d.connections||[]).filter(a=>a.provider===n);q(a)}let g=(f.providerStrategies||{})[n]||{};at(g.fallbackStrategy||null),av(null!=g.stickyRoundRobinLimit?String(g.stickyRoundRobinLimit):"1");let h=g.accountScheduler||{};ax(!0===h.enabled),az(String(Math.max(1,Math.round((h.sessionAffinityTtlSeconds||1800)/60))));let i=(f.providerThinking||{})[n]||{};aB(i.mode||"auto");let j=T[n],k=j&&f[j]||{};if(aD({enabled:!0===k.enabled,connections:k.connections||{}}),b.ok){let a=(e.nodes||[]).find(a=>a.id===n)||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===n)||null))break}F(a)}}catch(a){(0,C.s)("Error fetching connections:",a)}finally{A(!1)}},[n,bs]),bQ=(0,e.useCallback)(async(a=null)=>{let b=++a1.current,c=a?p.find(b=>b.id===a&&!1!==b.isActive):p.find(a=>r.includes(a.id)&&!1!==a.isActive)||p.find(a=>!1!==a.isActive);if(!c){bd({}),bb({});return}try{let a=await fetch(`/api/providers/${c.id}/model-probes`,{cache:"no-store"});if(!a.ok)return;let d=await a.json().catch(()=>({})),e={},f={};for(let a of d.probes||[])e[a.modelId]="ok"===a.status?"ok":"dead"===a.status?"dead":"retry",null!=a.latencyMs&&(f[a.modelId]=a.latencyMs);if(b!==a1.current)return;bd(e),bb(f)}catch{}},[p,r]),bR=async a=>{try{let b=await fetch(`/api/provider-nodes/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok?(F(c.node),await bP(),ab(!1)):(0,C.s)(c?.error||"Failed to update provider node")}catch(a){(0,C.s)("Error updating provider node:",a)}},bS=async(a,b)=>{try{return await (0,S.T)(n,c=>{let d={...c};return a?d.fallbackStrategy=a:delete d.fallbackStrategy,"round-robin"===a&&""!==b?d.stickyRoundRobinLimit=Number(b)||3:a||delete d.stickyRoundRobinLimit,d}),!0}catch(a){return(0,C.s)("Error saving provider strategy:",a),!1}},bT=async(a,b)=>{let c=Math.min(1440,Math.max(1,Number.parseInt(b,10)||30));try{return await (0,S.T)(n,b=>({...b,accountScheduler:{...b.accountScheduler||{},enabled:a,sessionAffinityTtlSeconds:60*c}})),!0}catch(a){return(0,C.s)("Error saving balanced scheduler:",a),!1}},bU=async a=>{let b=a?"round-robin":null,c=a?au||"1":au;await bS(b,c)&&(a&&!au&&av("1"),at(b))},bV=async a=>{await bS("round-robin",a)&&av(a)},bW=async a=>{await bT(a,ay)&&ax(a)},bX=async a=>{await bT(aw,a)&&az(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[n]={mode:a}:delete c[n],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:c})})}catch(a){(0,C.s)("Error saving thinking config:",a)}},bZ=async a=>{let b=T[n];if(b){aD(a);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[b]:a})})}catch(a){(0,C.s)("Error saving auto-ping config:",a)}}},b$=(0,e.useCallback)(a=>{let b=++a0.current;a_.current&&(clearTimeout(a_.current),a_.current=null);let c=async()=>{try{let d=await fetch(`/api/providers/${a}/model-probes/verify/status`,{cache:"no-store"}),e=await d.json().catch(()=>null);if(b!==a0.current)return;if(!d.ok||!e?.status)throw Error("Verify status temporarily unavailable");a9(e&&e.status?e:null),e?.status==="running"?a_.current=setTimeout(c,1500):(a_.current=null,await bQ(a))}catch{b===a0.current&&(a_.current=setTimeout(c,1500))}};a_.current=setTimeout(c,0)},[bQ]),b_=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 bN();else{let b=await a.json();(0,C.s)(b.error||"Failed to set alias")}}catch(a){(0,C.s)("Error setting alias:",a)}},b0=async a=>{try{await (0,R.x)(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"}),await bN()}catch(a){(0,C.s)("Error deleting alias:",a)}},b1=async(a,b="llm",c=bE)=>{try{let d=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:c,id:a,type:b})});if(d.ok)await bO();else{let a=await d.json();(0,C.s)(a.error||"Failed to add custom model")}}catch(a){(0,C.s)("Error adding custom model:",a)}},b2=async(a,b="llm",c=bE)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});await (0,R.x)(`/api/models/custom?${d}`,{method:"DELETE"}),await bO()}catch(a){(0,C.s)("Error deleting custom model:",a)}},b3=async()=>{if(a2)return;let a=p.find(a=>r.includes(a.id)&&!1!==a.isActive)||p.find(a=>!1!==a.isActive);if(!a)return void(0,C.s)((0,w.Tl)("Add an active connection first"));a3(!0),a5("");try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json().catch(()=>({}));if(!b.ok)return void(0,C.s)(c.error||(0,w.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void(0,C.s)(c.warning||(0,w.Tl)("No models returned"));let e=new Set;try{let b=await fetch(`/api/providers/${a.id}/model-probes`,{cache:"no-store"});for(let a of(await b.json().catch(()=>({}))).probes||[])"dead"===a.status&&e.add(a.modelId)}catch{}let f=0,g=new Set(bo.map(a=>a.id)),h=[],i=[],j=new Set;for(let a of d){let b=(0,y.R2)(a,bE);if(!b)continue;let{id:c,name:d,type:k}=b;if(e.has((0,Q.v)(c,bE))){f+=1;continue}let l=`${k}|${c}`;if(j.has(l))continue;if(j.add(l),g.has(c)){bH(c)&&i.push(c);continue}if(ag.some(a=>a.providerAlias===bE&&a.id===c&&(0,y.ki)(a.kind||a.type||"llm")===k))continue;let m=`${bE}/${c}`;Object.values(ae).includes(m)||h.push({providerAlias:bE,id:c,type:k,name:d})}let k=0;if(i.length>0)try{for(let a of i)(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bE)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&(k+=1);await bI()}catch{}let l=0;if(h.length>0){let a=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:h})}),b=await a.json().catch(()=>({}));if(!a.ok)return void(0,C.s)(b.error||(0,w.Tl)("Failed to save models"));l=b.added??h.length,await bO()}let m=h.filter(a=>"llm"!==a.type).length,n=[];if(l>0&&n.push(`${l} new`),k>0&&n.push(`${k} re-enabled`),0===n.length)a5((0,w.Tl)("All models already in list"));else{let a=`Imported ${n.join(" \xb7 ")} (${d.length} from provider)`;m>0&&(a+=" \xb7 non-chat types stored for media pages"),c.warning&&(a+=` \xb7 ${c.warning}`),a5(a)}if(f>0&&a5(a=>`${a} \xb7 ${f} skipped (known dead)`),l>0||k>0)try{let b=[...bo,...h.map(a=>({id:a.id,name:a.name,kind:a.type}))],c=await fetch(`/api/providers/${a.id}/model-probes/verify/start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:b,providerAlias:bE})}),d=await c.json().catch(()=>({}));if(!c.ok)throw Error(d.error||"Failed to start auto-verify");a9(d&&d.status?d:null),b$(a.id)}catch(a){a5(b=>`${b} \xb7 auto-verify failed: ${a?.message||a}`)}}catch(a){(0,C.s)("Error importing models:",a),(0,C.s)((0,w.Tl)("Error fetching models")+": "+(a?.message||a))}finally{a3(!1)}},b4=async()=>{if(aQ||0===p.length)return;let a=Object.fromEntries(p.map(a=>[a.id,{state:"queued",error:null}]));a$.current=!1,aR(!0),aT(!1),aV(null),aX(a),aZ({total:p.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<p.length;a+=1){if(a$.current){aZ({total:p.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=p[a];aV(d.id),aX(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,aX(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,aX(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}aZ({total:p.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<p.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{aV(null),aR(!1),aT(!1),a$.current=!1}},b5=async a=>{let b=p.find(b=>b.id===a),c=b?.name?.trim()||b?.email?.trim()||a;aN({title:"Delete Connection",message:`Delete connection “${c}”?`,onConfirm:async()=>{aN(null);try{await (0,R.x)(`/api/providers/${a}`,{method:"DELETE"}),q(b=>b.filter(b=>b.id!==a))}catch(a){(0,C.s)("Error deleting connection:",a)}}})},b6=()=>{bP(),I(!1)},b7=async a=>{X("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:n,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bP(),V(!1);return}X(c?.error||"Failed to save connection")}catch(a){(0,C.s)("Error saving connection:",a),X("Failed to save connection")}},b8=async a=>{try{await (0,R.x)(`/api/providers/${ac.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),await bP(),_(!1)}catch(a){(0,C.s)("Error updating connection:",a)}},b9=async(a,b)=>{try{await (0,R.x)(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})}),q(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){(0,C.s)("Error updating connection status:",a)}},ca=async a=>{let b,c=a?.providerSpecificData?.baseUrl;if(c){try{b=new URL(c).hostname.toLowerCase().replace(/^\[|\]$/g,"")}catch{(0,C.s)("Cannot allow-list: invalid base URL",c);return}try{let a=await fetch("/api/settings",{cache:"no-store"});if(!a.ok)throw Error(`Failed to load settings (${a.status})`);let c=await a.json(),d=[...new Set([...c.ssrfAllowHosts||[],b])],e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({ssrfAllowHosts:d})});if(!e.ok)throw Error(`Failed to update allow list (${e.status})`);await bP()}catch(a){(0,C.s)("Error adding host to allow list:",a)}}},cb=async(a,b)=>{let c=[...p];[c[a],c[b]]=[c[b],c[a]],q(c);try{if((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})})])).some(a=>!a.ok))throw Error("Failed to reorder connections")}catch(a){(0,C.s)("Error swapping priority:",a),await bP()}},cc=p.length>0&&r.length===p.length,cd=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:p.map((a,b)=>(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:r.includes(a.id),onChange:()=>{var b;return b=a.id,void s(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)(H,{connection:a,isOAuth:bk,isFirst:0===b,isLast:b===p.length-1,onMoveUp:()=>cb(b,b-1),onMoveDown:()=>cb(b,b+1),onToggleActive:b=>b9(a.id,b),autoPing:T[n]&&"oauth"===a.authType?{on:!0===aC.connections[a.id],onToggle:b=>{var c;return c=a.id,void bZ({...aC,connections:{...aC.connections,[c]:b}})},provider:n}:null,onEdit:()=>{ad(a),_(!0)},onDelete:()=>b5(a.id),onAllowlistHost:()=>ca(a),oneByOneStatus:aW[a.id]||null})})]},a.id))}),ce=async a=>{if(!ao.has(a)){ap(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:`${bE}/${a}`})}),c=await b.json();al(b=>({...b,[a]:c.ok?"ok":"error"})),an(c.ok?"":c.error||"Model not reachable")}catch{al(b=>({...b,[a]:"error"})),an("Network error")}finally{ap(b=>{let c=new Set(b);return c.delete(a),c})}}};return z?(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(j.Qv,{}),(0,d.jsx)(j.Qv,{})]}):bi?(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:`${bi.color}15`},children:ai?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bi.color},children:bi.textIcon||bi.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:bq&&bi.apiType?"responses"===bi.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":br?"/providers/anthropic-m.png":`/providers/${bi.id}.png`,alt:bi.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>aj(!0)})}),(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:bi.name}),(bi.notice?.apiKeyUrl||bi.notice?.signupUrl||bi.website)&&(0,d.jsxs)("a",{href:bi.notice?.apiKeyUrl||bi.notice?.signupUrl||bi.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"}),bi.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[p.length," connection",1===p.length?"":"s"]})]})]})]}),bi.deprecated&&(0,d.jsxs)("div",{className:"flex items-start gap-3 rounded-xl border border-amber-500/25 bg-amber-500/8 px-4 py-3 text-xs text-amber-600 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-amber-500 mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"leading-relaxed font-normal",children:String(bi.deprecationNotice).replace(/^⚠️\s*⚠️?\s*/,"")})]}),bi.notice?.text&&!bi.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:bi.notice.text}),bi.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bi.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&&D&&(0,d.jsx)(j.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"===D.apiType?"Responses API":"Chat Completions"," \xb7 ",(D.baseUrl||"").replace(/\/$/,""),"/",br?"messages":"responses"===D.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:()=>{X(""),V(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ab(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aN({title:"Delete Compatible Node",message:`Delete this ${br?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aN(null);try{await (0,R.x)(`/api/provider-nodes/${n}`,{method:"DELETE"}),m.push("/dashboard/providers")}catch(a){(0,C.s)("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),bm?(0,d.jsx)(j.gw,{providerId:n}):(0,d.jsxs)(j.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:[p.length>0&&(0,d.jsxs)(d.Fragment,{children:[r.length>0&&(0,d.jsxs)(j.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=r.length;0!==a&&aN({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aN(null);let a=0,b=[...r],c=[];for(let d of b)try{(await fetch(`/api/providers/${d}`,{method:"DELETE"})).ok?c.push(d):a+=1}catch(b){(0,C.s)("Error deleting connection:",b),a+=1}q(a=>a.filter(a=>!c.includes(a.id))),s([]),a>0&&(0,C.s)(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",r.length,")"]}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:b4,disabled:aQ,children:aQ?"Testing Connection One-by-One...":"Test Connection One-by-One"}),aQ&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{aQ&&(a$.current=!0,aT(!0))},disabled:aS,children:aS?"Stopping...":"Stop"})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-xl border border-border/60 bg-surface-2/40 p-3",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-medium text-text-main",children:"Balanced Scheduler"}),(0,d.jsx)(j.m_,{text:"Process-local least-inflight scheduling with fresh quota signals. Sessions stay on one account and rebind on failure, cooldown, or cap.",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] text-text-muted cursor-help",children:"info"})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[aw&&(0,d.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted",children:["Affinity",(0,d.jsx)("input",{"aria-label":"Session affinity minutes",type:"number",min:1,max:1440,value:ay,onChange:a=>bX(a.target.value),className:"w-14 px-2 py-0.5 text-xs border border-border rounded-md bg-background text-text-main focus:outline-none focus:border-primary"}),(0,d.jsx)("span",{className:"text-[11px]",children:"min"})]}),(0,d.jsx)(j.lM,{checked:aw,onChange:bW,"aria-label":"Balanced scheduler"})]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 pt-2 border-t border-border/40",title:aw?"Saved and used again when balanced scheduling is off":void 0,children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-medium text-text-main",children:"Round Robin"}),(0,d.jsx)(j.m_,{text:"Cycles through connections sequentially in round-robin fashion.",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] text-text-muted cursor-help",children:"info"})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3",children:["round-robin"===as&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,d.jsx)("input",{type:"number",min:1,value:au,onChange:a=>bV(a.target.value),placeholder:"1",disabled:aw,title:aw?"Saved and used again when balanced scheduling is off":void 0,className:"w-14 px-2 py-0.5 text-xs border border-border rounded-md bg-background text-text-main focus:outline-none focus:border-primary disabled:cursor-not-allowed disabled:opacity-50"})]}),(0,d.jsx)(j.lM,{checked:"round-robin"===as,onChange:bU,"aria-label":"Round Robin",disabled:aw,title:aw?"Saved and used again when balanced scheduling is off":void 0})]})]})]})]})]}),0===p.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"}),bv&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bw," or ",bx,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bv?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bz,children:bw}),(0,d.jsx)(j.$n,{size:"sm",icon:"key",onClick:bA,children:bx})]}):(0,d.jsxs)(d.Fragment,{children:[!bs&&"iflow"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>O(!0),children:"Cookie"}),"codex"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Z(!0),children:(0,w.Tl)("Bulk Add")}),(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:bB,children:bs?"Add API Key":"iflow"===n?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[aY&&(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:["Total: ",aY.total]}),(0,d.jsxs)("span",{children:["Completed: ",aY.completed]}),(0,d.jsxs)("span",{children:["Passed: ",aY.passed]}),(0,d.jsxs)("span",{children:["Failed: ",aY.failed]}),aY.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),aQ&&aU&&(0,d.jsxs)("span",{children:["Running: ",p.find(a=>a.id===aU)?.name||aU]})]})}),p.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:cc,onChange:()=>{cc?s([]):s(p.map(a=>a.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),cd,!bs&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>O(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Z(!0),title:(0,w.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,w.Tl)("Bulk Add")}),bv?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bz,className:"w-full sm:w-auto",children:bw}),(0,d.jsx)(j.$n,{size:"sm",icon:"key",onClick:bA,className:"w-full sm:w-auto",children:bx})]}):(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:bB,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsxs)(j.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"}),bD&&(0,d.jsx)("select",{value:aA,onChange:a=>{var b;aB(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:bD.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),bu.showToolbar&&(a=(bu.showBulkControls?[...bo,...aI.filter(a=>!bo.some(b=>b.id===a.id))].filter(a=>{let b=(0,l.CP)(a);return!b||"llm"===b}).map(a=>a.id):[]).filter(a=>!bH(a)),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[bu.showImport&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:a2?"progress_activity":"cloud_download",onClick:b3,disabled:a2||!bt,title:bt?"Import models from the active connection":"Add an active connection to import models",children:a2?"Importing...":"Import models"}),bu.showVerify&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:a8?.status==="running"?"progress_activity":"science",onClick:()=>a7(a=>!a),children:a8?.status==="running"?`Verifying ${a8.done}/${a8.total}`:a6?"Hide verify":"Verify models"}),bu.showBulkControls&&aK.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bM,children:"Active All"}),bu.showBulkControls&&a.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bL(a),children:"Disable All"})]}))]}),!!am&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:am}),a4&&(0,d.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-2 rounded-xl border border-primary/30 bg-primary/10 px-3.5 py-2 text-xs font-medium text-text-main",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"info"}),(0,d.jsx)("span",{children:a4})]}),(0,d.jsx)("button",{onClick:()=>a5(""),className:"text-text-muted hover:text-text-main p-0.5 rounded",title:"Dismiss",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})})]}),a6&&(b=p.find(a=>r.includes(a.id)&&!1!==a.isActive)||p.find(a=>!1!==a.isActive),c=[...(0,x.R3)({customModels:ag,modelAliases:ae,providerAlias:bE,builtInModels:bo,type:"llm"}).filter(a=>!bH(a.id)).map(a=>({id:a.id,name:a.name||a.id,kind:"llm"})),...bo.filter(a=>{let b=(0,l.CP)(a);return(!b||"llm"===b)&&!bH(a.id)}).map(a=>({id:a.id,name:a.name||a.id,kind:"llm"}))],(0,d.jsx)(P,{connectionId:b?.id,providerAlias:bE,models:c,jobSnapshot:a8,onClose:()=>a7(!1),onStarted:a=>{a9(a&&a.status?a:null);let c=a?.connectionId||b?.id;c&&b$(c)},onComplete:async a=>{a?.removedStatus&&a9(b=>b?{...b,dead:Number(a.dead??b.dead??0),retryable:Number(a.retryable??b.retryable??0),retryableAuthOnly:!0===a.retryableAuthOnly}:b),a?.removed>0&&await bO(),a?.removed>0&&await bI(),(a?.removed>0||a?.cacheCleared)&&await bQ(b?.id)}})),(()=>{let a,b,c;if(bs)return(0,d.jsx)(E,{providerStorageAlias:bE,providerDisplayAlias:bF,modelAliases:ae,customModels:ag,copied:bg,onCopy:bh,onSetAlias:b_,onDeleteAlias:b0,onAddCustomModel:a=>b1(a,"llm",bE),onDeleteCustomModel:a=>b2(a,"llm",bE),onRefreshModels:bO,connections:p,isAnthropic:br,disabledModelIds:aK,onEnableModel:bK});let e=[...bo,...aI.filter(a=>!bo.some(b=>b.id===a.id))].filter(a=>{let b=(0,l.CP)(a);return!b||"llm"===b}),f=e.filter(a=>!bH(a.id)),g=e.filter(a=>bH(a.id)),h=(0,x.R3)({customModels:ag,modelAliases:ae,providerAlias:bE,builtInModels:bo,type:"llm"}),i=h.filter(a=>!bH(a.id)&&("all"===be||(bc[(0,Q.v)(a.id,bE)]||null)===be)),j=f.filter(a=>"all"===be||(bc[(0,Q.v)(a.id,bE)]||null)===be);return(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("div",{className:"mb-2 flex flex-wrap items-center gap-1.5 text-xs",children:[{id:"all",label:"All",count:f.length+h.filter(a=>!bH(a.id)).length},{id:"ok",label:"Reachable",count:[...f,...h].filter(a=>!bH(a.id)&&("ok"===bc[(0,Q.v)(a.id,bE)]||"ok"===ak[a.id])).length},{id:"dead",label:"Dead",count:[...f,...h].filter(a=>!bH(a.id)&&("dead"===bc[(0,Q.v)(a.id,bE)]||"error"===ak[a.id])).length},{id:"retry",label:"Retry",count:[...f,...h].filter(a=>!bH(a.id)&&"retry"===bc[(0,Q.v)(a.id,bE)]).length}].map(a=>(0,d.jsxs)("button",{onClick:()=>bf(a.id),className:`inline-flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs font-medium transition-all ${be===a.id?"bg-primary text-black font-semibold shadow-sm":"bg-surface-2/60 border border-border/40 text-text-muted hover:border-border hover:text-text-main"}`,children:[(0,d.jsx)("span",{children:a.label}),(0,d.jsx)("span",{className:`rounded-full px-1.5 py-0.2 text-[10px] tabular-nums ${be===a.id?"bg-black/20 text-black font-bold":"bg-black/10 dark:bg-white/10 text-text-muted"}`,children:a.count})]},a.id))}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[i.map(a=>{let b=(0,Q.v)(a.id,bE);return(0,d.jsx)(B,{model:{id:a.id,name:a.name},fullModel:`${bF}/${a.id}`,alias:a.alias,copied:bg,onCopy:bh,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?b2(a.id,"llm",bE):b0(a.alias)},testStatus:ak[a.id],onTest:p.length>0||bm?()=>ce(a.id):void 0,isTesting:ao.has(a.id),isCustom:!0,isFree:!1,caps:o(`${n}/${a.id}`),thinkingSuffix:bC(a.id),latencyMs:ba[a.id]??ba[b],probeState:a8?.status==="running"&&a8?.perModel?.[b]?a8.perModel[b]:bc[b]||null},`${a.source}-${a.fullModel}`)}),j.map(a=>{let b=`${bE}/${a.id}`,c=`${n}/${a.id}`,e=Object.entries(ae).find(([,a])=>a===b||a===c)?.[0],f=(0,Q.v)(a.id,bE);return(0,d.jsx)(B,{model:a,fullModel:`${bF}/${a.id}`,alias:e,copied:bg,onSetAlias:b=>b_(a.id,b,bE),onCopy:bh,onDeleteAlias:()=>b0(e),testStatus:ak[a.id],onTest:p.length>0||bm?()=>ce(a.id):void 0,isTesting:ao.has(a.id),isFree:a.isFree,onDisable:()=>bJ(a.id),caps:o(`${n}/${a.id}`),thinkingSuffix:bC(a.id),latencyMs:ba[a.id]??ba[f],probeState:a8?.status==="running"&&a8?.perModel?.[f]?a8.perModel[f]:bc[f]||null},a.id)}),(0,d.jsxs)("button",{onClick:()=>ar(!0),className:"flex min-h-[58px] min-w-[200px] flex-1 items-center justify-center gap-2 rounded-xl border border-dashed border-primary/40 bg-primary/5 px-4 py-3 text-xs font-medium text-primary transition-all hover:border-primary hover:bg-primary/10 hover:shadow-soft sm:flex-none",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"add_circle"}),"Add Custom Model"]}),aE.length>0&&(a=new Set([...Object.values(ae),...h.map(a=>a.fullModel)]),b=new Set(bo.map(a=>a.id)),0===(c=aE.filter(c=>!a.has(`${bE}/${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 b1(a.id,"llm",bE)},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))})]})),g.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 (",g.length,"):"]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:g.map(a=>(0,d.jsxs)("button",{onClick:()=>bK(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))})]})]})]})})()]}),"kiro"===n?(0,d.jsx)(j.Mh,{isOpen:G,providerInfo:bi,onSuccess:b6,onClose:()=>I(!1)}):"cursor"===n?(0,d.jsx)(j.G9,{isOpen:G,onSuccess:b6,onClose:()=>I(!1)}):"gitlab"===n?(0,d.jsx)(j.vj,{isOpen:G,providerInfo:bi,onSuccess:b6,onClose:()=>I(!1)}):(0,d.jsx)(j.LF,{isOpen:G,provider:n,providerInfo:bi,onSuccess:b6,onClose:()=>I(!1)}),"iflow"===n&&(0,d.jsx)(j.vE,{isOpen:M,onSuccess:()=>{bP(),O(!1)},onClose:()=>O(!1)}),(0,d.jsx)(J,{isOpen:U,provider:n,providerName:bi.name,isCompatible:bs,isAnthropic:br,authType:bi?.authType,authHint:bi?.authHint,website:bi?.website,error:W,onSave:b7,onBulkDone:bP,onClose:()=>{X(""),V(!1)}}),(0,d.jsx)(j.wI,{isOpen:$,connection:ac,onSave:b8,onClose:()=>_(!1)}),bs&&(0,d.jsx)(K,{isOpen:aa,node:D,onSave:bR,onClose:()=>ab(!1),isAnthropic:br}),!bs&&(0,d.jsx)(L,{isOpen:aq,providerAlias:bE,providerDisplayAlias:bF,onSave:async a=>{await b1(a,"llm",bE),ar(!1)},onClose:()=>ar(!1)}),"codex"===n&&(0,d.jsx)(N,{isOpen:Y,onClose:()=>Z(!1),onSuccess:bP}),(0,d.jsx)(j.uo,{isOpen:aO,onClose:()=>aP(!1),onConfirm:()=>{(aP(!1),bk)?by():bA()},title:"Risk Notice",message:bi?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(j.uo,{isOpen:!!aM,onClose:()=>aN(null),onConfirm:aM?.onConfirm,title:aM?.title||"Confirm",message:aM?.message,variant:"danger"})]}):(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"})]})}},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")},50412:(a,b,c)=>{"use strict";c.d(b,{x0:()=>x.default,Ex:()=>j.default,$n:()=>d.default,nh:()=>C.default,Zp:()=>g.default,Qv:()=>i.CardSkeleton,CK:()=>o.default,uo:()=>h.ConfirmModal,G9:()=>t.default,wI:()=>w.default,vj:()=>v.default,vE:()=>u.default,pd:()=>e.default,Mh:()=>s.default,uR:()=>n.default,Nf:()=>p.default,aF:()=>h.default,rq:()=>m.default,gw:()=>y.default,LF:()=>l.default,Wx:()=>B.default,gM:()=>r.default,Iz:()=>z.default,l6:()=>f.default,lM:()=>k.default,m_:()=>A.default,jK:()=>q.default});var d=c(99070),e=c(83552),f=c(4770),g=c(17660),h=c(95145),i=c(74812);c(25919);var j=c(75171),k=c(95514);c(43878),c(19308),c(42196),c(32456),c(48781);var l=c(79346),m=c(83352),n=c(39645),o=c(62727),p=c(20084),q=c(87226);c(267),c(3236),c(11229);var r=c(91809);c(4481);var s=c(5291);c(56110);var t=c(51109),u=c(79488),v=c(43182),w=c(51585),x=c(67738),y=c(50585),z=c(91099),A=c(32971),B=c(11633),C=c(38930);c(5993),c(53838)},54918:(a,b,c)=>{"use strict";async function d(a,b){let c=await fetch(a,{...b,headers:{"Content-Type":"application/json",...b?.headers||{}},credentials:"same-origin"}),d=null;try{d=await c.json()}catch{d=null}if(!c.ok){let a=d&&(d.error||d.message)||`Request failed (${c.status})`,b=Error("string"==typeof a?a:"Request failed");throw b.status=c.status,b.data=d,b}return d}c.d(b,{x:()=>d})},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70668:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>z,handler:()=>B,routeModule:()=>A});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,32059))),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.bind(c,57097))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),t=(0,d.p)(()=>Promise.resolve().then(c.bind(c,70160))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),w=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),x={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,93110))),"/home/runner/work/switchboard-router/switchboard-router/src/app/(dashboard)/dashboard/providers/[id]/page.js"]}]},{"global-error":[w,"next/dist/client/components/builtin/global-error.js"]},["new"]]},{"global-error":[v,"next/dist/client/components/builtin/global-error.js"]},[]]},{loading:[t,"/home/runner/work/switchboard-router/switchboard-router/src/app/(dashboard)/dashboard/loading.js"],"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"/home/runner/work/switchboard-router/switchboard-router/src/app/(dashboard)/layout.js"],error:[o,"/home/runner/work/switchboard-router/switchboard-router/src/app/(dashboard)/error.js"],"global-error":[p,"next/dist/client/components/builtin/global-error.js"],"not-found":[q,"next/dist/client/components/builtin/not-found.js"],forbidden:[r,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[s,"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,"/home/runner/work/switchboard-router/switchboard-router/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,y=(0,e.H)({tree:x,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),z=y.__next_app__,A=y.routeModule,B=y.handler},72089:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},73024:a=>{"use strict";a.exports=require("node:fs")},74875:(a,b,c)=>{"use strict";function d(a){return"error"===a||"expired"===a||"unavailable"===a||"reauth_required"===a||"invalid"===a}function e(a,b){return!1===a?"default":"active"===b||"success"===b?"success":d(b)?"error":"default"}c.d(b,{g:()=>e,t:()=>d})},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},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 \"/home/runner/work/switchboard-router/switchboard-router/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.")},"/home/runner/work/switchboard-router/switchboard-router/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,2430,9995,2712,3787,8976,5350,869,2142,5781,5717,3423,7757,4330],()=>b(b.s=70668));module.exports=c})();
|
|
10
|
+
]`;function N({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[k,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,w.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,w.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,w.Tl)("Request failed"))}finally{i(!1)}},q=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(j.aF,{isOpen:a,title:(0,w.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,w.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:M,value:f,onChange:a=>g(a.target.value),disabled:h}),k&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:k}),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,w.Tl)("added"),m.failed>0?`, ✗ ${m.failed} ${(0,w.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)(j.$n,{onClick:p,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,w.Tl)("Importing..."):(0,w.Tl)("Import All")}),(0,d.jsx)(j.$n,{onClick:o,variant:"ghost",fullWidth:!0,disabled:h,children:(0,w.Tl)("Close")})]})]})})}N.propTypes={isOpen:A().bool.isRequired,onClose:A().func.isRequired,onSuccess:A().func};var O=c(78097);function P({connectionId:a,providerAlias:b,models:c,jobSnapshot:f,onComplete:g,onStarted:h,onClose:i}){let[k,l]=(0,e.useState)(4),[m,n]=(0,e.useState)(50),[o,p]=(0,e.useState)(Math.round(20)),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(null),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)(""),[y,z]=(0,e.useState)(""),[A,B]=(0,e.useState)(""),C=(0,e.useRef)({onComplete:g,onStarted:h}),D=(0,e.useRef)(null),E=(0,e.useRef)(a),F=(0,e.useRef)(null),G=c?.length||0,H=(0,e.useMemo)(()=>`max concurrency 16 \xb7 batch 200 \xb7 timeout ${60}s`,[]);async function I(){if(q||!a||0===G)return;r(!0),x(""),v(null),z("Starting…");let d={concurrency:Math.max(1,Math.min(16,Number(k)||4)),batchSize:Math.max(1,Math.min(200,Number(m)||50)),timeoutMs:Math.max(1e3,Math.min(6e4,1e3*(Number(o)||20)))};F.current=a;try{let e=await fetch(`/api/providers/${a}/model-probes/verify/start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:c,providerAlias:b,...d,timeoutMs:d.timeoutMs})}),f=await e.json().catch(()=>({}));if(E.current!==a){F.current=null,r(!1);return}if(!e.ok){F.current=null,x(f.error||"Failed to start"),r(!1);return}C.current.onStarted?.(f),function(a){if(a){if("idle"===a.status){F.current=null,r(!1);return}if(t({done:a.done||0,total:a.total||0,ok:a.ok||0,dead:a.dead||0,retryable:a.retryable||0,skippedDead:a.skippedDead||0,skippedDup:a.skippedDup||0}),"running"===a.status&&(F.current=a.connectionId||E.current,D.current=null,r(!0)),a.currentRange&&z(`Probing ${a.currentRange.from}–${a.currentRange.to} of ${a.total}…`),a.error&&x(a.error),"done"===a.status||"cancelled"===a.status||"error"===a.status){F.current=null,r(!1);let b={ok:a.ok||0,dead:a.dead||0,retryable:a.retryable||0,tested:a.done||0,skippedDead:a.skippedDead||0,skippedDup:a.skippedDup||0,cancelled:"cancelled"===a.status,retryableAuthOnly:!0===a.retryableAuthOnly};v(b),z("cancelled"===a.status?"Cancelled (partial results saved).":"error"===a.status?"Stopped.":"Done.");let c=`${a.startedAt||"unknown"}:${a.status}`;D.current!==c&&(D.current=c,C.current.onComplete?.(b))}}}(f),"running"!==f.status&&r(!1)}catch(a){F.current=null,x(a?.message||"Verify failed"),r(!1)}}async function J(){let b=F.current||a;await fetch(`/api/providers/${b}/model-probes/verify/cancel`,{method:"POST"}).catch(()=>{})}async function K(c){if(!a)return;let d="retryable"===c,e=d?Number(u?.retryable||0):Number(u?.dead||0);if(!d||await (0,O.l)({title:"Remove retry-failed models?",message:`Review ${e} retryable result(s) and remove the eligible models? Timeouts, rate limits, network failures, and provider errors may be temporary. Credential failures are kept. Removed models can be enabled or imported again later.`,confirmText:"Remove eligible"})){B(c),x(""),z(`Removing ${d?"retry-failed":"dead"} models…`);try{let e=await fetch(`/api/providers/${a}/model-probes/remove-unavailable`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:b,kind:"llm",status:c})}),f=await e.json().catch(()=>({}));if(!e.ok)return void x(f.error||"Remove failed");let g=Number(f.removed||0),h=Number(f.kept||0),i=u?{...u,[d?"retryable":"dead"]:h,...d?{retryableAuthOnly:h>0}:{}}:u;v(i),z(`Removed ${g} ${d?"retry-failed":"dead"} model(s).`+(h>0?` Kept ${h} credential failure(s).`:"")),C.current.onComplete?.({...i||{},removed:g,kept:h,removedStatus:c})}catch(a){x(a?.message||"Remove failed")}finally{B("")}}}async function L(){if(!a)return;let b=await fetch(`/api/providers/${a}/model-probes/cache`,{method:"DELETE"}),c=await b.json().catch(()=>({}));b.ok?(z(`Cleared probe cache (${c.cleared||0} rows). Next verify will re-test everything.`),v(null),t(null),C.current.onComplete?.({cacheCleared:!0,cleared:c.cleared||0})):x(c.error||"Clear cache failed")}let M=s?.total?Math.min(100,Math.round(s.done/s.total*100)):0;return(0,d.jsxs)("div",{className:"mb-4 rounded-lg border border-border bg-sidebar/40 p-3 space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"text-sm font-semibold text-text-main",children:"Verify models"}),(0,d.jsxs)("p",{className:"text-[11px] text-text-muted mt-0.5",children:["Batch-ping availability and latency. Dead = permanently unavailable (missing, blocked, or deprecated) and can be removed; retry = transient (timeout/429/5xx). Known-dead models are skipped until you Clear cache. Caps: ",H,"."]})]}),i&&(0,d.jsx)("button",{type:"button",onClick:i,className:"p-1 text-text-muted hover:text-text-main rounded",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-3 items-end",children:[(0,d.jsxs)("label",{className:"text-xs text-text-muted",children:["Concurrency",(0,d.jsx)("input",{type:"number",min:1,max:16,value:k,disabled:q,onChange:a=>l(a.target.value),className:"mt-1 block w-20 rounded-md border border-border bg-background px-2 py-1 text-xs"})]}),(0,d.jsxs)("label",{className:"text-xs text-text-muted",children:["Batch size",(0,d.jsx)("input",{type:"number",min:1,max:200,value:m,disabled:q,onChange:a=>n(a.target.value),className:"mt-1 block w-20 rounded-md border border-border bg-background px-2 py-1 text-xs"})]}),(0,d.jsxs)("label",{className:"text-xs text-text-muted",children:["Timeout (s)",(0,d.jsx)("input",{type:"number",min:1,max:60,value:o,disabled:q,onChange:a=>p(a.target.value),className:"mt-1 block w-20 rounded-md border border-border bg-background px-2 py-1 text-xs"})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[q?(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"stop",onClick:J,children:"Cancel"}):(0,d.jsx)(j.$n,{size:"sm",icon:"science",onClick:I,disabled:!a||0===G,children:"Start"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"delete_sweep",onClick:L,disabled:q,children:"Clear cache"})]})]}),s&&(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsx)("div",{className:"h-1.5 w-full rounded-full bg-border overflow-hidden",children:(0,d.jsx)("div",{className:"h-full bg-primary transition-all",style:{width:`${M}%`}})}),(0,d.jsxs)("p",{className:"text-[11px] text-text-muted flex flex-wrap gap-x-2",children:[(0,d.jsxs)("span",{title:"Models probed this run",children:[s.done,"/",s.total," tested"]}),(0,d.jsxs)("span",{title:"Reachable",children:["\xb7 ok ",s.ok]}),(0,d.jsxs)("span",{title:"Permanently unavailable this run (missing, blocked, or deprecated)",children:["\xb7 dead ",s.dead]}),(0,d.jsxs)("span",{title:"Transient failure this run (timeout / 429 / 5xx / network); re-testable",children:["\xb7 retry ",s.retryable]}),s.skippedDead?(0,d.jsxs)("span",{title:"Not probed — cache already marks them dead. Clear cache to re-test.",children:["\xb7 skipped known-dead ",s.skippedDead]}):null,s.skippedDup?(0,d.jsxs)("span",{title:"Duplicate ids collapsed",children:["\xb7 dupes ",s.skippedDup]}):null]})]}),y&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:y}),w&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:w}),u&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 pt-1",children:[(0,d.jsxs)("span",{className:"text-xs text-text-main",children:["Summary: ",u.ok," ok \xb7 ",u.dead," dead \xb7 ",u.retryable," retry",u.skippedDead?` \xb7 ${u.skippedDead} skipped known-dead`:"",u.cancelled?" \xb7 cancelled":""]}),u.dead>0&&(0,d.jsxs)(j.$n,{size:"sm",variant:"primary",icon:"delete_sweep",onClick:()=>K("dead"),disabled:q||!!A,loading:"dead"===A,children:["Remove ",u.dead," dead"]}),u.retryable>0&&!u.retryableAuthOnly&&(0,d.jsxs)(j.$n,{size:"sm",variant:"danger",icon:"delete_sweep",onClick:()=>K("retryable"),disabled:q||!!A,loading:"retryable"===A,children:["Remove ",u.retryable," retry failures"]})]})]})}P.propTypes={connectionId:A().string,providerAlias:A().string,models:A().arrayOf(A().object),jobSnapshot:A().object,onComplete:A().func,onStarted:A().func,onClose:A().func};var Q=c(15279),R=c(54918),S=c(22588);let T={claude:"claudeAutoPing",codex:"codexAutoPing"};function U(){let a,b,c,g=(0,f.useParams)(),m=(0,f.useRouter)(),n=g.id,{getCaps:o}=(0,v.y)(),[p,q]=(0,e.useState)([]),[r,s]=(0,e.useState)([]),[z,A]=(0,e.useState)(!0),[D,F]=(0,e.useState)(null),[G,I]=(0,e.useState)(!1),[M,O]=(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)(null),[ae,af]=(0,e.useState)({}),[ag,ah]=(0,e.useState)([]),[ai,aj]=(0,e.useState)(!1),[ak,al]=(0,e.useState)({}),[am,an]=(0,e.useState)(""),[ao,ap]=(0,e.useState)(()=>new Set),[aq,ar]=(0,e.useState)(!1),[as,at]=(0,e.useState)(null),[au,av]=(0,e.useState)(""),[aw,ax]=(0,e.useState)(!1),[ay,az]=(0,e.useState)("30"),[aA,aB]=(0,e.useState)("auto"),[aC,aD]=(0,e.useState)({enabled:!1,connections:{}}),[aE,aF]=(0,e.useState)([]),[aG,aH]=(0,e.useState)([]),[aI,aJ]=(0,e.useState)([]),[aK,aL]=(0,e.useState)([]),[aM,aN]=(0,e.useState)(null),[aO,aP]=(0,e.useState)(!1),[aQ,aR]=(0,e.useState)(!1),[aS,aT]=(0,e.useState)(!1),[aU,aV]=(0,e.useState)(null),[aW,aX]=(0,e.useState)({}),[aY,aZ]=(0,e.useState)(null),a$=(0,e.useRef)(!1),a_=(0,e.useRef)(null),a0=(0,e.useRef)(0),a1=(0,e.useRef)(0),[a2,a3]=(0,e.useState)(!1),[a4,a5]=(0,e.useState)(""),[a6,a7]=(0,e.useState)(!1),[a8,a9]=(0,e.useState)(null),[ba,bb]=(0,e.useState)({}),[bc,bd]=(0,e.useState)({}),[be,bf]=(0,e.useState)("all"),{copied:bg,copy:bh}=(0,u.C)(),bi=D?{id:D.id,name:D.name||("anthropic-compatible"===D.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===D.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===D.type?"AC":"OC",apiType:D.apiType,baseUrl:D.baseUrl,type:D.type}:k.zN[n]||k.fg[n]||k.IS[n]||k.nJ[n]||k.br[n],bj=bi?.authModes||[],bk=!!k.zN[n]||!!k.IS[n]||bj.includes("oauth"),bl=!!k.fg[n]||bj.includes("apikey"),bm=!!k.IS[n]?.noAuth,bn=(0,l.KC)(n),bo=(()=>{let a=new Map(bn.map(a=>[a.id,a]));for(let b of aG)b?.id&&a.set(b.id,{...a.get(b.id),...b});return[...a.values()]})(),bp=(0,k.wG)(n),bq=(0,k.mq)(n),br=(0,k.gb)(n),bs=bq||br,bt=p.some(a=>!1!==a.isActive),bu=function({isCompatible:a,hasActiveConnection:b}){let c=!a,d=!a;return{showToolbar:c||b||d,showImport:c,showVerify:b,showBulkControls:d}}({isCompatible:bs,hasActiveConnection:bt}),bv=!bs&&bk&&bl,bw="xai"===n?"Grok Build OAuth":"OAuth",bx="xai"===n?"xAI API Key":"API Key",by=()=>{I(!0)},bz=()=>{bk?by():(X(""),V(!0))},bA=()=>{X(""),V(!0)},bB=()=>{bk?bz():bA()},bC=a=>{if(!aA||"auto"===aA)return null;let b=t(n,a);return b&&b.includes(aA)?aA:null},bD=(()=>{let a=new Set;for(let b of bo){let c=t(n,b.id);c&&c.forEach(b=>{"none"!==b&&a.add(b)})}return a.size?["auto",...a]:null})(),bE=bs?n:bp,bF=bs?D?.prefix||n:bp,bG=(0,x.Iz)(aK,bE),bH=a=>(0,x.uJ)(bG,a,bE),bI=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bE)}`,{cache:"no-store"}),b=await a.json();a.ok&&aL(b.ids||[])}catch(a){(0,C.s)("Error fetching disabled models:",a)}},[bE]),bJ=async a=>{try{await (0,R.x)("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bE,ids:[a]})}),await bI()}catch(a){(0,C.s)("Error disabling model:",a)}},bK=async a=>{try{return await (0,R.x)(`/api/models/disabled?providerAlias=${encodeURIComponent(bE)}&id=${encodeURIComponent(a)}`,{method:"DELETE"}),await bI(),!0}catch(a){return(0,C.s)("Error enabling model:",a),!1}},bL=async a=>{a.length&&aN({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aN(null);try{await (0,R.x)("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bE,ids:a})}),await bI()}catch(a){(0,C.s)("Error disabling all models:",a)}}})},bM=async()=>{try{await (0,R.x)(`/api/models/disabled?providerAlias=${encodeURIComponent(bE)}`,{method:"DELETE"}),await bI()}catch(a){(0,C.s)("Error enabling all models:",a)}},bN=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&af(b.aliases||{})}catch(a){(0,C.s)("Error fetching aliases:",a)}},[]),bO=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&ah(b.models||[])}catch(a){(0,C.s)("Error fetching custom models:",a)}},[]),bP=(0,e.useCallback)(async()=>{try{let[a,b,c]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),d=await a.json(),e=await b.json(),f=c.ok?await c.json():{};if(a.ok){let a=(d.connections||[]).filter(a=>a.provider===n);q(a)}let g=(f.providerStrategies||{})[n]||{};at(g.fallbackStrategy||null),av(null!=g.stickyRoundRobinLimit?String(g.stickyRoundRobinLimit):"1");let h=g.accountScheduler||{};ax(!0===h.enabled),az(String(Math.max(1,Math.round((h.sessionAffinityTtlSeconds||1800)/60))));let i=(f.providerThinking||{})[n]||{};aB(i.mode||"auto");let j=T[n],k=j&&f[j]||{};if(aD({enabled:!0===k.enabled,connections:k.connections||{}}),b.ok){let a=(e.nodes||[]).find(a=>a.id===n)||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===n)||null))break}F(a)}}catch(a){(0,C.s)("Error fetching connections:",a)}finally{A(!1)}},[n,bs]),bQ=(0,e.useCallback)(async(a=null)=>{let b=++a1.current,c=a?p.find(b=>b.id===a&&!1!==b.isActive):p.find(a=>r.includes(a.id)&&!1!==a.isActive)||p.find(a=>!1!==a.isActive);if(!c){bd({}),bb({});return}try{let a=await fetch(`/api/providers/${c.id}/model-probes`,{cache:"no-store"});if(!a.ok)return;let d=await a.json().catch(()=>({})),e={},f={};for(let a of d.probes||[])e[a.modelId]="ok"===a.status?"ok":"dead"===a.status?"dead":"retry",null!=a.latencyMs&&(f[a.modelId]=a.latencyMs);if(b!==a1.current)return;bd(e),bb(f)}catch{}},[p,r]),bR=async a=>{try{let b=await fetch(`/api/provider-nodes/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok?(F(c.node),await bP(),ab(!1)):(0,C.s)(c?.error||"Failed to update provider node")}catch(a){(0,C.s)("Error updating provider node:",a)}},bS=async(a,b)=>{try{return await (0,S.T)(n,c=>{let d={...c};return a?d.fallbackStrategy=a:delete d.fallbackStrategy,"round-robin"===a&&""!==b?d.stickyRoundRobinLimit=Number(b)||3:a||delete d.stickyRoundRobinLimit,d}),!0}catch(a){return(0,C.s)("Error saving provider strategy:",a),!1}},bT=async(a,b)=>{let c=Math.min(1440,Math.max(1,Number.parseInt(b,10)||30));try{return await (0,S.T)(n,b=>({...b,accountScheduler:{...b.accountScheduler||{},enabled:a,sessionAffinityTtlSeconds:60*c}})),!0}catch(a){return(0,C.s)("Error saving balanced scheduler:",a),!1}},bU=async a=>{let b=a?"round-robin":null,c=a?au||"1":au;await bS(b,c)&&(a&&!au&&av("1"),at(b))},bV=async a=>{await bS("round-robin",a)&&av(a)},bW=async a=>{await bT(a,ay)&&ax(a)},bX=async a=>{await bT(aw,a)&&az(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[n]={mode:a}:delete c[n],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:c})})}catch(a){(0,C.s)("Error saving thinking config:",a)}},bZ=async a=>{let b=T[n];if(b){aD(a);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[b]:a})})}catch(a){(0,C.s)("Error saving auto-ping config:",a)}}},b$=(0,e.useCallback)(a=>{let b=++a0.current;a_.current&&(clearTimeout(a_.current),a_.current=null);let c=async()=>{try{let d=await fetch(`/api/providers/${a}/model-probes/verify/status`,{cache:"no-store"}),e=await d.json().catch(()=>null);if(b!==a0.current)return;if(!d.ok||!e?.status)throw Error("Verify status temporarily unavailable");a9(e&&e.status?e:null),e?.status==="running"?a_.current=setTimeout(c,1500):(a_.current=null,await bQ(a))}catch{b===a0.current&&(a_.current=setTimeout(c,1500))}};a_.current=setTimeout(c,0)},[bQ]),b_=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 bN();else{let b=await a.json();(0,C.s)(b.error||"Failed to set alias")}}catch(a){(0,C.s)("Error setting alias:",a)}},b0=async a=>{try{await (0,R.x)(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"}),await bN()}catch(a){(0,C.s)("Error deleting alias:",a)}},b1=async(a,b="llm",c=bE)=>{try{let d=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:c,id:a,type:b})});if(d.ok)await bO();else{let a=await d.json();(0,C.s)(a.error||"Failed to add custom model")}}catch(a){(0,C.s)("Error adding custom model:",a)}},b2=async(a,b="llm",c=bE)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});await (0,R.x)(`/api/models/custom?${d}`,{method:"DELETE"}),await bO()}catch(a){(0,C.s)("Error deleting custom model:",a)}},b3=async()=>{if(a2)return;let a=p.find(a=>r.includes(a.id)&&!1!==a.isActive)||p.find(a=>!1!==a.isActive);if(!a)return void(0,C.s)((0,w.Tl)("Add an active connection first"));a3(!0),a5("");try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json().catch(()=>({}));if(!b.ok)return void(0,C.s)(c.error||(0,w.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void(0,C.s)(c.warning||(0,w.Tl)("No models returned"));let e=new Set;try{let b=await fetch(`/api/providers/${a.id}/model-probes`,{cache:"no-store"});for(let a of(await b.json().catch(()=>({}))).probes||[])"dead"===a.status&&e.add(a.modelId)}catch{}let f=0,g=new Set(bo.map(a=>a.id)),h=[],i=[],j=new Set;for(let a of d){let b=(0,y.R2)(a,bE);if(!b)continue;let{id:c,name:d,type:k}=b;if(e.has((0,Q.v)(c,bE))){f+=1;continue}let l=`${k}|${c}`;if(j.has(l))continue;if(j.add(l),g.has(c)){bH(c)&&i.push(c);continue}if(ag.some(a=>a.providerAlias===bE&&a.id===c&&(0,y.ki)(a.kind||a.type||"llm")===k))continue;let m=`${bE}/${c}`;Object.values(ae).includes(m)||h.push({providerAlias:bE,id:c,type:k,name:d})}let k=0;if(i.length>0)try{for(let a of i)(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bE)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&(k+=1);await bI()}catch{}let l=0;if(h.length>0){let a=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:h})}),b=await a.json().catch(()=>({}));if(!a.ok)return void(0,C.s)(b.error||(0,w.Tl)("Failed to save models"));l=b.added??h.length,await bO()}let m=h.filter(a=>"llm"!==a.type).length,n=[];if(l>0&&n.push(`${l} new`),k>0&&n.push(`${k} re-enabled`),0===n.length)a5((0,w.Tl)("All models already in list"));else{let a=`Imported ${n.join(" \xb7 ")} (${d.length} from provider)`;m>0&&(a+=" \xb7 non-chat types stored for media pages"),c.warning&&(a+=` \xb7 ${c.warning}`),a5(a)}if(f>0&&a5(a=>`${a} \xb7 ${f} skipped (known dead)`),l>0||k>0)try{let b=[...bo,...h.map(a=>({id:a.id,name:a.name,kind:a.type}))],c=await fetch(`/api/providers/${a.id}/model-probes/verify/start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:b,providerAlias:bE})}),d=await c.json().catch(()=>({}));if(!c.ok)throw Error(d.error||"Failed to start auto-verify");a9(d&&d.status?d:null),b$(a.id)}catch(a){a5(b=>`${b} \xb7 auto-verify failed: ${a?.message||a}`)}}catch(a){(0,C.s)("Error importing models:",a),(0,C.s)((0,w.Tl)("Error fetching models")+": "+(a?.message||a))}finally{a3(!1)}},b4=async()=>{if(aQ||0===p.length)return;let a=Object.fromEntries(p.map(a=>[a.id,{state:"queued",error:null}]));a$.current=!1,aR(!0),aT(!1),aV(null),aX(a),aZ({total:p.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<p.length;a+=1){if(a$.current){aZ({total:p.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=p[a];aV(d.id),aX(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,aX(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,aX(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}aZ({total:p.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<p.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{aV(null),aR(!1),aT(!1),a$.current=!1}},b5=async a=>{let b=p.find(b=>b.id===a),c=b?.name?.trim()||b?.email?.trim()||a;aN({title:"Delete Connection",message:`Delete connection “${c}”?`,onConfirm:async()=>{aN(null);try{await (0,R.x)(`/api/providers/${a}`,{method:"DELETE"}),q(b=>b.filter(b=>b.id!==a))}catch(a){(0,C.s)("Error deleting connection:",a)}}})},b6=()=>{bP(),I(!1)},b7=async a=>{X("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:n,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bP(),V(!1);return}X(c?.error||"Failed to save connection")}catch(a){(0,C.s)("Error saving connection:",a),X("Failed to save connection")}},b8=async a=>{try{await (0,R.x)(`/api/providers/${ac.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),await bP(),_(!1)}catch(a){(0,C.s)("Error updating connection:",a)}},b9=async(a,b)=>{try{await (0,R.x)(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})}),q(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){(0,C.s)("Error updating connection status:",a)}},ca=async a=>{let b,c=a?.providerSpecificData?.baseUrl;if(c){try{b=new URL(c).hostname.toLowerCase().replace(/^\[|\]$/g,"")}catch{(0,C.s)("Cannot allow-list: invalid base URL",c);return}try{let a=await fetch("/api/settings",{cache:"no-store"});if(!a.ok)throw Error(`Failed to load settings (${a.status})`);let c=await a.json(),d=[...new Set([...c.ssrfAllowHosts||[],b])],e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({ssrfAllowHosts:d})});if(!e.ok)throw Error(`Failed to update allow list (${e.status})`);await bP()}catch(a){(0,C.s)("Error adding host to allow list:",a)}}},cb=async(a,b)=>{let c=[...p];[c[a],c[b]]=[c[b],c[a]],q(c);try{if((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})})])).some(a=>!a.ok))throw Error("Failed to reorder connections")}catch(a){(0,C.s)("Error swapping priority:",a),await bP()}},cc=p.length>0&&r.length===p.length,cd=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:p.map((a,b)=>(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:r.includes(a.id),onChange:()=>{var b;return b=a.id,void s(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)(H,{connection:a,isOAuth:bk,isFirst:0===b,isLast:b===p.length-1,onMoveUp:()=>cb(b,b-1),onMoveDown:()=>cb(b,b+1),onToggleActive:b=>b9(a.id,b),autoPing:T[n]&&"oauth"===a.authType?{on:!0===aC.connections[a.id],onToggle:b=>{var c;return c=a.id,void bZ({...aC,connections:{...aC.connections,[c]:b}})},provider:n}:null,onEdit:()=>{ad(a),_(!0)},onDelete:()=>b5(a.id),onAllowlistHost:()=>ca(a),oneByOneStatus:aW[a.id]||null})})]},a.id))}),ce=async a=>{if(!ao.has(a)){ap(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:`${bE}/${a}`})}),c=await b.json();al(b=>({...b,[a]:c.ok?"ok":"error"})),an(c.ok?"":c.error||"Model not reachable")}catch{al(b=>({...b,[a]:"error"})),an("Network error")}finally{ap(b=>{let c=new Set(b);return c.delete(a),c})}}};return z?(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(j.Qv,{}),(0,d.jsx)(j.Qv,{})]}):bi?(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:`${bi.color}15`},children:ai?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bi.color},children:bi.textIcon||bi.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:bq&&bi.apiType?"responses"===bi.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":br?"/providers/anthropic-m.png":`/providers/${bi.id}.png`,alt:bi.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>aj(!0)})}),(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:bi.name}),(bi.notice?.apiKeyUrl||bi.notice?.signupUrl||bi.website)&&(0,d.jsxs)("a",{href:bi.notice?.apiKeyUrl||bi.notice?.signupUrl||bi.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"}),bi.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,d.jsxs)("p",{className:"text-text-muted",children:[p.length," connection",1===p.length?"":"s"]})]})]})]}),bi.deprecated&&(0,d.jsxs)("div",{className:"flex items-start gap-3 rounded-xl border border-amber-500/25 bg-amber-500/8 px-4 py-3 text-xs text-amber-600 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-amber-500 mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"leading-relaxed font-normal",children:String(bi.deprecationNotice).replace(/^⚠️\s*⚠️?\s*/,"")})]}),bi.notice?.text&&!bi.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:bi.notice.text}),bi.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bi.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&&D&&(0,d.jsx)(j.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"===D.apiType?"Responses API":"Chat Completions"," \xb7 ",(D.baseUrl||"").replace(/\/$/,""),"/",br?"messages":"responses"===D.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:()=>{X(""),V(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ab(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aN({title:"Delete Compatible Node",message:`Delete this ${br?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aN(null);try{await (0,R.x)(`/api/provider-nodes/${n}`,{method:"DELETE"}),m.push("/dashboard/providers")}catch(a){(0,C.s)("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),bm?(0,d.jsx)(j.gw,{providerId:n}):(0,d.jsxs)(j.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:[p.length>0&&(0,d.jsxs)(d.Fragment,{children:[r.length>0&&(0,d.jsxs)(j.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=r.length;0!==a&&aN({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aN(null);let a=0,b=[...r],c=[];for(let d of b)try{(await fetch(`/api/providers/${d}`,{method:"DELETE"})).ok?c.push(d):a+=1}catch(b){(0,C.s)("Error deleting connection:",b),a+=1}q(a=>a.filter(a=>!c.includes(a.id))),s([]),a>0&&(0,C.s)(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",r.length,")"]}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:b4,disabled:aQ,children:aQ?"Testing Connection One-by-One...":"Test Connection One-by-One"}),aQ&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{aQ&&(a$.current=!0,aT(!0))},disabled:aS,children:aS?"Stopping...":"Stop"})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-xl border border-border/60 bg-surface-2/40 p-3",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-medium text-text-main",children:"Balanced Scheduler"}),(0,d.jsx)(j.m_,{text:"Process-local least-inflight scheduling with fresh quota signals. Sessions stay on one account and rebind on failure, cooldown, or cap.",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] text-text-muted cursor-help",children:"info"})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[aw&&(0,d.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted",children:["Affinity",(0,d.jsx)("input",{"aria-label":"Session affinity minutes",type:"number",min:1,max:1440,value:ay,onChange:a=>bX(a.target.value),className:"w-14 px-2 py-0.5 text-xs border border-border rounded-md bg-background text-text-main focus:outline-none focus:border-primary"}),(0,d.jsx)("span",{className:"text-[11px]",children:"min"})]}),(0,d.jsx)(j.lM,{checked:aw,onChange:bW,"aria-label":"Balanced scheduler"})]})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 pt-2 border-t border-border/40",title:aw?"Saved and used again when balanced scheduling is off":void 0,children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-medium text-text-main",children:"Round Robin"}),(0,d.jsx)(j.m_,{text:"Cycles through connections sequentially in round-robin fashion.",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] text-text-muted cursor-help",children:"info"})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3",children:["round-robin"===as&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,d.jsx)("input",{type:"number",min:1,value:au,onChange:a=>bV(a.target.value),placeholder:"1",disabled:aw,title:aw?"Saved and used again when balanced scheduling is off":void 0,className:"w-14 px-2 py-0.5 text-xs border border-border rounded-md bg-background text-text-main focus:outline-none focus:border-primary disabled:cursor-not-allowed disabled:opacity-50"})]}),(0,d.jsx)(j.lM,{checked:"round-robin"===as,onChange:bU,"aria-label":"Round Robin",disabled:aw,title:aw?"Saved and used again when balanced scheduling is off":void 0})]})]})]})]})]}),0===p.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"}),bv&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bw," or ",bx,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bv?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bz,children:bw}),(0,d.jsx)(j.$n,{size:"sm",icon:"key",onClick:bA,children:bx})]}):(0,d.jsxs)(d.Fragment,{children:[!bs&&"iflow"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>O(!0),children:"Cookie"}),"codex"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Z(!0),children:(0,w.Tl)("Bulk Add")}),(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:bB,children:bs?"Add API Key":"iflow"===n?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[aY&&(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:["Total: ",aY.total]}),(0,d.jsxs)("span",{children:["Completed: ",aY.completed]}),(0,d.jsxs)("span",{children:["Passed: ",aY.passed]}),(0,d.jsxs)("span",{children:["Failed: ",aY.failed]}),aY.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),aQ&&aU&&(0,d.jsxs)("span",{children:["Running: ",p.find(a=>a.id===aU)?.name||aU]})]})}),p.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:cc,onChange:()=>{cc?s([]):s(p.map(a=>a.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),cd,!bs&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>O(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Z(!0),title:(0,w.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,w.Tl)("Bulk Add")}),bv?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bz,className:"w-full sm:w-auto",children:bw}),(0,d.jsx)(j.$n,{size:"sm",icon:"key",onClick:bA,className:"w-full sm:w-auto",children:bx})]}):(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:bB,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsxs)(j.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"}),bD&&(0,d.jsx)("select",{value:aA,onChange:a=>{var b;aB(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:bD.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),bu.showToolbar&&(a=(bu.showBulkControls?[...bo,...aI.filter(a=>!bo.some(b=>b.id===a.id))].filter(a=>{let b=(0,l.CP)(a);return!b||"llm"===b}).map(a=>a.id):[]).filter(a=>!bH(a)),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[bu.showImport&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:a2?"progress_activity":"cloud_download",onClick:b3,disabled:a2||!bt,title:bt?"Import models from the active connection":"Add an active connection to import models",children:a2?"Importing...":"Import models"}),bu.showVerify&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:a8?.status==="running"?"progress_activity":"science",onClick:()=>a7(a=>!a),children:a8?.status==="running"?`Verifying ${a8.done}/${a8.total}`:a6?"Hide verify":"Verify models"}),bu.showBulkControls&&aK.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bM,children:"Active All"}),bu.showBulkControls&&a.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bL(a),children:"Disable All"})]}))]}),!!am&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:am}),a4&&(0,d.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-2 rounded-xl border border-primary/30 bg-primary/10 px-3.5 py-2 text-xs font-medium text-text-main",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"info"}),(0,d.jsx)("span",{children:a4})]}),(0,d.jsx)("button",{onClick:()=>a5(""),className:"text-text-muted hover:text-text-main p-0.5 rounded",title:"Dismiss",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})})]}),a6&&(b=p.find(a=>r.includes(a.id)&&!1!==a.isActive)||p.find(a=>!1!==a.isActive),c=[...(0,x.R3)({customModels:ag,modelAliases:ae,providerAlias:bE,builtInModels:bo,type:"llm"}).filter(a=>!bH(a.id)).map(a=>({id:a.id,name:a.name||a.id,kind:"llm"})),...bo.filter(a=>{let b=(0,l.CP)(a);return(!b||"llm"===b)&&!bH(a.id)}).map(a=>({id:a.id,name:a.name||a.id,kind:"llm"}))],(0,d.jsx)(P,{connectionId:b?.id,providerAlias:bE,models:c,jobSnapshot:a8,onClose:()=>a7(!1),onStarted:a=>{a9(a&&a.status?a:null);let c=a?.connectionId||b?.id;c&&b$(c)},onComplete:async a=>{a?.removedStatus&&a9(b=>b?{...b,dead:Number(a.dead??b.dead??0),retryable:Number(a.retryable??b.retryable??0),retryableAuthOnly:!0===a.retryableAuthOnly}:b),a?.removed>0&&await bO(),a?.removed>0&&await bI(),(a?.removed>0||a?.cacheCleared)&&await bQ(b?.id)}})),(()=>{let a,b,c;if(bs)return(0,d.jsx)(E,{providerStorageAlias:bE,providerDisplayAlias:bF,modelAliases:ae,customModels:ag,copied:bg,onCopy:bh,onSetAlias:b_,onDeleteAlias:b0,onAddCustomModel:a=>b1(a,"llm",bE),onDeleteCustomModel:a=>b2(a,"llm",bE),onRefreshModels:bO,connections:p,isAnthropic:br,disabledModelIds:aK,onEnableModel:bK});let e=[...bo,...aI.filter(a=>!bo.some(b=>b.id===a.id))].filter(a=>{let b=(0,l.CP)(a);return!b||"llm"===b}),f=e.filter(a=>!bH(a.id)),g=e.filter(a=>bH(a.id)),h=(0,x.R3)({customModels:ag,modelAliases:ae,providerAlias:bE,builtInModels:bo,type:"llm"}),i=h.filter(a=>!bH(a.id)&&("all"===be||(bc[(0,Q.v)(a.id,bE)]||null)===be)),j=f.filter(a=>"all"===be||(bc[(0,Q.v)(a.id,bE)]||null)===be);return(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("div",{className:"mb-2 flex flex-wrap items-center gap-1.5 text-xs",children:[{id:"all",label:"All",count:f.length+h.filter(a=>!bH(a.id)).length},{id:"ok",label:"Reachable",count:[...f,...h].filter(a=>!bH(a.id)&&("ok"===bc[(0,Q.v)(a.id,bE)]||"ok"===ak[a.id])).length},{id:"dead",label:"Dead",count:[...f,...h].filter(a=>!bH(a.id)&&("dead"===bc[(0,Q.v)(a.id,bE)]||"error"===ak[a.id])).length},{id:"retry",label:"Retry",count:[...f,...h].filter(a=>!bH(a.id)&&"retry"===bc[(0,Q.v)(a.id,bE)]).length}].map(a=>(0,d.jsxs)("button",{onClick:()=>bf(a.id),className:`inline-flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs font-medium transition-all ${be===a.id?"bg-primary text-black font-semibold shadow-sm":"bg-surface-2/60 border border-border/40 text-text-muted hover:border-border hover:text-text-main"}`,children:[(0,d.jsx)("span",{children:a.label}),(0,d.jsx)("span",{className:`rounded-full px-1.5 py-0.2 text-[10px] tabular-nums ${be===a.id?"bg-black/20 text-black font-bold":"bg-black/10 dark:bg-white/10 text-text-muted"}`,children:a.count})]},a.id))}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[i.map(a=>{let b=(0,Q.v)(a.id,bE);return(0,d.jsx)(B,{model:{id:a.id,name:a.name},fullModel:`${bF}/${a.id}`,alias:a.alias,copied:bg,onCopy:bh,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?b2(a.id,"llm",bE):b0(a.alias)},testStatus:ak[a.id],onTest:p.length>0||bm?()=>ce(a.id):void 0,isTesting:ao.has(a.id),isCustom:!0,isFree:!1,caps:o(`${n}/${a.id}`),thinkingSuffix:bC(a.id),latencyMs:ba[a.id]??ba[b],probeState:a8?.status==="running"&&a8?.perModel?.[b]?a8.perModel[b]:bc[b]||null},`${a.source}-${a.fullModel}`)}),j.map(a=>{let b=`${bE}/${a.id}`,c=`${n}/${a.id}`,e=Object.entries(ae).find(([,a])=>a===b||a===c)?.[0],f=(0,Q.v)(a.id,bE);return(0,d.jsx)(B,{model:a,fullModel:`${bF}/${a.id}`,alias:e,copied:bg,onSetAlias:b=>b_(a.id,b,bE),onCopy:bh,onDeleteAlias:()=>b0(e),testStatus:ak[a.id],onTest:p.length>0||bm?()=>ce(a.id):void 0,isTesting:ao.has(a.id),isFree:a.isFree,onDisable:()=>bJ(a.id),caps:o(`${n}/${a.id}`),thinkingSuffix:bC(a.id),latencyMs:ba[a.id]??ba[f],probeState:a8?.status==="running"&&a8?.perModel?.[f]?a8.perModel[f]:bc[f]||null},a.id)}),(0,d.jsxs)("button",{onClick:()=>ar(!0),className:"flex min-h-[58px] min-w-[200px] flex-1 items-center justify-center gap-2 rounded-xl border border-dashed border-primary/40 bg-primary/5 px-4 py-3 text-xs font-medium text-primary transition-all hover:border-primary hover:bg-primary/10 hover:shadow-soft sm:flex-none",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"add_circle"}),"Add Custom Model"]}),aE.length>0&&(a=new Set([...Object.values(ae),...h.map(a=>a.fullModel)]),b=new Set(bo.map(a=>a.id)),0===(c=aE.filter(c=>!a.has(`${bE}/${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 b1(a.id,"llm",bE)},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))})]})),g.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 (",g.length,"):"]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:g.map(a=>(0,d.jsxs)("button",{onClick:()=>bK(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))})]})]})]})})()]}),"kiro"===n?(0,d.jsx)(j.Mh,{isOpen:G,providerInfo:bi,onSuccess:b6,onClose:()=>I(!1)}):"cursor"===n?(0,d.jsx)(j.G9,{isOpen:G,onSuccess:b6,onClose:()=>I(!1)}):"gitlab"===n?(0,d.jsx)(j.vj,{isOpen:G,providerInfo:bi,onSuccess:b6,onClose:()=>I(!1)}):(0,d.jsx)(j.LF,{isOpen:G,provider:n,providerInfo:bi,onSuccess:b6,onClose:()=>I(!1)}),"iflow"===n&&(0,d.jsx)(j.vE,{isOpen:M,onSuccess:()=>{bP(),O(!1)},onClose:()=>O(!1)}),(0,d.jsx)(J,{isOpen:U,provider:n,providerName:bi.name,isCompatible:bs,isAnthropic:br,authType:bi?.authType,authHint:bi?.authHint,website:bi?.website,error:W,onSave:b7,onBulkDone:bP,onClose:()=>{X(""),V(!1)}}),(0,d.jsx)(j.wI,{isOpen:$,connection:ac,onSave:b8,onClose:()=>_(!1)}),bs&&(0,d.jsx)(K,{isOpen:aa,node:D,onSave:bR,onClose:()=>ab(!1),isAnthropic:br}),!bs&&(0,d.jsx)(L,{isOpen:aq,providerAlias:bE,providerDisplayAlias:bF,onSave:async a=>{await b1(a,"llm",bE),ar(!1)},onClose:()=>ar(!1)}),"codex"===n&&(0,d.jsx)(N,{isOpen:Y,onClose:()=>Z(!1),onSuccess:bP}),(0,d.jsx)(j.uo,{isOpen:aO,onClose:()=>aP(!1),onConfirm:()=>{(aP(!1),bk)?by():bA()},title:"Risk Notice",message:bi?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(j.uo,{isOpen:!!aM,onClose:()=>aN(null),onConfirm:aM?.onConfirm,title:aM?.title||"Confirm",message:aM?.message,variant:"danger"})]}):(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"})]})}},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")},50412:(a,b,c)=>{"use strict";c.d(b,{x0:()=>x.default,Ex:()=>j.default,$n:()=>d.default,nh:()=>C.default,Zp:()=>g.default,Qv:()=>i.CardSkeleton,CK:()=>o.default,uo:()=>h.ConfirmModal,G9:()=>t.default,wI:()=>w.default,vj:()=>v.default,vE:()=>u.default,pd:()=>e.default,Mh:()=>s.default,uR:()=>n.default,Nf:()=>p.default,aF:()=>h.default,rq:()=>m.default,gw:()=>y.default,LF:()=>l.default,Wx:()=>B.default,gM:()=>r.default,Iz:()=>z.default,l6:()=>f.default,lM:()=>k.default,m_:()=>A.default,jK:()=>q.default});var d=c(99070),e=c(83552),f=c(4770),g=c(17660),h=c(95145),i=c(74812);c(25919);var j=c(75171),k=c(95514);c(43878),c(19308),c(42196),c(32456),c(48781);var l=c(79346),m=c(83352),n=c(39645),o=c(62727),p=c(20084),q=c(87226);c(267),c(3236),c(11229);var r=c(91809);c(4481);var s=c(5291);c(56110);var t=c(51109),u=c(79488),v=c(43182),w=c(51585),x=c(67738),y=c(50585),z=c(91099),A=c(32971),B=c(11633),C=c(38930);c(5993),c(53838)},54918:(a,b,c)=>{"use strict";async function d(a,b){let c=await fetch(a,{...b,headers:{"Content-Type":"application/json",...b?.headers||{}},credentials:"same-origin"}),d=null;try{d=await c.json()}catch{d=null}if(!c.ok){let a=d&&(d.error||d.message)||`Request failed (${c.status})`,b=Error("string"==typeof a?a:"Request failed");throw b.status=c.status,b.data=d,b}return d}c.d(b,{x:()=>d})},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},72089:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},73024:a=>{"use strict";a.exports=require("node:fs")},74875:(a,b,c)=>{"use strict";function d(a){return"error"===a||"expired"===a||"unavailable"===a||"reauth_required"===a||"invalid"===a}function e(a,b){return!1===a?"default":"active"===b||"success"===b?"success":d(b)?"error":"default"}c.d(b,{g:()=>e,t:()=>d})},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},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 \"/home/runner/work/switchboard-router/switchboard-router/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.")},"/home/runner/work/switchboard-router/switchboard-router/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,2430,9995,2712,7812,232,8976,5350,869,2142,5781,5717,3423,7757,8915,4330],()=>b(b.s=20863));module.exports=c})();
|