switchboard-router 0.9.9 → 0.9.11
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/Gpu8irTBATTeQnftVm3kL/_buildManifest.js +1 -0
- package/app/.next/static/chunks/1321-cdb7f44691303560.js +1 -0
- package/app/.next/static/chunks/1330-a43190104575ffe5.js +7 -0
- package/app/.next/static/chunks/3378-277dccfa153c2c15.js +73 -0
- package/app/.next/static/chunks/4707-8ea6ba647d0a40c9.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/agent-library/page-fa24110e606e19b6.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/page-7b00fb83303d1d11.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-5743f3aa5bc106d4.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-3f393136e502e1c0.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-aaae06cada500532.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/routing/page-ef491ec5a2ccecfb.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/page-eefda4a8f32e649e.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-51f788f35bc5325f.js +16 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/loading-c80ac975cf0f4842.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-e6fc3a5c25ce1247.js +59 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-078eb5d8bfc3f4d1.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-7dfde081613f35f3.js +4 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/page-1d63cfd88010b65f.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-281c93713fd1e960.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/page-14c65f14d73bdfa7.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/page-88fc3c530d1ce735.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-0e0047609d5634c9.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-cb9292ca42b61d7d.js +10 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/page-604dae851964c441.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-e1c9f4ce8466e3ad.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/pxpipe/page-6ca234b58c5e9feb.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-40db6db68022a0cc.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/[id]/page-ea262b6192d5a92c.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/page-36d107b083ad3a43.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/token-saver/page-14e5599c720c645b.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-687e09f904b04cea.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-195bdcbea10136e1.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/layout-6dfa9d7deb27d461.js +1 -0
- package/app/.next/static/chunks/app/_global-error/page-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/catalog/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/doctor/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/export/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/mcp/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/skills/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/sync/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/agent-library/updates/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/auth/status/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/aider-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-full-catalog/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-picker-labels/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/gemini-cli-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/grok-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/pi-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/picker-labels/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/combos/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/combos/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/extras/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/restart/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/start/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/status/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/stop/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/health/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/keys/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/locale/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/health/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/metrics/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/providers/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/routing/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/usage/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/mgmt/v1/version/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/models/alias/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/models/availability/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/models/custom/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/models/disabled/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/models/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/models/test/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/defaults/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/batch/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/cache/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/prepare/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/client/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/test-batch/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/providers/validate/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/health/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/install/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/start/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/status/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/routing/feedback/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/routing/insights/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/routing/learn/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/routing/stats/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/routing/versions/promote/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/routing/versions/rollback/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/shutdown/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/skills/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/tags/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/token-saver/vault-stats/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/translator/load/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/translator/save/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/translator/send/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/translator/translate/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/usage/chart/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/usage/history/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/usage/logs/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/usage/providers/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-logs/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stats/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stream/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/api/chat/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/embeddings/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/images/generations/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/info/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/search/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/edits/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/extensions/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/version/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/version/shutdown/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/api/version/update/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/landing/page-b2d84fd7a580e623.js +1 -0
- package/app/.next/static/chunks/app/login/page-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/manifest.webmanifest/route-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/app/page-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-d23122546cc60c2d.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-d23122546cc60c2d.js +1 -0
- package/app/.next/static/css/ec805e65297c40c7.css +1 -0
- package/app/.next/static/media/catalog.fb7b1b70.json +1722 -0
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +22 -20
- 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 +14 -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 +14 -14
- 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 +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/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/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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/gemini-cli-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/gemini-cli-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/grok-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/picker-labels/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/picker-labels/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +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/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 -0
- package/app/.next-cli-build/server/app/api/pricing/defaults/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/pricing/defaults/route_client-reference-manifest.js +1 -0
- 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 +1 -1
- 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 -0
- package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route_client-reference-manifest.js +1 -0
- 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 -6
- 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 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +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 +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/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 +5 -5
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- 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 +22 -20
- package/app/.next-cli-build/server/chunks/1158.js +1 -0
- package/app/.next-cli-build/server/chunks/1274.js +1 -0
- package/app/.next-cli-build/server/chunks/1294.js +3 -3
- package/app/.next-cli-build/server/chunks/1351.js +1 -0
- package/app/.next-cli-build/server/chunks/1792.js +2 -0
- package/app/.next-cli-build/server/chunks/1837.js +1 -0
- package/app/.next-cli-build/server/chunks/1937.js +1 -1
- package/app/.next-cli-build/server/chunks/1998.js +1 -1
- package/app/.next-cli-build/server/chunks/2142.js +121 -0
- package/app/.next-cli-build/server/chunks/2524.js +1 -1
- package/app/.next-cli-build/server/chunks/27.js +8 -0
- package/app/.next-cli-build/server/chunks/3423.js +1 -0
- package/app/.next-cli-build/server/chunks/3446.js +1 -1
- package/app/.next-cli-build/server/chunks/3593.js +2 -2
- package/app/.next-cli-build/server/chunks/369.js +10 -10
- package/app/.next-cli-build/server/chunks/3735.js +2 -2
- package/app/.next-cli-build/server/chunks/3787.js +1 -1
- package/app/.next-cli-build/server/chunks/403.js +1 -0
- package/app/.next-cli-build/server/chunks/4176.js +1 -1
- package/app/.next-cli-build/server/chunks/4330.js +7 -0
- package/app/.next-cli-build/server/chunks/4646.js +1 -1
- package/app/.next-cli-build/server/chunks/4675.js +246 -0
- package/app/.next-cli-build/server/chunks/4739.js +2 -2
- package/app/.next-cli-build/server/chunks/4780.js +2 -2
- package/app/.next-cli-build/server/chunks/4803.js +1 -1
- package/app/.next-cli-build/server/chunks/507.js +2 -2
- package/app/.next-cli-build/server/chunks/5115.js +1 -0
- package/app/.next-cli-build/server/chunks/5139.js +1 -0
- package/app/.next-cli-build/server/chunks/519.js +1 -0
- package/app/.next-cli-build/server/chunks/5195.js +1 -0
- package/app/.next-cli-build/server/chunks/5258.js +2 -2
- package/app/.next-cli-build/server/chunks/5565.js +73 -0
- package/app/.next-cli-build/server/chunks/5717.js +9 -14
- package/app/.next-cli-build/server/chunks/5774.js +1 -0
- package/app/.next-cli-build/server/chunks/5781.js +2 -2
- package/app/.next-cli-build/server/chunks/5888.js +1 -1
- package/app/.next-cli-build/server/chunks/5920.js +2 -2
- package/app/.next-cli-build/server/chunks/6194.js +1 -0
- package/app/.next-cli-build/server/chunks/6252.js +1 -1
- package/app/.next-cli-build/server/chunks/6305.js +2 -0
- package/app/.next-cli-build/server/chunks/6328.js +1 -1
- package/app/.next-cli-build/server/chunks/6406.js +3 -1
- package/app/.next-cli-build/server/chunks/646.js +15 -15
- package/app/.next-cli-build/server/chunks/6492.js +1 -1
- package/app/.next-cli-build/server/chunks/6757.js +38 -0
- package/app/.next-cli-build/server/chunks/698.js +2 -2
- package/app/.next-cli-build/server/chunks/7133.js +1 -0
- package/app/.next-cli-build/server/chunks/7454.js +1 -1
- package/app/.next-cli-build/server/chunks/7662.js +1 -1
- package/app/.next-cli-build/server/chunks/7757.js +1 -1
- package/app/.next-cli-build/server/chunks/7774.js +3 -3
- package/app/.next-cli-build/server/chunks/7880.js +2 -0
- package/app/.next-cli-build/server/chunks/7965.js +2 -2
- package/app/.next-cli-build/server/chunks/8027.js +63 -0
- package/app/.next-cli-build/server/chunks/8062.js +1 -1
- package/app/.next-cli-build/server/chunks/8400.js +13 -11
- package/app/.next-cli-build/server/chunks/8469.js +1 -1
- package/app/.next-cli-build/server/chunks/8520.js +2 -2
- 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/8942.js +2 -2
- package/app/.next-cli-build/server/chunks/8976.js +1 -1
- package/app/.next-cli-build/server/chunks/8998.js +59 -49
- package/app/.next-cli-build/server/chunks/9059.js +1 -0
- package/app/.next-cli-build/server/chunks/9091.js +3 -3
- package/app/.next-cli-build/server/chunks/9261.js +29 -18
- package/app/.next-cli-build/server/chunks/9264.js +2 -2
- package/app/.next-cli-build/server/chunks/9421.js +2 -2
- package/app/.next-cli-build/server/chunks/static/media/catalog.fb7b1b70.json +1722 -0
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +12 -17
- 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/Gpu8irTBATTeQnftVm3kL/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/1321-cdb7f44691303560.js +1 -0
- package/app/.next-cli-build/static/chunks/1330-a43190104575ffe5.js +7 -0
- package/app/.next-cli-build/static/chunks/3378-277dccfa153c2c15.js +73 -0
- package/app/.next-cli-build/static/chunks/4707-8ea6ba647d0a40c9.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/agent-library/page-fa24110e606e19b6.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-7b00fb83303d1d11.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-5743f3aa5bc106d4.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-3f393136e502e1c0.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-aaae06cada500532.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/routing/page-ef491ec5a2ccecfb.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-eefda4a8f32e649e.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-51f788f35bc5325f.js +16 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/loading-c80ac975cf0f4842.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-e6fc3a5c25ce1247.js +59 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-078eb5d8bfc3f4d1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-7dfde081613f35f3.js +4 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/page-1d63cfd88010b65f.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-281c93713fd1e960.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-14c65f14d73bdfa7.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-88fc3c530d1ce735.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-0e0047609d5634c9.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-cb9292ca42b61d7d.js +10 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-604dae851964c441.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-e1c9f4ce8466e3ad.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/page-6ca234b58c5e9feb.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-40db6db68022a0cc.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/[id]/page-ea262b6192d5a92c.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-36d107b083ad3a43.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-14e5599c720c645b.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-687e09f904b04cea.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-195bdcbea10136e1.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-6dfa9d7deb27d461.js +1 -0
- package/app/.next-cli-build/static/chunks/app/_global-error/page-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/catalog/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/doctor/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/export/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/mcp/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/skills/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/sync/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/agent-library/updates/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/aider-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-full-catalog/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-picker-labels/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/gemini-cli-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/picker-labels/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/health/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/metrics/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/providers/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/routing/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/usage/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/version/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/defaults/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/batch/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/cache/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/prepare/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/feedback/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/insights/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/learn/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/stats/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/promote/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/rollback/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/vault-stats/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/landing/page-b2d84fd7a580e623.js +1 -0
- package/app/.next-cli-build/static/chunks/app/login/page-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-d23122546cc60c2d.js +1 -0
- package/app/.next-cli-build/static/css/ec805e65297c40c7.css +1 -0
- package/app/.next-cli-build/static/media/catalog.fb7b1b70.json +1722 -0
- 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/open-sse/providers/generated/catalog.json +143 -131
- package/app/package.json +1 -1
- package/app/public/i18n/literals/zh-CN.json +17 -1
- package/app/src/lib/db/adapters/betterSqliteAdapter.js +2 -2
- package/app/src/lib/db/adapters/sqljsAdapter.js +5 -4
- package/app/src/lib/updater/updater.js +7 -2
- package/app/src/mitm/server.js +34 -34
- package/cli.js +67 -24
- package/hooks/trayRuntime.js +72 -17
- package/package.json +1 -1
- package/src/cli/api/client.js +9 -3
- package/src/cli/cliOptions.js +1 -1
- package/src/cli/commands/xaiVideo.js +31 -8
- package/src/cli/interfaceMenu.js +12 -1
- package/src/cli/processManager.js +47 -1
- package/src/cli/serverStatus.js +32 -9
- package/src/cli/terminalUI.js +5 -2
- package/src/cli/tray/autostart.js +20 -4
- package/src/cli/tray/tray.js +4 -1
- package/src/cli/tray/trayWin.js +23 -3
- package/src/cli/utils/display.js +20 -0
- package/app/.next/static/GP6N1FvEOE4uYUrdrCir5/_buildManifest.js +0 -1
- package/app/.next/static/chunks/1321-f49cd2f61cbf7361.js +0 -1
- package/app/.next/static/chunks/1330-56405eca78b12fee.js +0 -7
- package/app/.next/static/chunks/3531-eb5d385c954b3765.js +0 -68
- package/app/.next/static/chunks/4707-1ec0b2edbb07f455.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/agent-library/page-40f3ca16440f8e17.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/page-0e1d54e59ac767a1.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-af0d85c06970853b.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-2cfc2352bc42d9b8.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-62cd36ee99eaa630.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/routing/page-0b02e9a2f1cc6e43.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/page-ded6ec41e583b3b3.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-ca47b09e6ed6ae7b.js +0 -16
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-78d098f14f8cff05.js +0 -59
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-d1654fba27199492.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-ff13a39fb7744f5e.js +0 -4
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/page-919f3eec8dfc9b6e.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-db19da41661d630b.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/page-309b09a142a2995d.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/page-86cd6523dcd61f1b.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-ae6cf9ce7ac84eb7.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-97e0f7067cab0724.js +0 -10
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/page-413b59dd764a1563.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-31212a5a4a9825b0.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/pxpipe/page-1805f993834a1adb.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-798a65a8c4d2708a.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/[id]/page-aba614778bfe50ad.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/page-645e7c5ec034fe8c.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/token-saver/page-1711a424a8dcad0e.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-0c7b901caf8614b9.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-b085086e6c5b9387.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/layout-59baac68c7aedd25.js +0 -1
- package/app/.next/static/chunks/app/_global-error/page-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/catalog/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/doctor/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/export/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/mcp/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/skills/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/sync/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/agent-library/updates/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/auth/status/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/aider-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-full-catalog/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-picker-labels/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/gemini-cli-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/grok-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/pi-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/picker-labels/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/extras/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/restart/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/start/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/status/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/stop/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/health/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/locale/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/combos/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/health/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/metrics/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/providers/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/routing/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/usage/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/mgmt/v1/version/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/models/custom/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/models/disabled/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/models/test/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/batch/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/cache/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/prepare/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/health/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/install/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/start/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/status/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/routing/feedback/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/routing/insights/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/routing/learn/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/routing/stats/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/routing/versions/promote/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/routing/versions/rollback/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/skills/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/token-saver/vault-stats/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/usage/chart/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/usage/logs/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/usage/providers/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stats/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stream/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/[kind]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/info/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/search/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/edits/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/extensions/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/version/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/version/shutdown/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/api/version/update/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/landing/page-9e06d57d9b215fd7.js +0 -1
- package/app/.next/static/chunks/app/login/page-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/app/page-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-e5f03432dd0bcd61.js +0 -1
- package/app/.next/static/css/196a6347b9104610.css +0 -1
- package/app/.next/static/media/catalog.e7ada387.json +0 -1710
- package/app/.next-cli-build/server/chunks/1350.js +0 -1
- package/app/.next-cli-build/server/chunks/159.js +0 -1
- package/app/.next-cli-build/server/chunks/1656.js +0 -2
- package/app/.next-cli-build/server/chunks/194.js +0 -1
- package/app/.next-cli-build/server/chunks/3026.js +0 -1
- package/app/.next-cli-build/server/chunks/3072.js +0 -2
- package/app/.next-cli-build/server/chunks/3986.js +0 -121
- package/app/.next-cli-build/server/chunks/5573.js +0 -1
- package/app/.next-cli-build/server/chunks/5616.js +0 -1
- package/app/.next-cli-build/server/chunks/5913.js +0 -1
- package/app/.next-cli-build/server/chunks/6052.js +0 -2
- package/app/.next-cli-build/server/chunks/6182.js +0 -63
- package/app/.next-cli-build/server/chunks/6274.js +0 -1
- package/app/.next-cli-build/server/chunks/6347.js +0 -1
- package/app/.next-cli-build/server/chunks/6395.js +0 -68
- package/app/.next-cli-build/server/chunks/6985.js +0 -1
- package/app/.next-cli-build/server/chunks/849.js +0 -1
- package/app/.next-cli-build/server/chunks/8658.js +0 -1
- package/app/.next-cli-build/server/chunks/8834.js +0 -7
- package/app/.next-cli-build/server/chunks/940.js +0 -246
- package/app/.next-cli-build/server/chunks/9508.js +0 -45
- package/app/.next-cli-build/server/chunks/9617.js +0 -1
- package/app/.next-cli-build/server/chunks/static/media/catalog.e7ada387.json +0 -1710
- package/app/.next-cli-build/static/GP6N1FvEOE4uYUrdrCir5/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-f49cd2f61cbf7361.js +0 -1
- package/app/.next-cli-build/static/chunks/1330-56405eca78b12fee.js +0 -7
- package/app/.next-cli-build/static/chunks/3531-eb5d385c954b3765.js +0 -68
- package/app/.next-cli-build/static/chunks/4707-1ec0b2edbb07f455.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/agent-library/page-40f3ca16440f8e17.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-0e1d54e59ac767a1.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-af0d85c06970853b.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-2cfc2352bc42d9b8.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-62cd36ee99eaa630.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/routing/page-0b02e9a2f1cc6e43.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-ded6ec41e583b3b3.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-ca47b09e6ed6ae7b.js +0 -16
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-78d098f14f8cff05.js +0 -59
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-d1654fba27199492.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-ff13a39fb7744f5e.js +0 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/page-919f3eec8dfc9b6e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-db19da41661d630b.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-309b09a142a2995d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-86cd6523dcd61f1b.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-ae6cf9ce7ac84eb7.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-97e0f7067cab0724.js +0 -10
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-413b59dd764a1563.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-31212a5a4a9825b0.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/page-1805f993834a1adb.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-798a65a8c4d2708a.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/[id]/page-aba614778bfe50ad.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-645e7c5ec034fe8c.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-1711a424a8dcad0e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-0c7b901caf8614b9.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-b085086e6c5b9387.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-59baac68c7aedd25.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/catalog/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/doctor/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/export/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/mcp/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/skills/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/sync/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/agent-library/updates/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/aider-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-full-catalog/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-picker-labels/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/gemini-cli-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/picker-labels/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/[id]/strategy/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/combos/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/health/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/metrics/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/providers/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/routing/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/usage/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mgmt/v1/version/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/batch/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/cache/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/prepare/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/remove-unavailable/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/cancel/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/start/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/model-probes/verify/status/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/feedback/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/insights/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/learn/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/stats/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/promote/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing/versions/rollback/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/vault-stats/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/landing/page-9e06d57d9b215fd7.js +0 -1
- package/app/.next-cli-build/static/chunks/app/login/page-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-e5f03432dd0bcd61.js +0 -1
- package/app/.next-cli-build/static/css/196a6347b9104610.css +0 -1
- package/app/.next-cli-build/static/media/catalog.e7ada387.json +0 -1710
- /package/app/.next/static/{GP6N1FvEOE4uYUrdrCir5 → Gpu8irTBATTeQnftVm3kL}/_ssgManifest.js +0 -0
- /package/app/.next-cli-build/static/{GP6N1FvEOE4uYUrdrCir5 → Gpu8irTBATTeQnftVm3kL}/_ssgManifest.js +0 -0
package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var a={};a.id=182,a.ids=[182],a.modules={3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4120:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>O});var d=c(48249),e=c(19099),f=c(2116),g=c.n(f),h=c(67484),i=c(50412),j=c(72738),k=c(92592),l=c(74875),m=c(49885),n=c.n(m),o=c(41371),p=c(22588);function q({until:a}){let[b,c]=(0,h.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function r({connection:a,isOAuth:b,isFirst:c,isLast:e,onMoveUp:f,onMoveDown:g,onToggleActive:j,onEdit:k,onDelete:m}){let[n,o]=(0,h.useState)(!1),p=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,s=p?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",t="",u=a.providerSpecificData?.connectionProxyUrl;if(u)try{let a=new URL(u);t=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{t=u}let v=a.providerSpecificData?.connectionNoProxy||"",w=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(Boolean).sort()[0]||null,x="unavailable"!==a.testStatus||n?a.testStatus:"active",y=b?a.name||a.email||a.displayName||"OAuth Account":a.name;return(0,d.jsxs)("div",{className:`group flex flex-col gap-3 p-2 rounded-lg sm:flex-row sm:items-center sm:justify-between hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex w-full min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsx)("button",{onClick:f,disabled:c,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",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:g,disabled:e,className:`p-0.5 rounded ${e?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",children:b?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:y}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-1",children:[(0,d.jsx)(i.Ex,{variant:(0,l.g)(a.isActive,x),size:"sm",dot:!0,children:!1===a.isActive?"disabled":x||"Unknown"}),p&&(0,d.jsx)(i.Ex,{variant:"success",size:"sm",children:"Proxy"}),n&&!1!==a.isActive&&(0,d.jsx)(q,{until:w}),a.lastError&&!1!==a.isActive&&(0,d.jsx)("span",{className:"text-xs text-red-500 truncate max-w-[300px]",title:a.lastError,children:a.lastError}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]})]}),p&&(0,d.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-[11px] text-text-muted truncate max-w-[420px]",title:s,children:s}),t&&(0,d.jsx)("code",{className:"text-[10px] font-mono bg-black/5 dark:bg-white/5 px-1 py-0.5 rounded text-text-muted",children:t}),v&&(0,d.jsxs)("span",{className:"text-[11px] text-text-muted truncate max-w-[320px]",title:v,children:["no_proxy: ",v]})]})]})]}),(0,d.jsxs)("div",{className:"flex w-full flex-wrap items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,d.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(0,d.jsxs)("button",{onClick:k,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:m,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-red-500/10 text-red-500",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,d.jsx)(i.lM,{size:"sm",checked:a.isActive??!0,onChange:j,title:a.isActive??!0?"Disable":"Enable"})]})]})}function s({isOpen:a,provider:b,providerName:c,onSave:e,onClose:f}){let[g,j]=(0,h.useState)({name:"",apiKey:"",priority:1}),[k,l]=(0,h.useState)(!1),[m,n]=(0,h.useState)(null),[o,p]=(0,h.useState)(!1),q=g.name.trim().length>0,r=g.apiKey.trim().length>0,t=async()=>{let a=g.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})}),d=await c.json();n(d.valid?"success":"failed")}catch{n("failed")}finally{l(!1)}}},u=async()=>{let a=g.name.trim(),c=g.apiKey.trim();if(b&&a&&c){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})});d=!!(await a.json()).valid,n(d?"success":"failed")}catch{n("failed")}finally{l(!1)}await e({name:a,apiKey:c,priority:g.priority,testStatus:d?"active":"unknown"})}finally{p(!1)}}};return b?(0,d.jsx)(i.aF,{isOpen:a,title:`Add ${c||b} API Key`,onClose:f,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Name"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:g.name,onChange:a=>j({...g,name:a.target.value}),placeholder:"Production Key"})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"API Key"}),(0,d.jsx)("input",{type:"password",autoComplete:"off",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:g.apiKey,onChange:a=>j({...g,apiKey:a.target.value})})]}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(i.$n,{onClick:t,disabled:!r||k||o,variant:"secondary",children:k?"Checking...":"Check"})})]}),m&&(0,d.jsx)(i.Ex,{variant:"success"===m?"success":"error",children:"success"===m?"Valid":"Invalid"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Priority"}),(0,d.jsx)("input",{type:"number",min:1,className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:g.priority,onChange:a=>j({...g,priority:Number.parseInt(a.target.value)||1})})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(i.$n,{onClick:u,fullWidth:!0,disabled:!q||!r||o,children:o?"Saving...":"Save"}),(0,d.jsx)(i.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function t({providerId:a,isOAuth:b}){let[c,e]=(0,h.useState)([]),[f,g]=(0,h.useState)(!0),[j,k]=(0,h.useState)(!1),[l,m]=(0,h.useState)(!1),[n,q]=(0,h.useState)(null),[u,v]=(0,h.useState)(null),[w,x]=(0,h.useState)("1"),[y,z]=(0,h.useState)(!1),[A,B]=(0,h.useState)("30"),[C,D]=(0,h.useState)(null),E=(0,o.i)(a=>a.error),F=(0,h.useCallback)(async()=>{try{let[b,c]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]);if(!b.ok||!c.ok)throw Error("Failed to load connections");let d=await b.json(),f=await c.json();e((d.connections||[]).filter(b=>b.provider===a));let g=(f.providerStrategies||{})[a]||{};v(g.fallbackStrategy||null),x(null!=g.stickyRoundRobinLimit?String(g.stickyRoundRobinLimit):"1");let h=g.accountScheduler||{};z(!0===h.enabled),B(String(Math.max(1,Math.round((h.sessionAffinityTtlSeconds||1800)/60))))}catch(a){E(a?.message||"Failed to load connections")}finally{g(!1)}},[E,a]),G=async(b,c)=>{try{return await (0,p.T)(a,a=>{let d={...a};return b?d.fallbackStrategy=b:delete d.fallbackStrategy,"round-robin"===b&&""!==c?d.stickyRoundRobinLimit=Number(c)||3:b||delete d.stickyRoundRobinLimit,d}),!0}catch(a){return E(a?.message||"Failed to save provider strategy"),!1}},H=async(b,c)=>{let d=Math.min(1440,Math.max(1,Number.parseInt(c,10)||30));try{return await (0,p.T)(a,a=>({...a,accountScheduler:{...a.accountScheduler||{},enabled:b,sessionAffinityTtlSeconds:60*d}})),!0}catch(a){return E(a?.message||"Failed to save balanced scheduler"),!1}},I=async a=>{await H(y,a)&&B(a)},J=async a=>{await G("round-robin",a)&&x(a)},K=async(a,b)=>{let d=[...c];[d[a],d[b]]=[d[b],d[a]],e(d);try{if((await Promise.all([fetch(`/api/providers/${d[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${d[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){E(a?.message||"Failed to reorder connections"),await F()}},L=async a=>{let b=c.find(b=>b.id===a),d=b?.name?.trim()||b?.email?.trim()||a;D({title:"Delete Connection",message:`Delete connection “${d}”?`,onConfirm:async()=>{D(null);try{let b=await fetch(`/api/providers/${a}`,{method:"DELETE"});if(!b.ok)throw Error(`Failed to delete connection (${b.status})`);e(b=>b.filter(b=>b.id!==a))}catch(a){E("Failed to delete connection")}}})},M=async(a,b)=>{try{let c=await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})});if(!c.ok)throw Error(`Failed to toggle connection (${c.status})`);e(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){E("Failed to toggle connection")}},N=async b=>{try{let c=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:a,...b})});if(!c.ok)throw Error(`Failed to save API key (${c.status})`);await F(),k(!1)}catch(a){E("Failed to save API key")}},O=async a=>{try{let b=await fetch(`/api/providers/${n.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!b.ok)throw Error(`Failed to update connection (${b.status})`);await F(),m(!1)}catch(a){E("Failed to update connection")}};if(f)return(0,d.jsx)(i.Zp,{children:(0,d.jsx)("div",{className:"h-20 animate-pulse bg-black/5 rounded-lg"})});let P=y?"balanced":"round-robin"===u?"round-robin":"fill-first",Q=async a=>{"balanced"===a?await H(!0,A)&&z(!0):"round-robin"===a?(y&&(await H(!1,A),z(!1)),await G("round-robin",w||"1")&&v("round-robin")):(y&&(await H(!1,A),z(!1)),await G("fill-first","")&&v("fill-first"))};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between mb-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-0.5",children:["Manage accounts and selection strategy for ",a]})]}),c.length>1&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-xl border border-border/40 bg-surface-2/40 p-3 text-xs",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsx)("span",{className:"font-semibold text-text-main",children:"Account Strategy"}),(0,d.jsxs)("div",{className:"inline-flex rounded-lg border border-border/60 bg-background/60 p-0.5",children:[(0,d.jsx)("button",{type:"button",onClick:()=>Q("fill-first"),className:`rounded-md px-2 py-1 text-[11px] font-medium transition-all ${"fill-first"===P?"bg-primary text-black font-semibold shadow-xs":"text-text-muted hover:text-text-main"}`,children:"Fill-First"}),(0,d.jsx)("button",{type:"button",onClick:()=>Q("round-robin"),className:`rounded-md px-2 py-1 text-[11px] font-medium transition-all ${"round-robin"===P?"bg-primary text-black font-semibold shadow-xs":"text-text-muted hover:text-text-main"}`,children:"Round Robin"}),(0,d.jsx)("button",{type:"button",onClick:()=>Q("balanced"),className:`rounded-md px-2 py-1 text-[11px] font-medium transition-all ${"balanced"===P?"bg-primary text-black font-semibold shadow-xs":"text-text-muted hover:text-text-main"}`,children:"Balanced"})]})]}),"fill-first"===P&&(0,d.jsx)("p",{className:"max-w-md text-[11px] text-text-muted",children:"Routes all requests to top-priority connection first. Spills over to subsequent accounts on rate limit (429) or quota exhaustion."}),"round-robin"===P&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-[11px] text-text-muted",children:[(0,d.jsx)("span",{children:"Cycles evenly across accounts."}),(0,d.jsxs)("label",{className:"inline-flex items-center gap-1",children:["Sticky limit:",(0,d.jsx)("input",{type:"number",min:1,max:100,value:w,onChange:a=>J(a.target.value),className:"w-12 px-1.5 py-0.5 text-[11px] border border-border rounded bg-background focus:outline-none focus:border-primary"})]})]}),"balanced"===P&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-[11px] text-text-muted",children:[(0,d.jsx)("span",{children:"Least in-flight concurrency with session affinity."}),(0,d.jsxs)("label",{className:"inline-flex items-center gap-1",children:["Affinity:",(0,d.jsx)("input",{"aria-label":"Session affinity minutes",type:"number",min:1,max:1440,value:A,onChange:a=>I(a.target.value),className:"w-14 px-1.5 py-0.5 text-[11px] border border-border rounded bg-background focus:outline-none focus:border-primary"}),"min"]})]})]})]}),0===c.length?(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),(0,d.jsx)(i.$n,{size:"sm",icon:"add",onClick:()=>k(!0),children:"Add Connection"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"flex flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:c.map((a,e)=>(0,d.jsx)(r,{connection:a,isOAuth:b,isFirst:0===e,isLast:e===c.length-1,onMoveUp:()=>K(e,e-1),onMoveDown:()=>K(e,e+1),onToggleActive:b=>M(a.id,b),onEdit:()=>{q(a),m(!0)},onDelete:()=>L(a.id)},a.id))}),(0,d.jsx)("div",{className:"mt-4 flex justify-stretch sm:justify-start",children:(0,d.jsx)(i.$n,{size:"sm",icon:"add",onClick:()=>k(!0),children:"Add"})})]})]}),(0,d.jsx)(s,{isOpen:j,provider:a,onSave:N,onClose:()=>k(!1)}),(0,d.jsx)(i.wI,{isOpen:l,connection:n,onSave:O,onClose:()=>m(!1)}),(0,d.jsx)(i.uo,{isOpen:!!C,onClose:()=>D(null),onConfirm:C?.onConfirm,title:C?.title||"Confirm",message:C?.message,variant:"danger"})]})}q.propTypes={until:n().string.isRequired},r.propTypes={connection:n().shape({id:n().string,name:n().string,email:n().string,displayName:n().string,testStatus:n().string,isActive:n().bool,lastError:n().string,priority:n().number}).isRequired,isOAuth:n().bool.isRequired,isFirst:n().bool.isRequired,isLast:n().bool.isRequired,onMoveUp:n().func.isRequired,onMoveDown:n().func.isRequired,onToggleActive:n().func.isRequired,onEdit:n().func.isRequired,onDelete:n().func.isRequired},s.propTypes={isOpen:n().bool.isRequired,provider:n().string,providerName:n().string,onSave:n().func.isRequired,onClose:n().func.isRequired},t.propTypes={providerId:n().string.isRequired,isOAuth:n().bool};var u=c(91431),v=c(50377),w=c(6297);function x({model:a,fullModel:b,copied:c,onCopy:e,testStatus:f,isCustom:g,isFree:h,onDeleteAlias:i,onTest:j,isTesting:k}){let l="ok"===f?"#22c55e":"error"===f?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group px-3 py-2 rounded-lg border ${"ok"===f?"border-green-500/40":"error"===f?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base",style:l?{color:l}:void 0,children:"ok"===f?"check_circle":"error"===f?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex flex-col gap-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}),a.name&&(0,d.jsx)("span",{className:"text-[9px] text-text-muted/70 italic pl-1",children:a.name})]}),j&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:j,disabled:k,className:`p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-opacity ${k?"opacity-100":"opacity-0 group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:k?{animation:"spin 1s linear infinite"}:void 0,children:k?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:k?"Testing...":"Test"})]}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a.id}`),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.id}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a.id}`?"Copied!":"Copy"})]}),h&&(0,d.jsx)("span",{className:"text-[10px] font-bold text-green-500 bg-green-500/10 px-1.5 py-0.5 rounded",children:"FREE"}),g&&(0,d.jsx)("button",{onClick:i,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity ml-auto",title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})})]})})}function y({isOpen:a,onSave:b,onClose:c}){let[e,f]=(0,h.useState)(""),g=()=>{e.trim()&&(b(e.trim()),f(""))};return(0,d.jsx)(i.aF,{isOpen:a,title:"Add Custom Model",onClose:c,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:e,onChange:a=>f(a.target.value),onKeyDown:a=>"Enter"===a.key&&g(),placeholder:"e.g. tts-1-hd",autoFocus:!0})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(i.$n,{onClick:g,fullWidth:!0,disabled:!e.trim(),children:"Add"}),(0,d.jsx)(i.$n,{onClick:c,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}function z({providerId:a,kindFilter:b,providerAliasOverride:c}){let{copied:e,copy:f}=(0,v.C)(),[g,j]=(0,h.useState)({}),[l,m]=(0,h.useState)([]),[n,o]=(0,h.useState)({}),[p,q]=(0,h.useState)(null),[r,s]=(0,h.useState)(""),[t,A]=(0,h.useState)(!1),[B,C]=(0,h.useState)([]),D=c||(0,k.wG)(a),E=b||"llm",F=(0,h.useCallback)(async()=>{try{let[b,c,d]=await Promise.all([fetch("/api/models/alias"),fetch("/api/providers",{cache:"no-store"}),fetch("/api/models/custom",{cache:"no-store"})]),e=await b.json(),f=await c.json(),g=await d.json();b.ok&&j(e.aliases||{}),c.ok&&C((f.connections||[]).filter(b=>b.provider===a)),d.ok&&m(g.models||[])}catch(a){(0,w.s)("ModelsCard fetch error:",a)}},[a]),G=async(a,b)=>{let c=`${D}/${a}`;try{(await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:c,alias:b})})).ok&&await F()}catch(a){(0,w.s)("set alias error:",a)}},H=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await F()}catch(a){(0,w.s)("delete alias error:",a)}},I=async a=>{try{(await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:D,id:a,type:E})})).ok&&(await F(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(a){(0,w.s)("add custom model error:",a)}},J=async a=>{try{let b=new URLSearchParams({providerAlias:D,id:a,type:E});(await fetch(`/api/models/custom?${b}`,{method:"DELETE"})).ok&&(await F(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(a){(0,w.s)("delete custom model error:",a)}},K=async a=>{if(!p){q(a);try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${D}/${a}`,kind:b})}),d=await c.json();o(b=>({...b,[a]:d.ok?"ok":"error"})),s(d.ok?"":d.error||"Model not reachable")}catch{o(b=>({...b,[a]:"error"})),s("Network error")}finally{q(null)}}},L=(0,u.KC)(a),M=b?L.filter(a=>a.kinds?a.kinds.includes(b):(0,u.CP)(a,"llm")===b):L,N=l.filter(a=>a.providerAlias===D&&(0,u.CP)(a,"llm")===E&&!M.some(b=>b.id===a.id));return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,d.jsxs)("h2",{className:"text-lg font-semibold",children:["Models",b?` — ${b.toUpperCase()}`:""]})}),r&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:r}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[M.map(a=>{let b=`${D}/${a.id}`,c=Object.entries(g).find(([,a])=>a===b)?.[0];return(0,d.jsx)(x,{model:a,fullModel:`${D}/${a.id}`,alias:c,copied:e,onCopy:f,onSetAlias:b=>G(a.id,b),onDeleteAlias:()=>H(c),testStatus:n[a.id],onTest:B.length>0?()=>K(a.id):void 0,isTesting:p===a.id,isFree:a.isFree},a.id)}),N.map(a=>(0,d.jsx)(x,{model:{id:a.id,name:a.name},fullModel:`${D}/${a.id}`,copied:e,onCopy:f,onSetAlias:()=>{},onDeleteAlias:()=>J(a.id),testStatus:n[a.id],onTest:B.length>0?()=>K(a.id):void 0,isTesting:p===a.id,isCustom:!0},`${a.id}-${a.type}`)),(0,d.jsxs)("button",{onClick:()=>A(!0),className:"flex items-center gap-1.5 px-3 py-2 rounded-lg border border-dashed border-black/15 dark:border-white/15 text-xs text-text-muted hover:text-primary hover:border-primary/40 transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]})]})]}),(0,d.jsx)(y,{isOpen:t,onSave:async a=>{await I(a),A(!1)},onClose:()=>A(!1)})]})}function A({label:a,htmlFor:b,children:c}){return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5 sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)(b?"label":"span",{htmlFor:b,className:"w-full text-xs font-medium text-text-muted sm:w-20 sm:shrink-0",children:a}),(0,d.jsx)("div",{className:"w-full min-w-0 flex-1",children:c})]})}x.propTypes={model:n().shape({id:n().string.isRequired}).isRequired,fullModel:n().string.isRequired,copied:n().string,onCopy:n().func.isRequired,testStatus:n().oneOf(["ok","error"]),isCustom:n().bool,isFree:n().bool,onDeleteAlias:n().func,onTest:n().func,isTesting:n().bool},y.propTypes={isOpen:n().bool.isRequired,onSave:n().func.isRequired,onClose:n().func.isRequired},z.propTypes={providerId:n().string.isRequired,kindFilter:n().string,providerAliasOverride:n().string};let B={webSearch:{inputLabel:"Query",inputPlaceholder:"What is the latest news about AI?",defaultInput:"What is the latest news about AI?",bodyKey:"query",defaultResponse:`{
|
|
1
|
+
(()=>{var a={};a.id=182,a.ids=[182],a.modules={3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4120:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>P});var d=c(48249),e=c(19099),f=c(2116),g=c.n(f),h=c(67484),i=c(50412),j=c(72738),k=c(92592),l=c(74875),m=c(49885),n=c.n(m),o=c(41371),p=c(22588);function q({until:a}){let[b,c]=(0,h.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function r({connection:a,isOAuth:b,isFirst:c,isLast:e,onMoveUp:f,onMoveDown:g,onToggleActive:j,onEdit:k,onDelete:m}){let[n,o]=(0,h.useState)(!1),p=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,s=p?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",t="",u=a.providerSpecificData?.connectionProxyUrl;if(u)try{let a=new URL(u);t=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{t=u}let v=a.providerSpecificData?.connectionNoProxy||"",w=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(Boolean).sort()[0]||null,x="unavailable"!==a.testStatus||n?a.testStatus:"active",y=b?a.name||a.email||a.displayName||"OAuth Account":a.name;return(0,d.jsxs)("div",{className:`group flex flex-col gap-3 p-2 rounded-lg sm:flex-row sm:items-center sm:justify-between hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex w-full min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsx)("button",{onClick:f,disabled:c,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",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:g,disabled:e,className:`p-0.5 rounded ${e?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",children:b?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:y}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-1",children:[(0,d.jsx)(i.Ex,{variant:(0,l.g)(a.isActive,x),size:"sm",dot:!0,children:!1===a.isActive?"disabled":x||"Unknown"}),p&&(0,d.jsx)(i.Ex,{variant:"success",size:"sm",children:"Proxy"}),n&&!1!==a.isActive&&(0,d.jsx)(q,{until:w}),a.lastError&&!1!==a.isActive&&(0,d.jsx)("span",{className:"text-xs text-red-500 truncate max-w-[300px]",title:a.lastError,children:a.lastError}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]})]}),p&&(0,d.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-[11px] text-text-muted truncate max-w-[420px]",title:s,children:s}),t&&(0,d.jsx)("code",{className:"text-[10px] font-mono bg-black/5 dark:bg-white/5 px-1 py-0.5 rounded text-text-muted",children:t}),v&&(0,d.jsxs)("span",{className:"text-[11px] text-text-muted truncate max-w-[320px]",title:v,children:["no_proxy: ",v]})]})]})]}),(0,d.jsxs)("div",{className:"flex w-full flex-wrap items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,d.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(0,d.jsxs)("button",{onClick:k,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:m,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-red-500/10 text-red-500",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,d.jsx)(i.lM,{size:"sm",checked:a.isActive??!0,onChange:j,title:a.isActive??!0?"Disable":"Enable"})]})]})}function s({isOpen:a,provider:b,providerName:c,onSave:e,onClose:f}){let[g,j]=(0,h.useState)({name:"",apiKey:"",priority:1}),[k,l]=(0,h.useState)(!1),[m,n]=(0,h.useState)(null),[o,p]=(0,h.useState)(!1),q=g.name.trim().length>0,r=g.apiKey.trim().length>0,t=async()=>{let a=g.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})}),d=await c.json();n(d.valid?"success":"failed")}catch{n("failed")}finally{l(!1)}}},u=async()=>{let a=g.name.trim(),c=g.apiKey.trim();if(b&&a&&c){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})});d=!!(await a.json()).valid,n(d?"success":"failed")}catch{n("failed")}finally{l(!1)}await e({name:a,apiKey:c,priority:g.priority,testStatus:d?"active":"unknown"})}finally{p(!1)}}};return b?(0,d.jsx)(i.aF,{isOpen:a,title:`Add ${c||b} API Key`,onClose:f,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Name"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:g.name,onChange:a=>j({...g,name:a.target.value}),placeholder:"Production Key"})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"API Key"}),(0,d.jsx)("input",{type:"password",autoComplete:"off",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:g.apiKey,onChange:a=>j({...g,apiKey:a.target.value})})]}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(i.$n,{onClick:t,disabled:!r||k||o,variant:"secondary",children:k?"Checking...":"Check"})})]}),m&&(0,d.jsx)(i.Ex,{variant:"success"===m?"success":"error",children:"success"===m?"Valid":"Invalid"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Priority"}),(0,d.jsx)("input",{type:"number",min:1,className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:g.priority,onChange:a=>j({...g,priority:Number.parseInt(a.target.value)||1})})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(i.$n,{onClick:u,fullWidth:!0,disabled:!q||!r||o,children:o?"Saving...":"Save"}),(0,d.jsx)(i.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function t({providerId:a,isOAuth:b}){let[c,e]=(0,h.useState)([]),[f,g]=(0,h.useState)(!0),[j,k]=(0,h.useState)(!1),[l,m]=(0,h.useState)(!1),[n,q]=(0,h.useState)(null),[u,v]=(0,h.useState)(null),[w,x]=(0,h.useState)("1"),[y,z]=(0,h.useState)(!1),[A,B]=(0,h.useState)("30"),[C,D]=(0,h.useState)(null),E=(0,o.i)(a=>a.error),F=(0,h.useCallback)(async()=>{try{let[b,c]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]);if(!b.ok||!c.ok)throw Error("Failed to load connections");let d=await b.json(),f=await c.json();e((d.connections||[]).filter(b=>b.provider===a));let g=(f.providerStrategies||{})[a]||{};v(g.fallbackStrategy||null),x(null!=g.stickyRoundRobinLimit?String(g.stickyRoundRobinLimit):"1");let h=g.accountScheduler||{};z(!0===h.enabled),B(String(Math.max(1,Math.round((h.sessionAffinityTtlSeconds||1800)/60))))}catch(a){E(a?.message||"Failed to load connections")}finally{g(!1)}},[E,a]),G=async(b,c)=>{try{return await (0,p.T)(a,a=>{let d={...a};return b?d.fallbackStrategy=b:delete d.fallbackStrategy,"round-robin"===b&&""!==c?d.stickyRoundRobinLimit=Number(c)||3:b||delete d.stickyRoundRobinLimit,d}),!0}catch(a){return E(a?.message||"Failed to save provider strategy"),!1}},H=async(b,c)=>{let d=Math.min(1440,Math.max(1,Number.parseInt(c,10)||30));try{return await (0,p.T)(a,a=>({...a,accountScheduler:{...a.accountScheduler||{},enabled:b,sessionAffinityTtlSeconds:60*d}})),!0}catch(a){return E(a?.message||"Failed to save balanced scheduler"),!1}},I=async a=>{await H(y,a)&&B(a)},J=async a=>{await G("round-robin",a)&&x(a)},K=async(a,b)=>{let d=[...c];[d[a],d[b]]=[d[b],d[a]],e(d);try{if((await Promise.all([fetch(`/api/providers/${d[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${d[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){E(a?.message||"Failed to reorder connections"),await F()}},L=async a=>{let b=c.find(b=>b.id===a),d=b?.name?.trim()||b?.email?.trim()||a;D({title:"Delete Connection",message:`Delete connection “${d}”?`,onConfirm:async()=>{D(null);try{let b=await fetch(`/api/providers/${a}`,{method:"DELETE"});if(!b.ok)throw Error(`Failed to delete connection (${b.status})`);e(b=>b.filter(b=>b.id!==a))}catch(a){E("Failed to delete connection")}}})},M=async(a,b)=>{try{let c=await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})});if(!c.ok)throw Error(`Failed to toggle connection (${c.status})`);e(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){E("Failed to toggle connection")}},N=async b=>{try{let c=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:a,...b})});if(!c.ok)throw Error(`Failed to save API key (${c.status})`);await F(),k(!1)}catch(a){E("Failed to save API key")}},O=async a=>{try{let b=await fetch(`/api/providers/${n.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!b.ok)throw Error(`Failed to update connection (${b.status})`);await F(),m(!1)}catch(a){E("Failed to update connection")}};if(f)return(0,d.jsx)(i.Zp,{children:(0,d.jsx)("div",{className:"h-20 animate-pulse bg-black/5 rounded-lg"})});let P=y?"balanced":"round-robin"===u?"round-robin":"fill-first",Q=async a=>{"balanced"===a?await H(!0,A)&&z(!0):"round-robin"===a?(y&&(await H(!1,A),z(!1)),await G("round-robin",w||"1")&&v("round-robin")):(y&&(await H(!1,A),z(!1)),await G("fill-first","")&&v("fill-first"))};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between mb-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("p",{className:"text-xs text-text-muted mt-0.5",children:["Manage accounts and selection strategy for ",a]})]}),c.length>1&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 rounded-xl border border-border/40 bg-surface-2/40 p-3 text-xs",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsx)("span",{className:"font-semibold text-text-main",children:"Account Strategy"}),(0,d.jsxs)("div",{className:"inline-flex rounded-lg border border-border/60 bg-background/60 p-0.5",children:[(0,d.jsx)("button",{type:"button",onClick:()=>Q("fill-first"),className:`rounded-md px-2 py-1 text-[11px] font-medium transition-all ${"fill-first"===P?"bg-primary text-black font-semibold shadow-xs":"text-text-muted hover:text-text-main"}`,children:"Fill-First"}),(0,d.jsx)("button",{type:"button",onClick:()=>Q("round-robin"),className:`rounded-md px-2 py-1 text-[11px] font-medium transition-all ${"round-robin"===P?"bg-primary text-black font-semibold shadow-xs":"text-text-muted hover:text-text-main"}`,children:"Round Robin"}),(0,d.jsx)("button",{type:"button",onClick:()=>Q("balanced"),className:`rounded-md px-2 py-1 text-[11px] font-medium transition-all ${"balanced"===P?"bg-primary text-black font-semibold shadow-xs":"text-text-muted hover:text-text-main"}`,children:"Balanced"})]})]}),"fill-first"===P&&(0,d.jsx)("p",{className:"max-w-md text-[11px] text-text-muted",children:"Routes all requests to top-priority connection first. Spills over to subsequent accounts on rate limit (429) or quota exhaustion."}),"round-robin"===P&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-[11px] text-text-muted",children:[(0,d.jsx)("span",{children:"Cycles evenly across accounts."}),(0,d.jsxs)("label",{className:"inline-flex items-center gap-1",children:["Sticky limit:",(0,d.jsx)("input",{type:"number",min:1,max:100,value:w,onChange:a=>J(a.target.value),className:"w-12 px-1.5 py-0.5 text-[11px] border border-border rounded bg-background focus:outline-none focus:border-primary"})]})]}),"balanced"===P&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-[11px] text-text-muted",children:[(0,d.jsx)("span",{children:"Least in-flight concurrency with session affinity."}),(0,d.jsxs)("label",{className:"inline-flex items-center gap-1",children:["Affinity:",(0,d.jsx)("input",{"aria-label":"Session affinity minutes",type:"number",min:1,max:1440,value:A,onChange:a=>I(a.target.value),className:"w-14 px-1.5 py-0.5 text-[11px] border border-border rounded bg-background focus:outline-none focus:border-primary"}),"min"]})]})]})]}),0===c.length?(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),(0,d.jsx)(i.$n,{size:"sm",icon:"add",onClick:()=>k(!0),children:"Add Connection"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"flex flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:c.map((a,e)=>(0,d.jsx)(r,{connection:a,isOAuth:b,isFirst:0===e,isLast:e===c.length-1,onMoveUp:()=>K(e,e-1),onMoveDown:()=>K(e,e+1),onToggleActive:b=>M(a.id,b),onEdit:()=>{q(a),m(!0)},onDelete:()=>L(a.id)},a.id))}),(0,d.jsx)("div",{className:"mt-4 flex justify-stretch sm:justify-start",children:(0,d.jsx)(i.$n,{size:"sm",icon:"add",onClick:()=>k(!0),children:"Add"})})]})]}),(0,d.jsx)(s,{isOpen:j,provider:a,onSave:N,onClose:()=>k(!1)}),(0,d.jsx)(i.wI,{isOpen:l,connection:n,onSave:O,onClose:()=>m(!1)}),(0,d.jsx)(i.uo,{isOpen:!!C,onClose:()=>D(null),onConfirm:C?.onConfirm,title:C?.title||"Confirm",message:C?.message,variant:"danger"})]})}q.propTypes={until:n().string.isRequired},r.propTypes={connection:n().shape({id:n().string,name:n().string,email:n().string,displayName:n().string,testStatus:n().string,isActive:n().bool,lastError:n().string,priority:n().number}).isRequired,isOAuth:n().bool.isRequired,isFirst:n().bool.isRequired,isLast:n().bool.isRequired,onMoveUp:n().func.isRequired,onMoveDown:n().func.isRequired,onToggleActive:n().func.isRequired,onEdit:n().func.isRequired,onDelete:n().func.isRequired},s.propTypes={isOpen:n().bool.isRequired,provider:n().string,providerName:n().string,onSave:n().func.isRequired,onClose:n().func.isRequired},t.propTypes={providerId:n().string.isRequired,isOAuth:n().bool};var u=c(91431),v=c(50377),w=c(6297),x=c(54918);function y({model:a,fullModel:b,copied:c,onCopy:e,testStatus:f,isCustom:g,isFree:h,onDeleteAlias:i,onTest:j,isTesting:k}){let l="ok"===f?"#22c55e":"error"===f?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group px-3 py-2 rounded-lg border ${"ok"===f?"border-green-500/40":"error"===f?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base",style:l?{color:l}:void 0,children:"ok"===f?"check_circle":"error"===f?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex flex-col gap-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}),a.name&&(0,d.jsx)("span",{className:"text-[9px] text-text-muted/70 italic pl-1",children:a.name})]}),j&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:j,disabled:k,className:`p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-opacity ${k?"opacity-100":"opacity-0 group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:k?{animation:"spin 1s linear infinite"}:void 0,children:k?"progress_activity":"science"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:k?"Testing...":"Test"})]}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a.id}`),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.id}`?"check":"content_copy"})}),(0,d.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c===`model-${a.id}`?"Copied!":"Copy"})]}),h&&(0,d.jsx)("span",{className:"text-[10px] font-bold text-green-500 bg-green-500/10 px-1.5 py-0.5 rounded",children:"FREE"}),g&&(0,d.jsx)("button",{onClick:i,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity ml-auto",title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})})]})})}function z({isOpen:a,onSave:b,onClose:c}){let[e,f]=(0,h.useState)(""),g=()=>{e.trim()&&(b(e.trim()),f(""))};return(0,d.jsx)(i.aF,{isOpen:a,title:"Add Custom Model",onClose:c,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:e,onChange:a=>f(a.target.value),onKeyDown:a=>"Enter"===a.key&&g(),placeholder:"e.g. tts-1-hd",autoFocus:!0})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(i.$n,{onClick:g,fullWidth:!0,disabled:!e.trim(),children:"Add"}),(0,d.jsx)(i.$n,{onClick:c,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}function A({providerId:a,kindFilter:b,providerAliasOverride:c}){let{copied:e,copy:f}=(0,v.C)(),[g,j]=(0,h.useState)({}),[l,m]=(0,h.useState)([]),[n,o]=(0,h.useState)({}),[p,q]=(0,h.useState)(null),[r,s]=(0,h.useState)(""),[t,B]=(0,h.useState)(!1),[C,D]=(0,h.useState)([]),E=c||(0,k.wG)(a),F=b||"llm",G=(0,h.useCallback)(async()=>{try{let[b,c,d]=await Promise.all([fetch("/api/models/alias"),fetch("/api/providers",{cache:"no-store"}),fetch("/api/models/custom",{cache:"no-store"})]),e=await b.json(),f=await c.json(),g=await d.json();b.ok&&j(e.aliases||{}),c.ok&&D((f.connections||[]).filter(b=>b.provider===a)),d.ok&&m(g.models||[])}catch(a){(0,w.s)("ModelsCard fetch error:",a)}},[a]),H=async(a,b)=>{let c=`${E}/${a}`;try{await (0,x.x)("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:c,alias:b})}),await G()}catch(a){(0,w.s)("set alias error:",a)}},I=async a=>{try{await (0,x.x)(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"}),await G()}catch(a){(0,w.s)("delete alias error:",a)}},J=async a=>{try{await (0,x.x)("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:E,id:a,type:F})}),await G(),window.dispatchEvent(new CustomEvent("customModelChanged"))}catch(a){(0,w.s)("add custom model error:",a)}},K=async a=>{try{let b=new URLSearchParams({providerAlias:E,id:a,type:F});await (0,x.x)(`/api/models/custom?${b}`,{method:"DELETE"}),await G(),window.dispatchEvent(new CustomEvent("customModelChanged"))}catch(a){(0,w.s)("delete custom model error:",a)}},L=async a=>{if(!p){q(a);try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${E}/${a}`,kind:b})}),d=await c.json();o(b=>({...b,[a]:d.ok?"ok":"error"})),s(d.ok?"":d.error||"Model not reachable")}catch{o(b=>({...b,[a]:"error"})),s("Network error")}finally{q(null)}}},M=(0,u.KC)(a),N=b?M.filter(a=>a.kinds?a.kinds.includes(b):(0,u.CP)(a,"llm")===b):M,O=l.filter(a=>a.providerAlias===E&&(0,u.CP)(a,"llm")===F&&!N.some(b=>b.id===a.id));return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,d.jsxs)("h2",{className:"text-lg font-semibold",children:["Models",b?` — ${b.toUpperCase()}`:""]})}),r&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:r}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[N.map(a=>{let b=`${E}/${a.id}`,c=Object.entries(g).find(([,a])=>a===b)?.[0];return(0,d.jsx)(y,{model:a,fullModel:`${E}/${a.id}`,alias:c,copied:e,onCopy:f,onSetAlias:b=>H(a.id,b),onDeleteAlias:()=>I(c),testStatus:n[a.id],onTest:C.length>0?()=>L(a.id):void 0,isTesting:p===a.id,isFree:a.isFree},a.id)}),O.map(a=>(0,d.jsx)(y,{model:{id:a.id,name:a.name},fullModel:`${E}/${a.id}`,copied:e,onCopy:f,onSetAlias:()=>{},onDeleteAlias:()=>K(a.id),testStatus:n[a.id],onTest:C.length>0?()=>L(a.id):void 0,isTesting:p===a.id,isCustom:!0},`${a.id}-${a.type}`)),(0,d.jsxs)("button",{onClick:()=>B(!0),className:"flex items-center gap-1.5 px-3 py-2 rounded-lg border border-dashed border-black/15 dark:border-white/15 text-xs text-text-muted hover:text-primary hover:border-primary/40 transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]})]})]}),(0,d.jsx)(z,{isOpen:t,onSave:async a=>{await J(a),B(!1)},onClose:()=>B(!1)})]})}function B({label:a,htmlFor:b,children:c}){return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5 sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)(b?"label":"span",{htmlFor:b,className:"w-full text-xs font-medium text-text-muted sm:w-20 sm:shrink-0",children:a}),(0,d.jsx)("div",{className:"w-full min-w-0 flex-1",children:c})]})}y.propTypes={model:n().shape({id:n().string.isRequired}).isRequired,fullModel:n().string.isRequired,copied:n().string,onCopy:n().func.isRequired,testStatus:n().oneOf(["ok","error"]),isCustom:n().bool,isFree:n().bool,onDeleteAlias:n().func,onTest:n().func,isTesting:n().bool},z.propTypes={isOpen:n().bool.isRequired,onSave:n().func.isRequired,onClose:n().func.isRequired},A.propTypes={providerId:n().string.isRequired,kindFilter:n().string,providerAliasOverride:n().string};let C={webSearch:{inputLabel:"Query",inputPlaceholder:"What is the latest news about AI?",defaultInput:"What is the latest news about AI?",bodyKey:"query",defaultResponse:`{
|
|
2
2
|
"results": [
|
|
3
3
|
{ "title": "...", "url": "...", "snippet": "..." }
|
|
4
4
|
]
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"data": [
|
|
22
22
|
{ "url": "...", "format": "mp3" }
|
|
23
23
|
]
|
|
24
|
-
}`}},
|
|
24
|
+
}`}},D=`{
|
|
25
25
|
"object": "list",
|
|
26
26
|
"data": [{
|
|
27
27
|
"object": "embedding",
|
|
@@ -30,30 +30,30 @@
|
|
|
30
30
|
}],
|
|
31
31
|
"model": "...",
|
|
32
32
|
"usage": { "prompt_tokens": 9, "total_tokens": 9 }
|
|
33
|
-
}`;function
|
|
33
|
+
}`;function E({providerId:a,customAlias:b}){let c=(0,k.gC)(a),e=c?b||a:(0,k.wG)(a),f=c?[]:(0,u.KC)(a).filter(a=>"embedding"===(0,u.CP)(a)),[g,j]=(0,h.useState)(f[0]?.id??""),[l,m]=(0,h.useState)("The quick brown fox jumps over the lazy dog"),[n,o]=(0,h.useState)(""),[p,q]=(0,h.useState)(""),[r,s]=(0,h.useState)(""),[t,w]=(0,h.useState)(null),[x,y]=(0,h.useState)(!1),[z,A]=(0,h.useState)(""),{copied:C,copy:F}=(0,v.C)(),{copied:G,copy:H}=(0,v.C)(),I=g?`${e}/${g}`:"",J=()=>{let a={model:I,input:l.trim()},b=Number(n);return n&&Number.isFinite(b)&&b>0&&(a.dimensions=b),a},K=`curl -X POST ${r}/v1/embeddings \\
|
|
34
34
|
-H "Content-Type: application/json" \\
|
|
35
35
|
-H "Authorization: Bearer ${p||"YOUR_KEY"}" \\
|
|
36
|
-
-d '${JSON.stringify(J())}'`,L=async()=>{if(!l.trim()||!I||!p.trim())return;y(!0),
|
|
36
|
+
-d '${JSON.stringify(J())}'`,L=async()=>{if(!l.trim()||!I||!p.trim())return;y(!0),A(""),w(null);let a=Date.now();try{let b={"Content-Type":"application/json"};p&&(b.Authorization=`Bearer ${p}`);let c=await fetch("/api/v1/embeddings",{method:"POST",headers:b,body:JSON.stringify(J())}),d=Date.now()-a,e=await c.json();if(!c.ok)return void A(e?.error?.message||e?.error||`HTTP ${c.status}`);w({data:e,latencyMs:d})}catch(a){A(a.message||"Network error")}finally{y(!1)}},M=t?JSON.stringify(t.data,null,2):"";return(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,d.jsx)(B,{label:"Model",htmlFor:"embedding-example-model",children:c?(0,d.jsx)("input",{id:"embedding-example-model",value:g,onChange:a=>j(a.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"}):(0,d.jsx)("select",{id:"embedding-example-model",value:g,onChange:a=>j(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:f.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),(0,d.jsx)(B,{label:"Endpoint",htmlFor:"embedding-example-endpoint",children:(0,d.jsx)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:(0,d.jsx)("input",{id:"embedding-example-endpoint",value:r,onChange:a=>s(a.target.value),className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono",placeholder:"http://127.0.0.1:20128"})})}),(0,d.jsx)(B,{label:"API Key",htmlFor:"embedding-example-key",children:(0,d.jsx)("input",{id:"embedding-example-key",type:"password",autoComplete:"off",value:p,onChange:a=>q(a.target.value),placeholder:"Paste a Switchboard client key secret (sk-...)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),(0,d.jsx)(B,{label:"Input",htmlFor:"embedding-example-input",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{id:"embedding-example-input",value:l,onChange:a=>m(a.target.value),className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),l&&(0,d.jsx)("button",{type:"button",onClick:()=>m(""),"aria-label":"Clear input",className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"close"})})]})}),(0,d.jsx)(B,{label:"Dimensions",htmlFor:"embedding-example-dimensions",children:(0,d.jsx)("input",{id:"embedding-example-dimensions",type:"number",min:"1",value:n,onChange:a=>o(a.target.value),placeholder:"optional, e.g. 512, 1024 (leave empty for default)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>F(K),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:C?"check":"content_copy"}),C?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:L,disabled:x||!l.trim()||!I||!p.trim(),className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-on-primary text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:x?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),x?"Running...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:K})]}),z&&(0,d.jsx)("p",{role:"alert",className:"text-xs text-red-500 break-words",children:z}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",t&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",t.latencyMs,"ms"]})]}),t&&(0,d.jsxs)("button",{onClick:()=>H(M),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:G?"check":"content_copy"}),G?"Copied":"Copy"]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:(a=>{if(!a)return D;let b=JSON.parse(JSON.stringify(a));return(b.data||[]).forEach(a=>{Array.isArray(a.embedding)&&a.embedding.length>4&&(a.embedding=[...a.embedding.slice(0,4).map(a=>"number"==typeof a&&Number.isFinite(a)?parseFloat(a.toFixed(6)):a),`... (${a.embedding.length} dims)`])}),JSON.stringify(b,null,2)})(t?.data)})]})]})]})}let F={"google-tts":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"hardcoded"},openai:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"openai-tts-models",voiceKey:"openai-tts-voices",voicesPerModel:!0},openrouter:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"openrouter-tts-models",voiceKey:"openrouter-tts-voices",voicesPerModel:!0},elevenlabs:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",modelKey:"elevenlabs-tts-models",apiEndpoint:"/api/media-providers/tts/elevenlabs/voices"},"edge-tts":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language"},"local-device":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language"},nvidia:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},hyperbolic:{hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"config"},deepgram:{hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/deepgram/voices"},huggingface:{hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"config"},cartesia:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},playht:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},coqui:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},tortoise:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},inworld:{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",modelKey:"inworld-tts-models",apiEndpoint:"/api/media-providers/tts/inworld/voices"},qwen:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},minimax:{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/minimax/voices",defaultVoiceId:"English_expressive_narrator"},"minimax-cn":{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/minimax/voices?provider=minimax-cn",defaultVoiceId:"English_expressive_narrator"},gemini:{hasLanguageDropdown:!1,hasLanguageHint:!0,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"gemini-tts-models",voiceKey:"gemini-tts-voices",voicesPerModel:!0}};c(5465);var G=c(66791);let H=`// Audio will appear here after running.
|
|
37
37
|
// Example JSON response (response_format=json):
|
|
38
38
|
{
|
|
39
39
|
"format": "mp3",
|
|
40
40
|
"audio": "//NExAANaAIIAUAAANNNNNNNN..." // base64 encoded MP3
|
|
41
|
-
}`;function
|
|
41
|
+
}`;function I({providerId:a}){let b,c,e=(0,k.wG)(a),f=F[a]||F["edge-tts"],[g,j]=(0,h.useState)(f.defaultVoiceId||""),[l,m]=(0,h.useState)(""),[n,o]=(0,h.useState)(f.defaultVoiceId||""),[p,q]=(0,h.useState)([]),[r,s]=(0,h.useState)(""),[t,w]=(0,h.useState)(()=>{let b=k.Q2[a]?.ttsConfig?.models;if(b?.length)return b[0].id;if(f.hasModelSelector&&f.modelKey){let a=(0,u.KC)(f.modelKey);return a?.[0]?.id||""}return""}),[x,y]=(0,h.useState)("Hello, this is a text to speech test."),[z,A]=(0,h.useState)(""),[C,D]=(0,h.useState)(""),[E,J]=(0,h.useState)("mp3"),[K,L]=(0,h.useState)(""),[M,N]=(0,h.useState)(null),[O,P]=(0,h.useState)(!1),[Q,R]=(0,h.useState)(""),[S,T]=(0,h.useState)(null),{copied:U,copy:V}=(0,v.C)(),[W,X]=(0,h.useState)(!1),[Y,Z]=(0,h.useState)([]),[$,_]=(0,h.useState)(!1),[aa,ab]=(0,h.useState)(""),[ac,ad]=(0,h.useState)(""),[ae,af]=(0,h.useState)({}),[ag,ah]=(0,h.useState)(""),ai=async()=>{if(X(!0),ab(""),ad(""),!Y.length){_(!0);try{if("hardcoded"===f.voiceSource){let b=f.voiceKey||a,c=(0,u.KC)(b).filter(a=>"tts"===(0,u.CP)(a)),d={};for(let a of c)d[a.id]||(d[a.id]={code:a.id,name:a.name,voices:[{id:a.id,name:a.name}]});af(d),Z(Object.values(d).sort((a,b)=>a.name.localeCompare(b.name)))}else{let b=f.apiEndpoint?f.apiEndpoint:`/api/media-providers/tts/voices?provider=${"local-device"===a?"local-device":"edge-tts"}`,c=await fetch(b),d=await c.json();if(d.error)return void ad(d.error);Z(d.languages||[]),af(d.byLang||{})}}catch(a){ad(a.message)}finally{_(!1)}}},aj=aa?Y.filter(a=>a.name.toLowerCase().includes(aa.toLowerCase())||a.code.toLowerCase().includes(aa.toLowerCase())):Y,ak=f.hasVoiceIdInput&&n||g,al=f.hasModelSelector&&t&&ak?`${e}/${t}/${ak}`:f.hasModelSelector&&t?`${e}/${t}`:ak?`${e}/${ak}`:"",am=(b={model:al,input:x},f.hasLanguageHint&&ag&&(b.language=ag),b),an=`curl -X POST ${C}/v1/audio/speech${"json"===E?"?response_format=json":""} \\
|
|
42
42
|
-H "Content-Type: application/json" \\
|
|
43
43
|
-H "Authorization: Bearer ${z||"YOUR_KEY"}" \\
|
|
44
44
|
-d '${JSON.stringify(am)}' \\
|
|
45
|
-
${"json"===I?"":"--output speech.mp3"}`,ao=async()=>{if(!x.trim()||!al||!z.trim())return;P(!0),R(""),L(""),N(null);let a=Date.now();try{let b={"Content-Type":"application/json"};z&&(b.Authorization=`Bearer ${z}`);let c=`/api/v1/audio/speech${"json"===I?"?response_format=json":""}`,d=await fetch(c,{method:"POST",headers:b,body:JSON.stringify({...am,input:x.trim()})});if(T(Date.now()-a),!d.ok){let a=await d.json().catch(()=>({}));R(a?.error?.message||a?.error||`HTTP ${d.status}`);return}if("json"===I){let a=await d.json();N(a);let b=await fetch(`data:audio/mp3;base64,${a.audio}`).then(a=>a.blob());L(URL.createObjectURL(b))}else{let a=await d.blob();L(URL.createObjectURL(a))}}catch(a){R(a.message||"Network error")}finally{P(!1)}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,d.jsx)(A,{label:"Endpoint",children:(0,d.jsx)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[C,"/v1/audio/speech"]})})}),(0,d.jsx)(A,{label:"API Key",htmlFor:"tts-example-key",children:(0,d.jsx)("input",{id:"tts-example-key",type:"password",autoComplete:"off",value:z,onChange:a=>B(a.target.value),placeholder:"Paste a Switchboard client key secret (sk-...)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),f.hasModelSelector&&(f.modelKey||(0,u.KC)(a).some(a=>"tts"===(0,u.CP)(a)))&&(0,d.jsx)(A,{label:"Model",htmlFor:"tts-example-model",children:(0,d.jsx)("select",{id:"tts-example-model",value:t,onChange:a=>w(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:((c=(0,u.KC)(a).filter(a=>"tts"===(0,u.CP)(a))).length?c:(0,u.KC)(f.modelKey)||[]).map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),f.hasLanguageHint&&(0,d.jsx)(A,{label:"Language",htmlFor:"tts-example-language-hint",children:(0,d.jsxs)("select",{id:"tts-example-language-hint",value:ag,onChange:a=>ah(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"",children:"Auto-detect"}),F.I.map(a=>(0,d.jsx)("option",{value:a.name,children:a.name},a.id))]})}),f.hasBrowseButton&&(0,d.jsx)(A,{label:"Language",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsx)("button",{onClick:ai,"aria-haspopup":"dialog","aria-expanded":W,"aria-label":r?`Language: ${Y.find(a=>a.code===r)?.name||r}. Change language`:"Select language",className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm border border-border rounded-lg bg-background font-mono truncate text-left hover:border-primary/40 transition-colors",children:r?(0,d.jsx)("span",{className:"text-text-main",children:Y.find(a=>a.code===r)?.name||r}):(0,d.jsx)("span",{className:"text-text-muted",children:"No language selected"})}),(0,d.jsxs)("button",{onClick:ai,className:"flex w-full items-center justify-center gap-1 text-xs px-2.5 py-1.5 rounded-lg border border-border text-text-muted hover:text-primary hover:border-primary/40 transition-colors sm:w-auto sm:shrink-0",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"language"}),"Select language"]})]})}),p.length>0&&(0,d.jsx)(A,{label:"Voice",children:(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:p.map(a=>(0,d.jsxs)("button",{onClick:()=>{j(a.id),m(a.name),f.hasVoiceIdInput&&o(a.id)},className:`px-2.5 py-1 rounded-full text-xs border transition-colors ${g===a.id?"bg-primary/15 border-primary/40 text-primary font-medium":"border-border text-text-muted hover:text-primary hover:border-primary/40"}`,children:[a.name,a.gender?` \xb7 ${a.gender[0].toUpperCase()}`:"",!0===a.free_users_allowed&&(0,d.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-green-500/15 text-green-600 border border-green-500/20",children:"Free"}),!1===a.free_users_allowed&&(0,d.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-amber-500/15 text-amber-600 border border-amber-500/20",children:"Paid"})]},a.id))})}),f.hasVoiceIdInput&&(0,d.jsx)(A,{label:"Voice ID",htmlFor:"tts-example-voice-id",children:(0,d.jsx)("div",{className:"flex flex-col gap-1",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{id:"tts-example-voice-id",value:n,onChange:a=>{o(a.target.value),j(a.target.value)},placeholder:"e.g. CwhRBWXzGAHq8TQ4Fs17",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"}),n&&(0,d.jsx)("button",{type:"button",onClick:()=>{o(""),j("")},"aria-label":"Clear voice ID",className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"close"})})]})})}),f.hasLanguageDropdown&&(0,d.jsx)(A,{label:"Language",htmlFor:"tts-example-language",children:(0,d.jsx)("select",{id:"tts-example-language",value:g,onChange:b=>{let c=(0,u.KC)(a).filter(a=>"tts"===(0,u.CP)(a)).find(a=>a.id===b.target.value);j(b.target.value),m(c?.name||b.target.value)},className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:(0,u.KC)(a).filter(a=>"tts"===(0,u.CP)(a)).map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),(0,d.jsx)(A,{label:"Input",htmlFor:"tts-example-input",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{id:"tts-example-input",value:x,onChange:a=>y(a.target.value),className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),x&&(0,d.jsx)("button",{type:"button",onClick:()=>y(""),"aria-label":"Clear input",className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"close"})})]})}),(0,d.jsx)(A,{label:"Output Format",htmlFor:"tts-example-format",children:(0,d.jsxs)("select",{id:"tts-example-format",value:I,onChange:a=>J(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"mp3",children:"MP3 (Binary)"}),(0,d.jsx)("option",{value:"json",children:"JSON (Base64)"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>V(an),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:U?"check":"content_copy"}),U?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:ao,disabled:O||!x.trim()||!al||!z.trim(),className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-on-primary text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:O?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),O?"Generating...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:an})]}),Q&&(0,d.jsx)("p",{role:"alert",className:"text-xs text-red-500 break-words",children:Q}),K?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",S&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",S,"ms"]})]}),(0,d.jsxs)("a",{href:K,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})]}),(0,d.jsx)("audio",{controls:!0,src:K,className:"w-full"}),M&&(0,d.jsxs)("div",{className:"mt-3",children:[(0,d.jsx)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"JSON Response"})}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:JSON.stringify({format:M.format,audio:M.audio?`${M.audio.substring(0,100)}...`:""},null,2)})]})]}):(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Response"}),(0,d.jsx)("pre",{className:"mt-1.5 bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-50",children:G})]})]})]}),W&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",style:{backgroundColor:"rgba(0,0,0,0.6)",backdropFilter:"blur(2px)"},onClick:()=>X(!1),onKeyDown:a=>{"Escape"===a.key&&X(!1)},children:(0,d.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"tts-language-modal-title",className:"border border-border rounded-xl shadow-2xl w-full max-w-md mx-4 flex flex-col max-h-[80vh]",style:{backgroundColor:"var(--color-bg)",isolation:"isolate"},onClick:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0 rounded-t-xl",children:[(0,d.jsx)("h3",{id:"tts-language-modal-title",className:"text-sm font-semibold","data-i18n":"Select Language",children:"Select Language"}),(0,d.jsx)("button",{onClick:()=>X(!1),"aria-label":"Close language picker",className:"text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px]","aria-hidden":"true",children:"close"})})]}),(0,d.jsx)("div",{className:"px-4 py-2.5 border-b border-border shrink-0",children:(0,d.jsx)("input",{autoFocus:!0,type:"text","aria-label":"Search language",value:aa,onChange:a=>ab(a.target.value),placeholder:"Search language...","data-i18n-placeholder":"Search language...",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),(0,d.jsxs)("div",{className:"overflow-y-auto flex-1 p-2",children:[ac&&(0,d.jsx)("p",{className:"text-xs text-red-500 px-2 py-1",children:ac}),$?(0,d.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"Loading..."}):(0,d.jsxs)("div",{className:"flex flex-col gap-0.5",children:[aj.map(a=>(0,d.jsxs)("button",{onClick:()=>{let b;return X(!1),s(a.code),void(q(b=ae[a.code]?.voices||[]),b.length&&(j(b[0].id),m(b[0].name),f.hasVoiceIdInput&&o(b[0].id)))},className:`flex items-center justify-between w-full px-3 py-2 rounded-lg text-left hover:bg-sidebar transition-colors ${r===a.code?"bg-primary/10 text-primary":""}`,children:[(0,d.jsx)("span",{className:"text-sm",children:a.name}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:[a.voices.length," voices"]}),r===a.code&&(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"check"})]})]},a.code)),0===aj.length&&(0,d.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"No languages found."})]})]})]})})]})}var I=c(81220);let J="https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog.png";function K(a){let b="string"==typeof a?a.trim():"";return b?/^(data:image\/|https?:\/\/)/i.test(b)?b:`data:image/png;base64,${b}`:""}function L({providerId:a,kind:b}){let c=(0,k.wG)(a),e=(0,k.rs)(c)===a?c:a,f=k.rj.find(a=>a.id===b),g=B[b],j=g||{},l=(0,u.KC)(a).filter(a=>(0,u.CP)(a)===b),m=new Set(["image","video","music","imageToText"]).has(b),n=m&&0===l.length,[o,p]=(0,h.useState)(l[0]?.id??""),q=l.find(a=>a.id===o),r=!!q?.capabilities?.includes("edit"),s=!!q?.capabilities?.includes("mask"),[t,w]=(0,h.useState)(j.defaultInput||""),[x,y]=(0,h.useState)(""),[z,C]=(0,h.useState)(""),[D,E]=(0,h.useState)(()=>(j.extraFields||[]).reduce((a,b)=>(a[b.key]=b.default??"",a),{})),[F,G]=(0,h.useState)(""),[H,M]=(0,h.useState)(""),[N,O]=(0,h.useState)(null),[P,Q]=(0,h.useState)(null),[R,S]=(0,h.useState)(null),[T,U]=(0,h.useState)("json"),[V,W]=(0,h.useState)(""),[X,Y]=(0,h.useState)(!1),[Z,$]=(0,h.useState)(""),[_,aa]=(0,h.useState)([]),[ab,ac]=(0,h.useState)(""),{copied:ad,copy:ae}=(0,v.C)(),{copied:af,copy:ag}=(0,v.C)();if(!f||!g)return null;let ah=f.endpoint.path,ai=m?o?`${e}/${o}`:n?"":e:e,aj="cloudflare-ai"!==a?{}:"@cf/runwayml/stable-diffusion-v1-5-img2img"===o?{image:J}:"@cf/runwayml/stable-diffusion-v1-5-inpainting"===o?{image:J,mask_image:"https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog-mask.png"}:{},ak=x.trim()||aj.image||"",al=z.trim()||aj.mask_image||"",am=K(ak),an=K(al),ao=Object.entries(D).reduce((a,[b,c])=>(""===c||null==c||"number"==typeof c&&Number.isNaN(c)||(a[b]=c),a),{}),ap={model:ai,[g.bodyKey]:t,...g.extraBody,...ao,...r&&ak?{image:ak}:{},...s&&al?{mask_image:al}:{}},aq="image"===b&&"binary"===T,ar="image"===b&&"codex"===a&&!aq,as=`${ah}${aq?"?response_format=binary":""}`,at=`-H "Content-Type: application/json" \\
|
|
46
|
-
-H "Authorization: Bearer ${
|
|
47
|
-
-H "x-connection-id: ${
|
|
48
|
-
-H "Accept: text/event-stream"`:""}`,
|
|
49
|
-
${
|
|
50
|
-
-d '${JSON.stringify(ap)}'${aq?" \\\n --output image.png":""}`,av=async()=>{if(!t.trim()||!ai||!F.trim())return;if(Y(!0),$(""),O(null),Q(null),S(null),V){try{URL.revokeObjectURL(V)}catch{}W("")}let a=Date.now();try{let b={"Content-Type":"application/json"};F&&(b.Authorization=`Bearer ${F}`),ab&&(b["x-connection-id"]=ab),ar&&(b.Accept="text/event-stream");let c={...ap,model:ai},d=await fetch(`/api${as}`,{method:f.endpoint.method,headers:b,body:JSON.stringify(c)});if(!d.ok){let a=await d.json().catch(()=>({}));$(a?.error?.message||a?.error||`HTTP ${d.status}`);return}let e=d.headers.get("content-type")||"";if(e.startsWith("image/")){let b=await d.blob(),c=URL.createObjectURL(b);W(c),O({data:{binary:!0,mime:e,size:b.size},latencyMs:Date.now()-a});return}if(e.includes("text/event-stream")&&d.body){let b=d.body.getReader(),c=new TextDecoder,e="",f=null,g=null;for(;;){let a,{done:d,value:h}=await b.read();if(d)break;for(e+=c.decode(h,{stream:!0});-1!==(a=e.indexOf("\n\n"));){let b=e.slice(0,a);e=e.slice(a+2);let c=null,d="";for(let a of b.split("\n"))a.startsWith("event:")?c=a.slice(6).trim():a.startsWith("data:")&&(d+=a.slice(5).trim());if(c)try{let a=d?JSON.parse(d):{};"progress"===c?Q(a):"partial_image"===c?S(a):"done"===c?f=a:"error"===c&&(g=a?.message||"Stream error")}catch{}}}let h=Date.now()-a;if(g)return void $(g);f&&O({data:f,latencyMs:h})}else{let b=await d.json(),c=Date.now()-a;O({data:b,latencyMs:c})}}catch(a){$(a.message||"Network error")}finally{Y(!1)}},aw=a=>{if(!a||"object"!=typeof a)return a;if(Array.isArray(a))return a.map(aw);let b={};for(let[c,d]of Object.entries(a))b[c]="b64_json"===c&&"string"==typeof d&&d.length>100?`<${d.length} chars base64>`:aw(d);return b},ax=N?JSON.stringify(aw(N.data),null,2):"";return(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[l.length>0?(0,d.jsx)(A,{label:"Model",htmlFor:"generic-example-model",children:(0,d.jsx)("select",{id:"generic-example-model",value:o,onChange:a=>p(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:l.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}):n?(0,d.jsx)(A,{label:"Model",htmlFor:"generic-example-model",children:(0,d.jsx)("input",{id:"generic-example-model",value:o,onChange:a=>p(a.target.value),placeholder:"Enter model id (provider-specific)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}):null,(0,d.jsx)(A,{label:"Endpoint",children:(0,d.jsx)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[H,ah]})})}),(0,d.jsx)(A,{label:"API Key",htmlFor:"generic-example-key",children:(0,d.jsx)("input",{id:"generic-example-key",type:"password",autoComplete:"off",value:F,onChange:a=>G(a.target.value),placeholder:"Paste a Switchboard client key secret (sk-...)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),_.length>0&&(0,d.jsx)(A,{label:"Connection",htmlFor:"generic-example-connection",children:(0,d.jsxs)("select",{id:"generic-example-connection",value:ab,onChange:a=>ac(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"",children:"Auto (by priority)"}),_.map(a=>{let b=a.providerSpecificData?.chatgptPlanType,c=a.email||a.name||a.id.slice(0,8);return(0,d.jsxs)("option",{value:a.id,children:[c,b?` [${b}]`:""]},a.id)})]})}),(0,d.jsx)(A,{label:g.inputLabel,htmlFor:"generic-example-input",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{id:"generic-example-input",value:t,onChange:a=>w(a.target.value),placeholder:g.inputPlaceholder,className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),t&&(0,d.jsx)("button",{type:"button",onClick:()=>w(""),"aria-label":`Clear ${g.inputLabel.toLowerCase()}`,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"close"})})]})}),r&&(0,d.jsx)(A,{label:"Ref Image (URL)",htmlFor:"generic-example-ref-image",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{id:"generic-example-ref-image",value:x,onChange:a=>y(a.target.value),placeholder:aj.image||"https://example.com/source.png",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),x&&(0,d.jsx)("button",{type:"button",onClick:()=>y(""),"aria-label":"Clear reference image URL",className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"close"})})]}),am&&(0,d.jsx)(I.default,{src:am,alt:"Reference",width:640,height:320,unoptimized:!0,className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:a=>{a.currentTarget.style.display="none"},onLoad:a=>{a.currentTarget.style.display="block"}})]})}),s&&(0,d.jsx)(A,{label:"Mask (URL)",htmlFor:"generic-example-mask",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{id:"generic-example-mask",value:z,onChange:a=>C(a.target.value),placeholder:aj.mask_image||"https://example.com/mask.png",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),z&&(0,d.jsx)("button",{type:"button",onClick:()=>C(""),"aria-label":"Clear mask image URL",className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"close"})})]}),an&&(0,d.jsx)(I.default,{src:an,alt:"Mask",width:640,height:320,unoptimized:!0,className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:a=>{a.currentTarget.style.display="none"},onLoad:a=>{a.currentTarget.style.display="block"}})]})}),(g.extraFields||[]).filter(a=>0===l.length||Array.isArray(q?.params)&&q.params.includes(a.key)).map(a=>(0,d.jsx)(A,{label:a.label,htmlFor:`generic-example-${a.key}`,children:"select"===a.type?(0,d.jsx)("select",{id:`generic-example-${a.key}`,value:D[a.key]??"",onChange:b=>E(c=>({...c,[a.key]:b.target.value})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:(a.options||[]).map(a=>(0,d.jsx)("option",{value:a,children:""===a?"(default)":a},a))}):"text"===a.type?(0,d.jsx)("input",{id:`generic-example-${a.key}`,type:"text",value:D[a.key]??"",placeholder:a.placeholder,onChange:b=>E(c=>({...c,[a.key]:b.target.value})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}):(0,d.jsx)("input",{id:`generic-example-${a.key}`,type:"number",value:D[a.key]??"",min:a.min,max:a.max,onChange:b=>E(c=>({...c,[a.key]:""===b.target.value?"":Number(b.target.value)})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})},a.key)),"image"===b&&(0,d.jsx)(A,{label:"Output Format",htmlFor:"generic-example-output-format",children:(0,d.jsxs)("select",{id:"generic-example-output-format",value:T,onChange:a=>U(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"json",children:"JSON (Base64)"}),(0,d.jsx)("option",{value:"binary",children:"Binary File"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>ae(au),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:ad?"check":"content_copy"}),ad?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:av,disabled:X||!t.trim()||!ai||!F.trim(),className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-on-primary text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:X?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),X?"Running...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:au})]}),(X||P)&&ar&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 px-3 py-2 rounded-lg bg-sidebar border border-border sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",style:X?{animation:"spin 1s linear infinite"}:void 0,children:X?"progress_activity":"check_circle"}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:[P?.stage||"starting",!X&&P?.bytesReceived?` \xb7 ${(P.bytesReceived/1024).toFixed(1)} KB`:""]})]}),R?.b64_json&&!N&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Partial preview"}),(0,d.jsx)(I.default,{src:`data:image/png;base64,${R.b64_json}`,alt:"Partial",width:1024,height:1024,unoptimized:!0,className:"max-w-full rounded-lg border border-border mt-1.5 opacity-80"})]}),Z&&(0,d.jsx)("p",{role:"alert",className:"text-xs text-red-500 break-words",children:Z}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",N&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",N.latencyMs,"ms"]})]}),N&&(0,d.jsxs)("button",{onClick:()=>ag(ax),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:af?"check":"content_copy"}),af?"Copied":"Copy"]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:N?ax:g.defaultResponse}),"image"===b&&(V||N?.data?.data?.[0])&&(0,d.jsxs)("div",{className:"mt-2",children:[(0,d.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,d.jsxs)("a",{href:V||(N?.data?.data?.[0]?.b64_json?`data:image/png;base64,${N.data.data[0].b64_json}`:N?.data?.data?.[0]?.url||""),download:"image.png",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,d.jsx)(I.default,{src:V||(N?.data?.data?.[0]?.b64_json?`data:image/png;base64,${N.data.data[0].b64_json}`:N?.data?.data?.[0]?.url),alt:"Generated",width:1024,height:1024,unoptimized:!0,className:"max-w-full rounded-lg border border-border"})]})]})]})]})}function M({providerId:a}){let b=(0,k.wG)(a),c=(0,u.KC)(a).filter(a=>"stt"===(0,u.CP)(a)),[e,f]=(0,h.useState)([]),g=[...c,...e],[j,l]=(0,h.useState)(c[0]?.id??""),m=g.find(a=>a.id===j),n=Array.isArray(m?.params)?m.params:[],[o,p]=(0,h.useState)(null),[q,r]=(0,h.useState)(""),[s,t]=(0,h.useState)(""),[w,x]=(0,h.useState)("json"),[y,z]=(0,h.useState)(""),[B,C]=(0,h.useState)(""),[D,E]=(0,h.useState)(""),[F,G]=(0,h.useState)(null),[H,I]=(0,h.useState)(null),[J,K]=(0,h.useState)(!1),[L,N]=(0,h.useState)(""),{copied:O,copy:P}=(0,v.C)(),{copied:Q,copy:R}=(0,v.C)(),S=j?`${b}/${j}`:"",T=`curl -X POST ${D}/v1/audio/transcriptions \\
|
|
51
|
-
-H "Authorization: Bearer ${
|
|
45
|
+
${"json"===E?"":"--output speech.mp3"}`,ao=async()=>{if(!x.trim()||!al||!z.trim())return;P(!0),R(""),L(""),N(null);let a=Date.now();try{let b={"Content-Type":"application/json"};z&&(b.Authorization=`Bearer ${z}`);let c=`/api/v1/audio/speech${"json"===E?"?response_format=json":""}`,d=await fetch(c,{method:"POST",headers:b,body:JSON.stringify({...am,input:x.trim()})});if(T(Date.now()-a),!d.ok){let a=await d.json().catch(()=>({}));R(a?.error?.message||a?.error||`HTTP ${d.status}`);return}if("json"===E){let a=await d.json();N(a);let b=await fetch(`data:audio/mp3;base64,${a.audio}`).then(a=>a.blob());L(URL.createObjectURL(b))}else{let a=await d.blob();L(URL.createObjectURL(a))}}catch(a){R(a.message||"Network error")}finally{P(!1)}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,d.jsx)(B,{label:"Endpoint",children:(0,d.jsx)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[C,"/v1/audio/speech"]})})}),(0,d.jsx)(B,{label:"API Key",htmlFor:"tts-example-key",children:(0,d.jsx)("input",{id:"tts-example-key",type:"password",autoComplete:"off",value:z,onChange:a=>A(a.target.value),placeholder:"Paste a Switchboard client key secret (sk-...)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),f.hasModelSelector&&(f.modelKey||(0,u.KC)(a).some(a=>"tts"===(0,u.CP)(a)))&&(0,d.jsx)(B,{label:"Model",htmlFor:"tts-example-model",children:(0,d.jsx)("select",{id:"tts-example-model",value:t,onChange:a=>w(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:((c=(0,u.KC)(a).filter(a=>"tts"===(0,u.CP)(a))).length?c:(0,u.KC)(f.modelKey)||[]).map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),f.hasLanguageHint&&(0,d.jsx)(B,{label:"Language",htmlFor:"tts-example-language-hint",children:(0,d.jsxs)("select",{id:"tts-example-language-hint",value:ag,onChange:a=>ah(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"",children:"Auto-detect"}),G.I.map(a=>(0,d.jsx)("option",{value:a.name,children:a.name},a.id))]})}),f.hasBrowseButton&&(0,d.jsx)(B,{label:"Language",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsx)("button",{onClick:ai,"aria-haspopup":"dialog","aria-expanded":W,"aria-label":r?`Language: ${Y.find(a=>a.code===r)?.name||r}. Change language`:"Select language",className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm border border-border rounded-lg bg-background font-mono truncate text-left hover:border-primary/40 transition-colors",children:r?(0,d.jsx)("span",{className:"text-text-main",children:Y.find(a=>a.code===r)?.name||r}):(0,d.jsx)("span",{className:"text-text-muted",children:"No language selected"})}),(0,d.jsxs)("button",{onClick:ai,className:"flex w-full items-center justify-center gap-1 text-xs px-2.5 py-1.5 rounded-lg border border-border text-text-muted hover:text-primary hover:border-primary/40 transition-colors sm:w-auto sm:shrink-0",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"language"}),"Select language"]})]})}),p.length>0&&(0,d.jsx)(B,{label:"Voice",children:(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:p.map(a=>(0,d.jsxs)("button",{onClick:()=>{j(a.id),m(a.name),f.hasVoiceIdInput&&o(a.id)},className:`px-2.5 py-1 rounded-full text-xs border transition-colors ${g===a.id?"bg-primary/15 border-primary/40 text-primary font-medium":"border-border text-text-muted hover:text-primary hover:border-primary/40"}`,children:[a.name,a.gender?` \xb7 ${a.gender[0].toUpperCase()}`:"",!0===a.free_users_allowed&&(0,d.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-green-500/15 text-green-600 border border-green-500/20",children:"Free"}),!1===a.free_users_allowed&&(0,d.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-amber-500/15 text-amber-600 border border-amber-500/20",children:"Paid"})]},a.id))})}),f.hasVoiceIdInput&&(0,d.jsx)(B,{label:"Voice ID",htmlFor:"tts-example-voice-id",children:(0,d.jsx)("div",{className:"flex flex-col gap-1",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{id:"tts-example-voice-id",value:n,onChange:a=>{o(a.target.value),j(a.target.value)},placeholder:"e.g. CwhRBWXzGAHq8TQ4Fs17",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"}),n&&(0,d.jsx)("button",{type:"button",onClick:()=>{o(""),j("")},"aria-label":"Clear voice ID",className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"close"})})]})})}),f.hasLanguageDropdown&&(0,d.jsx)(B,{label:"Language",htmlFor:"tts-example-language",children:(0,d.jsx)("select",{id:"tts-example-language",value:g,onChange:b=>{let c=(0,u.KC)(a).filter(a=>"tts"===(0,u.CP)(a)).find(a=>a.id===b.target.value);j(b.target.value),m(c?.name||b.target.value)},className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:(0,u.KC)(a).filter(a=>"tts"===(0,u.CP)(a)).map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),(0,d.jsx)(B,{label:"Input",htmlFor:"tts-example-input",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{id:"tts-example-input",value:x,onChange:a=>y(a.target.value),className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),x&&(0,d.jsx)("button",{type:"button",onClick:()=>y(""),"aria-label":"Clear input",className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"close"})})]})}),(0,d.jsx)(B,{label:"Output Format",htmlFor:"tts-example-format",children:(0,d.jsxs)("select",{id:"tts-example-format",value:E,onChange:a=>J(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"mp3",children:"MP3 (Binary)"}),(0,d.jsx)("option",{value:"json",children:"JSON (Base64)"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>V(an),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:U?"check":"content_copy"}),U?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:ao,disabled:O||!x.trim()||!al||!z.trim(),className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-on-primary text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:O?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),O?"Generating...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:an})]}),Q&&(0,d.jsx)("p",{role:"alert",className:"text-xs text-red-500 break-words",children:Q}),K?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",S&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",S,"ms"]})]}),(0,d.jsxs)("a",{href:K,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})]}),(0,d.jsx)("audio",{controls:!0,src:K,className:"w-full"}),M&&(0,d.jsxs)("div",{className:"mt-3",children:[(0,d.jsx)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"JSON Response"})}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:JSON.stringify({format:M.format,audio:M.audio?`${M.audio.substring(0,100)}...`:""},null,2)})]})]}):(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Response"}),(0,d.jsx)("pre",{className:"mt-1.5 bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-50",children:H})]})]})]}),W&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",style:{backgroundColor:"rgba(0,0,0,0.6)",backdropFilter:"blur(2px)"},onClick:()=>X(!1),onKeyDown:a=>{"Escape"===a.key&&X(!1)},children:(0,d.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"tts-language-modal-title",className:"border border-border rounded-xl shadow-2xl w-full max-w-md mx-4 flex flex-col max-h-[80vh]",style:{backgroundColor:"var(--color-bg)",isolation:"isolate"},onClick:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0 rounded-t-xl",children:[(0,d.jsx)("h3",{id:"tts-language-modal-title",className:"text-sm font-semibold","data-i18n":"Select Language",children:"Select Language"}),(0,d.jsx)("button",{onClick:()=>X(!1),"aria-label":"Close language picker",className:"text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px]","aria-hidden":"true",children:"close"})})]}),(0,d.jsx)("div",{className:"px-4 py-2.5 border-b border-border shrink-0",children:(0,d.jsx)("input",{autoFocus:!0,type:"text","aria-label":"Search language",value:aa,onChange:a=>ab(a.target.value),placeholder:"Search language...","data-i18n-placeholder":"Search language...",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),(0,d.jsxs)("div",{className:"overflow-y-auto flex-1 p-2",children:[ac&&(0,d.jsx)("p",{className:"text-xs text-red-500 px-2 py-1",children:ac}),$?(0,d.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"Loading..."}):(0,d.jsxs)("div",{className:"flex flex-col gap-0.5",children:[aj.map(a=>(0,d.jsxs)("button",{onClick:()=>{let b;return X(!1),s(a.code),void(q(b=ae[a.code]?.voices||[]),b.length&&(j(b[0].id),m(b[0].name),f.hasVoiceIdInput&&o(b[0].id)))},className:`flex items-center justify-between w-full px-3 py-2 rounded-lg text-left hover:bg-sidebar transition-colors ${r===a.code?"bg-primary/10 text-primary":""}`,children:[(0,d.jsx)("span",{className:"text-sm",children:a.name}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:[a.voices.length," voices"]}),r===a.code&&(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"check"})]})]},a.code)),0===aj.length&&(0,d.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"No languages found."})]})]})]})})]})}var J=c(81220);let K="https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog.png";function L(a){let b="string"==typeof a?a.trim():"";return b?/^(data:image\/|https?:\/\/)/i.test(b)?b:`data:image/png;base64,${b}`:""}function M({providerId:a,kind:b}){let c,e,f=(0,k.wG)(a),g=(0,k.rs)(f)===a?f:a,j=k.rj.find(a=>a.id===b),l=C[b],m=l||{},n=(0,u.KC)(a).filter(a=>(0,u.CP)(a)===b),o=new Set(["image","video","music","imageToText"]).has(b),p=o&&0===n.length,[q,r]=(0,h.useState)(n[0]?.id??""),s=n.find(a=>a.id===q),t=!!s?.capabilities?.includes("edit"),w=!!s?.capabilities?.includes("mask"),[x,y]=(0,h.useState)(m.defaultInput||""),[z,A]=(0,h.useState)(""),[D,E]=(0,h.useState)(""),[F,G]=(0,h.useState)(()=>(m.extraFields||[]).reduce((a,b)=>(a[b.key]=b.default??"",a),{})),[H,I]=(0,h.useState)(""),[N,O]=(0,h.useState)(""),[P,Q]=(0,h.useState)(null),[R,S]=(0,h.useState)(null),[T,U]=(0,h.useState)(null),[V,W]=(0,h.useState)("json"),[X,Y]=(0,h.useState)(""),[Z,$]=(0,h.useState)(!1),[_,aa]=(0,h.useState)(""),[ab,ac]=(0,h.useState)([]),[ad,ae]=(0,h.useState)(""),{copied:af,copy:ag}=(0,v.C)(),{copied:ah,copy:ai}=(0,v.C)();if(!j||!l)return null;let aj=j.endpoint.path,ak=o?q?`${g}/${q}`:p?"":g:g,al="cloudflare-ai"!==a?{}:"@cf/runwayml/stable-diffusion-v1-5-img2img"===q?{image:K}:"@cf/runwayml/stable-diffusion-v1-5-inpainting"===q?{image:K,mask_image:"https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog-mask.png"}:{},am=z.trim()||al.image||"",an=D.trim()||al.mask_image||"",ao=L(am),ap=L(an),aq=Object.entries(F).reduce((a,[b,c])=>(""===c||null==c||"number"==typeof c&&Number.isNaN(c)||(a[b]=c),a),{}),ar={model:ak,[l.bodyKey]:x,...l.extraBody,...aq,...t&&am?{image:am}:{},...w&&an?{mask_image:an}:{}},as="image"===b&&"binary"===V,at="image"===b&&"codex"===a&&!as,au=`${aj}${as?"?response_format=binary":""}`,av=`-H "Content-Type: application/json" \\
|
|
46
|
+
-H "Authorization: Bearer ${H||"YOUR_KEY"}"${ad?` \\
|
|
47
|
+
-H "x-connection-id: ${ad}"`:""}${at?` \\
|
|
48
|
+
-H "Accept: text/event-stream"`:""}`,aw=`curl -X ${j.endpoint.method} ${N}${au} \\
|
|
49
|
+
${av.replace(/\\\n /g,"\\\n ")} \\
|
|
50
|
+
-d '${JSON.stringify(ar)}'${as?" \\\n --output image.png":""}`,ax=async()=>{if(!x.trim()||!ak||!H.trim())return;if($(!0),aa(""),Q(null),S(null),U(null),X){try{URL.revokeObjectURL(X)}catch{}Y("")}let a=Date.now();try{let b={"Content-Type":"application/json"};H&&(b.Authorization=`Bearer ${H}`),ad&&(b["x-connection-id"]=ad),at&&(b.Accept="text/event-stream");let c={...ar,model:ak},d=await fetch(`/api${au}`,{method:j.endpoint.method,headers:b,body:JSON.stringify(c)});if(!d.ok){let a=await d.json().catch(()=>({}));aa(a?.error?.message||a?.error||`HTTP ${d.status}`);return}let e=d.headers.get("content-type")||"";if(e.startsWith("image/")){let b=await d.blob(),c=URL.createObjectURL(b);Y(c),Q({data:{binary:!0,mime:e,size:b.size},latencyMs:Date.now()-a});return}if(e.includes("text/event-stream")&&d.body){let b=d.body.getReader(),c=new TextDecoder,e="",f=null,g=null;for(;;){let a,{done:d,value:h}=await b.read();if(d)break;for(e+=c.decode(h,{stream:!0});-1!==(a=e.indexOf("\n\n"));){let b=e.slice(0,a);e=e.slice(a+2);let c=null,d="";for(let a of b.split("\n"))a.startsWith("event:")?c=a.slice(6).trim():a.startsWith("data:")&&(d+=a.slice(5).trim());if(c)try{let a=d?JSON.parse(d):{};"progress"===c?S(a):"partial_image"===c?U(a):"done"===c?f=a:"error"===c&&(g=a?.message||"Stream error")}catch{}}}let h=Date.now()-a;if(g)return void aa(g);f&&Q({data:f,latencyMs:h})}else{let b=await d.json(),c=Date.now()-a;Q({data:b,latencyMs:c})}}catch(a){aa(a.message||"Network error")}finally{$(!1)}},ay=a=>{if(!a||"object"!=typeof a)return a;if(Array.isArray(a))return a.map(ay);let b={};for(let[c,d]of Object.entries(a))b[c]="b64_json"===c&&"string"==typeof d&&d.length>100?`<${d.length} chars base64>`:ay(d);return b},az=P?JSON.stringify(ay(P.data),null,2):"";return(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[n.length>0?(0,d.jsx)(B,{label:"Model",htmlFor:"generic-example-model",children:(0,d.jsx)("select",{id:"generic-example-model",value:q,onChange:a=>r(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:n.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}):p?(0,d.jsx)(B,{label:"Model",htmlFor:"generic-example-model",children:(0,d.jsx)("input",{id:"generic-example-model",value:q,onChange:a=>r(a.target.value),placeholder:"Enter model id (provider-specific)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}):null,(0,d.jsx)(B,{label:"Endpoint",children:(0,d.jsx)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[N,aj]})})}),(0,d.jsx)(B,{label:"API Key",htmlFor:"generic-example-key",children:(0,d.jsx)("input",{id:"generic-example-key",type:"password",autoComplete:"off",value:H,onChange:a=>I(a.target.value),placeholder:"Paste a Switchboard client key secret (sk-...)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),ab.length>0&&(0,d.jsx)(B,{label:"Connection",htmlFor:"generic-example-connection",children:(0,d.jsxs)("select",{id:"generic-example-connection",value:ad,onChange:a=>ae(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"",children:"Auto (by priority)"}),ab.map(a=>{let b=a.providerSpecificData?.chatgptPlanType,c=a.email||a.name||a.id.slice(0,8);return(0,d.jsxs)("option",{value:a.id,children:[c,b?` [${b}]`:""]},a.id)})]})}),(0,d.jsx)(B,{label:l.inputLabel,htmlFor:"generic-example-input",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{id:"generic-example-input",value:x,onChange:a=>y(a.target.value),placeholder:l.inputPlaceholder,className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),x&&(0,d.jsx)("button",{type:"button",onClick:()=>y(""),"aria-label":`Clear ${l.inputLabel.toLowerCase()}`,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"close"})})]})}),t&&(0,d.jsx)(B,{label:"Ref Image (URL)",htmlFor:"generic-example-ref-image",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{id:"generic-example-ref-image",value:z,onChange:a=>A(a.target.value),placeholder:al.image||"https://example.com/source.png",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),z&&(0,d.jsx)("button",{type:"button",onClick:()=>A(""),"aria-label":"Clear reference image URL",className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"close"})})]}),ao&&(0,d.jsx)(J.default,{src:ao,alt:"Reference",width:640,height:320,unoptimized:!0,className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:a=>{a.currentTarget.style.display="none"},onLoad:a=>{a.currentTarget.style.display="block"}})]})}),w&&(0,d.jsx)(B,{label:"Mask (URL)",htmlFor:"generic-example-mask",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{id:"generic-example-mask",value:D,onChange:a=>E(a.target.value),placeholder:al.mask_image||"https://example.com/mask.png",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),D&&(0,d.jsx)("button",{type:"button",onClick:()=>E(""),"aria-label":"Clear mask image URL",className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"close"})})]}),ap&&(0,d.jsx)(J.default,{src:ap,alt:"Mask",width:640,height:320,unoptimized:!0,className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:a=>{a.currentTarget.style.display="none"},onLoad:a=>{a.currentTarget.style.display="block"}})]})}),(l.extraFields||[]).filter(a=>!s||!Array.isArray(s.params)||s.params.includes(a.key)).map(a=>(0,d.jsx)(B,{label:a.label,htmlFor:`generic-example-${a.key}`,children:"select"===a.type?(0,d.jsx)("select",{id:`generic-example-${a.key}`,value:F[a.key]??"",onChange:b=>G(c=>({...c,[a.key]:b.target.value})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:(a.options||[]).map(a=>(0,d.jsx)("option",{value:a,children:""===a?"(default)":a},a))}):"text"===a.type?(0,d.jsx)("input",{id:`generic-example-${a.key}`,type:"text",value:F[a.key]??"",placeholder:a.placeholder,onChange:b=>G(c=>({...c,[a.key]:b.target.value})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}):(0,d.jsx)("input",{id:`generic-example-${a.key}`,type:"number",value:F[a.key]??"",min:a.min,max:a.max,onChange:b=>G(c=>({...c,[a.key]:""===b.target.value?"":Number(b.target.value)})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})},a.key)),"image"===b&&(0,d.jsx)(B,{label:"Output Format",htmlFor:"generic-example-output-format",children:(0,d.jsxs)("select",{id:"generic-example-output-format",value:V,onChange:a=>W(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"json",children:"JSON (Base64)"}),(0,d.jsx)("option",{value:"binary",children:"Binary File"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>ag(aw),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:af?"check":"content_copy"}),af?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:ax,disabled:Z||!x.trim()||!ak||!H.trim(),className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-on-primary text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:Z?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),Z?"Running...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:aw})]}),(Z||R)&&at&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 px-3 py-2 rounded-lg bg-sidebar border border-border sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",style:Z?{animation:"spin 1s linear infinite"}:void 0,children:Z?"progress_activity":"check_circle"}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:[R?.stage||"starting",!Z&&R?.bytesReceived?` \xb7 ${(R.bytesReceived/1024).toFixed(1)} KB`:""]})]}),T?.b64_json&&!P&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Partial preview"}),(0,d.jsx)(J.default,{src:`data:image/png;base64,${T.b64_json}`,alt:"Partial",width:1024,height:1024,unoptimized:!0,className:"max-w-full rounded-lg border border-border mt-1.5 opacity-80"})]}),_&&(0,d.jsx)("p",{role:"alert",className:"text-xs text-red-500 break-words",children:_}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",P&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",P.latencyMs,"ms"]})]}),P&&(0,d.jsxs)("button",{onClick:()=>ai(az),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:ah?"check":"content_copy"}),ah?"Copied":"Copy"]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:P?az:l.defaultResponse}),"image"===b&&(c=P?.data?.data?.[0],(e=X||(c?.b64_json?`data:image/png;base64,${c.b64_json}`:c?.url||""))?(0,d.jsxs)("div",{className:"mt-2",children:[(0,d.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,d.jsxs)("a",{href:e,download:"image.png",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,d.jsx)(J.default,{src:e,alt:"Generated",width:1024,height:1024,unoptimized:!0,className:"max-w-full rounded-lg border border-border"})]}):null)]})]})]})}function N({providerId:a}){let b=(0,k.wG)(a),c=(0,u.KC)(a).filter(a=>"stt"===(0,u.CP)(a)),[e,f]=(0,h.useState)([]),g=[...c,...e],[j,l]=(0,h.useState)(c[0]?.id??""),m=g.find(a=>a.id===j),n=Array.isArray(m?.params)?m.params:["language","response_format","temperature","prompt"],[o,p]=(0,h.useState)(null),[q,r]=(0,h.useState)(""),[s,t]=(0,h.useState)(""),[w,x]=(0,h.useState)("json"),[y,z]=(0,h.useState)(""),[A,C]=(0,h.useState)(""),[D,E]=(0,h.useState)(""),[F,G]=(0,h.useState)(null),[H,I]=(0,h.useState)(null),[J,K]=(0,h.useState)(!1),[L,M]=(0,h.useState)(""),{copied:O,copy:P}=(0,v.C)(),{copied:Q,copy:R}=(0,v.C)(),S=j?`${b}/${j}`:"",T=`curl -X POST ${D}/v1/audio/transcriptions \\
|
|
51
|
+
-H "Authorization: Bearer ${A||"YOUR_KEY"}" \\
|
|
52
52
|
-F "file=@${o?.name||"audio.mp3"}" \\
|
|
53
53
|
-F "model=${S}"${n.includes("language")&&q?` \\
|
|
54
54
|
-F "language=${q}"`:""}${n.includes("response_format")?` \\
|
|
55
55
|
-F "response_format=${w}"`:""}${n.includes("temperature")&&y?` \\
|
|
56
56
|
-F "temperature=${y}"`:""}${n.includes("prompt")&&s?` \\
|
|
57
|
-
-F "prompt=${s}"`:""}`,U=async()=>{if(!o||!S||!
|
|
57
|
+
-F "prompt=${s}"`:""}`,U=async()=>{if(!o||!S||!A.trim())return;K(!0),M(""),G(null);let a=Date.now();try{let b=new FormData;b.append("file",o),b.append("model",S),n.includes("language")&&q&&b.append("language",q),n.includes("response_format")&&b.append("response_format",w),n.includes("temperature")&&y&&b.append("temperature",y),n.includes("prompt")&&s&&b.append("prompt",s);let c={};A&&(c.Authorization=`Bearer ${A}`);let d=await fetch("/api/v1/audio/transcriptions",{method:"POST",headers:c,body:b});I(Date.now()-a);let e=(d.headers.get("content-type")||"").includes("application/json")?await d.json():await d.text();if(!d.ok){let a=e?.error?.message||e?.error||e;M("string"==typeof a&&a?a:`HTTP ${d.status}`);return}G(e)}catch(a){M(a.message||"Network error")}finally{K(!1)}},V="string"==typeof F?F:F?JSON.stringify(F,null,2):`{
|
|
58
58
|
"text": "Hello world..."
|
|
59
|
-
}`;return(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[g.length>0?(0,d.jsx)(A,{label:"Model",htmlFor:"stt-example-model",children:(0,d.jsx)("select",{id:"stt-example-model",value:j,onChange:a=>l(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:g.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}):(0,d.jsx)(A,{label:"Model",htmlFor:"stt-example-model",children:(0,d.jsx)("input",{id:"stt-example-model",value:j,onChange:a=>l(a.target.value),placeholder:"Enter model id",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),(0,d.jsx)(A,{label:"Endpoint",children:(0,d.jsx)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[D,"/v1/audio/transcriptions"]})})}),(0,d.jsx)(A,{label:"API Key",htmlFor:"stt-example-key",children:(0,d.jsx)("input",{id:"stt-example-key",type:"password",autoComplete:"off",value:B,onChange:a=>C(a.target.value),placeholder:"Paste a Switchboard client key secret (sk-...)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),(0,d.jsx)(A,{label:"Audio File",htmlFor:"stt-example-audio",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsx)("input",{id:"stt-example-audio",type:"file",accept:"audio/*,video/mp4,.m4a,.mp3,.wav,.ogg,.flac,.webm,.opus",onChange:a=>p(a.target.files?.[0]||null),className:"w-full text-xs text-text-muted file:mr-2 file:py-1 file:px-2.5 file:rounded-lg file:border file:border-border file:bg-background file:text-text-main hover:file:bg-sidebar file:cursor-pointer"}),o&&(0,d.jsxs)("span",{className:"text-xs text-text-muted font-mono",children:[o.name," \xb7 ",(o.size/1024).toFixed(1)," KB"]})]})}),n.includes("language")&&(0,d.jsx)(A,{label:"Language",htmlFor:"stt-example-language",children:(0,d.jsx)("input",{id:"stt-example-language",value:q,onChange:a=>r(a.target.value),placeholder:"e.g. en, vi, ja (auto-detect if empty)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),n.includes("prompt")&&(0,d.jsx)(A,{label:"Prompt",htmlFor:"stt-example-prompt",children:(0,d.jsx)("input",{id:"stt-example-prompt",value:s,onChange:a=>t(a.target.value),placeholder:"optional context to improve accuracy",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),n.includes("temperature")&&(0,d.jsx)(A,{label:"Temperature",htmlFor:"stt-example-temperature",children:(0,d.jsx)("input",{id:"stt-example-temperature",type:"number",step:"0.1",min:"0",max:"1",value:y,onChange:a=>z(a.target.value),placeholder:"0 - 1 (default 0)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),n.includes("response_format")&&(0,d.jsx)(A,{label:"Response Format",htmlFor:"stt-example-format",children:(0,d.jsxs)("select",{id:"stt-example-format",value:w,onChange:a=>x(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"json",children:"json"}),(0,d.jsx)("option",{value:"text",children:"text"}),(0,d.jsx)("option",{value:"srt",children:"srt"}),(0,d.jsx)("option",{value:"verbose_json",children:"verbose_json"}),(0,d.jsx)("option",{value:"vtt",children:"vtt"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>P(T),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:O?"check":"content_copy"}),O?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:U,disabled:J||!o||!S||!B.trim(),className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-on-primary text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:J?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),J?"Transcribing...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:T})]}),L&&(0,d.jsx)("p",{role:"alert",className:"text-xs text-red-500 break-words",children:L}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",F&&H&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",H,"ms"]})]}),F&&(0,d.jsxs)("button",{onClick:()=>R(V),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:Q?"check":"content_copy"}),Q?"Copied":"Copy"]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:V})]})]})]})}var N=c(78097);function O(){let{kind:a,id:b}=(0,e.useParams)(),c=(0,e.useRouter)(),f=k.rj.find(b=>b.id===a),l=(0,k.gC)(b)&&"embedding"===a,m=async()=>{if(await (0,N.l)({message:"Delete this Custom Embedding node?",confirmText:"Continue"}))try{(await fetch(`/api/provider-nodes/${b}`,{method:"DELETE"})).ok&&c.push(`/dashboard/media-providers/${a}`)}catch(a){(0,w.s)("Error deleting custom embedding node:",a)}},[n,o]=(0,h.useState)(null),[p,q]=(0,h.useState)(l),[r,s]=(0,h.useState)(!1);if(!f)return(0,e.notFound)();let u=k.Q2[b],v=l?n?{id:b,name:n.name||"Custom Embedding",color:"#6366F1",textIcon:"CE"}:null:u;if(!l&&!u||l&&!p&&!n)return(0,e.notFound)();if(l&&p)return(0,d.jsx)("div",{className:"text-text-muted text-sm py-12 text-center",children:"Loading..."});let x=l?["embedding"]:v.serviceKinds??["llm"];return l||x.includes(a)?(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)(g(),{href:`/dashboard/media-providers/${a}`,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"}),f.label]}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[(0,d.jsx)("div",{className:"size-12 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${v.color}15`},children:(0,d.jsx)(j.A,{src:`/providers/${v.id}.png`,alt:v.name,size:48,className:"object-contain rounded-lg max-w-[48px] max-h-[48px]",fallbackText:v.textIcon||v.id.slice(0,2).toUpperCase(),fallbackColor:v.color})}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[(0,d.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:v.name}),!l&&v.notice?.apiKeyUrl&&(0,d.jsxs)("a",{href:v.notice.apiKeyUrl,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"}),"Get API Key"]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[l&&(0,d.jsxs)(i.Ex,{variant:"default",size:"sm",children:["Custom \xb7 ",n?.prefix]}),x.map(b=>(0,d.jsx)(i.Ex,{variant:b===a?"primary":"default",size:"sm",children:b.toUpperCase()},b))]})]}),l&&(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>s(!0),children:"Edit"}),(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:m,children:"Delete"})]})]})]}),!l&&v.kindNotice?.[a]&&(0,d.jsxs)("div",{className:"flex items-start gap-3 px-4 py-3 rounded-lg bg-amber-500/10 border border-amber-500/30 text-amber-700 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px] mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"text-sm",children:v.kindNotice[a]})]}),!l&&v.notice?.text&&!v.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:v.notice.text}),v.notice.apiKeyUrl&&(0,d.jsx)("a",{href:v.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 →"})]}),!l&&v.noAuth?(0,d.jsx)(i.gw,{providerId:b}):(0,d.jsx)(t,{providerId:b,isOAuth:!1}),"tts"!==a&&"webSearch"!==a&&"webFetch"!==a&&(0,d.jsx)(z,{providerId:b,kindFilter:a,providerAliasOverride:l?n?.prefix:void 0}),!l&&(v.searchConfig||v.fetchConfig||v.ttsConfig||v.sttConfig||v.embeddingConfig||v.searchViaChat)&&(0,d.jsx)(i.Wx,{config:"webFetch"===a?v.fetchConfig:"tts"===a?v.ttsConfig:"stt"===a?v.sttConfig:"embedding"===a?v.embeddingConfig:v.searchConfig||{mode:"chat-completions",defaultModel:v.searchViaChat?.defaultModel,pricingUrl:v.searchViaChat?.pricingUrl,freeTier:v.searchViaChat?.freeTier},provider:v,title:`${f.label} Config`}),"embedding"===a&&(0,d.jsx)(D,{providerId:b,customAlias:n?.prefix}),"tts"===a&&(0,d.jsx)(H,{providerId:b}),"stt"===a&&!l&&(0,d.jsx)(M,{providerId:b}),!l&&B[a]&&(0,d.jsx)(L,{providerId:b,kind:a}),l&&(0,d.jsx)(i.x0,{isOpen:r,node:n,onClose:()=>s(!1),onSaved:a=>{o(a),s(!1)}})]}):(0,e.notFound)()}},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";async function d(a,b,c=fetch){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=b(f[a]||{}),h={...f};g&&Object.keys(g).length>0?h[a]=g:delete h[a];let i=await c("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:h})});if(!i.ok)throw Error(`Failed to save settings (${i.status})`);return g}c.d(b,{T:()=>d})},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")},50412:(a,b,c)=>{"use strict";c.d(b,{x0:()=>x.default,Ex:()=>j.default,$n:()=>d.default,nh:()=>C.default,Zp:()=>g.default,Qv:()=>i.CardSkeleton,CK:()=>o.default,uo:()=>h.ConfirmModal,G9:()=>t.default,wI:()=>w.default,vj:()=>v.default,vE:()=>u.default,pd:()=>e.default,Mh:()=>s.default,uR:()=>n.default,Nf:()=>p.default,aF:()=>h.default,rq:()=>m.default,gw:()=>y.default,LF:()=>l.default,Wx:()=>B.default,gM:()=>r.default,Iz:()=>z.default,l6:()=>f.default,lM:()=>k.default,m_:()=>A.default,jK:()=>q.default});var d=c(99070),e=c(83552),f=c(4770),g=c(17660),h=c(95145),i=c(74812);c(25919);var j=c(75171),k=c(95514);c(53845),c(19308),c(42196),c(32456),c(48781);var l=c(79346),m=c(83352),n=c(39645),o=c(62727),p=c(20084),q=c(87226);c(267),c(3236),c(11229);var r=c(91809);c(4481);var s=c(5291);c(56110);var t=c(51109),u=c(79488),v=c(43182),w=c(51585),x=c(67738),y=c(50585),z=c(91099),A=c(32971),B=c(11633),C=c(38930);c(5993),c(53838)},50929:(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.t.bind(c,95547,23))),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:["media-providers",{children:["[kind]",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,69296))),"/home/runner/work/switchboard-router/switchboard-router/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js"]}]},{"global-error":[w,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[v,"next/dist/client/components/builtin/global-error.js"]},["combo","web"]]},{"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[t,"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/media-providers/[kind]/[id]/page",pathname:"/dashboard/media-providers/[kind]/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),z=y.__next_app__,A=y.routeModule,B=y.handler},55443:(a,b,c)=>{Promise.resolve().then(c.bind(c,69296))},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")},69296:(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/media-providers/[kind]/[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/media-providers/[kind]/[id]/page.js","default")},73024:a=>{"use strict";a.exports=require("node:fs")},74875:(a,b,c)=>{"use strict";function d(a,b){return!1===a?"default":"active"===b||"success"===b?"success":"error"===b||"expired"===b||"unavailable"===b?"error":"default"}c.d(b,{g:()=>d})},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")},92395:(a,b,c)=>{Promise.resolve().then(c.bind(c,4120))},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,2430,9995,2712,3787,8976,5350,869,3986,5781,5717,194,7757,8834],()=>b(b.s=50929));module.exports=c})();
|
|
59
|
+
}`;return(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[g.length>0?(0,d.jsx)(B,{label:"Model",htmlFor:"stt-example-model",children:(0,d.jsx)("select",{id:"stt-example-model",value:j,onChange:a=>l(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:g.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}):(0,d.jsx)(B,{label:"Model",htmlFor:"stt-example-model",children:(0,d.jsx)("input",{id:"stt-example-model",value:j,onChange:a=>l(a.target.value),placeholder:"Enter model id",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),(0,d.jsx)(B,{label:"Endpoint",children:(0,d.jsx)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[D,"/v1/audio/transcriptions"]})})}),(0,d.jsx)(B,{label:"API Key",htmlFor:"stt-example-key",children:(0,d.jsx)("input",{id:"stt-example-key",type:"password",autoComplete:"off",value:A,onChange:a=>C(a.target.value),placeholder:"Paste a Switchboard client key secret (sk-...)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),(0,d.jsx)(B,{label:"Audio File",htmlFor:"stt-example-audio",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsx)("input",{id:"stt-example-audio",type:"file",accept:"audio/*,video/mp4,.m4a,.mp3,.wav,.ogg,.flac,.webm,.opus",onChange:a=>p(a.target.files?.[0]||null),className:"w-full text-xs text-text-muted file:mr-2 file:py-1 file:px-2.5 file:rounded-lg file:border file:border-border file:bg-background file:text-text-main hover:file:bg-sidebar file:cursor-pointer"}),o&&(0,d.jsxs)("span",{className:"text-xs text-text-muted font-mono",children:[o.name," \xb7 ",(o.size/1024).toFixed(1)," KB"]})]})}),n.includes("language")&&(0,d.jsx)(B,{label:"Language",htmlFor:"stt-example-language",children:(0,d.jsx)("input",{id:"stt-example-language",value:q,onChange:a=>r(a.target.value),placeholder:"e.g. en, vi, ja (auto-detect if empty)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),n.includes("prompt")&&(0,d.jsx)(B,{label:"Prompt",htmlFor:"stt-example-prompt",children:(0,d.jsx)("input",{id:"stt-example-prompt",value:s,onChange:a=>t(a.target.value),placeholder:"optional context to improve accuracy",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),n.includes("temperature")&&(0,d.jsx)(B,{label:"Temperature",htmlFor:"stt-example-temperature",children:(0,d.jsx)("input",{id:"stt-example-temperature",type:"number",step:"0.1",min:"0",max:"1",value:y,onChange:a=>z(a.target.value),placeholder:"0 - 1 (default 0)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),n.includes("response_format")&&(0,d.jsx)(B,{label:"Response Format",htmlFor:"stt-example-format",children:(0,d.jsxs)("select",{id:"stt-example-format",value:w,onChange:a=>x(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"json",children:"json"}),(0,d.jsx)("option",{value:"text",children:"text"}),(0,d.jsx)("option",{value:"srt",children:"srt"}),(0,d.jsx)("option",{value:"verbose_json",children:"verbose_json"}),(0,d.jsx)("option",{value:"vtt",children:"vtt"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>P(T),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:O?"check":"content_copy"}),O?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:U,disabled:J||!o||!S||!A.trim(),className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-on-primary text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:J?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),J?"Transcribing...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:T})]}),L&&(0,d.jsx)("p",{role:"alert",className:"text-xs text-red-500 break-words",children:L}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",F&&H&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",H,"ms"]})]}),F&&(0,d.jsxs)("button",{onClick:()=>R(V),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:Q?"check":"content_copy"}),Q?"Copied":"Copy"]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:V})]})]})]})}var O=c(78097);function P(){let{kind:a,id:b}=(0,e.useParams)(),c=(0,e.useRouter)(),f=k.rj.find(b=>b.id===a),l=(0,k.gC)(b)&&"embedding"===a,m=async()=>{if(await (0,O.l)({message:"Delete this Custom Embedding node?",confirmText:"Continue"}))try{await (0,x.x)(`/api/provider-nodes/${encodeURIComponent(b)}`,{method:"DELETE"}),c.push(`/dashboard/media-providers/${a}`)}catch(a){(0,w.s)("Error deleting custom embedding node:",a)}},[n,o]=(0,h.useState)(null),[p,q]=(0,h.useState)(l),[r,s]=(0,h.useState)(!1),[u,v]=(0,h.useState)(!1);if(!f)return(0,e.notFound)();let y=k.Q2[b],z=l?n?{id:b,name:n.name||"Custom Embedding",color:"#6366F1",textIcon:"CE"}:null:y;if(!l&&!y)return(0,e.notFound)();if(l&&r)return(0,d.jsx)("div",{role:"alert",className:"text-text-muted text-sm py-12 text-center",children:"Couldn't load this provider node. Check the server and retry."});if(l&&!p&&!n)return(0,e.notFound)();if(l&&p)return(0,d.jsx)("div",{className:"text-text-muted text-sm py-12 text-center",children:"Loading..."});let B=l?["embedding"]:z.serviceKinds??["llm"];return l||B.includes(a)?(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)(g(),{href:`/dashboard/media-providers/${a}`,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"}),f.label]}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[(0,d.jsx)("div",{className:"size-12 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${z.color}15`},children:(0,d.jsx)(j.A,{src:`/providers/${z.id}.png`,alt:z.name,size:48,className:"object-contain rounded-lg max-w-[48px] max-h-[48px]",fallbackText:z.textIcon||z.id.slice(0,2).toUpperCase(),fallbackColor:z.color})}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[(0,d.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:z.name}),!l&&z.notice?.apiKeyUrl&&(0,d.jsxs)("a",{href:z.notice.apiKeyUrl,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"}),"Get API Key"]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[l&&(0,d.jsxs)(i.Ex,{variant:"default",size:"sm",children:["Custom \xb7 ",n?.prefix]}),B.map(b=>(0,d.jsx)(i.Ex,{variant:b===a?"primary":"default",size:"sm",children:b.toUpperCase()},b))]})]}),l&&(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>v(!0),children:"Edit"}),(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:m,children:"Delete"})]})]})]}),!l&&z.kindNotice?.[a]&&(0,d.jsxs)("div",{className:"flex items-start gap-3 px-4 py-3 rounded-lg bg-amber-500/10 border border-amber-500/30 text-amber-700 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px] mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"text-sm",children:z.kindNotice[a]})]}),!l&&z.notice?.text&&!z.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:z.notice.text}),z.notice.apiKeyUrl&&(0,d.jsx)("a",{href:z.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 →"})]}),!l&&z.noAuth?(0,d.jsx)(i.gw,{providerId:b}):(0,d.jsx)(t,{providerId:b,isOAuth:!1}),"tts"!==a&&"webSearch"!==a&&"webFetch"!==a&&(0,d.jsx)(A,{providerId:b,kindFilter:a,providerAliasOverride:l?n?.prefix:void 0}),!l&&(z.searchConfig||z.fetchConfig||z.ttsConfig||z.sttConfig||z.embeddingConfig||z.searchViaChat)&&(0,d.jsx)(i.Wx,{config:"webFetch"===a?z.fetchConfig:"tts"===a?z.ttsConfig:"stt"===a?z.sttConfig:"embedding"===a?z.embeddingConfig:z.searchConfig||{mode:"chat-completions",defaultModel:z.searchViaChat?.defaultModel,pricingUrl:z.searchViaChat?.pricingUrl,freeTier:z.searchViaChat?.freeTier},provider:z,title:`${f.label} Config`}),"embedding"===a&&(0,d.jsx)(E,{providerId:b,customAlias:n?.prefix}),"tts"===a&&(0,d.jsx)(I,{providerId:b}),"stt"===a&&!l&&(0,d.jsx)(N,{providerId:b}),!l&&C[a]&&(0,d.jsx)(M,{providerId:b,kind:a}),l&&(0,d.jsx)(i.x0,{isOpen:u,node:n,onClose:()=>v(!1),onSaved:a=>{o(a),v(!1)}})]}):(0,e.notFound)()}},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}},22758:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>A,handler:()=>C,routeModule:()=>B});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=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),y={children:["",{children:["(dashboard)",{children:["dashboard",{children:["media-providers",{children:["[kind]",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,69296))),"/home/runner/work/switchboard-router/switchboard-router/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js"]}]},{"global-error":[x,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[w,"next/dist/client/components/builtin/global-error.js"]},["combo","web"]]},{"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,z=(0,e.H)({tree:y,page:"/(dashboard)/dashboard/media-providers/[kind]/[id]/page",pathname:"/dashboard/media-providers/[kind]/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),A=z.__next_app__,B=z.routeModule,C=z.handler},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")},50412:(a,b,c)=>{"use strict";c.d(b,{x0:()=>x.default,Ex:()=>j.default,$n:()=>d.default,nh:()=>C.default,Zp:()=>g.default,Qv:()=>i.CardSkeleton,CK:()=>o.default,uo:()=>h.ConfirmModal,G9:()=>t.default,wI:()=>w.default,vj:()=>v.default,vE:()=>u.default,pd:()=>e.default,Mh:()=>s.default,uR:()=>n.default,Nf:()=>p.default,aF:()=>h.default,rq:()=>m.default,gw:()=>y.default,LF:()=>l.default,Wx:()=>B.default,gM:()=>r.default,Iz:()=>z.default,l6:()=>f.default,lM:()=>k.default,m_:()=>A.default,jK:()=>q.default});var d=c(99070),e=c(83552),f=c(4770),g=c(17660),h=c(95145),i=c(74812);c(25919);var j=c(75171),k=c(95514);c(43878),c(19308),c(42196),c(32456),c(48781);var l=c(79346),m=c(83352),n=c(39645),o=c(62727),p=c(20084),q=c(87226);c(267),c(3236),c(11229);var r=c(91809);c(4481);var s=c(5291);c(56110);var t=c(51109),u=c(79488),v=c(43182),w=c(51585),x=c(67738),y=c(50585),z=c(91099),A=c(32971),B=c(11633),C=c(38930);c(5993),c(53838)},54918:(a,b,c)=>{"use strict";async function d(a,b){let c=await fetch(a,{...b,headers:{"Content-Type":"application/json",...b?.headers||{}},credentials:"same-origin"}),d=null;try{d=await c.json()}catch{d=null}if(!c.ok){let a=d&&(d.error||d.message)||`Request failed (${c.status})`,b=Error("string"==typeof a?a:"Request failed");throw b.status=c.status,b.data=d,b}return d}c.d(b,{x:()=>d})},55443:(a,b,c)=>{Promise.resolve().then(c.bind(c,69296))},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")},69296:(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/media-providers/[kind]/[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/media-providers/[kind]/[id]/page.js","default")},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")},92395:(a,b,c)=>{Promise.resolve().then(c.bind(c,4120))},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,2430,9995,2712,3787,8976,5350,869,2142,5781,5717,3423,7757,4330],()=>b(b.s=22758));module.exports=c})();
|