switchboard-router 0.9.56 → 0.9.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next/static/cG6cLaTIiXMA9B8cN_VI5/_buildManifest.js +1 -0
- package/app/{.next-cli-build/static/chunks/1321-e030b87815d694f7.js → .next/static/chunks/1321-a7406eb3cccfd85f.js} +1 -1
- package/app/.next/static/chunks/{1330-e1ec0f07ea113880.js → 1330-916ae59f041a0a4f.js} +2 -2
- package/app/.next/static/chunks/{3378-277dccfa153c2c15.js → 3378-0978c9887e5e6bd8.js} +6 -11
- package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/{page-51f788f35bc5325f.js → page-adba2750c4fbf61e.js} +1 -1
- package/app/.next/static/chunks/app/_global-error/page-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/catalog/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/doctor/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/export/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/mcp/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/skills/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/sync/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/updates/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/auth/login/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/auth/logout/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/auth/status/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/aider-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-full-catalog/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-picker-labels/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/gemini-cli-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/grok-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/pi-settings/manual-configs/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/pi-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/picker-labels/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/combos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/combos/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/extras/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/restart/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/start/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/status/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/stop/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/health/live/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/health/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/keys/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/locale/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/health/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/metrics/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/routing/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/usage/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/version/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/alias/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/availability/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/custom/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/disabled/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/routable/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/models/test/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/defaults/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/batch/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/cache/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/prepare/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/client/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/test-batch/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/providers/validate/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/health/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/install/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/start/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/status/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/feedback/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/insights/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/learn/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/versions/promote/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/routing/versions/rollback/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/settings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/shutdown/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/skills/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/tags/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/token-saver/vault-stats/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/load/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/save/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/send/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/translator/translate/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/chart/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/history/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/logs/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-logs/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stream/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/api/chat/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/embeddings/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/images/generations/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/info/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/search/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/edits/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/extensions/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/version/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/version/shutdown/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/api/version/update/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/manifest.webmanifest/route-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/app/page-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-55c8179537f7f084.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-55c8179537f7f084.js +1 -0
- package/app/.next/static/css/d042b5b105ba183a.css +1 -0
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +21 -19
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- 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 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-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 +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/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 +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +1 -1
- 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 +3 -3
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +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/manual-configs/route.js +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/manual-configs/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/manual-configs/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
- 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/live/route.js +1 -0
- package/app/.next-cli-build/server/app/api/health/live/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/health/live/route_client-reference-manifest.js +1 -0
- 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 +2 -2
- 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/routable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/routable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/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 +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +2 -2
- 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 +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
- 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 +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
- 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 +4 -4
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
- 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 +21 -19
- package/app/.next-cli-build/server/chunks/1129.js +2 -2
- package/app/.next-cli-build/server/chunks/1158.js +1 -1
- package/app/.next-cli-build/server/chunks/1294.js +2 -2
- package/app/.next-cli-build/server/chunks/1792.js +2 -2
- package/app/.next-cli-build/server/chunks/1937.js +2 -2
- package/app/.next-cli-build/server/chunks/1998.js +1 -1
- package/app/.next-cli-build/server/chunks/2142.js +1 -1
- package/app/.next-cli-build/server/chunks/2619.js +1 -1
- package/app/.next-cli-build/server/chunks/2847.js +1 -1
- package/app/.next-cli-build/server/chunks/3446.js +1 -1
- package/app/.next-cli-build/server/chunks/369.js +6 -6
- package/app/.next-cli-build/server/chunks/4301.js +1 -1
- package/app/.next-cli-build/server/chunks/4454.js +1 -1
- package/app/.next-cli-build/server/chunks/5115.js +1 -1
- package/app/.next-cli-build/server/chunks/5139.js +1 -1
- package/app/.next-cli-build/server/chunks/519.js +1 -1
- package/app/.next-cli-build/server/chunks/5565.js +6 -11
- package/app/.next-cli-build/server/chunks/6328.js +1 -1
- package/app/.next-cli-build/server/chunks/7059.js +1 -0
- package/app/.next-cli-build/server/chunks/7133.js +1 -1
- package/app/.next-cli-build/server/chunks/7774.js +3 -3
- package/app/.next-cli-build/server/chunks/7828.js +2 -2
- package/app/.next-cli-build/server/chunks/8400.js +3 -3
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/8775.js +1 -1
- package/app/.next-cli-build/server/chunks/8789.js +1 -1
- package/app/.next-cli-build/server/chunks/8915.js +2 -2
- package/app/.next-cli-build/server/chunks/8942.js +1 -1
- package/app/.next-cli-build/server/chunks/8998.js +14 -14
- package/app/.next-cli-build/server/chunks/9059.js +1 -1
- package/app/.next-cli-build/server/chunks/9261.js +1 -1
- package/app/.next-cli-build/server/chunks/9264.js +2 -2
- package/app/.next-cli-build/server/chunks/9353.js +42 -0
- package/app/.next-cli-build/server/chunks/static/media/versions.fd0ef9e7.json +24 -0
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +3 -3
- 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/cG6cLaTIiXMA9B8cN_VI5/_buildManifest.js +1 -0
- package/app/{.next/static/chunks/1321-e030b87815d694f7.js → .next-cli-build/static/chunks/1321-a7406eb3cccfd85f.js} +1 -1
- package/app/.next-cli-build/static/chunks/{1330-e1ec0f07ea113880.js → 1330-916ae59f041a0a4f.js} +2 -2
- package/app/.next-cli-build/static/chunks/{3378-277dccfa153c2c15.js → 3378-0978c9887e5e6bd8.js} +6 -11
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/{page-51f788f35bc5325f.js → page-adba2750c4fbf61e.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/catalog/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/doctor/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/export/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/mcp/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/skills/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/sync/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/updates/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/aider-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-full-catalog/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-picker-labels/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/gemini-cli-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/manual-configs/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/picker-labels/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/live/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/health/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/metrics/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/routing/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/usage/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/version/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/routable/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/defaults/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/batch/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/cache/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/prepare/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/feedback/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/insights/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/learn/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/promote/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/rollback/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/vault-stats/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-55c8179537f7f084.js +1 -0
- package/app/.next-cli-build/static/css/d042b5b105ba183a.css +1 -0
- package/app/custom-server.js +32 -3
- package/app/node_modules/impit-linux-x64-musl/README.md +3 -0
- package/app/node_modules/impit-linux-x64-musl/impit-node.linux-x64-musl.node +0 -0
- package/app/node_modules/impit-linux-x64-musl/package.json +24 -0
- package/app/open-sse/identity/snapshots/versions.json +10 -10
- 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 +1 -1
- package/cli.js +34 -16
- package/package.json +1 -1
- package/src/cli/serverStatus.js +9 -3
- package/app/.next/static/chunks/app/_global-error/page-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/catalog/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/doctor/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/export/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/mcp/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/skills/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/sync/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/updates/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/auth/login/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/auth/logout/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/auth/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/aider-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-full-catalog/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-picker-labels/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/gemini-cli-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/grok-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/pi-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/picker-labels/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/extras/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/restart/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/stop/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/locale/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/metrics/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/routing/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/usage/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/version/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/custom/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/disabled/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/routable/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/models/test/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/defaults/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/batch/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/cache/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/prepare/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/install/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/feedback/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/insights/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/learn/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/versions/promote/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/routing/versions/rollback/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/skills/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/token-saver/vault-stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/chart/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stream/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/info/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/search/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/edits/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/extensions/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/version/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/version/shutdown/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/api/version/update/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/app/page-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-3981c2a159de99ad.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-3981c2a159de99ad.js +0 -1
- package/app/.next/static/css/912e8e046d0cd4ca.css +0 -1
- package/app/.next/static/p00HZLRpEZ2dD21V7ZHfh/_buildManifest.js +0 -1
- package/app/.next-cli-build/server/chunks/4353.js +0 -1
- package/app/.next-cli-build/server/chunks/5717.js +0 -42
- package/app/.next-cli-build/server/chunks/static/media/versions.d3affa61.json +0 -24
- package/app/.next-cli-build/static/chunks/app/_global-error/page-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/catalog/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/doctor/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/export/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/mcp/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/skills/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/sync/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/updates/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/aider-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-full-catalog/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-picker-labels/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/gemini-cli-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/picker-labels/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/metrics/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/routing/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/usage/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/version/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/routable/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/defaults/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/batch/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/cache/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/prepare/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/feedback/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/insights/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/learn/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/promote/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/rollback/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/vault-stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-3981c2a159de99ad.js +0 -1
- package/app/.next-cli-build/static/css/912e8e046d0cd4ca.css +0 -1
- package/app/.next-cli-build/static/p00HZLRpEZ2dD21V7ZHfh/_buildManifest.js +0 -1
- /package/app/.next/static/{p00HZLRpEZ2dD21V7ZHfh → cG6cLaTIiXMA9B8cN_VI5}/_ssgManifest.js +0 -0
- /package/app/.next-cli-build/static/{p00HZLRpEZ2dD21V7ZHfh → cG6cLaTIiXMA9B8cN_VI5}/_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")},9834:(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},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,66412))},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")},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")},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")},66412:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>$});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 w-full 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);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;var D=c(77582);function E({modelId:a,fullModel:b,copied:c,onCopy:e,onDeleteAlias:f,onTest:g,testStatus:h,isTesting:i}){let j="ok"===h?"#22c55e":"error"===h?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===h?"border-green-500/40":"error"===h?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:j?{color:j}:void 0,children:"ok"===h?"check_circle":"error"===h?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,d.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a}`?"Copied!":"Copy"})]}),g&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:g,disabled:i,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:i?{animation:"spin 1s linear infinite"}:void 0,children:i?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:i?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:f,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function F({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),[G,H]=(0,e.useState)({}),I=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();H(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{H(a=>({...a,[b]:"error"}))}finally{B(null)}}},J=(0,x.Iz)(p,a),K=[...J],L=(0,x.R3)({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),M=L.filter(b=>!(0,x.uJ)(J,b.id,a)),N=async()=>{if(!r.trim()||t)return;let b=r.trim();if(M.some(a=>a.id===b))return void(0,C.s)("Model already exists for this provider.");u(!0);try{if((0,x.uJ)(J,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)}},O=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(L.map(a=>a.id)),g=[],h=new Set;for(let b of e){let c=String(b.id||b.name||b.model||"").trim();if(!c||f.has(c)||h.has(c)||(0,x.uJ)(J,c,a))continue;h.add(c);let d=(0,D.J$)(b);g.push({providerAlias:a,id:c,type:"llm",name:b.display_name||b.displayName||b.name||c,...d?{reasoning:d}:{}})}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)}}},P=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&&N(),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:N,disabled:!r.trim()||t,children:t?"Adding...":"Add"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"cloud_download",onClick:O,disabled:!P||v,children:v?"Importing...":"Import models"})]}),!P&&(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}),M.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:M.map(({id:c,alias:e,source:f})=>(0,d.jsx)(E,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:n.length>0?()=>I(c):void 0,testStatus:G[c],isTesting:A===c},`${f}-${a}/${c}`))}),K.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 (",K.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:K.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))})]})]})}F.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 G=c(74875);function H({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 I({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,F="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,G.g)(a.isActive,F),size:"sm",dot:!0,children:!1===a.isActive?"disabled":F||"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)(H,{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]})]})]})})}H.propTypes={until:A().string.isRequired},I.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 J=`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")},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,66412))},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")},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")},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")},66412:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>$});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 w-full 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);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;var D=c(77582);function E({modelId:a,fullModel:b,copied:c,onCopy:e,onDeleteAlias:f,onTest:g,testStatus:h,isTesting:i}){let j="ok"===h?"#22c55e":"error"===h?"#ef4444":void 0;return(0,d.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===h?"border-green-500/40":"error"===h?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:j?{color:j}:void 0,children:"ok"===h?"check_circle":"error"===h?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:a}),(0,d.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a}`?"Copied!":"Copy"})]}),g&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:g,disabled:i,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:i?{animation:"spin 1s linear infinite"}:void 0,children:i?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:i?"Testing...":"Test"})]})]})]}),(0,d.jsx)("button",{onClick:f,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function F({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),[G,H]=(0,e.useState)({}),I=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();H(a=>({...a,[b]:d.ok?"ok":"error"}))}catch{H(a=>({...a,[b]:"error"}))}finally{B(null)}}},J=(0,x.Iz)(p,a),K=[...J],L=(0,x.R3)({customModels:f,modelAliases:c,providerAlias:a,type:"llm"}),M=L.filter(b=>!(0,x.uJ)(J,b.id,a)),N=async()=>{if(!r.trim()||t)return;let b=r.trim();if(M.some(a=>a.id===b))return void(0,C.s)("Model already exists for this provider.");u(!0);try{if((0,x.uJ)(J,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)}},O=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(L.map(a=>a.id)),g=[],h=new Set;for(let b of e){let c=String(b.id||b.name||b.model||"").trim();if(!c||f.has(c)||h.has(c)||(0,x.uJ)(J,c,a))continue;h.add(c);let d=(0,D.J$)(b);g.push({providerAlias:a,id:c,type:"llm",name:b.display_name||b.displayName||b.name||c,...d?{reasoning:d}:{}})}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)}}},P=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&&N(),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:N,disabled:!r.trim()||t,children:t?"Adding...":"Add"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"cloud_download",onClick:O,disabled:!P||v,children:v?"Importing...":"Import models"})]}),!P&&(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}),M.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3",children:M.map(({id:c,alias:e,source:f})=>(0,d.jsx)(E,{modelId:c,fullModel:`${b}/${c}`,copied:g,onCopy:h,onDeleteAlias:()=>"custom"===f?l(c):i(e),onTest:n.length>0?()=>I(c):void 0,testStatus:G[c],isTesting:A===c},`${f}-${a}/${c}`))}),K.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 (",K.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:K.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))})]})]})}F.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 G=c(74875);function H({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 I({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,F="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,G.g)(a.isActive,F),size:"sm",dot:!0,children:!1===a.isActive?"disabled":F||"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)(H,{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]})]})]})})}H.propTypes={until:A().string.isRequired},I.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 J=`name1|sk-key1
|
|
2
2
|
name2|sk-key2
|
|
3
3
|
sk-key-only-auto-named`;function K({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),[I,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:J,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:I||O,variant:"secondary",children:I?"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||I||O,variant:"secondary",children:I?"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 L({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 M({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"})]})]})})}K.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},L.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},M.propTypes={isOpen:A().bool.isRequired,providerAlias:A().string.isRequired,providerDisplayAlias:A().string.isRequired,onSave:A().func.isRequired,onClose:A().func.isRequired};let N=`[
|
|
4
4
|
{
|
|
@@ -7,4 +7,4 @@ sk-key-only-auto-named`;function K({isOpen:a,provider:b,providerName:c,isCompati
|
|
|
7
7
|
"idToken": "eyJhbGc...",
|
|
8
8
|
"email": "user@example.com"
|
|
9
9
|
}
|
|
10
|
-
]`;function O({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:N,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")})]})]})})}O.propTypes={isOpen:A().bool.isRequired,onClose:A().func.isRequired,onSuccess:A().func};var P=c(78097);function Q({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,P.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"]})]})]})}Q.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 R=c(81847);let S=["UTC","America/Los_Angeles","America/Denver","America/Chicago","America/New_York","America/Sao_Paulo","Europe/London","Europe/Berlin","Europe/Moscow","Asia/Kolkata","Asia/Shanghai","Asia/Tokyo","Asia/Singapore","Australia/Sydney"],T=(()=>{let a=[];try{a=Intl.supportedValuesOf?.("timeZone")||[]}catch{a=[]}try{let a=Intl.DateTimeFormat().resolvedOptions().timeZone;a&&!S.includes(a)&&S.unshift(a)}catch{}return[...new Set([...S,...a.filter(a=>!S.includes(a))])]})(),U={mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa",sun:"Su"};function V({providerId:a,scheduleKey:b}){let c=b||a,f=(0,e.useId)(),[g,h]=(0,e.useState)(!1),[i,k]=(0,e.useState)(!1),[l,m]=(0,e.useState)("UTC"),[n,o]=(0,e.useState)("offPeak"),[p,q]=(0,e.useState)([]),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(""),[v,w]=(0,e.useState)(0),[,x]=(0,e.useState)(0),y=(0,e.useCallback)(a=>{let b=R.Z9.find(b=>b.id===a);b&&(m(b.config.timezone||"UTC"),o("peak"===b.config.defaultState?"peak":"offPeak"),q(b.config.windows.map(a=>({type:a.type,start:a.start,end:a.end,days:Array.isArray(a.days)&&a.days.length?[...a.days]:[...R.de]}))),w(0))},[]),z=(0,e.useMemo)(()=>i?{timezone:l,defaultState:n,windows:p}:null,[i,l,n,p]),A=(0,R.yW)(z),B="unscheduled"===A?null:(0,R.bC)(z),C=(0,e.useCallback)((a,b)=>{q(c=>c.map((c,d)=>d===a?{...c,...b}:c)),w(0)},[]),D=(0,e.useCallback)((a,b)=>{q(c=>c.map((c,d)=>{if(d!==a)return c;let e=c.days.includes(b)?c.days.filter(a=>a!==b):[...c.days,b];return{...c,days:e.length?e:c.days}})),w(0)},[]),E=async()=>{u("");let b=i?(0,R.v2)({timezone:l,defaultState:n,windows:p},a):null;if(i&&b.error)return void u(b.error);s(!0);try{let a=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerSchedules:{[c]:i?b.value:null}})});if(!a.ok){let b=await a.json().catch(()=>({}));u(b.error||`Failed to save peak hours (${a.status})`);return}w(Date.now())}catch{u("Failed to save peak hours")}finally{s(!1)}};return g?(0,d.jsxs)(j.Zp,{children:[(0,d.jsxs)("div",{className:"mb-3 flex flex-wrap items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Peak hours"}),"unscheduled"!==A&&(0,d.jsxs)("span",{className:`inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[11px] font-medium ${"peak"===A?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-green-500/10 text-green-600 dark:text-green-400"}`,title:B?`Changes at ${function(a,b){try{return new Intl.DateTimeFormat("en-US",{timeZone:b,weekday:"short",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(new Date(a))}catch{return a}}(new Date(B).toISOString(),l)}`:void 0,children:[(0,d.jsx)("span",{className:`size-1.5 rounded-full ${"peak"===A?"bg-red-500":"bg-green-500"}`}),"peak"===A?"Peak now":"Off-peak now",B?` \xb7 ${(0,R.zt)(B-Date.now())} left`:""]})]}),(0,d.jsx)(j.lM,{checked:i,onChange:a=>{k(a),w(0),a&&!p.length&&(m("UTC"),o("offPeak"),q([{type:"peak",start:"09:00",end:"17:00",days:[...R.de]}]))},label:"Enable peak / off-peak hours",size:"sm"})]}),(0,d.jsx)("p",{className:"mb-3 text-xs text-text-muted leading-relaxed",children:"Optional. Some providers (e.g. DeepSeek) charge less outside peak hours. Define this provider's windows once, then mark models in a combo as peak-only or off-peak-only to skip them at the wrong hours."}),i&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,d.jsx)("label",{htmlFor:f,className:"text-sm font-medium text-text-main",children:"Timezone"}),(0,d.jsx)("input",{id:f,list:`${f}-zones`,value:l,onChange:a=>{m(a.target.value),w(0)},placeholder:"UTC — type to search IANA zones",className:"rounded-md border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary",autoComplete:"off"}),(0,d.jsx)("datalist",{id:`${f}-zones`,children:T.map(a=>(0,d.jsx)("option",{value:a},a))}),(0,d.jsx)("p",{className:"text-[10px] text-text-muted",children:"Windows are wall-clock in this zone (provider docs usually quote UTC)"})]}),(0,d.jsx)(j.l6,{label:"Outside all windows is",options:[{value:"offPeak",label:"Off-peak (peak is the exception)"},{value:"peak",label:"Peak (off-peak discount is the exception)"}],value:n,onChange:a=>{o(a.target.value),w(0)}})]}),(0,d.jsx)(j.l6,{label:"Load a preset",options:R.Z9.map(a=>({value:a.id,label:a.label})),value:"",onChange:a=>y(a.target.value),placeholder:"Choose a known provider policy…",hint:"Fills the editor below — review the provider's current pricing page, then Save"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[p.map((a,b)=>(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 rounded-md border border-border bg-black/[0.02] px-2 py-2 dark:bg-white/[0.02]",children:[(0,d.jsxs)("select",{value:a.type,onChange:a=>C(b,{type:a.target.value}),className:"rounded-md border border-border bg-background px-2 py-1 text-xs","aria-label":`Window ${b+1} type`,children:[(0,d.jsx)("option",{value:"peak",children:"Peak"}),(0,d.jsx)("option",{value:"offPeak",children:"Off-peak"})]}),(0,d.jsx)("input",{type:"time",value:a.start,onChange:a=>C(b,{start:a.target.value}),className:"rounded-md border border-border bg-background px-2 py-1 text-xs","aria-label":`Window ${b+1} start`}),(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"→"}),(0,d.jsx)("input",{type:"time",value:a.end,onChange:a=>C(b,{end:a.target.value}),className:"rounded-md border border-border bg-background px-2 py-1 text-xs","aria-label":`Window ${b+1} end`}),(0,d.jsx)("div",{className:"flex items-center gap-1",children:R.de.map(c=>(0,d.jsx)("button",{type:"button",onClick:()=>D(b,c),className:`size-6 rounded text-[10px] font-medium transition-colors ${a.days.includes(c)?"bg-primary/15 text-primary":"text-text-muted hover:bg-black/5 dark:hover:bg-white/5"}`,title:c,children:U[c]},c))}),(0,d.jsx)("button",{type:"button",onClick:()=>{q(a=>a.filter((a,c)=>c!==b)),w(0)},className:"ml-auto rounded p-1 text-text-muted transition-colors hover:bg-red-500/10 hover:text-red-500",title:"Remove window","aria-label":`Remove window ${b+1}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]},b)),(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"add",onClick:()=>{q(a=>[...a,{type:"peak",start:"09:00",end:"17:00",days:[...R.de]}]),w(0)},children:"Add window"})})]})]}),t&&(0,d.jsx)("p",{className:"mt-2 text-xs text-red-500",children:t}),v>0&&!t&&(0,d.jsx)("p",{className:"mt-2 text-xs text-green-600 dark:text-green-400",children:"Saved"}),(0,d.jsx)("div",{className:"mt-3",children:(0,d.jsx)(j.$n,{size:"sm",onClick:E,disabled:r,children:r?"Saving...":i?"Save peak hours":"Save (disable schedule)"})})]}):null}var W=c(15279),X=c(54918),Y=c(22588);let Z={claude:"claudeAutoPing",codex:"codexAutoPing"};function $(){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,E]=(0,e.useState)(null),[G,H]=(0,e.useState)(!1),[J,N]=(0,e.useState)(!1),[P,R]=(0,e.useState)(!1),[S,T]=(0,e.useState)(""),[U,$]=(0,e.useState)(!1),[_,aa]=(0,e.useState)(!1),[ab,ac]=(0,e.useState)(!1),[ad,ae]=(0,e.useState)(null),[af,ag]=(0,e.useState)({}),[ah,ai]=(0,e.useState)([]),[aj,ak]=(0,e.useState)(!1),[al,am]=(0,e.useState)({}),[an,ao]=(0,e.useState)(""),[ap,aq]=(0,e.useState)(()=>new Set),[ar,as]=(0,e.useState)(!1),[at,au]=(0,e.useState)(null),[av,aw]=(0,e.useState)(""),[ax,ay]=(0,e.useState)(!1),[az,aA]=(0,e.useState)("30"),[aB,aC]=(0,e.useState)("auto"),[aD,aE]=(0,e.useState)({enabled:!1,connections:{}}),[aF,aG]=(0,e.useState)([]),[aH,aI]=(0,e.useState)([]),[aJ,aK]=(0,e.useState)([]),[aL,aM]=(0,e.useState)([]),[aN,aO]=(0,e.useState)(null),[aP,aQ]=(0,e.useState)(!1),[aR,aS]=(0,e.useState)(!1),[aT,aU]=(0,e.useState)(!1),[aV,aW]=(0,e.useState)(null),[aX,aY]=(0,e.useState)({}),[aZ,a$]=(0,e.useState)(null),a_=(0,e.useRef)(!1),a0=(0,e.useRef)(null),a1=(0,e.useRef)(0),a2=(0,e.useRef)(0),[a3,a4]=(0,e.useState)(!1),[a5,a6]=(0,e.useState)(""),[a7,a8]=(0,e.useState)(!1),[a9,ba]=(0,e.useState)(null),[bb,bc]=(0,e.useState)({}),[bd,be]=(0,e.useState)({}),[bf,bg]=(0,e.useState)("all"),{copied:bh,copy:bi}=(0,u.C)(),bj=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],bk=bj?.authModes||[],bl=!!k.zN[n]||!!k.IS[n]||bk.includes("oauth"),bm=!!k.fg[n]||bk.includes("apikey"),bn=!!k.IS[n]?.noAuth,bo=(0,l.KC)(n),bp=(()=>{let a=new Map(bo.map(a=>[a.id,a]));for(let b of aH)b?.id&&a.set(b.id,{...a.get(b.id),...b});return[...a.values()]})(),bq=(0,k.wG)(n),br=(0,k.mq)(n),bs=(0,k.gb)(n),bt=br||bs,bu=p.some(a=>!1!==a.isActive),bv=function({isCompatible:a,hasActiveConnection:b}){let c=!a,d=!a;return{showToolbar:c||b||d,showImport:c,showVerify:b,showBulkControls:d}}({isCompatible:bt,hasActiveConnection:bu}),bw=!bt&&bl&&bm,bx="xai"===n?"Grok Build OAuth":"OAuth",by="xai"===n?"xAI API Key":"API Key",bz=()=>{H(!0)},bA=()=>{bl?bz():(T(""),R(!0))},bB=()=>{T(""),R(!0)},bC=()=>{bl?bA():bB()},bD=a=>{if(!aB||"auto"===aB)return null;let b=t(n,a);return b&&b.includes(aB)?aB:null},bE=(()=>{let a=new Set;for(let b of bp){let c=t(n,b.id);c&&c.forEach(b=>{"none"!==b&&a.add(b)})}return a.size?["auto",...a]:null})(),bF=bt?n:bq,bG=bt?D?.prefix||n:bq,bH=(0,x.Iz)(aL,bF),bI=a=>(0,x.uJ)(bH,a,bF),bJ=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bF)}`,{cache:"no-store"}),b=await a.json();a.ok&&aM(b.ids||[])}catch(a){(0,C.s)("Error fetching disabled models:",a)}},[bF]),bK=async a=>{try{await (0,X.x)("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bF,ids:[a]})}),await bJ()}catch(a){(0,C.s)("Error disabling model:",a)}},bL=async a=>{try{return await (0,X.x)(`/api/models/disabled?providerAlias=${encodeURIComponent(bF)}&id=${encodeURIComponent(a)}`,{method:"DELETE"}),await bJ(),!0}catch(a){return(0,C.s)("Error enabling model:",a),!1}},bM=async a=>{a.length&&aO({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aO(null);try{await (0,X.x)("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bF,ids:a})}),await bJ()}catch(a){(0,C.s)("Error disabling all models:",a)}}})},bN=async()=>{try{await (0,X.x)(`/api/models/disabled?providerAlias=${encodeURIComponent(bF)}`,{method:"DELETE"}),await bJ()}catch(a){(0,C.s)("Error enabling all models:",a)}},bO=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&ag(b.aliases||{})}catch(a){(0,C.s)("Error fetching aliases:",a)}},[]),bP=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&ai(b.models||[])}catch(a){(0,C.s)("Error fetching custom models:",a)}},[]),bQ=(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]||{};au(g.fallbackStrategy||null),aw(null!=g.stickyRoundRobinLimit?String(g.stickyRoundRobinLimit):"1");let h=g.accountScheduler||{};ay(!0===h.enabled),aA(String(Math.max(1,Math.round((h.sessionAffinityTtlSeconds||1800)/60))));let i=(f.providerThinking||{})[n]||{};aC(i.mode||"auto");let j=Z[n],k=j&&f[j]||{};if(aE({enabled:!0===k.enabled,connections:k.connections||{}}),b.ok){let a=(e.nodes||[]).find(a=>a.id===n)||null;if(!a&&bt)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}E(a)}}catch(a){(0,C.s)("Error fetching connections:",a)}finally{A(!1)}},[n,bt]),bR=(0,e.useCallback)(async(a=null)=>{let b=++a2.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){be({}),bc({});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!==a2.current)return;be(e),bc(f)}catch{}},[p,r]),bS=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?(E(c.node),await bQ(),ac(!1)):(0,C.s)(c?.error||"Failed to update provider node")}catch(a){(0,C.s)("Error updating provider node:",a)}},bT=async(a,b)=>{try{return await (0,Y.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}},bU=async(a,b)=>{let c=Math.min(1440,Math.max(1,Number.parseInt(b,10)||30));try{return await (0,Y.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}},bV=async a=>{let b=a?"round-robin":null,c=a?av||"1":av;await bT(b,c)&&(a&&!av&&aw("1"),au(b))},bW=async a=>{await bT("round-robin",a)&&aw(a)},bX=async a=>{await bU(a,az)&&ay(a)},bY=async a=>{await bU(ax,a)&&aA(a)},bZ=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)}},b$=async a=>{let b=Z[n];if(b){aE(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=++a1.current;a0.current&&(clearTimeout(a0.current),a0.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!==a1.current)return;if(!d.ok||!e?.status)throw Error("Verify status temporarily unavailable");ba(e&&e.status?e:null),e?.status==="running"?a0.current=setTimeout(c,1500):(a0.current=null,await bR(a))}catch{b===a1.current&&(a0.current=setTimeout(c,1500))}};a0.current=setTimeout(c,0)},[bR]),b0=async(a,b,c=bq)=>{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 bO();else{let b=await a.json();(0,C.s)(b.error||"Failed to set alias")}}catch(a){(0,C.s)("Error setting alias:",a)}},b1=async a=>{try{await (0,X.x)(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"}),await bO()}catch(a){(0,C.s)("Error deleting alias:",a)}},b2=async(a,b="llm",c=bF)=>{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 bP();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)}},b3=async(a,b="llm",c=bF)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});await (0,X.x)(`/api/models/custom?${d}`,{method:"DELETE"}),await bP()}catch(a){(0,C.s)("Error deleting custom model:",a)}},b4=async()=>{if(a3)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"));a4(!0),a6("");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(bp.map(a=>a.id)),h=[],i=[],j=new Set;for(let a of d){let b=(0,y.R2)(a,bF);if(!b)continue;let{id:c,name:d,type:k}=b;if(e.has((0,W.v)(c,bF))){f+=1;continue}let l=`${k}|${c}`;if(j.has(l))continue;if(j.add(l),g.has(c)){bI(c)&&i.push(c);continue}if(ah.some(a=>a.providerAlias===bF&&a.id===c&&(0,y.ki)(a.kind||a.type||"llm")===k))continue;let m=`${bF}/${c}`;Object.values(af).includes(m)||h.push({providerAlias:bF,id:c,type:k,name:d,...b.reasoning?{reasoning:b.reasoning}:{}})}let k=0;if(i.length>0)try{for(let a of i)(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bF)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&(k+=1);await bJ()}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 bP()}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)a6((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}`),a6(a)}if(f>0&&a6(a=>`${a} \xb7 ${f} skipped (known dead)`),l>0||k>0)try{let b=[...bp,...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:bF})}),d=await c.json().catch(()=>({}));if(!c.ok)throw Error(d.error||"Failed to start auto-verify");ba(d&&d.status?d:null),b_(a.id)}catch(a){a6(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{a4(!1)}},b5=async()=>{if(aR||0===p.length)return;let a=Object.fromEntries(p.map(a=>[a.id,{state:"queued",error:null}]));a_.current=!1,aS(!0),aU(!1),aW(null),aY(a),a$({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){a$({total:p.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=p[a];aW(d.id),aY(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,aY(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,aY(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}a$({total:p.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<p.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{aW(null),aS(!1),aU(!1),a_.current=!1}},b6=async a=>{let b=p.find(b=>b.id===a),c=b?.name?.trim()||b?.email?.trim()||a;aO({title:"Delete Connection",message:`Delete connection “${c}”?`,onConfirm:async()=>{aO(null);try{await (0,X.x)(`/api/providers/${a}`,{method:"DELETE"}),q(b=>b.filter(b=>b.id!==a))}catch(a){(0,C.s)("Error deleting connection:",a)}}})},b7=()=>{bQ(),H(!1)},b8=async a=>{T("");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 bQ(),R(!1);return}T(c?.error||"Failed to save connection")}catch(a){(0,C.s)("Error saving connection:",a),T("Failed to save connection")}},b9=async a=>{try{await (0,X.x)(`/api/providers/${ad.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),await bQ(),aa(!1)}catch(a){(0,C.s)("Error updating connection:",a)}},ca=async(a,b)=>{try{await (0,X.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)}},cb=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 bQ()}catch(a){(0,C.s)("Error adding host to allow list:",a)}}},cc=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 bQ()}},cd=p.length>0&&r.length===p.length,ce=(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)(I,{connection:a,isOAuth:bl,isFirst:0===b,isLast:b===p.length-1,onMoveUp:()=>cc(b,b-1),onMoveDown:()=>cc(b,b+1),onToggleActive:b=>ca(a.id,b),autoPing:Z[n]&&"oauth"===a.authType?{on:!0===aD.connections[a.id],onToggle:b=>{var c;return c=a.id,void b$({...aD,connections:{...aD.connections,[c]:b}})},provider:n}:null,onEdit:()=>{ae(a),aa(!0)},onDelete:()=>b6(a.id),onAllowlistHost:()=>cb(a),oneByOneStatus:aX[a.id]||null})})]},a.id))}),cf=async a=>{if(!ap.has(a)){aq(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:`${bF}/${a}`})}),c=await b.json();am(b=>({...b,[a]:c.ok?"ok":"error"})),ao(c.ok?"":c.error||"Model not reachable")}catch{am(b=>({...b,[a]:"error"})),ao("Network error")}finally{aq(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,{})]}):bj?(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:`${bj.color}15`},children:aj?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bj.color},children:bj.textIcon||bj.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:br&&bj.apiType?"responses"===bj.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":bs?"/providers/anthropic-m.png":`/providers/${bj.id}.png`,alt:bj.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>ak(!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:bj.name}),(bj.notice?.apiKeyUrl||bj.notice?.signupUrl||bj.website)&&(0,d.jsxs)("a",{href:bj.notice?.apiKeyUrl||bj.notice?.signupUrl||bj.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"}),bj.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"]})]})]})]}),bj.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(bj.deprecationNotice).replace(/^⚠️\s*⚠️?\s*/,"")})]}),bj.notice?.text&&!bj.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:bj.notice.text}),bj.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bj.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 →"})]}),bt&&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:bs?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[bs?"Messages API":"responses"===D.apiType?"Responses API":"Chat Completions"," \xb7 ",(D.baseUrl||"").replace(/\/$/,""),"/",bs?"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:()=>{T(""),R(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ac(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aO({title:"Delete Compatible Node",message:`Delete this ${bs?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aO(null);try{await (0,X.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"})]})]})}),bn?(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&&aO({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aO(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:b5,disabled:aR,children:aR?"Testing Connection One-by-One...":"Test Connection One-by-One"}),aR&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{aR&&(a_.current=!0,aU(!0))},disabled:aT,children:aT?"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:[ax&&(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:az,onChange:a=>bY(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:ax,onChange:bX,"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:ax?"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"===at&&(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:av,onChange:a=>bW(a.target.value),placeholder:"1",disabled:ax,title:ax?"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"===at,onChange:bV,"aria-label":"Round Robin",disabled:ax,title:ax?"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:bl?"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"}),bw&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bx," or ",by,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bw?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bA,children:bx}),(0,d.jsx)(j.$n,{size:"sm",icon:"key",onClick:bB,children:by})]}):(0,d.jsxs)(d.Fragment,{children:[!bt&&"iflow"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>N(!0),children:"Cookie"}),"codex"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>$(!0),children:(0,w.Tl)("Bulk Add")}),(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:bC,children:bt?"Add API Key":"iflow"===n?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[aZ&&(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: ",aZ.total]}),(0,d.jsxs)("span",{children:["Completed: ",aZ.completed]}),(0,d.jsxs)("span",{children:["Passed: ",aZ.passed]}),(0,d.jsxs)("span",{children:["Failed: ",aZ.failed]}),aZ.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),aR&&aV&&(0,d.jsxs)("span",{children:["Running: ",p.find(a=>a.id===aV)?.name||aV]})]})}),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:cd,onChange:()=>{cd?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"]})}),ce,!bt&&(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:()=>N(!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:()=>$(!0),title:(0,w.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,w.Tl)("Bulk Add")}),bw?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bA,className:"w-full sm:w-auto",children:bx}),(0,d.jsx)(j.$n,{size:"sm",icon:"key",onClick:bB,className:"w-full sm:w-auto",children:by})]}):(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:bC,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsx)(V,{providerId:n,scheduleKey:bG},n),(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"}),bE&&(0,d.jsx)("select",{value:aB,onChange:a=>{var b;aC(b=a.target.value),bZ(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:bE.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),bv.showToolbar&&(a=(bv.showBulkControls?[...bp,...aJ.filter(a=>!bp.some(b=>b.id===a.id))].filter(a=>{let b=(0,l.CP)(a);return!b||"llm"===b}).map(a=>a.id):[]).filter(a=>!bI(a)),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[bv.showImport&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:a3?"progress_activity":"cloud_download",onClick:b4,disabled:a3||!bu,title:bu?"Import models from the active connection":"Add an active connection to import models",children:a3?"Importing...":"Import models"}),bv.showVerify&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:a9?.status==="running"?"progress_activity":"science",onClick:()=>a8(a=>!a),children:a9?.status==="running"?`Verifying ${a9.done}/${a9.total}`:a7?"Hide verify":"Verify models"}),bv.showBulkControls&&aL.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bN,children:"Active All"}),bv.showBulkControls&&a.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bM(a),children:"Disable All"})]}))]}),!!an&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:an}),a5&&(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:a5})]}),(0,d.jsx)("button",{onClick:()=>a6(""),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"})})]}),a7&&(b=p.find(a=>r.includes(a.id)&&!1!==a.isActive)||p.find(a=>!1!==a.isActive),c=[...(0,x.R3)({customModels:ah,modelAliases:af,providerAlias:bF,builtInModels:bp,type:"llm"}).filter(a=>!bI(a.id)).map(a=>({id:a.id,name:a.name||a.id,kind:"llm"})),...bp.filter(a=>{let b=(0,l.CP)(a);return(!b||"llm"===b)&&!bI(a.id)}).map(a=>({id:a.id,name:a.name||a.id,kind:"llm"}))],(0,d.jsx)(Q,{connectionId:b?.id,providerAlias:bF,models:c,jobSnapshot:a9,onClose:()=>a8(!1),onStarted:a=>{ba(a&&a.status?a:null);let c=a?.connectionId||b?.id;c&&b_(c)},onComplete:async a=>{a?.removedStatus&&ba(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 bP(),a?.removed>0&&await bJ(),(a?.removed>0||a?.cacheCleared)&&await bR(b?.id)}})),(()=>{let a,b,c;if(bt)return(0,d.jsx)(F,{providerStorageAlias:bF,providerDisplayAlias:bG,modelAliases:af,customModels:ah,copied:bh,onCopy:bi,onSetAlias:b0,onDeleteAlias:b1,onAddCustomModel:a=>b2(a,"llm",bF),onDeleteCustomModel:a=>b3(a,"llm",bF),onRefreshModels:bP,connections:p,isAnthropic:bs,disabledModelIds:aL,onEnableModel:bL});let e=[...bp,...aJ.filter(a=>!bp.some(b=>b.id===a.id))].filter(a=>{let b=(0,l.CP)(a);return!b||"llm"===b}),f=e.filter(a=>!bI(a.id)),g=e.filter(a=>bI(a.id)),h=(0,x.R3)({customModels:ah,modelAliases:af,providerAlias:bF,builtInModels:bp,type:"llm"}),i=h.filter(a=>!bI(a.id)&&("all"===bf||(bd[(0,W.v)(a.id,bF)]||null)===bf)),j=f.filter(a=>"all"===bf||(bd[(0,W.v)(a.id,bF)]||null)===bf);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=>!bI(a.id)).length},{id:"ok",label:"Reachable",count:[...f,...h].filter(a=>!bI(a.id)&&("ok"===bd[(0,W.v)(a.id,bF)]||"ok"===al[a.id])).length},{id:"dead",label:"Dead",count:[...f,...h].filter(a=>!bI(a.id)&&("dead"===bd[(0,W.v)(a.id,bF)]||"error"===al[a.id])).length},{id:"retry",label:"Retry",count:[...f,...h].filter(a=>!bI(a.id)&&"retry"===bd[(0,W.v)(a.id,bF)]).length}].map(a=>(0,d.jsxs)("button",{onClick:()=>bg(a.id),className:`inline-flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs font-medium transition-all ${bf===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 ${bf===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,W.v)(a.id,bF);return(0,d.jsx)(B,{model:{id:a.id,name:a.name},fullModel:`${bG}/${a.id}`,alias:a.alias,copied:bh,onCopy:bi,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?b3(a.id,"llm",bF):b1(a.alias)},testStatus:al[a.id],onTest:p.length>0||bn?()=>cf(a.id):void 0,isTesting:ap.has(a.id),isCustom:!0,isFree:!1,caps:o(`${n}/${a.id}`),thinkingSuffix:bD(a.id),latencyMs:bb[a.id]??bb[b],probeState:a9?.status==="running"&&a9?.perModel?.[b]?a9.perModel[b]:bd[b]||null},`${a.source}-${a.fullModel}`)}),j.map(a=>{let b=`${bF}/${a.id}`,c=`${n}/${a.id}`,e=Object.entries(af).find(([,a])=>a===b||a===c)?.[0],f=(0,W.v)(a.id,bF);return(0,d.jsx)(B,{model:a,fullModel:`${bG}/${a.id}`,alias:e,copied:bh,onSetAlias:b=>b0(a.id,b,bF),onCopy:bi,onDeleteAlias:()=>b1(e),testStatus:al[a.id],onTest:p.length>0||bn?()=>cf(a.id):void 0,isTesting:ap.has(a.id),isFree:a.isFree,onDisable:()=>bK(a.id),caps:o(`${n}/${a.id}`),thinkingSuffix:bD(a.id),latencyMs:bb[a.id]??bb[f],probeState:a9?.status==="running"&&a9?.perModel?.[f]?a9.perModel[f]:bd[f]||null},a.id)}),(0,d.jsxs)("button",{onClick:()=>as(!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"]}),aF.length>0&&(a=new Set([...Object.values(af),...h.map(a=>a.fullModel)]),b=new Set(bp.map(a=>a.id)),0===(c=aF.filter(c=>!a.has(`${bF}/${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 b2(a.id,"llm",bF)},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:()=>bL(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:bj,onSuccess:b7,onClose:()=>H(!1)}):"cursor"===n?(0,d.jsx)(j.G9,{isOpen:G,onSuccess:b7,onClose:()=>H(!1)}):"gitlab"===n?(0,d.jsx)(j.vj,{isOpen:G,providerInfo:bj,onSuccess:b7,onClose:()=>H(!1)}):(0,d.jsx)(j.LF,{isOpen:G,provider:n,providerInfo:bj,onSuccess:b7,onClose:()=>H(!1)}),"iflow"===n&&(0,d.jsx)(j.vE,{isOpen:J,onSuccess:()=>{bQ(),N(!1)},onClose:()=>N(!1)}),(0,d.jsx)(K,{isOpen:P,provider:n,providerName:bj.name,isCompatible:bt,isAnthropic:bs,authType:bj?.authType,authHint:bj?.authHint,website:bj?.website,error:S,onSave:b8,onBulkDone:bQ,onClose:()=>{T(""),R(!1)}}),(0,d.jsx)(j.wI,{isOpen:_,connection:ad,onSave:b9,onClose:()=>aa(!1)}),bt&&(0,d.jsx)(L,{isOpen:ab,node:D,onSave:bS,onClose:()=>ac(!1),isAnthropic:bs}),!bt&&(0,d.jsx)(M,{isOpen:ar,providerAlias:bF,providerDisplayAlias:bG,onSave:async a=>{await b2(a,"llm",bF),as(!1)},onClose:()=>as(!1)}),"codex"===n&&(0,d.jsx)(O,{isOpen:U,onClose:()=>$(!1),onSuccess:bQ}),(0,d.jsx)(j.uo,{isOpen:aP,onClose:()=>aQ(!1),onConfirm:()=>{(aQ(!1),bl)?bz():bB()},title:"Risk Notice",message:bj?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(j.uo,{isOpen:!!aN,onClose:()=>aO(null),onConfirm:aN?.onConfirm,title:aN?.title||"Confirm",message:aN?.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"})]})}},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,[2970,2430,4160,2712,7812,232,9698,5350,869,2142,5781,5717,2847,7757,8915,4330,5624],()=>b(b.s=9834));module.exports=c})();
|
|
10
|
+
]`;function O({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:N,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")})]})]})})}O.propTypes={isOpen:A().bool.isRequired,onClose:A().func.isRequired,onSuccess:A().func};var P=c(78097);function Q({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,P.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"]})]})]})}Q.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 R=c(81847);let S=["UTC","America/Los_Angeles","America/Denver","America/Chicago","America/New_York","America/Sao_Paulo","Europe/London","Europe/Berlin","Europe/Moscow","Asia/Kolkata","Asia/Shanghai","Asia/Tokyo","Asia/Singapore","Australia/Sydney"],T=(()=>{let a=[];try{a=Intl.supportedValuesOf?.("timeZone")||[]}catch{a=[]}try{let a=Intl.DateTimeFormat().resolvedOptions().timeZone;a&&!S.includes(a)&&S.unshift(a)}catch{}return[...new Set([...S,...a.filter(a=>!S.includes(a))])]})(),U={mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa",sun:"Su"};function V({providerId:a,scheduleKey:b}){let c=b||a,f=(0,e.useId)(),[g,h]=(0,e.useState)(!1),[i,k]=(0,e.useState)(!1),[l,m]=(0,e.useState)("UTC"),[n,o]=(0,e.useState)("offPeak"),[p,q]=(0,e.useState)([]),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(""),[v,w]=(0,e.useState)(0),[,x]=(0,e.useState)(0),y=(0,e.useCallback)(a=>{let b=R.Z9.find(b=>b.id===a);b&&(m(b.config.timezone||"UTC"),o("peak"===b.config.defaultState?"peak":"offPeak"),q(b.config.windows.map(a=>({type:a.type,start:a.start,end:a.end,days:Array.isArray(a.days)&&a.days.length?[...a.days]:[...R.de]}))),w(0))},[]),z=(0,e.useMemo)(()=>i?{timezone:l,defaultState:n,windows:p}:null,[i,l,n,p]),A=(0,R.yW)(z),B="unscheduled"===A?null:(0,R.bC)(z),C=(0,e.useCallback)((a,b)=>{q(c=>c.map((c,d)=>d===a?{...c,...b}:c)),w(0)},[]),D=(0,e.useCallback)((a,b)=>{q(c=>c.map((c,d)=>{if(d!==a)return c;let e=c.days.includes(b)?c.days.filter(a=>a!==b):[...c.days,b];return{...c,days:e.length?e:c.days}})),w(0)},[]),E=async()=>{u("");let b=i?(0,R.v2)({timezone:l,defaultState:n,windows:p},a):null;if(i&&b.error)return void u(b.error);s(!0);try{let a=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerSchedules:{[c]:i?b.value:null}})});if(!a.ok){let b=await a.json().catch(()=>({}));u(b.error||`Failed to save peak hours (${a.status})`);return}w(Date.now())}catch{u("Failed to save peak hours")}finally{s(!1)}};return g?(0,d.jsxs)(j.Zp,{children:[(0,d.jsxs)("div",{className:"mb-3 flex flex-wrap items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Peak hours"}),"unscheduled"!==A&&(0,d.jsxs)("span",{className:`inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[11px] font-medium ${"peak"===A?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-green-500/10 text-green-600 dark:text-green-400"}`,title:B?`Changes at ${function(a,b){try{return new Intl.DateTimeFormat("en-US",{timeZone:b,weekday:"short",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(new Date(a))}catch{return a}}(new Date(B).toISOString(),l)}`:void 0,children:[(0,d.jsx)("span",{className:`size-1.5 rounded-full ${"peak"===A?"bg-red-500":"bg-green-500"}`}),"peak"===A?"Peak now":"Off-peak now",B?` \xb7 ${(0,R.zt)(B-Date.now())} left`:""]})]}),(0,d.jsx)(j.lM,{checked:i,onChange:a=>{k(a),w(0),a&&!p.length&&(m("UTC"),o("offPeak"),q([{type:"peak",start:"09:00",end:"17:00",days:[...R.de]}]))},label:"Enable peak / off-peak hours",size:"sm"})]}),(0,d.jsx)("p",{className:"mb-3 text-xs text-text-muted leading-relaxed",children:"Optional. Some providers (e.g. DeepSeek) charge less outside peak hours. Define this provider's windows once, then mark models in a combo as peak-only or off-peak-only to skip them at the wrong hours."}),i&&(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,d.jsx)("label",{htmlFor:f,className:"text-sm font-medium text-text-main",children:"Timezone"}),(0,d.jsx)("input",{id:f,list:`${f}-zones`,value:l,onChange:a=>{m(a.target.value),w(0)},placeholder:"UTC — type to search IANA zones",className:"rounded-md border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary",autoComplete:"off"}),(0,d.jsx)("datalist",{id:`${f}-zones`,children:T.map(a=>(0,d.jsx)("option",{value:a},a))}),(0,d.jsx)("p",{className:"text-[10px] text-text-muted",children:"Windows are wall-clock in this zone (provider docs usually quote UTC)"})]}),(0,d.jsx)(j.l6,{label:"Outside all windows is",options:[{value:"offPeak",label:"Off-peak (peak is the exception)"},{value:"peak",label:"Peak (off-peak discount is the exception)"}],value:n,onChange:a=>{o(a.target.value),w(0)}})]}),(0,d.jsx)(j.l6,{label:"Load a preset",options:R.Z9.map(a=>({value:a.id,label:a.label})),value:"",onChange:a=>y(a.target.value),placeholder:"Choose a known provider policy…",hint:"Fills the editor below — review the provider's current pricing page, then Save"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[p.map((a,b)=>(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 rounded-md border border-border bg-black/[0.02] px-2 py-2 dark:bg-white/[0.02]",children:[(0,d.jsxs)("select",{value:a.type,onChange:a=>C(b,{type:a.target.value}),className:"rounded-md border border-border bg-background px-2 py-1 text-xs","aria-label":`Window ${b+1} type`,children:[(0,d.jsx)("option",{value:"peak",children:"Peak"}),(0,d.jsx)("option",{value:"offPeak",children:"Off-peak"})]}),(0,d.jsx)("input",{type:"time",value:a.start,onChange:a=>C(b,{start:a.target.value}),className:"rounded-md border border-border bg-background px-2 py-1 text-xs","aria-label":`Window ${b+1} start`}),(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"→"}),(0,d.jsx)("input",{type:"time",value:a.end,onChange:a=>C(b,{end:a.target.value}),className:"rounded-md border border-border bg-background px-2 py-1 text-xs","aria-label":`Window ${b+1} end`}),(0,d.jsx)("div",{className:"flex items-center gap-1",children:R.de.map(c=>(0,d.jsx)("button",{type:"button",onClick:()=>D(b,c),className:`size-6 rounded text-[10px] font-medium transition-colors ${a.days.includes(c)?"bg-primary/15 text-primary":"text-text-muted hover:bg-black/5 dark:hover:bg-white/5"}`,title:c,children:U[c]},c))}),(0,d.jsx)("button",{type:"button",onClick:()=>{q(a=>a.filter((a,c)=>c!==b)),w(0)},className:"ml-auto rounded p-1 text-text-muted transition-colors hover:bg-red-500/10 hover:text-red-500",title:"Remove window","aria-label":`Remove window ${b+1}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]},b)),(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"add",onClick:()=>{q(a=>[...a,{type:"peak",start:"09:00",end:"17:00",days:[...R.de]}]),w(0)},children:"Add window"})})]})]}),t&&(0,d.jsx)("p",{className:"mt-2 text-xs text-red-500",children:t}),v>0&&!t&&(0,d.jsx)("p",{className:"mt-2 text-xs text-green-600 dark:text-green-400",children:"Saved"}),(0,d.jsx)("div",{className:"mt-3",children:(0,d.jsx)(j.$n,{size:"sm",onClick:E,disabled:r,children:r?"Saving...":i?"Save peak hours":"Save (disable schedule)"})})]}):null}var W=c(15279),X=c(54918),Y=c(22588);let Z={claude:"claudeAutoPing",codex:"codexAutoPing"};function $(){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,E]=(0,e.useState)(null),[G,H]=(0,e.useState)(!1),[J,N]=(0,e.useState)(!1),[P,R]=(0,e.useState)(!1),[S,T]=(0,e.useState)(""),[U,$]=(0,e.useState)(!1),[_,aa]=(0,e.useState)(!1),[ab,ac]=(0,e.useState)(!1),[ad,ae]=(0,e.useState)(null),[af,ag]=(0,e.useState)({}),[ah,ai]=(0,e.useState)([]),[aj,ak]=(0,e.useState)(!1),[al,am]=(0,e.useState)({}),[an,ao]=(0,e.useState)(""),[ap,aq]=(0,e.useState)(()=>new Set),[ar,as]=(0,e.useState)(!1),[at,au]=(0,e.useState)(null),[av,aw]=(0,e.useState)(""),[ax,ay]=(0,e.useState)(!1),[az,aA]=(0,e.useState)("30"),[aB,aC]=(0,e.useState)("auto"),[aD,aE]=(0,e.useState)({enabled:!1,connections:{}}),[aF,aG]=(0,e.useState)([]),[aH,aI]=(0,e.useState)([]),[aJ,aK]=(0,e.useState)([]),[aL,aM]=(0,e.useState)([]),[aN,aO]=(0,e.useState)(null),[aP,aQ]=(0,e.useState)(!1),[aR,aS]=(0,e.useState)(!1),[aT,aU]=(0,e.useState)(!1),[aV,aW]=(0,e.useState)(null),[aX,aY]=(0,e.useState)({}),[aZ,a$]=(0,e.useState)(null),a_=(0,e.useRef)(!1),a0=(0,e.useRef)(null),a1=(0,e.useRef)(0),a2=(0,e.useRef)(0),[a3,a4]=(0,e.useState)(!1),[a5,a6]=(0,e.useState)(""),[a7,a8]=(0,e.useState)(!1),[a9,ba]=(0,e.useState)(null),[bb,bc]=(0,e.useState)({}),[bd,be]=(0,e.useState)({}),[bf,bg]=(0,e.useState)("all"),{copied:bh,copy:bi}=(0,u.C)(),bj=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],bk=bj?.authModes||[],bl=!!k.zN[n]||!!k.IS[n]||bk.includes("oauth"),bm=!!k.fg[n]||bk.includes("apikey"),bn=!!k.IS[n]?.noAuth,bo=(0,l.KC)(n),bp=(()=>{let a=new Map(bo.map(a=>[a.id,a]));for(let b of aH)b?.id&&a.set(b.id,{...a.get(b.id),...b});return[...a.values()]})(),bq=(0,k.wG)(n),br=(0,k.mq)(n),bs=(0,k.gb)(n),bt=br||bs,bu=p.some(a=>!1!==a.isActive),bv=function({isCompatible:a,hasActiveConnection:b}){let c=!a,d=!a;return{showToolbar:c||b||d,showImport:c,showVerify:b,showBulkControls:d}}({isCompatible:bt,hasActiveConnection:bu}),bw=!bt&&bl&&bm,bx="xai"===n?"Grok Build OAuth":"OAuth",by="xai"===n?"xAI API Key":"API Key",bz=()=>{H(!0)},bA=()=>{bl?bz():(T(""),R(!0))},bB=()=>{T(""),R(!0)},bC=()=>{bl?bA():bB()},bD=a=>{if(!aB||"auto"===aB)return null;let b=t(n,a);return b&&b.includes(aB)?aB:null},bE=(()=>{let a=new Set;for(let b of bp){let c=t(n,b.id);c&&c.forEach(b=>{"none"!==b&&a.add(b)})}return a.size?["auto",...a]:null})(),bF=bt?n:bq,bG=bt?D?.prefix||n:bq,bH=(0,x.Iz)(aL,bF),bI=a=>(0,x.uJ)(bH,a,bF),bJ=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bF)}`,{cache:"no-store"}),b=await a.json();a.ok&&aM(b.ids||[])}catch(a){(0,C.s)("Error fetching disabled models:",a)}},[bF]),bK=async a=>{try{await (0,X.x)("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bF,ids:[a]})}),await bJ()}catch(a){(0,C.s)("Error disabling model:",a)}},bL=async a=>{try{return await (0,X.x)(`/api/models/disabled?providerAlias=${encodeURIComponent(bF)}&id=${encodeURIComponent(a)}`,{method:"DELETE"}),await bJ(),!0}catch(a){return(0,C.s)("Error enabling model:",a),!1}},bM=async a=>{a.length&&aO({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aO(null);try{await (0,X.x)("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bF,ids:a})}),await bJ()}catch(a){(0,C.s)("Error disabling all models:",a)}}})},bN=async()=>{try{await (0,X.x)(`/api/models/disabled?providerAlias=${encodeURIComponent(bF)}`,{method:"DELETE"}),await bJ()}catch(a){(0,C.s)("Error enabling all models:",a)}},bO=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&ag(b.aliases||{})}catch(a){(0,C.s)("Error fetching aliases:",a)}},[]),bP=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/custom",{cache:"no-store"}),b=await a.json();a.ok&&ai(b.models||[])}catch(a){(0,C.s)("Error fetching custom models:",a)}},[]),bQ=(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]||{};au(g.fallbackStrategy||null),aw(null!=g.stickyRoundRobinLimit?String(g.stickyRoundRobinLimit):"1");let h=g.accountScheduler||{};ay(!0===h.enabled),aA(String(Math.max(1,Math.round((h.sessionAffinityTtlSeconds||1800)/60))));let i=(f.providerThinking||{})[n]||{};aC(i.mode||"auto");let j=Z[n],k=j&&f[j]||{};if(aE({enabled:!0===k.enabled,connections:k.connections||{}}),b.ok){let a=(e.nodes||[]).find(a=>a.id===n)||null;if(!a&&bt)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}E(a)}}catch(a){(0,C.s)("Error fetching connections:",a)}finally{A(!1)}},[n,bt]),bR=(0,e.useCallback)(async(a=null)=>{let b=++a2.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){be({}),bc({});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!==a2.current)return;be(e),bc(f)}catch{}},[p,r]),bS=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?(E(c.node),await bQ(),ac(!1)):(0,C.s)(c?.error||"Failed to update provider node")}catch(a){(0,C.s)("Error updating provider node:",a)}},bT=async(a,b)=>{try{return await (0,Y.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}},bU=async(a,b)=>{let c=Math.min(1440,Math.max(1,Number.parseInt(b,10)||30));try{return await (0,Y.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}},bV=async a=>{let b=a?"round-robin":null,c=a?av||"1":av;await bT(b,c)&&(a&&!av&&aw("1"),au(b))},bW=async a=>{await bT("round-robin",a)&&aw(a)},bX=async a=>{await bU(a,az)&&ay(a)},bY=async a=>{await bU(ax,a)&&aA(a)},bZ=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)}},b$=async a=>{let b=Z[n];if(b){aE(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=++a1.current;a0.current&&(clearTimeout(a0.current),a0.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!==a1.current)return;if(!d.ok||!e?.status)throw Error("Verify status temporarily unavailable");ba(e&&e.status?e:null),e?.status==="running"?a0.current=setTimeout(c,1500):(a0.current=null,await bR(a))}catch{b===a1.current&&(a0.current=setTimeout(c,1500))}};a0.current=setTimeout(c,0)},[bR]),b0=async(a,b,c=bq)=>{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 bO();else{let b=await a.json();(0,C.s)(b.error||"Failed to set alias")}}catch(a){(0,C.s)("Error setting alias:",a)}},b1=async a=>{try{await (0,X.x)(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"}),await bO()}catch(a){(0,C.s)("Error deleting alias:",a)}},b2=async(a,b="llm",c=bF)=>{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 bP();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)}},b3=async(a,b="llm",c=bF)=>{try{let d=new URLSearchParams({providerAlias:c,id:a,type:b});await (0,X.x)(`/api/models/custom?${d}`,{method:"DELETE"}),await bP()}catch(a){(0,C.s)("Error deleting custom model:",a)}},b4=async()=>{if(a3)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"));a4(!0),a6("");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(bp.map(a=>a.id)),h=[],i=[],j=new Set;for(let a of d){let b=(0,y.R2)(a,bF);if(!b)continue;let{id:c,name:d,type:k}=b;if(e.has((0,W.v)(c,bF))){f+=1;continue}let l=`${k}|${c}`;if(j.has(l))continue;if(j.add(l),g.has(c)){bI(c)&&i.push(c);continue}if(ah.some(a=>a.providerAlias===bF&&a.id===c&&(0,y.ki)(a.kind||a.type||"llm")===k))continue;let m=`${bF}/${c}`;Object.values(af).includes(m)||h.push({providerAlias:bF,id:c,type:k,name:d,...b.reasoning?{reasoning:b.reasoning}:{}})}let k=0;if(i.length>0)try{for(let a of i)(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bF)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&(k+=1);await bJ()}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 bP()}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)a6((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}`),a6(a)}if(f>0&&a6(a=>`${a} \xb7 ${f} skipped (known dead)`),l>0||k>0)try{let b=[...bp,...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:bF})}),d=await c.json().catch(()=>({}));if(!c.ok)throw Error(d.error||"Failed to start auto-verify");ba(d&&d.status?d:null),b_(a.id)}catch(a){a6(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{a4(!1)}},b5=async()=>{if(aR||0===p.length)return;let a=Object.fromEntries(p.map(a=>[a.id,{state:"queued",error:null}]));a_.current=!1,aS(!0),aU(!1),aW(null),aY(a),a$({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){a$({total:p.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=p[a];aW(d.id),aY(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,aY(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,aY(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}a$({total:p.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<p.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{aW(null),aS(!1),aU(!1),a_.current=!1}},b6=async a=>{let b=p.find(b=>b.id===a),c=b?.name?.trim()||b?.email?.trim()||a;aO({title:"Delete Connection",message:`Delete connection “${c}”?`,onConfirm:async()=>{aO(null);try{await (0,X.x)(`/api/providers/${a}`,{method:"DELETE"}),q(b=>b.filter(b=>b.id!==a))}catch(a){(0,C.s)("Error deleting connection:",a)}}})},b7=()=>{bQ(),H(!1)},b8=async a=>{T("");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 bQ(),R(!1);return}T(c?.error||"Failed to save connection")}catch(a){(0,C.s)("Error saving connection:",a),T("Failed to save connection")}},b9=async a=>{try{await (0,X.x)(`/api/providers/${ad.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),await bQ(),aa(!1)}catch(a){(0,C.s)("Error updating connection:",a)}},ca=async(a,b)=>{try{await (0,X.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)}},cb=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 bQ()}catch(a){(0,C.s)("Error adding host to allow list:",a)}}},cc=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 bQ()}},cd=p.length>0&&r.length===p.length,ce=(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)(I,{connection:a,isOAuth:bl,isFirst:0===b,isLast:b===p.length-1,onMoveUp:()=>cc(b,b-1),onMoveDown:()=>cc(b,b+1),onToggleActive:b=>ca(a.id,b),autoPing:Z[n]&&"oauth"===a.authType?{on:!0===aD.connections[a.id],onToggle:b=>{var c;return c=a.id,void b$({...aD,connections:{...aD.connections,[c]:b}})},provider:n}:null,onEdit:()=>{ae(a),aa(!0)},onDelete:()=>b6(a.id),onAllowlistHost:()=>cb(a),oneByOneStatus:aX[a.id]||null})})]},a.id))}),cf=async a=>{if(!ap.has(a)){aq(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:`${bF}/${a}`})}),c=await b.json();am(b=>({...b,[a]:c.ok?"ok":"error"})),ao(c.ok?"":c.error||"Model not reachable")}catch{am(b=>({...b,[a]:"error"})),ao("Network error")}finally{aq(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,{})]}):bj?(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:`${bj.color}15`},children:aj?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:bj.color},children:bj.textIcon||bj.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:br&&bj.apiType?"responses"===bj.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":bs?"/providers/anthropic-m.png":`/providers/${bj.id}.png`,alt:bj.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>ak(!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:bj.name}),(bj.notice?.apiKeyUrl||bj.notice?.signupUrl||bj.website)&&(0,d.jsxs)("a",{href:bj.notice?.apiKeyUrl||bj.notice?.signupUrl||bj.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"}),bj.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"]})]})]})]}),bj.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(bj.deprecationNotice).replace(/^⚠️\s*⚠️?\s*/,"")})]}),bj.notice?.text&&!bj.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:bj.notice.text}),bj.notice.apiKeyUrl&&(0,d.jsx)("a",{href:bj.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 →"})]}),bt&&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:bs?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[bs?"Messages API":"responses"===D.apiType?"Responses API":"Chat Completions"," \xb7 ",(D.baseUrl||"").replace(/\/$/,""),"/",bs?"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:()=>{T(""),R(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ac(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aO({title:"Delete Compatible Node",message:`Delete this ${bs?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aO(null);try{await (0,X.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"})]})]})}),bn?(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&&aO({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aO(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:b5,disabled:aR,children:aR?"Testing Connection One-by-One...":"Test Connection One-by-One"}),aR&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{aR&&(a_.current=!0,aU(!0))},disabled:aT,children:aT?"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:[ax&&(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:az,onChange:a=>bY(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:ax,onChange:bX,"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:ax?"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"===at&&(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:av,onChange:a=>bW(a.target.value),placeholder:"1",disabled:ax,title:ax?"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"===at,onChange:bV,"aria-label":"Round Robin",disabled:ax,title:ax?"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:bl?"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"}),bw&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",bx," or ",by,"."]})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:bw?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bA,children:bx}),(0,d.jsx)(j.$n,{size:"sm",icon:"key",onClick:bB,children:by})]}):(0,d.jsxs)(d.Fragment,{children:[!bt&&"iflow"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>N(!0),children:"Cookie"}),"codex"===n&&(0,d.jsx)(j.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>$(!0),children:(0,w.Tl)("Bulk Add")}),(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:bC,children:bt?"Add API Key":"iflow"===n?"OAuth":"Add Connection"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[aZ&&(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: ",aZ.total]}),(0,d.jsxs)("span",{children:["Completed: ",aZ.completed]}),(0,d.jsxs)("span",{children:["Passed: ",aZ.passed]}),(0,d.jsxs)("span",{children:["Failed: ",aZ.failed]}),aZ.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),aR&&aV&&(0,d.jsxs)("span",{children:["Running: ",p.find(a=>a.id===aV)?.name||aV]})]})}),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:cd,onChange:()=>{cd?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"]})}),ce,!bt&&(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:()=>N(!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:()=>$(!0),title:(0,w.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,w.Tl)("Bulk Add")}),bw?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:bA,className:"w-full sm:w-auto",children:bx}),(0,d.jsx)(j.$n,{size:"sm",icon:"key",onClick:bB,className:"w-full sm:w-auto",children:by})]}):(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:bC,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsx)(V,{providerId:n,scheduleKey:bG},n),(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"}),bE&&(0,d.jsx)("select",{value:aB,onChange:a=>{var b;aC(b=a.target.value),bZ(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:bE.map(a=>(0,d.jsx)("option",{value:a,children:`Thinking: ${a.charAt(0).toUpperCase()+a.slice(1)}`},a))})]}),bv.showToolbar&&(a=(bv.showBulkControls?[...bp,...aJ.filter(a=>!bp.some(b=>b.id===a.id))].filter(a=>{let b=(0,l.CP)(a);return!b||"llm"===b}).map(a=>a.id):[]).filter(a=>!bI(a)),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[bv.showImport&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:a3?"progress_activity":"cloud_download",onClick:b4,disabled:a3||!bu,title:bu?"Import models from the active connection":"Add an active connection to import models",children:a3?"Importing...":"Import models"}),bv.showVerify&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:a9?.status==="running"?"progress_activity":"science",onClick:()=>a8(a=>!a),children:a9?.status==="running"?`Verifying ${a9.done}/${a9.total}`:a7?"Hide verify":"Verify models"}),bv.showBulkControls&&aL.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bN,children:"Active All"}),bv.showBulkControls&&a.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bM(a),children:"Disable All"})]}))]}),!!an&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:an}),a5&&(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:a5})]}),(0,d.jsx)("button",{onClick:()=>a6(""),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"})})]}),a7&&(b=p.find(a=>r.includes(a.id)&&!1!==a.isActive)||p.find(a=>!1!==a.isActive),c=[...(0,x.R3)({customModels:ah,modelAliases:af,providerAlias:bF,builtInModels:bp,type:"llm"}).filter(a=>!bI(a.id)).map(a=>({id:a.id,name:a.name||a.id,kind:"llm"})),...bp.filter(a=>{let b=(0,l.CP)(a);return(!b||"llm"===b)&&!bI(a.id)}).map(a=>({id:a.id,name:a.name||a.id,kind:"llm"}))],(0,d.jsx)(Q,{connectionId:b?.id,providerAlias:bF,models:c,jobSnapshot:a9,onClose:()=>a8(!1),onStarted:a=>{ba(a&&a.status?a:null);let c=a?.connectionId||b?.id;c&&b_(c)},onComplete:async a=>{a?.removedStatus&&ba(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 bP(),a?.removed>0&&await bJ(),(a?.removed>0||a?.cacheCleared)&&await bR(b?.id)}})),(()=>{let a,b,c;if(bt)return(0,d.jsx)(F,{providerStorageAlias:bF,providerDisplayAlias:bG,modelAliases:af,customModels:ah,copied:bh,onCopy:bi,onSetAlias:b0,onDeleteAlias:b1,onAddCustomModel:a=>b2(a,"llm",bF),onDeleteCustomModel:a=>b3(a,"llm",bF),onRefreshModels:bP,connections:p,isAnthropic:bs,disabledModelIds:aL,onEnableModel:bL});let e=[...bp,...aJ.filter(a=>!bp.some(b=>b.id===a.id))].filter(a=>{let b=(0,l.CP)(a);return!b||"llm"===b}),f=e.filter(a=>!bI(a.id)),g=e.filter(a=>bI(a.id)),h=(0,x.R3)({customModels:ah,modelAliases:af,providerAlias:bF,builtInModels:bp,type:"llm"}),i=h.filter(a=>!bI(a.id)&&("all"===bf||(bd[(0,W.v)(a.id,bF)]||null)===bf)),j=f.filter(a=>"all"===bf||(bd[(0,W.v)(a.id,bF)]||null)===bf);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=>!bI(a.id)).length},{id:"ok",label:"Reachable",count:[...f,...h].filter(a=>!bI(a.id)&&("ok"===bd[(0,W.v)(a.id,bF)]||"ok"===al[a.id])).length},{id:"dead",label:"Dead",count:[...f,...h].filter(a=>!bI(a.id)&&("dead"===bd[(0,W.v)(a.id,bF)]||"error"===al[a.id])).length},{id:"retry",label:"Retry",count:[...f,...h].filter(a=>!bI(a.id)&&"retry"===bd[(0,W.v)(a.id,bF)]).length}].map(a=>(0,d.jsxs)("button",{onClick:()=>bg(a.id),className:`inline-flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs font-medium transition-all ${bf===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 ${bf===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,W.v)(a.id,bF);return(0,d.jsx)(B,{model:{id:a.id,name:a.name},fullModel:`${bG}/${a.id}`,alias:a.alias,copied:bh,onCopy:bi,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===a.source?b3(a.id,"llm",bF):b1(a.alias)},testStatus:al[a.id],onTest:p.length>0||bn?()=>cf(a.id):void 0,isTesting:ap.has(a.id),isCustom:!0,isFree:!1,caps:o(`${n}/${a.id}`),thinkingSuffix:bD(a.id),latencyMs:bb[a.id]??bb[b],probeState:a9?.status==="running"&&a9?.perModel?.[b]?a9.perModel[b]:bd[b]||null},`${a.source}-${a.fullModel}`)}),j.map(a=>{let b=`${bF}/${a.id}`,c=`${n}/${a.id}`,e=Object.entries(af).find(([,a])=>a===b||a===c)?.[0],f=(0,W.v)(a.id,bF);return(0,d.jsx)(B,{model:a,fullModel:`${bG}/${a.id}`,alias:e,copied:bh,onSetAlias:b=>b0(a.id,b,bF),onCopy:bi,onDeleteAlias:()=>b1(e),testStatus:al[a.id],onTest:p.length>0||bn?()=>cf(a.id):void 0,isTesting:ap.has(a.id),isFree:a.isFree,onDisable:()=>bK(a.id),caps:o(`${n}/${a.id}`),thinkingSuffix:bD(a.id),latencyMs:bb[a.id]??bb[f],probeState:a9?.status==="running"&&a9?.perModel?.[f]?a9.perModel[f]:bd[f]||null},a.id)}),(0,d.jsxs)("button",{onClick:()=>as(!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"]}),aF.length>0&&(a=new Set([...Object.values(af),...h.map(a=>a.fullModel)]),b=new Set(bp.map(a=>a.id)),0===(c=aF.filter(c=>!a.has(`${bF}/${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 b2(a.id,"llm",bF)},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:()=>bL(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:bj,onSuccess:b7,onClose:()=>H(!1)}):"cursor"===n?(0,d.jsx)(j.G9,{isOpen:G,onSuccess:b7,onClose:()=>H(!1)}):"gitlab"===n?(0,d.jsx)(j.vj,{isOpen:G,providerInfo:bj,onSuccess:b7,onClose:()=>H(!1)}):(0,d.jsx)(j.LF,{isOpen:G,provider:n,providerInfo:bj,onSuccess:b7,onClose:()=>H(!1)}),"iflow"===n&&(0,d.jsx)(j.vE,{isOpen:J,onSuccess:()=>{bQ(),N(!1)},onClose:()=>N(!1)}),(0,d.jsx)(K,{isOpen:P,provider:n,providerName:bj.name,isCompatible:bt,isAnthropic:bs,authType:bj?.authType,authHint:bj?.authHint,website:bj?.website,error:S,onSave:b8,onBulkDone:bQ,onClose:()=>{T(""),R(!1)}}),(0,d.jsx)(j.wI,{isOpen:_,connection:ad,onSave:b9,onClose:()=>aa(!1)}),bt&&(0,d.jsx)(L,{isOpen:ab,node:D,onSave:bS,onClose:()=>ac(!1),isAnthropic:bs}),!bt&&(0,d.jsx)(M,{isOpen:ar,providerAlias:bF,providerDisplayAlias:bG,onSave:async a=>{await b2(a,"llm",bF),as(!1)},onClose:()=>as(!1)}),"codex"===n&&(0,d.jsx)(O,{isOpen:U,onClose:()=>$(!1),onSuccess:bQ}),(0,d.jsx)(j.uo,{isOpen:aP,onClose:()=>aQ(!1),onConfirm:()=>{(aQ(!1),bl)?bz():bB()},title:"Risk Notice",message:bj?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(j.uo,{isOpen:!!aN,onClose:()=>aO(null),onConfirm:aN?.onConfirm,title:aN?.title||"Confirm",message:aN?.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"})]})}},72089:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},73024:a=>{"use strict";a.exports=require("node:fs")},74232:(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},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,[2970,2430,4160,2712,7812,232,9698,5350,869,2142,5781,9353,2847,7757,8915,4330,5624],()=>b(b.s=74232));module.exports=c})();
|