@rabbi696/ezrouter 0.5.98 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +21 -19
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/routes-manifest.json +16 -4
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +5 -5
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +18 -5
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +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/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
- package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +6 -6
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +4 -4
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/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/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/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/combos/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/convoy/rules/route.js +1 -1
- package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -0
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route_client-reference-manifest.js +1 -0
- 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/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/callback/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/grok-cli/bulk-import/route.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/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]/refresh-profile/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tool-disclosure/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/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/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 +3 -3
- 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/[...model]/route.js +1 -0
- package/app/.next-cli-build/server/app/api/v1/models/{[kind] → [...model]}/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route_client-reference-manifest.js +1 -0
- 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/models/route_client-reference-manifest.js +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 +2 -2
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_index.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 +2 -2
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js +2 -2
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +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 +2 -2
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +21 -19
- package/app/.next-cli-build/server/chunks/1133.js +1 -1
- package/app/.next-cli-build/server/chunks/1253.js +1 -1
- package/app/.next-cli-build/server/chunks/1329.js +1 -1
- package/app/.next-cli-build/server/chunks/1522.js +1 -1
- package/app/.next-cli-build/server/chunks/1531.js +1 -1
- package/app/.next-cli-build/server/chunks/1714.js +1 -1
- package/app/.next-cli-build/server/chunks/1847.js +1 -0
- package/app/.next-cli-build/server/chunks/2177.js +1 -1
- package/app/.next-cli-build/server/chunks/2269.js +1 -1
- package/app/.next-cli-build/server/chunks/2382.js +1 -0
- package/app/.next-cli-build/server/chunks/2547.js +3 -3
- package/app/.next-cli-build/server/chunks/2892.js +1 -0
- package/app/.next-cli-build/server/chunks/2898.js +1 -1
- package/app/.next-cli-build/server/chunks/290.js +1 -0
- package/app/.next-cli-build/server/chunks/3148.js +2 -2
- package/app/.next-cli-build/server/chunks/3433.js +6 -6
- package/app/.next-cli-build/server/chunks/3547.js +1 -1
- package/app/.next-cli-build/server/chunks/3647.js +1 -0
- package/app/.next-cli-build/server/chunks/369.js +25 -25
- package/app/.next-cli-build/server/chunks/3814.js +1 -1
- package/app/.next-cli-build/server/chunks/3886.js +1 -0
- package/app/.next-cli-build/server/chunks/412.js +2 -2
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4562.js +1 -1
- package/app/.next-cli-build/server/chunks/4646.js +1 -1
- package/app/.next-cli-build/server/chunks/{9233.js → 4704.js} +2 -2
- package/app/.next-cli-build/server/chunks/476.js +1 -1
- package/app/.next-cli-build/server/chunks/4928.js +1 -9
- package/app/.next-cli-build/server/chunks/4999.js +1 -1
- package/app/.next-cli-build/server/chunks/5129.js +1 -1
- package/app/.next-cli-build/server/chunks/5849.js +1 -0
- package/app/.next-cli-build/server/chunks/6112.js +1 -0
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6405.js +1 -1
- package/app/.next-cli-build/server/chunks/{5681.js → 6436.js} +1 -1
- package/app/.next-cli-build/server/chunks/6535.js +23 -20
- package/app/.next-cli-build/server/chunks/6958.js +1 -0
- package/app/.next-cli-build/server/chunks/6975.js +300 -0
- package/app/.next-cli-build/server/chunks/7054.js +1 -0
- package/app/.next-cli-build/server/chunks/7239.js +1 -1
- package/app/.next-cli-build/server/chunks/7353.js +1 -1
- package/app/.next-cli-build/server/chunks/7362.js +2 -2
- package/app/.next-cli-build/server/chunks/7413.js +2 -0
- package/app/.next-cli-build/server/chunks/{7456.js → 7438.js} +16 -16
- package/app/.next-cli-build/server/chunks/7467.js +1 -0
- package/app/.next-cli-build/server/chunks/7603.js +1 -0
- package/app/.next-cli-build/server/chunks/7716.js +1 -0
- package/app/.next-cli-build/server/chunks/7734.js +1 -1
- package/app/.next-cli-build/server/chunks/7775.js +1 -1
- package/app/.next-cli-build/server/chunks/7785.js +9 -0
- package/app/.next-cli-build/server/chunks/8129.js +1 -1
- package/app/.next-cli-build/server/chunks/8243.js +3 -3
- package/app/.next-cli-build/server/chunks/8251.js +2 -2
- package/app/.next-cli-build/server/chunks/8326.js +1 -1
- package/app/.next-cli-build/server/chunks/8421.js +1 -1
- package/app/.next-cli-build/server/chunks/8851.js +1 -1
- package/app/.next-cli-build/server/chunks/8946.js +1 -1
- package/app/.next-cli-build/server/chunks/8976.js +1 -1
- package/app/.next-cli-build/server/chunks/9043.js +1 -1
- package/app/.next-cli-build/server/chunks/9217.js +1 -1
- package/app/.next-cli-build/server/chunks/9296.js +1 -1
- package/app/.next-cli-build/server/chunks/9303.js +1 -0
- package/app/.next-cli-build/server/chunks/9485.js +1 -0
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +2 -2
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/{1321-63ac05d53922a27c.js → 1321-0bac17bbe74aaa54.js} +1 -1
- package/app/.next-cli-build/static/chunks/2595-2d703efb995163a7.js +95 -0
- package/app/.next-cli-build/static/chunks/{5497-22fe81a552f1646d.js → 5497-675887789aaf2c43.js} +3 -3
- package/app/.next-cli-build/static/chunks/801-a83c4648747b8c6a.js +1 -0
- package/app/.next-cli-build/static/chunks/8105-e46089480e63b1a9.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-c7840dae0ef76527.js → page-178f383964973bfb.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-0e4d3fb00fc6a9bf.js → page-ce0b5b8882899119.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-4c63bfc57149c7eb.js → page-257aaa1374d529b4.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-64177496760b1187.js → page-78c78a3108fbe60e.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-dc6c3c72e5d6acc3.js → page-2c65df20769d31df.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/convoy/{page-5ada6cd825b67236.js → page-8c2bc69a688a000b.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-a840225ab3f601c2.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-0ab40e69321978fb.js → page-90a4f789d907db25.js} +4 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-cb36efdbd929e8e1.js → page-c671ae36a313887b.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-46eaa5603462d610.js → page-3df89694c0bbdeb8.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-ed1ea0fa33a0b190.js → page-b2540d642bc46f4c.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-e316dc83a5a557a6.js → page-e44166090e05cfb3.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-18192f830d2ddb76.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-db01adc017c79525.js → page-e996175d559e9e5a.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-f3d9a84f9e04119e.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-b6b4de987365ec8f.js → page-3f52ff9517c679ba.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-10cfe308dcee550e.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-491fe95c5b5277a9.js → page-a43ff8ae35edb414.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-ec79e9bb5a842351.js → page-1ac6f4d529f9b6a5.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-c55b823e44230396.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/routing-health/{page-703d4a28b1852949.js → page-a14b37a404e5e6e0.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-b6026576dd4be770.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-93bca4f363f4b6f1.js → page-73fe7ee1ecd1bd52.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-34f5228777b0430d.js → page-74477be9930501e3.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-3ecea7f87104d318.js → page-d74d7a054b638e0d.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-d77f0a1a4ce2f537.js → layout-100d6d3c6c7256f1.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/landing/page-7d5b31b8481d8fdd.js +1 -0
- package/app/.next-cli-build/static/chunks/app/login/{page-27e9a95a150a0ac4.js → page-57af8e67ea3a745f.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-b71f397798104162.js +1 -0
- package/app/.next-cli-build/static/css/abc246bcd6eb079c.css +1 -0
- package/app/.next-cli-build/static/p4AwDShOmXa3ZUcXCsntQ/_buildManifest.js +1 -0
- package/app/CHANGELOG.md +334 -2
- package/app/package.json +3 -3
- package/app/public/CHANGELOG.md +334 -2
- package/app/public/i18n/literals/id.json +1368 -159
- package/app/public/i18n/literals/pt-BR.json +7 -8
- package/app/public/i18n/literals/zh-CN.json +1 -0
- package/app/public/providers/alims-intl.png +0 -0
- package/app/public/providers/alitp-intl.png +0 -0
- package/app/public/providers/fish-audio.png +0 -0
- package/app/public/providers/selfhosted-embedding.png +0 -0
- package/app/public/providers/selfhosted-stt.png +0 -0
- package/app/public/providers/selfhosted-tts.png +0 -0
- package/app/public/providers/xquik.png +0 -0
- package/app/src/mitm/server.js +26 -26
- package/hooks/sqliteRuntime.js +28 -5
- package/package.json +1 -1
- package/src/cli/menus/providers.js +5 -0
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +0 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route_client-reference-manifest.js +0 -1
- package/app/.next-cli-build/server/chunks/1446.js +0 -1
- package/app/.next-cli-build/server/chunks/2031.js +0 -1
- package/app/.next-cli-build/server/chunks/3904.js +0 -1
- package/app/.next-cli-build/server/chunks/5502.js +0 -1
- package/app/.next-cli-build/server/chunks/5841.js +0 -1
- package/app/.next-cli-build/server/chunks/7281.js +0 -1
- package/app/.next-cli-build/server/chunks/7335.js +0 -1
- package/app/.next-cli-build/server/chunks/7591.js +0 -1
- package/app/.next-cli-build/server/chunks/8901.js +0 -300
- package/app/.next-cli-build/server/chunks/8906.js +0 -2
- package/app/.next-cli-build/server/chunks/9212.js +0 -1
- package/app/.next-cli-build/server/chunks/9884.js +0 -1
- package/app/.next-cli-build/static/chunks/2595-1b1c30e3a4314456.js +0 -92
- package/app/.next-cli-build/static/chunks/801-9683dc19ffb81217.js +0 -1
- package/app/.next-cli-build/static/chunks/8105-39d6edfaddcbf181.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-272444fcf2114bb5.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-2247901c7422157d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-04f568d5510f26f7.js +0 -14
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-38f69db60cdfe7cd.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-973240b44eb04877.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-4b65eb84c14bf9f0.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/changelog/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/export/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/routing-health/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/landing/page-e7e81318e9e5c4e4.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-27e63c5064200d37.js +0 -1
- package/app/.next-cli-build/static/css/c784a89390f4e764.css +0 -1
- package/app/.next-cli-build/static/xv8sG0IpdFOQ-S9xqigzH/_buildManifest.js +0 -1
- /package/app/.next-cli-build/static/{xv8sG0IpdFOQ-S9xqigzH → p4AwDShOmXa3ZUcXCsntQ}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[182],{1389:(e,t,a)=>{Promise.resolve().then(a.bind(a,13663))},13663:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>en});var s=a(95155),r=a(73321),n=a(98500),l=a.n(n),i=a(12115),o=a(35497),d=a(57250),c=a(88105),m=a(70217);[{voice_id:"9BWtsMINqrJLrRacOk9x",name:"Aria",free:!1,labels:{gender:"female",accent:"american",language:"en"}},{voice_id:"CwhRBWXzGAHq8TQ4Fs17",name:"Roger",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"EXAVITQu4vr4xnSDxMaL",name:"Sarah",free:!0,labels:{gender:"female",accent:"american",language:"en"}},{voice_id:"FGY2WhTYpPnrIDTdsKH5",name:"Laura",free:!0,labels:{gender:"female",accent:"american",language:"en"}},{voice_id:"IKne3meq5aSn9XLyUdCD",name:"Charlie",free:!0,labels:{gender:"male",accent:"australian",language:"en"}},{voice_id:"JBFqnCBsd6RMkjVDRZzb",name:"George",free:!0,labels:{gender:"male",accent:"british",language:"en"}},{voice_id:"N2lVS1w4EtoT3dr4eOWO",name:"Callum",free:!0,labels:{gender:"male",accent:"transatlantic",language:"en"}},{voice_id:"SAz9YHcvj6GT2YYXdXww",name:"River",free:!0,labels:{gender:"neutral",accent:"american",language:"en"}},{voice_id:"TX3LPaxmHKxFdv7VOQHJ",name:"Liam",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"XB0fDUnXU5powFXDhCwa",name:"Charlotte",free:!1,labels:{gender:"female",accent:"swedish",language:"en"}},{voice_id:"Xb7hH8MSUJpSbSDYk0k2",name:"Alice",free:!0,labels:{gender:"female",accent:"british",language:"en"}},{voice_id:"XrExE9yKIg1WjnnlVkGX",name:"Matilda",free:!0,labels:{gender:"female",accent:"american",language:"en"}},{voice_id:"bIHbv24MWmeRgasZH58o",name:"Will",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"cgSgspJ2msm6clMCkdW9",name:"Jessica",free:!0,labels:{gender:"female",accent:"american",language:"en"}},{voice_id:"cjVigY5qzO86Huf0OWal",name:"Eric",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"iP95p4xoKVk53GoZ742B",name:"Chris",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"nPczCjzI2devNBz1zQrb",name:"Brian",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"onwK4e9ZLuTAKqWW03F9",name:"Daniel",free:!0,labels:{gender:"male",accent:"british",language:"en"}},{voice_id:"pFZP5JQG7iQjIQuC4Bku",name:"Lily",free:!0,labels:{gender:"female",accent:"british",language:"en"}},{voice_id:"pqHfZKP75CvOlQylNhV4",name:"Bill",free:!0,labels:{gender:"male",accent:"american",language:"en"}}].map(e=>({...e,category:"premade",lang:e.labels.language,free_users_allowed:e.free}));let u="tts-generated",p={"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",defaultVoiceId:"pNInz6obpgDQGcFmaJgB"},"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},"xiaomi-mimo":{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!1,hasStyleInput:!0,hasLanguageHint:!0,languageOptions:["Chinese","English"],voiceSource:"hardcoded",modelKey:"xiaomi-mimo-tts-models",voicesPerModel:!0}};var x=a(14051),h=a.n(x),g=a(78177);function b({until:e}){let[t,a]=(0,i.useState)("");return((0,i.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void a("");let s=Math.floor(t/1e3);s<60?a(`${s}s`):s<3600?a(`${Math.floor(s/60)}m ${s%60}s`):a(`${Math.floor(s/3600)}h ${Math.floor(s%3600/60)}m`)};t();let s=setInterval(t,1e3);return()=>clearInterval(s)},[e]),t)?(0,s.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",t]}):null}b.propTypes={until:h().string.isRequired};let f=e=>Number(e||0).toLocaleString();function y({connection:e,proxyPools:t,isOAuth:a,isFirst:r,isLast:n,onMoveUp:l,onMoveDown:d,onToggleActive:p,onUpdateProxy:x,onEdit:h,onDelete:v,onClearError:j}){let[w,N]=(0,i.useState)(!1),[k,S]=(0,i.useState)(!1),[C,$]=(0,i.useState)(!1),[A,E]=(0,i.useState)(null),[P,_]=(0,i.useState)(!1),I=(0,i.useRef)(null);(0,i.useEffect)(()=>{let t=()=>_(!!e.lastError&&!1!==e.isActive&&!!e.lastErrorAt&&Date.now()-new Date(e.lastErrorAt).getTime()<6e5);if(t(),!e.lastError||!e.lastErrorAt)return;let a=6e5-(Date.now()-new Date(e.lastErrorAt).getTime());if(a<=0)return;let s=setTimeout(t,a);return()=>clearTimeout(s)},[e.lastError,e.lastErrorAt,e.isActive]),(0,i.useEffect)(()=>{if(a||!1===e.isActive||!c.jO.includes(e.provider))return;let t=!1,s=null,r=0,n=()=>{document.hidden||(r=Date.now(),fetch(`/api/usage/${e.id}`).then(e=>e.ok?e.json():null).then(e=>{if(t||!e?.quotas)return;let a=Object.entries(e.quotas)[0];a&&E({label:a[1]?.displayName||a[0],...a[1]})}).catch(()=>{}))};n();let l=()=>{!document.hidden&&Date.now()-r>6e4&&n()},i=t=>{t?.detail?.provider&&t.detail.provider!==e.provider||(clearTimeout(s),s=setTimeout(n,1500))};return document.addEventListener("visibilitychange",l),window.addEventListener(u,i),()=>{t=!0,clearTimeout(s),document.removeEventListener("visibilitychange",l),window.removeEventListener(u,i)}},[e.id,e.provider,a,e.isActive]);let T=new Map((t||[]).map(e=>[e.id,e])),R=e.providerSpecificData?.proxyPoolId||null,L=R?T.get(R):null,O=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,M=!!R||O,D=L?`Pool: ${L.name}`:R?`Pool: ${R} (inactive/missing)`:O?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",B="",U=L?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;if(U)try{let e=new URL(U);B=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{B=U}let K=L?.noProxy||e.providerSpecificData?.connectionNoProxy||"",F=L?.isActive===!0?"success":R||O?"error":"default",q=Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(Boolean).sort()[0]||null;(0,i.useEffect)(()=>{let t=()=>{$(!!Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>e&&new Date(e).getTime()>Date.now()).sort()[0])};t();let a=q?setInterval(t,1e3):null;return()=>{a&&clearInterval(a)}},[q]),(0,i.useEffect)(()=>{if(!w)return;let e=e=>{I.current&&!I.current.contains(e.target)&&N(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[w]);let z="unavailable"!==e.testStatus||C?e.testStatus:"active",V=(0,g.XD)(e),H=a?e.name||e.email||e.displayName||"OAuth Account":e.name,J=async e=>{S(!0);try{await x("__none__"===e?null:e)}finally{S(!1),N(!1)}};return(0,s.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===e.isActive?"opacity-60":""}`,children:[(0,s.jsxs)("div",{className:"flex w-full min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("button",{onClick:l,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,s.jsx)("button",{onClick:d,disabled:n,className:`p-0.5 rounded ${n?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,s.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",children:a?"lock":"key"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium truncate",children:H}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-1",children:[(0,s.jsx)(o.Ex,{variant:(0,m.g)(e.isActive,z),size:"sm",dot:!0,children:!1===e.isActive?"disabled":z||"Unknown"}),M&&(0,s.jsx)(o.Ex,{variant:F,size:"sm",children:"Proxy"}),C&&!1!==e.isActive&&(0,s.jsx)(b,{until:q}),V.paused&&!1!==e.isActive&&(0,s.jsx)(o.Ex,{variant:"warning",size:"sm",children:"Paused (quota)"}),P&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 max-w-[320px]",children:[(0,s.jsx)("span",{className:"text-xs text-red-500 truncate",title:e.lastError,children:e.lastError}),(0,s.jsx)("button",{type:"button",onClick:j,title:"Dismiss this error",className:"shrink-0 text-red-400 hover:text-red-600 transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]})]}),A&&(0,s.jsxs)("div",{className:"mt-1.5 flex items-center gap-2",title:A.resetAt?`Reset: ${new Date(A.resetAt).toLocaleString()}`:void 0,children:[!A.unlimited&&A.total>0&&(0,s.jsx)("div",{className:"h-1.5 w-24 rounded-full bg-black/10 dark:bg-white/10 overflow-hidden shrink-0",children:(0,s.jsx)("div",{className:`h-full ${A.remainingPercentage<=10?"bg-red-500":A.remainingPercentage<=30?"bg-amber-500":"bg-primary"}`,style:{width:`${A.remainingPercentage}%`}})}),(0,s.jsxs)("span",{className:"text-[11px] text-text-muted",children:[A.unlimited?"Credits: Unlimited":(0,s.jsxs)(s.Fragment,{children:[f(A.remaining)," / ",f(A.total)," ","credits left"]}),A.resetAt&&(0,s.jsxs)("span",{className:"text-text-muted/70",children:[" \xb7 ","resets"," ",new Date(A.resetAt).toLocaleDateString()]})]})]}),M&&(0,s.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"text-[11px] text-text-muted truncate max-w-[420px]",title:D,children:D}),B&&(0,s.jsx)("code",{className:"text-[10px] font-mono bg-black/5 dark:bg-white/5 px-1 py-0.5 rounded text-text-muted",children:B}),K&&(0,s.jsxs)("span",{className:"text-[11px] text-text-muted truncate max-w-[320px]",title:K,children:["no_proxy: ",K]})]})]})]}),(0,s.jsxs)("div",{className:"flex w-full flex-wrap items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(t||[]).length>0&&(0,s.jsxs)("div",{className:"relative",ref:I,children:[(0,s.jsxs)("button",{onClick:()=>N(e=>!e),className:`flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 transition-colors ${M?"text-primary":"text-text-muted hover:text-primary"}`,disabled:k,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:k?"progress_activity":"lan"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),w&&(0,s.jsxs)("div",{className:"absolute right-0 top-full mt-1 z-50 bg-bg border border-border rounded-lg shadow-lg py-1 min-w-[160px]",children:[(0,s.jsx)("button",{onClick:()=>J("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!R?"text-primary font-medium":"text-text-main"}`,children:"None"}),(t||[]).map(e=>(0,s.jsx)("button",{onClick:()=>J(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${R===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]})]}),(0,s.jsxs)("button",{onClick:h,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,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,s.jsxs)("button",{onClick:v,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-red-500/10 text-red-500",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,s.jsx)(o.lM,{size:"sm",checked:e.isActive??!0,onChange:p,title:e.isActive??!0?"Disable":"Enable"})]})]})}function v({isOpen:e,provider:t,providerName:a,proxyPools:r,onSave:n,onClose:l}){let d="__none__",[c,m]=(0,i.useState)({name:"",apiKey:"",priority:1,proxyPoolId:d}),[u,p]=(0,i.useState)(!1),[x,h]=(0,i.useState)(null),[g,b]=(0,i.useState)(!1),f=async()=>{p(!0);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:c.apiKey})}),a=await e.json();h(a.valid?"success":"failed")}catch{h("failed")}finally{p(!1)}},y=async()=>{if(t&&c.apiKey){b(!0);try{let e=!1;try{p(!0),h(null);let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:c.apiKey})});e=!!(await a.json()).valid,h(e?"success":"failed")}catch{h("failed")}finally{p(!1)}await n({name:c.name,apiKey:c.apiKey,priority:c.priority,proxyPoolId:c.proxyPoolId===d?null:c.proxyPoolId,testStatus:e?"active":"unknown"})}finally{b(!1)}}};return t?(0,s.jsx)(o.aF,{isOpen:e,title:`Add ${a||t} API Key`,onClose:l,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Name"}),(0,s.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:c.name,onChange:e=>m({...c,name:e.target.value}),placeholder:"Production Key"})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"API Key"}),(0,s.jsx)("input",{type:"password",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:c.apiKey,onChange:e=>m({...c,apiKey:e.target.value})})]}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(o.$n,{onClick:f,disabled:!c.apiKey||u||g,variant:"secondary",children:u?"Checking...":"Check"})})]}),x&&(0,s.jsx)(o.Ex,{variant:"success"===x?"success":"error",children:"success"===x?"Valid":"Invalid"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Priority"}),(0,s.jsx)("input",{type:"number",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:c.priority,onChange:e=>m({...c,priority:Number.parseInt(e.target.value)||1})})]}),(0,s.jsx)(o.l6,{label:"Proxy Pool",value:c.proxyPoolId,onChange:e=>m({...c,proxyPoolId:e.target.value}),options:[{value:d,label:"None"},...(r||[]).map(e=>({value:e.id,label:e.name}))]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{onClick:y,fullWidth:!0,disabled:!c.name||!c.apiKey||g,children:g?"Saving...":"Save"}),(0,s.jsx)(o.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function j({providerId:e,isOAuth:t}){let[a,r]=(0,i.useState)([]),[n,l]=(0,i.useState)([]),[d,c]=(0,i.useState)(!0),[m,u]=(0,i.useState)(!1),[p,x]=(0,i.useState)(!1),[h,g]=(0,i.useState)(null),[b,f]=(0,i.useState)(null),[w,N]=(0,i.useState)("1"),[k,S]=(0,i.useState)(null),C=(0,i.useCallback)(async()=>{try{let[t,a,s]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),n=await t.json(),i=await a.json(),o=s.ok?await s.json():{};t.ok&&r((n.connections||[]).filter(t=>t.provider===e)),a.ok&&l(i.proxyPools||[]);let d=(o.providerStrategies||{})[e]||{};f(d.fallbackStrategy||null),N(null!=d.stickyRoundRobinLimit?String(d.stickyRoundRobinLimit):"1")}catch(e){console.log("ConnectionsCard fetch error:",e)}finally{c(!1)}},[e]);(0,i.useEffect)(()=>{C()},[C]);let $=async(t,a)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),r=(s.ok?await s.json():{}).providerStrategies||{},n={};t&&(n.fallbackStrategy=t),"round-robin"===t&&""!==a&&(n.stickyRoundRobinLimit=Number(a)||3);let l={...r};0===Object.keys(n).length?delete l[e]:l[e]=n,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:l})})}catch(e){console.log("saveStrategy error:",e)}},A=async(e,t)=>{let s=[...a];[s[e],s[t]]=[s[t],s[e]],r(s);try{await Promise.all([fetch(`/api/providers/${s[e].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:e})}),fetch(`/api/providers/${s[t].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:t})})])}catch{await C()}},E=async e=>{S({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{S(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&r(t=>t.filter(t=>t.id!==e))}catch(e){console.log("delete error:",e)}}})},P=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&r(a=>a.map(a=>a.id===e?{...a,isActive:t}:a))}catch(e){console.log("toggle error:",e)}},_=async e=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({lastError:null,lastErrorAt:null})})).ok&&r(t=>t.map(t=>t.id===e?{...t,lastError:null,lastErrorAt:null}:t))}catch(e){console.log("clear error:",e)}},I=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:t||null})})).ok&&r(a=>a.map(a=>a.id===e?{...a,providerSpecificData:{...a.providerSpecificData,proxyPoolId:t||null}}:a))}catch(e){console.log("proxy error:",e)}},T=async t=>{try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:e,...t})})).ok&&(await C(),u(!1))}catch(e){console.log("save apikey error:",e)}},R=async e=>{try{(await fetch(`/api/providers/${h.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await C(),x(!1))}catch(e){console.log("update connection error:",e)}};return d?(0,s.jsx)(o.Zp,{children:(0,s.jsx)("div",{className:"h-20 animate-pulse bg-black/5 rounded-lg"})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,s.jsx)(o.lM,{checked:"round-robin"===b,onChange:e=>{let t=e?"round-robin":null;f(t),e&&!w&&N("1"),$(t,e?w||"1":w)}}),"round-robin"===b&&(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,s.jsx)("input",{type:"number",min:1,value:w,onChange:e=>{N(e.target.value),$("round-robin",e.target.value)},className:"w-16 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]}),0===a.length?(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),(0,s.jsx)(o.$n,{size:"sm",icon:"add",onClick:()=>u(!0),children:"Add Connection"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:a.map((e,r)=>(0,s.jsx)(y,{connection:e,proxyPools:n,isOAuth:t,isFirst:0===r,isLast:r===a.length-1,onMoveUp:()=>A(r,r-1),onMoveDown:()=>A(r,r+1),onToggleActive:t=>P(e.id,t),onUpdateProxy:t=>I(e.id,t),onEdit:()=>{g(e),x(!0)},onDelete:()=>E(e.id),onClearError:()=>_(e.id)},e.id))}),(0,s.jsx)("div",{className:"mt-4 flex justify-stretch sm:justify-start",children:(0,s.jsx)(o.$n,{size:"sm",icon:"add",onClick:()=>u(!0),children:"Add"})})]})]}),(0,s.jsx)(v,{isOpen:m,provider:e,proxyPools:n,onSave:T,onClose:()=>u(!1)}),(0,s.jsx)(o.wI,{isOpen:p,connection:h,proxyPools:n,onSave:R,onClose:()=>x(!1)}),(0,s.jsx)(o.uo,{isOpen:!!k,onClose:()=>S(null),onConfirm:k?.onConfirm,title:k?.title||"Confirm",message:k?.message,variant:"danger"})]})}y.propTypes={connection:h().shape({id:h().string,name:h().string,email:h().string,displayName:h().string,testStatus:h().string,isActive:h().bool,lastError:h().string,priority:h().number}).isRequired,proxyPools:h().array,isOAuth:h().bool.isRequired,isFirst:h().bool.isRequired,isLast:h().bool.isRequired,onMoveUp:h().func.isRequired,onMoveDown:h().func.isRequired,onToggleActive:h().func.isRequired,onUpdateProxy:h().func,onEdit:h().func.isRequired,onDelete:h().func.isRequired,onClearError:h().func},v.propTypes={isOpen:h().bool.isRequired,provider:h().string,providerName:h().string,proxyPools:h().array,onSave:h().func.isRequired,onClose:h().func.isRequired},j.propTypes={providerId:h().string.isRequired,isOAuth:h().bool};var w=a(28777),N=a(11059);function k({model:e,fullModel:t,copied:a,onCopy:r,testStatus:n,isCustom:l,isFree:i,onDeleteAlias:o,onTest:d,isTesting:c}){let m="ok"===n?"#22c55e":"error"===n?"#ef4444":void 0;return(0,s.jsx)("div",{className:`group px-3 py-2 rounded-lg border ${"ok"===n?"border-green-500/40":"error"===n?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base",style:m?{color:m}:void 0,children:"ok"===n?"check_circle":"error"===n?"cancel":"smart_toy"}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),e.name&&(0,s.jsx)("span",{className:"text-[9px] text-text-muted/70 italic pl-1",children:e.name})]}),d&&(0,s.jsxs)("div",{className:"relative group/btn",children:[(0,s.jsx)("button",{onClick:d,disabled:c,className:`p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-opacity ${c?"opacity-100":"opacity-0 group-hover:opacity-100"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:c?{animation:"spin 1s linear infinite"}:void 0,children:c?"progress_activity":"science"})}),(0,s.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?"Testing...":"Test"})]}),(0,s.jsxs)("div",{className:"relative group/btn",children:[(0,s.jsx)("button",{onClick:()=>r(t,`model-${e.id}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:a===`model-${e.id}`?"check":"content_copy"})}),(0,s.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:a===`model-${e.id}`?"Copied!":"Copy"})]}),i&&(0,s.jsx)("span",{className:"text-[10px] font-bold text-green-500 bg-green-500/10 px-1.5 py-0.5 rounded",children:"FREE"}),l&&(0,s.jsx)("button",{onClick:o,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,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})})]})})}function S({isOpen:e,onSave:t,onClose:a}){let[r,n]=(0,i.useState)(""),l=()=>{r.trim()&&(t(r.trim()),n(""))};return(0,s.jsx)(o.aF,{isOpen:e,title:"Add Custom Model",onClose:a,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,s.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:r,onChange:e=>n(e.target.value),onKeyDown:e=>"Enter"===e.key&&l(),placeholder:"e.g. tts-1-hd",autoFocus:!0})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{onClick:l,fullWidth:!0,disabled:!r.trim(),children:"Add"}),(0,s.jsx)(o.$n,{onClick:a,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}function C({providerId:e,kindFilter:t,providerAliasOverride:a}){let{copied:r,copy:n}=(0,N.C)(),[l,d]=(0,i.useState)({}),[m,u]=(0,i.useState)([]),[p,x]=(0,i.useState)({}),[h,g]=(0,i.useState)(null),[b,f]=(0,i.useState)(""),[y,v]=(0,i.useState)(!1),j=a||(0,c.wG)(e),$=t||"llm",A=(0,i.useCallback)(async()=>{try{let[e,t]=await Promise.all([fetch("/api/models/alias"),fetch("/api/models/custom",{cache:"no-store"})]),a=await e.json(),s=await t.json();e.ok&&d(a.aliases||{}),t.ok&&u(s.models||[])}catch(e){console.log("ModelsCard fetch error:",e)}},[]);(0,i.useEffect)(()=>{A()},[A]);let E=async(e,t)=>{let a=`${j}/${e}`;try{(await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:a,alias:t})})).ok&&await A()}catch(e){console.log("set alias error:",e)}},P=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await A()}catch(e){console.log("delete alias error:",e)}},_=async e=>{try{(await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:j,id:e,type:$})})).ok&&(await A(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("add custom model error:",e)}},I=async e=>{try{let t=new URLSearchParams({providerAlias:j,id:e,type:$});(await fetch(`/api/models/custom?${t}`,{method:"DELETE"})).ok&&(await A(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("delete custom model error:",e)}},T=async e=>{if(!h){g(e);try{let a=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${j}/${e}`,kind:t})}),s=await a.json();x(t=>({...t,[e]:s.ok?"ok":"error"})),f(s.ok?"":s.error||"Model not reachable")}catch{x(t=>({...t,[e]:"error"})),f("Network error")}finally{g(null)}}},R=(0,w.KC)(e),L=t?R.filter(e=>e.kinds?e.kinds.includes(t):(0,w.CP)(e,"llm")===t):R,O=m.filter(e=>e.providerAlias===j&&(0,w.CP)(e,"llm")===$&&!L.some(t=>t.id===e.id));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,s.jsxs)("h2",{className:"text-lg font-semibold",children:["Models",t?` — ${t.toUpperCase()}`:""]})}),b&&(0,s.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:b}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[L.map(e=>{let t=`${j}/${e.id}`,a=Object.entries(l).find(([,e])=>e===t)?.[0];return(0,s.jsx)(k,{model:e,fullModel:`${j}/${e.id}`,alias:a,copied:r,onCopy:n,onSetAlias:t=>E(e.id,t),onDeleteAlias:()=>P(a),testStatus:p[e.id],onTest:()=>T(e.id),isTesting:h===e.id,isFree:e.isFree},e.id)}),O.map(e=>(0,s.jsx)(k,{model:{id:e.id,name:e.name},fullModel:`${j}/${e.id}`,copied:r,onCopy:n,onSetAlias:()=>{},onDeleteAlias:()=>I(e.id),testStatus:p[e.id],onTest:()=>T(e.id),isTesting:h===e.id,isCustom:!0},`${e.id}-${e.type}`)),(0,s.jsxs)("button",{onClick:()=>v(!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,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]})]})]}),(0,s.jsx)(S,{isOpen:y,onSave:async e=>{await _(e),v(!1)},onClose:()=>v(!1)})]})}function $({label:e,children:t}){return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5 sm:flex-row sm:items-center sm:gap-3",children:[(0,s.jsx)("span",{className:"w-full text-xs font-medium text-text-muted sm:w-20 sm:shrink-0",children:e}),(0,s.jsx)("div",{className:"w-full min-w-0 flex-1",children:t})]})}k.propTypes={model:h().shape({id:h().string.isRequired}).isRequired,fullModel:h().string.isRequired,copied:h().string,onCopy:h().func.isRequired,testStatus:h().oneOf(["ok","error"]),isCustom:h().bool,isFree:h().bool,onDeleteAlias:h().func,onTest:h().func,isTesting:h().bool},S.propTypes={isOpen:h().bool.isRequired,onSave:h().func.isRequired,onClose:h().func.isRequired},C.propTypes={providerId:h().string.isRequired,kindFilter:h().string,providerAliasOverride:h().string};let A={webSearch:{inputLabel:"Query",inputPlaceholder:"What is the latest news about AI?",defaultInput:"What is the latest news about AI?",bodyKey:"query",defaultResponse:`{
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[182],{1389:(e,t,a)=>{Promise.resolve().then(a.bind(a,13663))},13663:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>en});var s=a(95155),r=a(73321),n=a(98500),l=a.n(n),i=a(12115),o=a(35497),d=a(57250),c=a(88105),m=a(70217);[{voice_id:"9BWtsMINqrJLrRacOk9x",name:"Aria",free:!1,labels:{gender:"female",accent:"american",language:"en"}},{voice_id:"CwhRBWXzGAHq8TQ4Fs17",name:"Roger",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"EXAVITQu4vr4xnSDxMaL",name:"Sarah",free:!0,labels:{gender:"female",accent:"american",language:"en"}},{voice_id:"FGY2WhTYpPnrIDTdsKH5",name:"Laura",free:!0,labels:{gender:"female",accent:"american",language:"en"}},{voice_id:"IKne3meq5aSn9XLyUdCD",name:"Charlie",free:!0,labels:{gender:"male",accent:"australian",language:"en"}},{voice_id:"JBFqnCBsd6RMkjVDRZzb",name:"George",free:!0,labels:{gender:"male",accent:"british",language:"en"}},{voice_id:"N2lVS1w4EtoT3dr4eOWO",name:"Callum",free:!0,labels:{gender:"male",accent:"transatlantic",language:"en"}},{voice_id:"SAz9YHcvj6GT2YYXdXww",name:"River",free:!0,labels:{gender:"neutral",accent:"american",language:"en"}},{voice_id:"TX3LPaxmHKxFdv7VOQHJ",name:"Liam",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"XB0fDUnXU5powFXDhCwa",name:"Charlotte",free:!1,labels:{gender:"female",accent:"swedish",language:"en"}},{voice_id:"Xb7hH8MSUJpSbSDYk0k2",name:"Alice",free:!0,labels:{gender:"female",accent:"british",language:"en"}},{voice_id:"XrExE9yKIg1WjnnlVkGX",name:"Matilda",free:!0,labels:{gender:"female",accent:"american",language:"en"}},{voice_id:"bIHbv24MWmeRgasZH58o",name:"Will",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"cgSgspJ2msm6clMCkdW9",name:"Jessica",free:!0,labels:{gender:"female",accent:"american",language:"en"}},{voice_id:"cjVigY5qzO86Huf0OWal",name:"Eric",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"iP95p4xoKVk53GoZ742B",name:"Chris",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"nPczCjzI2devNBz1zQrb",name:"Brian",free:!0,labels:{gender:"male",accent:"american",language:"en"}},{voice_id:"onwK4e9ZLuTAKqWW03F9",name:"Daniel",free:!0,labels:{gender:"male",accent:"british",language:"en"}},{voice_id:"pFZP5JQG7iQjIQuC4Bku",name:"Lily",free:!0,labels:{gender:"female",accent:"british",language:"en"}},{voice_id:"pqHfZKP75CvOlQylNhV4",name:"Bill",free:!0,labels:{gender:"male",accent:"american",language:"en"}}].map(e=>({...e,category:"premade",lang:e.labels.language,free_users_allowed:e.free}));let u="tts-generated",p={"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",defaultVoiceId:"pNInz6obpgDQGcFmaJgB"},"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},"xiaomi-mimo":{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!1,hasStyleInput:!0,hasLanguageHint:!0,languageOptions:["Chinese","English"],voiceSource:"hardcoded",modelKey:"xiaomi-mimo-tts-models",voicesPerModel:!0}};var x=a(14051),h=a.n(x),g=a(78177);function b({until:e}){let[t,a]=(0,i.useState)("");return((0,i.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void a("");let s=Math.floor(t/1e3);s<60?a(`${s}s`):s<3600?a(`${Math.floor(s/60)}m ${s%60}s`):a(`${Math.floor(s/3600)}h ${Math.floor(s%3600/60)}m`)};t();let s=setInterval(t,1e3);return()=>clearInterval(s)},[e]),t)?(0,s.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",t]}):null}b.propTypes={until:h().string.isRequired};let f=e=>Number(e||0).toLocaleString();function y({connection:e,proxyPools:t,isOAuth:a,isFirst:r,isLast:n,onMoveUp:l,onMoveDown:d,onToggleActive:p,onUpdateProxy:x,onEdit:h,onDelete:v,onClearError:j}){let[w,N]=(0,i.useState)(!1),[k,S]=(0,i.useState)(!1),[C,$]=(0,i.useState)(!1),[A,E]=(0,i.useState)(null),[P,_]=(0,i.useState)(!1),I=(0,i.useRef)(null);(0,i.useEffect)(()=>{let t=()=>_(!!e.lastError&&!1!==e.isActive&&!!e.lastErrorAt&&Date.now()-new Date(e.lastErrorAt).getTime()<6e5);if(t(),!e.lastError||!e.lastErrorAt)return;let a=6e5-(Date.now()-new Date(e.lastErrorAt).getTime());if(a<=0)return;let s=setTimeout(t,a);return()=>clearTimeout(s)},[e.lastError,e.lastErrorAt,e.isActive]),(0,i.useEffect)(()=>{if(a||!1===e.isActive||!c.jO.includes(e.provider))return;let t=!1,s=null,r=0,n=()=>{document.hidden||(r=Date.now(),fetch(`/api/usage/${e.id}`).then(e=>e.ok?e.json():null).then(e=>{if(t||!e?.quotas)return;let a=Object.entries(e.quotas)[0];a&&E({label:a[1]?.displayName||a[0],...a[1]})}).catch(()=>{}))};n();let l=()=>{!document.hidden&&Date.now()-r>6e4&&n()},i=t=>{t?.detail?.provider&&t.detail.provider!==e.provider||(clearTimeout(s),s=setTimeout(n,1500))};return document.addEventListener("visibilitychange",l),window.addEventListener(u,i),()=>{t=!0,clearTimeout(s),document.removeEventListener("visibilitychange",l),window.removeEventListener(u,i)}},[e.id,e.provider,a,e.isActive]);let T=new Map((t||[]).map(e=>[e.id,e])),R=e.providerSpecificData?.proxyPoolId||null,L=R?T.get(R):null,O=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,M=!!R||O,D=L?`Pool: ${L.name}`:R?`Pool: ${R} (inactive/missing)`:O?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",B="",U=L?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;if(U)try{let e=new URL(U);B=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{B=U}let K=L?.noProxy||e.providerSpecificData?.connectionNoProxy||"",F=L?.isActive===!0?"success":R||O?"error":"default",q=Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(Boolean).sort()[0]||null;(0,i.useEffect)(()=>{let t=()=>{$(!!Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>e&&new Date(e).getTime()>Date.now()).sort()[0])};t();let a=q?setInterval(t,1e3):null;return()=>{a&&clearInterval(a)}},[q]),(0,i.useEffect)(()=>{if(!w)return;let e=e=>{I.current&&!I.current.contains(e.target)&&N(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[w]);let z="unavailable"!==e.testStatus||C?e.testStatus:"active",V=(0,g.XD)(e),H=a?e.name||e.email||e.displayName||"OAuth Account":e.name,J=async e=>{S(!0);try{await x("__none__"===e?null:e)}finally{S(!1),N(!1)}};return(0,s.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===e.isActive?"opacity-60":""}`,children:[(0,s.jsxs)("div",{className:"flex w-full min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("button",{onClick:l,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,s.jsx)("button",{onClick:d,disabled:n,className:`p-0.5 rounded ${n?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,s.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",children:a?"lock":"key"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium truncate",children:H}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-1",children:[(0,s.jsx)(o.Ex,{variant:(0,m.g)(e.isActive,z),size:"sm",dot:!0,children:!1===e.isActive?"disabled":z||"Unknown"}),M&&(0,s.jsx)(o.Ex,{variant:F,size:"sm",children:"Proxy"}),C&&!1!==e.isActive&&(0,s.jsx)(b,{until:q}),V.paused&&!1!==e.isActive&&(0,s.jsx)(o.Ex,{variant:"warning",size:"sm",children:"Paused (quota)"}),P&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 max-w-[320px]",children:[(0,s.jsx)("span",{className:"text-xs text-red-500 truncate",title:e.lastError,children:e.lastError}),(0,s.jsx)("button",{type:"button",onClick:j,title:"Dismiss this error",className:"shrink-0 text-red-400 hover:text-red-600 transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]})]}),A&&(0,s.jsxs)("div",{className:"mt-1.5 flex items-center gap-2",title:A.resetAt?`Reset: ${new Date(A.resetAt).toLocaleString()}`:void 0,children:[!A.unlimited&&A.total>0&&(0,s.jsx)("div",{className:"h-1.5 w-24 rounded-full bg-black/10 dark:bg-white/10 overflow-hidden shrink-0",children:(0,s.jsx)("div",{className:`h-full ${A.remainingPercentage<=10?"bg-red-500":A.remainingPercentage<=30?"bg-amber-500":"bg-primary"}`,style:{width:`${A.remainingPercentage}%`}})}),(0,s.jsxs)("span",{className:"text-[11px] text-text-muted",children:[A.unlimited?"Credits: Unlimited":(0,s.jsxs)(s.Fragment,{children:[f(A.remaining)," / ",f(A.total)," ","credits left"]}),A.resetAt&&(0,s.jsxs)("span",{className:"text-text-muted/70",children:[" \xb7 ","resets"," ",new Date(A.resetAt).toLocaleDateString()]})]})]}),M&&(0,s.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"text-[11px] text-text-muted truncate max-w-[420px]",title:D,children:D}),B&&(0,s.jsx)("code",{className:"text-[10px] font-mono bg-black/5 dark:bg-white/5 px-1 py-0.5 rounded text-text-muted",children:B}),K&&(0,s.jsxs)("span",{className:"text-[11px] text-text-muted truncate max-w-[320px]",title:K,children:["no_proxy: ",K]})]})]})]}),(0,s.jsxs)("div",{className:"flex w-full flex-wrap items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(t||[]).length>0&&(0,s.jsxs)("div",{className:"relative",ref:I,children:[(0,s.jsxs)("button",{onClick:()=>N(e=>!e),className:`flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 transition-colors ${M?"text-primary":"text-text-muted hover:text-primary"}`,disabled:k,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:k?"progress_activity":"lan"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),w&&(0,s.jsxs)("div",{className:"absolute right-0 top-full mt-1 z-50 bg-bg border border-border rounded-lg shadow-lg py-1 min-w-[160px]",children:[(0,s.jsx)("button",{onClick:()=>J("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!R?"text-primary font-medium":"text-text-main"}`,children:"None"}),(t||[]).map(e=>(0,s.jsx)("button",{onClick:()=>J(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${R===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]})]}),(0,s.jsxs)("button",{onClick:h,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,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,s.jsxs)("button",{onClick:v,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-red-500/10 text-red-500",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,s.jsx)(o.lM,{size:"sm",checked:e.isActive??!0,onChange:p,title:e.isActive??!0?"Disable":"Enable"})]})]})}function v({isOpen:e,provider:t,providerName:a,proxyPools:r,onSave:n,onClose:l}){let d="__none__",[c,m]=(0,i.useState)({name:"",apiKey:"",priority:1,proxyPoolId:d}),[u,p]=(0,i.useState)(!1),[x,h]=(0,i.useState)(null),[g,b]=(0,i.useState)(!1),f=async()=>{p(!0);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:c.apiKey})}),a=await e.json();h(a.valid?"success":"failed")}catch{h("failed")}finally{p(!1)}},y=async()=>{if(t&&c.apiKey){b(!0);try{let e=!1;try{p(!0),h(null);let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:c.apiKey})});e=!!(await a.json()).valid,h(e?"success":"failed")}catch{h("failed")}finally{p(!1)}await n({name:c.name,apiKey:c.apiKey,priority:c.priority,proxyPoolId:c.proxyPoolId===d?null:c.proxyPoolId,testStatus:e?"active":"unknown"})}finally{b(!1)}}};return t?(0,s.jsx)(o.aF,{isOpen:e,title:`Add ${a||t} API Key`,onClose:l,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Name"}),(0,s.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:c.name,onChange:e=>m({...c,name:e.target.value}),placeholder:"Production Key"})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"API Key"}),(0,s.jsx)("input",{type:"password",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:c.apiKey,onChange:e=>m({...c,apiKey:e.target.value})})]}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(o.$n,{onClick:f,disabled:!c.apiKey||u||g,variant:"secondary",children:u?"Checking...":"Check"})})]}),x&&(0,s.jsx)(o.Ex,{variant:"success"===x?"success":"error",children:"success"===x?"Valid":"Invalid"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Priority"}),(0,s.jsx)("input",{type:"number",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:c.priority,onChange:e=>m({...c,priority:Number.parseInt(e.target.value)||1})})]}),(0,s.jsx)(o.l6,{label:"Proxy Pool",value:c.proxyPoolId,onChange:e=>m({...c,proxyPoolId:e.target.value}),options:[{value:d,label:"None"},...(r||[]).map(e=>({value:e.id,label:e.name}))]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{onClick:y,fullWidth:!0,disabled:!c.name||!c.apiKey||g,children:g?"Saving...":"Save"}),(0,s.jsx)(o.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function j({providerId:e,isOAuth:t}){let[a,r]=(0,i.useState)([]),[n,l]=(0,i.useState)([]),[d,c]=(0,i.useState)(!0),[m,u]=(0,i.useState)(!1),[p,x]=(0,i.useState)(!1),[h,g]=(0,i.useState)(null),[b,f]=(0,i.useState)(null),[w,N]=(0,i.useState)("1"),[k,S]=(0,i.useState)(null),C=(0,i.useCallback)(async()=>{try{let[t,a,s]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),n=await t.json(),i=await a.json(),o=s.ok?await s.json():{};t.ok&&r((n.connections||[]).filter(t=>t.provider===e)),a.ok&&l(i.proxyPools||[]);let d=(o.providerStrategies||{})[e]||{};f(d.fallbackStrategy||null),N(null!=d.stickyRoundRobinLimit?String(d.stickyRoundRobinLimit):"1")}catch(e){console.log("ConnectionsCard fetch error:",e)}finally{c(!1)}},[e]);(0,i.useEffect)(()=>{C()},[C]);let $=async(t,a)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),r=(s.ok?await s.json():{}).providerStrategies||{},n={};t&&(n.fallbackStrategy=t),"round-robin"===t&&""!==a&&(n.stickyRoundRobinLimit=Number(a)||3);let l={...r};0===Object.keys(n).length?delete l[e]:l[e]=n,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:l})})}catch(e){console.log("saveStrategy error:",e)}},A=async(e,t)=>{let s=[...a];[s[e],s[t]]=[s[t],s[e]],r(s);try{await Promise.all([fetch(`/api/providers/${s[e].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:e})}),fetch(`/api/providers/${s[t].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:t})})])}catch{await C()}},E=async e=>{S({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{S(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&r(t=>t.filter(t=>t.id!==e))}catch(e){console.log("delete error:",e)}}})},P=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&r(a=>a.map(a=>a.id===e?{...a,isActive:t}:a))}catch(e){console.log("toggle error:",e)}},_=async e=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({lastError:null,lastErrorAt:null})})).ok&&r(t=>t.map(t=>t.id===e?{...t,lastError:null,lastErrorAt:null}:t))}catch(e){console.log("clear error:",e)}},I=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:t||null})})).ok&&r(a=>a.map(a=>a.id===e?{...a,providerSpecificData:{...a.providerSpecificData,proxyPoolId:t||null}}:a))}catch(e){console.log("proxy error:",e)}},T=async t=>{try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:e,...t})})).ok&&(await C(),u(!1))}catch(e){console.log("save apikey error:",e)}},R=async e=>{try{(await fetch(`/api/providers/${h.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await C(),x(!1))}catch(e){console.log("update connection error:",e)}};return d?(0,s.jsx)(o.Zp,{children:(0,s.jsx)("div",{className:"h-20 animate-pulse bg-black/5 rounded-lg"})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,s.jsx)(o.lM,{checked:"round-robin"===b,onChange:e=>{let t=e?"round-robin":null;f(t),e&&!w&&N("1"),$(t,e?w||"1":w)}}),"round-robin"===b&&(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,s.jsx)("input",{type:"number",min:1,value:w,onChange:e=>{N(e.target.value),$("round-robin",e.target.value)},className:"w-16 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]}),0===a.length?(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),(0,s.jsx)(o.$n,{size:"sm",icon:"add",onClick:()=>u(!0),children:"Add Connection"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03] max-h-[500px] overflow-y-auto pr-1",children:a.map((e,r)=>(0,s.jsx)(y,{connection:e,proxyPools:n,isOAuth:t,isFirst:0===r,isLast:r===a.length-1,onMoveUp:()=>A(r,r-1),onMoveDown:()=>A(r,r+1),onToggleActive:t=>P(e.id,t),onUpdateProxy:t=>I(e.id,t),onEdit:()=>{g(e),x(!0)},onDelete:()=>E(e.id),onClearError:()=>_(e.id)},e.id))}),(0,s.jsx)("div",{className:"mt-4 flex justify-stretch sm:justify-start",children:(0,s.jsx)(o.$n,{size:"sm",icon:"add",onClick:()=>u(!0),children:"Add"})})]})]}),(0,s.jsx)(v,{isOpen:m,provider:e,proxyPools:n,onSave:T,onClose:()=>u(!1)}),(0,s.jsx)(o.wI,{isOpen:p,connection:h,proxyPools:n,onSave:R,onClose:()=>x(!1)}),(0,s.jsx)(o.uo,{isOpen:!!k,onClose:()=>S(null),onConfirm:k?.onConfirm,title:k?.title||"Confirm",message:k?.message,variant:"danger"})]})}y.propTypes={connection:h().shape({id:h().string,name:h().string,email:h().string,displayName:h().string,testStatus:h().string,isActive:h().bool,lastError:h().string,priority:h().number}).isRequired,proxyPools:h().array,isOAuth:h().bool.isRequired,isFirst:h().bool.isRequired,isLast:h().bool.isRequired,onMoveUp:h().func.isRequired,onMoveDown:h().func.isRequired,onToggleActive:h().func.isRequired,onUpdateProxy:h().func,onEdit:h().func.isRequired,onDelete:h().func.isRequired,onClearError:h().func},v.propTypes={isOpen:h().bool.isRequired,provider:h().string,providerName:h().string,proxyPools:h().array,onSave:h().func.isRequired,onClose:h().func.isRequired},j.propTypes={providerId:h().string.isRequired,isOAuth:h().bool};var w=a(28777),N=a(11059);function k({model:e,fullModel:t,copied:a,onCopy:r,testStatus:n,isCustom:l,isFree:i,onDeleteAlias:o,onTest:d,isTesting:c}){let m="ok"===n?"#22c55e":"error"===n?"#ef4444":void 0;return(0,s.jsx)("div",{className:`group px-3 py-2 rounded-lg border ${"ok"===n?"border-green-500/40":"error"===n?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base",style:m?{color:m}:void 0,children:"ok"===n?"check_circle":"error"===n?"cancel":"smart_toy"}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),e.name&&(0,s.jsx)("span",{className:"text-[9px] text-text-muted/70 italic pl-1",children:e.name})]}),d&&(0,s.jsxs)("div",{className:"relative group/btn",children:[(0,s.jsx)("button",{onClick:d,disabled:c,className:`p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-opacity ${c?"opacity-100":"opacity-0 group-hover:opacity-100"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:c?{animation:"spin 1s linear infinite"}:void 0,children:c?"progress_activity":"science"})}),(0,s.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?"Testing...":"Test"})]}),(0,s.jsxs)("div",{className:"relative group/btn",children:[(0,s.jsx)("button",{onClick:()=>r(t,`model-${e.id}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:a===`model-${e.id}`?"check":"content_copy"})}),(0,s.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:a===`model-${e.id}`?"Copied!":"Copy"})]}),i&&(0,s.jsx)("span",{className:"text-[10px] font-bold text-green-500 bg-green-500/10 px-1.5 py-0.5 rounded",children:"FREE"}),l&&(0,s.jsx)("button",{onClick:o,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,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})})]})})}function S({isOpen:e,onSave:t,onClose:a}){let[r,n]=(0,i.useState)(""),l=()=>{r.trim()&&(t(r.trim()),n(""))};return(0,s.jsx)(o.aF,{isOpen:e,title:"Add Custom Model",onClose:a,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,s.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:r,onChange:e=>n(e.target.value),onKeyDown:e=>"Enter"===e.key&&l(),placeholder:"e.g. tts-1-hd",autoFocus:!0})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{onClick:l,fullWidth:!0,disabled:!r.trim(),children:"Add"}),(0,s.jsx)(o.$n,{onClick:a,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}function C({providerId:e,kindFilter:t,providerAliasOverride:a}){let{copied:r,copy:n}=(0,N.C)(),[l,d]=(0,i.useState)({}),[m,u]=(0,i.useState)([]),[p,x]=(0,i.useState)({}),[h,g]=(0,i.useState)(null),[b,f]=(0,i.useState)(""),[y,v]=(0,i.useState)(!1),j=a||(0,c.wG)(e),$=t||"llm",A=(0,i.useCallback)(async()=>{try{let[e,t]=await Promise.all([fetch("/api/models/alias"),fetch("/api/models/custom",{cache:"no-store"})]),a=await e.json(),s=await t.json();e.ok&&d(a.aliases||{}),t.ok&&u(s.models||[])}catch(e){console.log("ModelsCard fetch error:",e)}},[]);(0,i.useEffect)(()=>{A()},[A]);let E=async(e,t)=>{let a=`${j}/${e}`;try{(await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:a,alias:t})})).ok&&await A()}catch(e){console.log("set alias error:",e)}},P=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await A()}catch(e){console.log("delete alias error:",e)}},_=async e=>{try{(await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:j,id:e,type:$})})).ok&&(await A(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("add custom model error:",e)}},I=async e=>{try{let t=new URLSearchParams({providerAlias:j,id:e,type:$});(await fetch(`/api/models/custom?${t}`,{method:"DELETE"})).ok&&(await A(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("delete custom model error:",e)}},T=async e=>{if(!h){g(e);try{let a=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${j}/${e}`,kind:t})}),s=await a.json();x(t=>({...t,[e]:s.ok?"ok":"error"})),f(s.ok?"":s.error||"Model not reachable")}catch{x(t=>({...t,[e]:"error"})),f("Network error")}finally{g(null)}}},R=(0,w.KC)(e),L=t?R.filter(e=>e.kinds?e.kinds.includes(t):(0,w.CP)(e,"llm")===t):R,O=m.filter(e=>e.providerAlias===j&&(0,w.CP)(e,"llm")===$&&!L.some(t=>t.id===e.id));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,s.jsxs)("h2",{className:"text-lg font-semibold",children:["Models",t?` — ${t.toUpperCase()}`:""]})}),b&&(0,s.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:b}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[L.map(e=>{let t=`${j}/${e.id}`,a=Object.entries(l).find(([,e])=>e===t)?.[0];return(0,s.jsx)(k,{model:e,fullModel:`${j}/${e.id}`,alias:a,copied:r,onCopy:n,onSetAlias:t=>E(e.id,t),onDeleteAlias:()=>P(a),testStatus:p[e.id],onTest:()=>T(e.id),isTesting:h===e.id,isFree:e.isFree},e.id)}),O.map(e=>(0,s.jsx)(k,{model:{id:e.id,name:e.name},fullModel:`${j}/${e.id}`,copied:r,onCopy:n,onSetAlias:()=>{},onDeleteAlias:()=>I(e.id),testStatus:p[e.id],onTest:()=>T(e.id),isTesting:h===e.id,isCustom:!0},`${e.id}-${e.type}`)),(0,s.jsxs)("button",{onClick:()=>v(!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,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]})]})]}),(0,s.jsx)(S,{isOpen:y,onSave:async e=>{await _(e),v(!1)},onClose:()=>v(!1)})]})}function $({label:e,children:t}){return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5 sm:flex-row sm:items-center sm:gap-3",children:[(0,s.jsx)("span",{className:"w-full text-xs font-medium text-text-muted sm:w-20 sm:shrink-0",children:e}),(0,s.jsx)("div",{className:"w-full min-w-0 flex-1",children:t})]})}k.propTypes={model:h().shape({id:h().string.isRequired}).isRequired,fullModel:h().string.isRequired,copied:h().string,onCopy:h().func.isRequired,testStatus:h().oneOf(["ok","error"]),isCustom:h().bool,isFree:h().bool,onDeleteAlias:h().func,onTest:h().func,isTesting:h().bool},S.propTypes={isOpen:h().bool.isRequired,onSave:h().func.isRequired,onClose:h().func.isRequired},C.propTypes={providerId:h().string.isRequired,kindFilter:h().string,providerAliasOverride:h().string};let A={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
|
]
|
|
@@ -72,12 +72,12 @@ Return ONLY the resulting tagged text.`,V=/\b(flash|mini|haiku|lite|nano|small|t
|
|
|
72
72
|
-H "Content-Type: application/json" \\
|
|
73
73
|
-H "Authorization: Bearer ${L||"YOUR_KEY"}" \\
|
|
74
74
|
-d '${JSON.stringify({...tr,input:tn})}' \\
|
|
75
|
-
${"json"===es?"":"--output speech.mp3"}`;(0,i.useEffect)(()=>{if(null==e_.current||!eP.current)return;let e=e_.current;e_.current=null,eP.current.focus(),eP.current.setSelectionRange(e,e)},[C]),(0,i.useEffect)(()=>{if(eh?.startsWith("blob:"))return()=>URL.revokeObjectURL(eh)},[eh]);let ti=async()=>{if(C.trim()&&!ej){ew(!0),eE("");try{let e=await fetch("/api/v1/models"),t=((await e.json()).data||[]).map(e=>e.id).filter(Boolean);if(!t.length)return void eE("Enhance needs an LLM provider — connect one in Providers first.");let a=t.map(e=>{let t,a;return{id:e,score:(t=(e.includes("/")?e.slice(e.indexOf("/")+1):e).toLowerCase(),a=0,V.test(t)&&(a+=3),H.test(t)&&(a-=3),J.test(t)&&(a-=1),a)}}).sort((e,t)=>t.score-e.score).slice(0,4).map(e=>e.id),s=0,r="";for(let e of a){let t=await fetch("/api/v1/chat/completions",{method:"POST",headers:{"Content-Type":"application/json",...L?{Authorization:`Bearer ${L}`}:{}},body:JSON.stringify({model:e,messages:[{role:"system",content:z(eN)},{role:"user",content:C.trim()}],stream:!1,temperature:.7})}),a=await t.json().catch(()=>({}));if(t.ok){let e=a?.choices?.[0]?.message?.content?.trim();if(e)return void A(e)}s=t.status,r="string"==typeof a?.error?a.error:a?.error?.message||""}eE(429===s?`Every model tried is rate-limited or out of quota (tried ${a.length}). Wait a moment or connect another LLM provider.`:r.slice(0,200)||`Enhance failed (HTTP ${s||"no response"})`)}catch(e){eE(e.message||"Enhance failed")}finally{ew(!1)}}},to=async()=>{if(!C.trim()||!e6||e9)return;ev(!0),eE(""),eg(""),ef(null);let t=Date.now();try{let s,r={"Content-Type":"application/json"};L&&(r.Authorization=`Bearer ${L}`);let l=`/api/v1/audio/speech${"json"===es?"?response_format=json":""}`,i=await fetch(l,{method:"POST",headers:r,body:JSON.stringify({...tr,input:C.trim()})});if(eM(Date.now()-t),!i.ok){let e=await i.json().catch(()=>({}));eE(e?.error?.message||e?.error||`HTTP ${i.status}`);return}if("json"===es){let e=await i.json();ef({format:e.format,audioPreview:e.audio?`${e.audio.substring(0,100)}...`:""});let t=e.format||"mp3";s=await fetch(`data:audio/${t};base64,${e.audio}`).then(e=>e.blob())}else s=await i.blob();eg(URL.createObjectURL(s));try{var a;await (a={id:`${t}-${Math.round(1e6*Math.random())}`,provider:e,model:k||"",voiceId:e4||"",voiceName:x||e4||"",text:C.trim(),stability:n?en:void 0,blob:s,size:s.size,latency:Date.now()-t,createdAt:Date.now()},M("readwrite",e=>{let t,s,r;e.put(a),t=e.index("createdAt").openCursor(null,"prev"),s=0,r=0,t.onsuccess=()=>{let e=t.result;e&&(s+=1,r+=Number(e.value?.size)||0,(s>50||r>0xc800000)&&e.delete(),e.continue())}}).then(()=>a)),eL()}catch{}window.dispatchEvent(new CustomEvent(u,{detail:{provider:e}}))}catch(e){eE(e.message||"Network error")}finally{ev(!1)}},td=async e=>{try{await M("readwrite",t=>{t.delete(e)}),eR(t=>t.filter(t=>t.id!==e))}catch{}},tc=async()=>{if(confirm("Clear all audio history for this provider?"))try{await M("readwrite",t=>{if(!e)return void t.clear();let a=t.index("provider").getAllKeys(e);a.onsuccess=()=>{for(let e of a.result||[])t.delete(e)}}),eL()}catch{}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,s.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,s.jsx)($,{label:"Endpoint",children:(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.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:[e3,"/v1/audio/speech"]}),et&&(0,s.jsxs)("button",{onClick:()=>Q(e=>!e),title:U?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${U?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,s.jsx)($,{label:"API Key",children:(0,s.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:L?`${L.slice(0,8)}${"•".repeat(Math.min(20,L.length-8))}`:e0>0?(0,s.jsxs)("span",{className:"text-text-muted italic",children:["Using stored key(s) \xb7 ",e0," connection",e0>1?"s":""]}):(0,s.jsx)("span",{className:"text-text-muted italic",children:"No key configured"})})}),l.hasModelSelector&&(l.modelKey||(0,w.KC)(e).some(e=>"tts"===(0,w.CP)(e)))&&(0,s.jsx)($,{label:"Model",children:(0,s.jsx)("select",{value:k,onChange:e=>S(e.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=(0,w.KC)(e).filter(e=>"tts"===(0,w.CP)(e))).length?a:(0,w.KC)(l.modelKey)||[]).map(e=>(0,s.jsx)("option",{value:e.id,children:e.name||e.id},e.id))})}),l.hasLanguageHint&&(0,s.jsx)($,{label:"Language",children:(0,s.jsxs)("select",{value:eQ,onChange:e=>eZ(e.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,s.jsx)("option",{value:"",children:"Auto-detect"}),(l.languageOptions||T.I).map(e=>"string"==typeof e?(0,s.jsx)("option",{value:e,children:e},e):(0,s.jsx)("option",{value:e.name,children:e.name},e.id))]})}),l.hasBrowseButton&&(0,s.jsx)($,{label:"Language",children:(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsx)("button",{onClick:e5,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:v?(0,s.jsx)("span",{className:"text-text-main",children:eF.find(e=>e.code===v)?.name||v}):(0,s.jsx)("span",{className:"text-text-muted",children:"No language selected"})}),(0,s.jsxs)("button",{onClick:e5,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,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"language"}),"Select language"]})]})}),f.length>0&&(0,s.jsx)($,{label:"Voice",children:(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:f.map(e=>(0,s.jsxs)("button",{onClick:()=>{m(e.id),h(e.name),l.hasVoiceIdInput&&b(e.id)},className:`px-2.5 py-1 rounded-full text-xs border transition-colors ${d===e.id?"bg-primary/15 border-primary/40 text-primary font-medium":"border-border text-text-muted hover:text-primary hover:border-primary/40"}`,children:[e.name,e.language?` \xb7 ${e.language}`:"",e.gender?` \xb7 ${e.gender[0].toUpperCase()}`:"",!0===e.free_users_allowed&&(0,s.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===e.free_users_allowed&&(0,s.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"})]},e.id))})}),l.hasVoiceIdInput&&(0,s.jsx)($,{label:"Voice ID",children:(0,s.jsx)("div",{className:"flex flex-col gap-1",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{value:g,onChange:e=>{b(e.target.value),m(e.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"}),g&&(0,s.jsx)("button",{type:"button",onClick:()=>{b(""),m("")},className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})})}),l.hasLanguageDropdown&&(0,s.jsx)($,{label:"Language",children:(0,s.jsx)("select",{value:d,onChange:t=>{let a=(0,w.KC)(e).filter(e=>"tts"===(0,w.CP)(e)).find(e=>e.id===t.target.value);m(t.target.value),h(a?.name||t.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,w.KC)(e).filter(e=>"tts"===(0,w.CP)(e)).map(e=>(0,s.jsx)("option",{value:e.id,children:e.name||e.id},e.id))})}),(0,s.jsx)($,{label:"Input",children:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("textarea",{ref:eP,value:C,onChange:e=>A(e.target.value),rows:4,className:`w-full resize-y min-h-[88px] px-3 py-1.5 pr-7 text-sm leading-relaxed border rounded-lg bg-background focus:outline-none ${e9?"border-red-500 focus:border-red-500":"border-border focus:border-primary"}`}),C&&(0,s.jsx)("button",{type:"button",onClick:()=>A(""),title:(0,_.Tl)("Clear input"),className:"absolute right-2 top-2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-end gap-2 text-[10px]",children:[n&&C.length>0&&(0,s.jsxs)("span",{className:"text-text-muted",title:(0,_.Tl)("Estimate (1 character ≈ 1 credit)"),children:["≈ ",C.length.toLocaleString()," credits"]}),(0,s.jsxs)("span",{className:e9?"text-red-500 font-medium":"text-text-muted",children:[n?`${C.length.toLocaleString()} / ${e8.toLocaleString()}`:C.length," ","characters"]})]}),e9&&(0,s.jsx)("span",{className:"text-[11px] text-red-500",children:"Over the model's character limit — shorten the text or switch model (Flash/Turbo allow 40,000)."})]})}),l.hasStyleInput&&(0,s.jsx)($,{label:(0,_.Tl)("Style"),children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("textarea",{value:E,onChange:e=>P(e.target.value),placeholder:(0,_.Tl)("e.g. a warm, gentle voice, speaking slowly with a British accent"),rows:2,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 resize-none"}),E&&(0,s.jsx)("button",{type:"button",onClick:()=>P(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),n&&(0,s.jsx)(q,{label:"Stability",hint:"Voice expressiveness. Creative follows audio tags most closely; Robust is the steadiest but responds least to them.",children:(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:[{v:0,name:"Creative",hint:"Expressive and varied — can even sing"},{v:.5,name:"Natural",hint:"Balanced, natural conversation"},{v:1,name:"Robust",hint:"Accurate, stable, predictable"}].map(e=>(0,s.jsx)("button",{type:"button",title:(0,_.Tl)(e.hint),onClick:()=>el(e.v),className:`px-3 py-1 rounded-lg text-xs border transition-colors ${en===e.v?"bg-primary/15 border-primary/40 text-primary font-medium":"border-border text-text-muted hover:text-primary hover:border-primary/40"}`,children:e.name},e.v))})}),ta&&(0,s.jsx)(q,{label:"Speed",hint:"Playback rate, 0.70\xd7 to 1.20\xd7. Values far from 1 can affect quality.",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"range",min:"0.7",max:"1.2",step:"0.05",value:ei,onChange:e=>eo(Number(e.target.value)),className:"w-40 accent-primary"}),(0,s.jsxs)("span",{className:"text-xs text-text-muted tabular-nums",children:[ei.toFixed(2),"\xd7"]}),1!==ei&&(0,s.jsx)("button",{type:"button",onClick:()=>eo(1),className:"text-[11px] text-text-muted hover:text-primary transition-colors",children:(0,_.Tl)("Reset")})]})}),n&&(0,s.jsx)(q,{label:"Audio Quality",hint:"Higher MP3 bitrates and PCM require a paid plan; \xb5-law 8 kHz is for telephony.",children:(0,s.jsxs)("select",{value:ed,onChange:e=>ec(e.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,s.jsx)("option",{value:"",children:"Provider default (MP3 44.1 kHz 128 kbps)"}),I.RB.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))]})}),tt&&(0,s.jsx)(q,{label:"Language Override",hint:"Off: the model auto-detects the language. On: force the chosen language (best with Eleven v3).",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,s.jsx)(o.lM,{size:"sm",checked:em,onChange:eu}),em&&(0,s.jsx)("select",{value:ep,onChange:e=>ex(e.target.value),className:"px-2 py-1 text-xs border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:D.map(e=>(0,s.jsxs)("option",{value:e.code,children:[e.name," (",e.code,")"]},e.code))})]})}),te&&(0,s.jsx)($,{label:"Get started",children:(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:W.map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>{A(e.text),el(e.stability),ek(e.vibe),requestAnimationFrame(()=>{let t=eP.current;t&&(t.focus(),t.setSelectionRange(e.text.length,e.text.length))})},className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg border border-border text-xs text-text-main hover:text-primary hover:border-primary/40 transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:e.icon}),e.label]},e.id))})}),te&&(0,s.jsx)($,{label:"Audio Tags",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2.5",children:[B.map(e=>(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"text-[10px] font-semibold text-text-muted uppercase tracking-wider",children:e.label}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-1.5",children:e.tags.map(e=>(0,s.jsx)("button",{type:"button",title:e.ins,onClick:()=>{var t;let a,s,r,n,l,i,o,d,c;return t=e.ins,r=(s=(a=eP.current)&&"number"==typeof a.selectionStart)?a.selectionStart:C.length,n=s?a.selectionEnd:C.length,l=C.slice(0,r),i=C.slice(n),o=l&&!/\s$/.test(l)?" ":"",d=i&&!/^\s/.test(i)?" ":"",void(e_.current=r+(c=`${o}${t}${d}`).length,A(l+c+i))},className:"px-2 py-0.5 rounded-full text-[11px] border border-border text-text-muted hover:text-primary hover:border-primary/40 transition-colors",children:e.label},e.ins))})]},e.label)),(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,s.jsxs)("button",{type:"button",onClick:ti,disabled:ej||!C.trim(),className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-lg border border-primary/40 bg-primary/10 text-primary text-xs font-medium hover:bg-primary/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:ej?{animation:"spin 1s linear infinite"}:void 0,children:ej?"progress_activity":"auto_awesome"}),ej?"Enhancing…":"Enhance with AI"]}),(0,s.jsxs)("div",{ref:e$,className:"relative",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>eC(e=>!e),disabled:ej,title:(0,_.Tl)("Performance style the AI should aim for"),className:"inline-flex items-center gap-1.5 pl-2 pr-1.5 py-1 text-xs font-medium rounded-lg border border-primary/40 bg-primary/5 text-primary hover:bg-primary/10 focus:outline-none transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] text-primary/70",children:"tune"}),ts.label,(0,s.jsx)("span",{className:`material-symbols-outlined text-[16px] text-primary/70 transition-transform ${eS?"rotate-180":""}`,children:"expand_more"})]}),eS&&(0,s.jsx)("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-52 rounded-xl border border-border bg-bg shadow-lg overflow-hidden py-1",children:K.map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>{ek(e.id),eC(!1)},className:`w-full text-left px-3 py-1.5 transition-colors ${eN===e.id?"bg-primary/10":"hover:bg-sidebar"}`,children:[(0,s.jsxs)("span",{className:`flex items-center gap-1.5 text-xs font-medium ${eN===e.id?"text-primary":"text-text-main"}`,children:[eN===e.id&&(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"check"}),e.label]}),(0,s.jsx)("span",{className:"block text-[10px] text-text-muted mt-0.5",children:e.hint})]},e.id))})]})]}),(0,s.jsx)("span",{className:"text-[11px] text-text-muted",children:"Click a tag to insert it, or let AI add tags automatically (uses your configured LLM via 9router)."})]})}),(0,s.jsx)($,{label:"Output Format",children:(0,s.jsxs)("select",{value:es,onChange:e=>er(e.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,s.jsx)("option",{value:"mp3",children:"MP3 (Binary)"}),(0,s.jsx)("option",{value:"json",children:"JSON (Base64)"})]})}),(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsxs)("button",{onClick:()=>eB(tl),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:eD?"check":"content_copy"}),eD?"Copied":"Copy"]}),(0,s.jsxs)("button",{onClick:to,disabled:ey||!C.trim()||!e6||e9,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:ey?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),ey?"Generating...":"Run"]})]})]}),(0,s.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:tl})]}),eA&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:eA}),eh?(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",eO&&(0,s.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",eO,"ms"]})]}),(0,s.jsxs)("a",{href:eh,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})]}),(0,s.jsx)("audio",{ref:eI,controls:!0,src:eh,className:"w-full"}),eb&&(0,s.jsxs)("div",{className:"mt-3",children:[(0,s.jsx)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"JSON Response"})}),(0,s.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:eb.format,audio:eb.audioPreview},null,2)})]})]}):(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Response"}),(0,s.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})]}),eT.length>0&&(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["History ",(0,s.jsxs)("span",{className:"font-normal normal-case",children:["(",eT.length,")"]})]}),(0,s.jsxs)("button",{onClick:tc,className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-red-500 transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"delete_sweep"}),"Clear all"]})]}),(0,s.jsx)("div",{className:"flex flex-col gap-1.5 max-h-72 overflow-y-auto",children:eT.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-2 px-2.5 py-2 rounded-lg border border-border bg-sidebar/50",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-xs text-text-main truncate",title:e.text,children:e.text}),(0,s.jsxs)("p",{className:"text-[10px] text-text-muted truncate",children:[e.voiceName||e.voiceId||"—",e.model?` \xb7 ${e.model}`:"",` \xb7 ${(0,R.gs)(e.createdAt)}`]})]}),(0,s.jsx)("div",{className:"flex items-center gap-0.5 shrink-0",children:Y.map(t=>(0,s.jsx)("button",{onClick:()=>((e,t)=>{if("play"===e)return void(t?.blob&&(ef(null),eg(URL.createObjectURL(t.blob)),requestAnimationFrame(()=>{eI.current?.play().catch(()=>{})})));if("reuse"===e)return void(A(t.text),t.voiceId&&(m(t.voiceId),l.hasVoiceIdInput&&b(t.voiceId)),t.voiceName&&h(t.voiceName),t.model&&l.hasModelSelector&&S(t.model),"number"==typeof t.stability&&el(t.stability));if("download"===e){let e,a;return e=URL.createObjectURL(t.blob),void((a=document.createElement("a")).href=e,a.download=`speech-${t.createdAt}.mp3`,document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(e),1e3))}return td(t.id)})(t.key,e),title:(0,_.Tl)(t.title),className:`p-1 rounded text-text-muted transition-colors ${t.danger?"hover:text-red-500":"hover:text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:t.icon})},t.key))})]},e.id))})]})]})]}),eU&&(0,s.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:()=>eK(!1),children:(0,s.jsxs)("div",{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:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0 rounded-t-xl",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold",children:"Select Language"}),(0,s.jsx)("button",{onClick:()=>eK(!1),className:"text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsx)("div",{className:"px-4 py-2.5 border-b border-border shrink-0",children:(0,s.jsx)("input",{autoFocus:!0,value:eH,onChange:e=>eJ(e.target.value),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,s.jsxs)("div",{className:"overflow-y-auto flex-1 p-2",children:[eW&&(0,s.jsx)("p",{className:"text-xs text-red-500 px-2 py-1",children:eW}),ez?(0,s.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"Loading..."}):(0,s.jsxs)("div",{className:"flex flex-col gap-0.5",children:[e2.map(e=>(0,s.jsxs)("button",{onClick:()=>{let t;return eK(!1),j(e.code),void(y(t=eY[e.code]?.voices||[]),t.length&&(m(t[0].id),h(t[0].name),l.hasVoiceIdInput&&b(t[0].id)))},className:`flex items-center justify-between w-full px-3 py-2 rounded-lg text-left hover:bg-sidebar transition-colors ${v===e.code?"bg-primary/10 text-primary":""}`,children:[(0,s.jsx)("span",{className:"text-sm",children:e.name}),(0,s.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:[e.voices.length," voices"]}),v===e.code&&(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"check"})]})]},e.code)),0===e2.length&&(0,s.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"No languages found."})]})]})]})})]})}let Q="https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog.png",Z=new Set(["antigravity/gemini-3.1-flash-image","codex/gpt-5.5-image","codex/gpt-5.4-image","codex/gpt-5.3-image"]);function ee(e){let t="string"==typeof e?e.trim():"";return t?/^(data:image\/|https?:\/\/)/i.test(t)?t:`data:image/png;base64,${t}`:""}function et(e){if("string"!=typeof e||!e.startsWith("data:image/"))return e;let t=e.indexOf(","),a=e.indexOf(";"),s=a>5?e.slice(5,a):"image",r=t>=0?e.length-t-1:e.length;return`<${s} base64 hidden: ${r.toLocaleString("en-US")} chars>`}function ea({method:e,endpoint:t,apiPath:a,headers:s,body:r,wantBinary:n}){return`curl -X ${e} ${t}${a} \\
|
|
75
|
+
${"json"===es?"":"--output speech.mp3"}`;(0,i.useEffect)(()=>{if(null==e_.current||!eP.current)return;let e=e_.current;e_.current=null,eP.current.focus(),eP.current.setSelectionRange(e,e)},[C]),(0,i.useEffect)(()=>{if(eh?.startsWith("blob:"))return()=>URL.revokeObjectURL(eh)},[eh]);let ti=async()=>{if(C.trim()&&!ej){ew(!0),eE("");try{let e=await fetch("/api/v1/models"),t=((await e.json()).data||[]).map(e=>e.id).filter(Boolean);if(!t.length)return void eE("Enhance needs an LLM provider — connect one in Providers first.");let a=t.map(e=>{let t,a;return{id:e,score:(t=(e.includes("/")?e.slice(e.indexOf("/")+1):e).toLowerCase(),a=0,V.test(t)&&(a+=3),H.test(t)&&(a-=3),J.test(t)&&(a-=1),a)}}).sort((e,t)=>t.score-e.score).slice(0,4).map(e=>e.id),s=0,r="";for(let e of a){let t=await fetch("/api/v1/chat/completions",{method:"POST",headers:{"Content-Type":"application/json",...L?{Authorization:`Bearer ${L}`}:{}},body:JSON.stringify({model:e,messages:[{role:"system",content:z(eN)},{role:"user",content:C.trim()}],stream:!1,temperature:.7})}),a=await t.json().catch(()=>({}));if(t.ok){let e=a?.choices?.[0]?.message?.content?.trim();if(e)return void A(e)}s=t.status,r="string"==typeof a?.error?a.error:a?.error?.message||""}eE(429===s?`Every model tried is rate-limited or out of quota (tried ${a.length}). Wait a moment or connect another LLM provider.`:r.slice(0,200)||`Enhance failed (HTTP ${s||"no response"})`)}catch(e){eE(e.message||"Enhance failed")}finally{ew(!1)}}},to=async()=>{if(!C.trim()||!e6||e9)return;ev(!0),eE(""),eg(""),ef(null);let t=Date.now();try{let s,r={"Content-Type":"application/json"};L&&(r.Authorization=`Bearer ${L}`);let l=`/api/v1/audio/speech${"json"===es?"?response_format=json":""}`,i=await fetch(l,{method:"POST",headers:r,body:JSON.stringify({...tr,input:C.trim()})});if(eM(Date.now()-t),!i.ok){let e=await i.json().catch(()=>({}));eE(e?.error?.message||e?.error||`HTTP ${i.status}`);return}if("json"===es){let e=await i.json();ef({format:e.format,audioPreview:e.audio?`${e.audio.substring(0,100)}...`:""});let t=e.format||"mp3";s=await fetch(`data:audio/${t};base64,${e.audio}`).then(e=>e.blob())}else s=await i.blob();eg(URL.createObjectURL(s));try{var a;await (a={id:`${t}-${Math.round(1e6*Math.random())}`,provider:e,model:k||"",voiceId:e4||"",voiceName:x||e4||"",text:C.trim(),stability:n?en:void 0,blob:s,size:s.size,latency:Date.now()-t,createdAt:Date.now()},M("readwrite",e=>{let t,s,r;e.put(a),t=e.index("createdAt").openCursor(null,"prev"),s=0,r=0,t.onsuccess=()=>{let e=t.result;e&&(s+=1,r+=Number(e.value?.size)||0,(s>50||r>0xc800000)&&e.delete(),e.continue())}}).then(()=>a)),eL()}catch{}window.dispatchEvent(new CustomEvent(u,{detail:{provider:e}}))}catch(e){eE(e.message||"Network error")}finally{ev(!1)}},td=async e=>{try{await M("readwrite",t=>{t.delete(e)}),eR(t=>t.filter(t=>t.id!==e))}catch{}},tc=async()=>{if(confirm("Clear all audio history for this provider?"))try{await M("readwrite",t=>{if(!e)return void t.clear();let a=t.index("provider").getAllKeys(e);a.onsuccess=()=>{for(let e of a.result||[])t.delete(e)}}),eL()}catch{}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,s.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,s.jsx)($,{label:"Endpoint",children:(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.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:[e3,"/v1/audio/speech"]}),et&&(0,s.jsxs)("button",{onClick:()=>Q(e=>!e),title:U?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${U?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,s.jsx)($,{label:"API Key",children:(0,s.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:L?`${L.slice(0,8)}${"•".repeat(Math.min(20,Math.max(0,L.length-8)))}`:e0>0?(0,s.jsxs)("span",{className:"text-text-muted italic",children:["Using stored key(s) \xb7 ",e0," connection",e0>1?"s":""]}):(0,s.jsx)("span",{className:"text-text-muted italic",children:"No key configured"})})}),l.hasModelSelector&&(l.modelKey||(0,w.KC)(e).some(e=>"tts"===(0,w.CP)(e)))&&(0,s.jsx)($,{label:"Model",children:(0,s.jsx)("select",{value:k,onChange:e=>S(e.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=(0,w.KC)(e).filter(e=>"tts"===(0,w.CP)(e))).length?a:(0,w.KC)(l.modelKey)||[]).map(e=>(0,s.jsx)("option",{value:e.id,children:e.name||e.id},e.id))})}),l.hasLanguageHint&&(0,s.jsx)($,{label:"Language",children:(0,s.jsxs)("select",{value:eQ,onChange:e=>eZ(e.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,s.jsx)("option",{value:"",children:"Auto-detect"}),(l.languageOptions||T.I).map(e=>"string"==typeof e?(0,s.jsx)("option",{value:e,children:e},e):(0,s.jsx)("option",{value:e.name,children:e.name},e.id))]})}),l.hasBrowseButton&&(0,s.jsx)($,{label:"Language",children:(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsx)("button",{onClick:e5,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:v?(0,s.jsx)("span",{className:"text-text-main",children:eF.find(e=>e.code===v)?.name||v}):(0,s.jsx)("span",{className:"text-text-muted",children:"No language selected"})}),(0,s.jsxs)("button",{onClick:e5,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,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"language"}),"Select language"]})]})}),f.length>0&&(0,s.jsx)($,{label:"Voice",children:(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:f.map(e=>(0,s.jsxs)("button",{onClick:()=>{m(e.id),h(e.name),l.hasVoiceIdInput&&b(e.id)},className:`px-2.5 py-1 rounded-full text-xs border transition-colors ${d===e.id?"bg-primary/15 border-primary/40 text-primary font-medium":"border-border text-text-muted hover:text-primary hover:border-primary/40"}`,children:[e.name,e.language?` \xb7 ${e.language}`:"",e.gender?` \xb7 ${e.gender[0].toUpperCase()}`:"",!0===e.free_users_allowed&&(0,s.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===e.free_users_allowed&&(0,s.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"})]},e.id))})}),l.hasVoiceIdInput&&(0,s.jsx)($,{label:"Voice ID",children:(0,s.jsx)("div",{className:"flex flex-col gap-1",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{value:g,onChange:e=>{b(e.target.value),m(e.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"}),g&&(0,s.jsx)("button",{type:"button",onClick:()=>{b(""),m("")},className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})})}),l.hasLanguageDropdown&&(0,s.jsx)($,{label:"Language",children:(0,s.jsx)("select",{value:d,onChange:t=>{let a=(0,w.KC)(e).filter(e=>"tts"===(0,w.CP)(e)).find(e=>e.id===t.target.value);m(t.target.value),h(a?.name||t.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,w.KC)(e).filter(e=>"tts"===(0,w.CP)(e)).map(e=>(0,s.jsx)("option",{value:e.id,children:e.name||e.id},e.id))})}),(0,s.jsx)($,{label:"Input",children:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("textarea",{ref:eP,value:C,onChange:e=>A(e.target.value),rows:4,className:`w-full resize-y min-h-[88px] px-3 py-1.5 pr-7 text-sm leading-relaxed border rounded-lg bg-background focus:outline-none ${e9?"border-red-500 focus:border-red-500":"border-border focus:border-primary"}`}),C&&(0,s.jsx)("button",{type:"button",onClick:()=>A(""),title:(0,_.Tl)("Clear input"),className:"absolute right-2 top-2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-end gap-2 text-[10px]",children:[n&&C.length>0&&(0,s.jsxs)("span",{className:"text-text-muted",title:(0,_.Tl)("Estimate (1 character ≈ 1 credit)"),children:["≈ ",C.length.toLocaleString()," credits"]}),(0,s.jsxs)("span",{className:e9?"text-red-500 font-medium":"text-text-muted",children:[n?`${C.length.toLocaleString()} / ${e8.toLocaleString()}`:C.length," ","characters"]})]}),e9&&(0,s.jsx)("span",{className:"text-[11px] text-red-500",children:"Over the model's character limit — shorten the text or switch model (Flash/Turbo allow 40,000)."})]})}),l.hasStyleInput&&(0,s.jsx)($,{label:(0,_.Tl)("Style"),children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("textarea",{value:E,onChange:e=>P(e.target.value),placeholder:(0,_.Tl)("e.g. a warm, gentle voice, speaking slowly with a British accent"),rows:2,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 resize-none"}),E&&(0,s.jsx)("button",{type:"button",onClick:()=>P(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),n&&(0,s.jsx)(q,{label:"Stability",hint:"Voice expressiveness. Creative follows audio tags most closely; Robust is the steadiest but responds least to them.",children:(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:[{v:0,name:"Creative",hint:"Expressive and varied — can even sing"},{v:.5,name:"Natural",hint:"Balanced, natural conversation"},{v:1,name:"Robust",hint:"Accurate, stable, predictable"}].map(e=>(0,s.jsx)("button",{type:"button",title:(0,_.Tl)(e.hint),onClick:()=>el(e.v),className:`px-3 py-1 rounded-lg text-xs border transition-colors ${en===e.v?"bg-primary/15 border-primary/40 text-primary font-medium":"border-border text-text-muted hover:text-primary hover:border-primary/40"}`,children:e.name},e.v))})}),ta&&(0,s.jsx)(q,{label:"Speed",hint:"Playback rate, 0.70\xd7 to 1.20\xd7. Values far from 1 can affect quality.",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"range",min:"0.7",max:"1.2",step:"0.05",value:ei,onChange:e=>eo(Number(e.target.value)),className:"w-40 accent-primary"}),(0,s.jsxs)("span",{className:"text-xs text-text-muted tabular-nums",children:[ei.toFixed(2),"\xd7"]}),1!==ei&&(0,s.jsx)("button",{type:"button",onClick:()=>eo(1),className:"text-[11px] text-text-muted hover:text-primary transition-colors",children:(0,_.Tl)("Reset")})]})}),n&&(0,s.jsx)(q,{label:"Audio Quality",hint:"Higher MP3 bitrates and PCM require a paid plan; \xb5-law 8 kHz is for telephony.",children:(0,s.jsxs)("select",{value:ed,onChange:e=>ec(e.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,s.jsx)("option",{value:"",children:"Provider default (MP3 44.1 kHz 128 kbps)"}),I.RB.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))]})}),tt&&(0,s.jsx)(q,{label:"Language Override",hint:"Off: the model auto-detects the language. On: force the chosen language (best with Eleven v3).",children:(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,s.jsx)(o.lM,{size:"sm",checked:em,onChange:eu}),em&&(0,s.jsx)("select",{value:ep,onChange:e=>ex(e.target.value),className:"px-2 py-1 text-xs border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:D.map(e=>(0,s.jsxs)("option",{value:e.code,children:[e.name," (",e.code,")"]},e.code))})]})}),te&&(0,s.jsx)($,{label:"Get started",children:(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:W.map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>{A(e.text),el(e.stability),ek(e.vibe),requestAnimationFrame(()=>{let t=eP.current;t&&(t.focus(),t.setSelectionRange(e.text.length,e.text.length))})},className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg border border-border text-xs text-text-main hover:text-primary hover:border-primary/40 transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:e.icon}),e.label]},e.id))})}),te&&(0,s.jsx)($,{label:"Audio Tags",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2.5",children:[B.map(e=>(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"text-[10px] font-semibold text-text-muted uppercase tracking-wider",children:e.label}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-1.5",children:e.tags.map(e=>(0,s.jsx)("button",{type:"button",title:e.ins,onClick:()=>{var t;let a,s,r,n,l,i,o,d,c;return t=e.ins,r=(s=(a=eP.current)&&"number"==typeof a.selectionStart)?a.selectionStart:C.length,n=s?a.selectionEnd:C.length,l=C.slice(0,r),i=C.slice(n),o=l&&!/\s$/.test(l)?" ":"",d=i&&!/^\s/.test(i)?" ":"",void(e_.current=r+(c=`${o}${t}${d}`).length,A(l+c+i))},className:"px-2 py-0.5 rounded-full text-[11px] border border-border text-text-muted hover:text-primary hover:border-primary/40 transition-colors",children:e.label},e.ins))})]},e.label)),(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,s.jsxs)("button",{type:"button",onClick:ti,disabled:ej||!C.trim(),className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-lg border border-primary/40 bg-primary/10 text-primary text-xs font-medium hover:bg-primary/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:ej?{animation:"spin 1s linear infinite"}:void 0,children:ej?"progress_activity":"auto_awesome"}),ej?"Enhancing…":"Enhance with AI"]}),(0,s.jsxs)("div",{ref:e$,className:"relative",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>eC(e=>!e),disabled:ej,title:(0,_.Tl)("Performance style the AI should aim for"),className:"inline-flex items-center gap-1.5 pl-2 pr-1.5 py-1 text-xs font-medium rounded-lg border border-primary/40 bg-primary/5 text-primary hover:bg-primary/10 focus:outline-none transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] text-primary/70",children:"tune"}),ts.label,(0,s.jsx)("span",{className:`material-symbols-outlined text-[16px] text-primary/70 transition-transform ${eS?"rotate-180":""}`,children:"expand_more"})]}),eS&&(0,s.jsx)("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-52 rounded-xl border border-border bg-bg shadow-lg overflow-hidden py-1",children:K.map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>{ek(e.id),eC(!1)},className:`w-full text-left px-3 py-1.5 transition-colors ${eN===e.id?"bg-primary/10":"hover:bg-sidebar"}`,children:[(0,s.jsxs)("span",{className:`flex items-center gap-1.5 text-xs font-medium ${eN===e.id?"text-primary":"text-text-main"}`,children:[eN===e.id&&(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"check"}),e.label]}),(0,s.jsx)("span",{className:"block text-[10px] text-text-muted mt-0.5",children:e.hint})]},e.id))})]})]}),(0,s.jsx)("span",{className:"text-[11px] text-text-muted",children:"Click a tag to insert it, or let AI add tags automatically (uses your configured LLM via 9router)."})]})}),(0,s.jsx)($,{label:"Output Format",children:(0,s.jsxs)("select",{value:es,onChange:e=>er(e.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,s.jsx)("option",{value:"mp3",children:"MP3 (Binary)"}),(0,s.jsx)("option",{value:"json",children:"JSON (Base64)"})]})}),(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsxs)("button",{onClick:()=>eB(tl),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:eD?"check":"content_copy"}),eD?"Copied":"Copy"]}),(0,s.jsxs)("button",{onClick:to,disabled:ey||!C.trim()||!e6||e9,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:ey?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),ey?"Generating...":"Run"]})]})]}),(0,s.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:tl})]}),eA&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:eA}),eh?(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",eO&&(0,s.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",eO,"ms"]})]}),(0,s.jsxs)("a",{href:eh,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})]}),(0,s.jsx)("audio",{ref:eI,controls:!0,src:eh,className:"w-full"}),eb&&(0,s.jsxs)("div",{className:"mt-3",children:[(0,s.jsx)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"JSON Response"})}),(0,s.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:eb.format,audio:eb.audioPreview},null,2)})]})]}):(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Response"}),(0,s.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})]}),eT.length>0&&(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["History ",(0,s.jsxs)("span",{className:"font-normal normal-case",children:["(",eT.length,")"]})]}),(0,s.jsxs)("button",{onClick:tc,className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-red-500 transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"delete_sweep"}),"Clear all"]})]}),(0,s.jsx)("div",{className:"flex flex-col gap-1.5 max-h-72 overflow-y-auto",children:eT.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-2 px-2.5 py-2 rounded-lg border border-border bg-sidebar/50",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-xs text-text-main truncate",title:e.text,children:e.text}),(0,s.jsxs)("p",{className:"text-[10px] text-text-muted truncate",children:[e.voiceName||e.voiceId||"—",e.model?` \xb7 ${e.model}`:"",` \xb7 ${(0,R.gs)(e.createdAt)}`]})]}),(0,s.jsx)("div",{className:"flex items-center gap-0.5 shrink-0",children:Y.map(t=>(0,s.jsx)("button",{onClick:()=>((e,t)=>{if("play"===e)return void(t?.blob&&(ef(null),eg(URL.createObjectURL(t.blob)),requestAnimationFrame(()=>{eI.current?.play().catch(()=>{})})));if("reuse"===e)return void(A(t.text),t.voiceId&&(m(t.voiceId),l.hasVoiceIdInput&&b(t.voiceId)),t.voiceName&&h(t.voiceName),t.model&&l.hasModelSelector&&S(t.model),"number"==typeof t.stability&&el(t.stability));if("download"===e){let e,a;return e=URL.createObjectURL(t.blob),void((a=document.createElement("a")).href=e,a.download=`speech-${t.createdAt}.mp3`,document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(e),1e3))}return td(t.id)})(t.key,e),title:(0,_.Tl)(t.title),className:`p-1 rounded text-text-muted transition-colors ${t.danger?"hover:text-red-500":"hover:text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:t.icon})},t.key))})]},e.id))})]})]})]}),eU&&(0,s.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:()=>eK(!1),children:(0,s.jsxs)("div",{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:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0 rounded-t-xl",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold",children:"Select Language"}),(0,s.jsx)("button",{onClick:()=>eK(!1),className:"text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsx)("div",{className:"px-4 py-2.5 border-b border-border shrink-0",children:(0,s.jsx)("input",{autoFocus:!0,value:eH,onChange:e=>eJ(e.target.value),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,s.jsxs)("div",{className:"overflow-y-auto flex-1 p-2",children:[eW&&(0,s.jsx)("p",{className:"text-xs text-red-500 px-2 py-1",children:eW}),ez?(0,s.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"Loading..."}):(0,s.jsxs)("div",{className:"flex flex-col gap-0.5",children:[e2.map(e=>(0,s.jsxs)("button",{onClick:()=>{let t;return eK(!1),j(e.code),void(y(t=eY[e.code]?.voices||[]),t.length&&(m(t[0].id),h(t[0].name),l.hasVoiceIdInput&&b(t[0].id)))},className:`flex items-center justify-between w-full px-3 py-2 rounded-lg text-left hover:bg-sidebar transition-colors ${v===e.code?"bg-primary/10 text-primary":""}`,children:[(0,s.jsx)("span",{className:"text-sm",children:e.name}),(0,s.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:[e.voices.length," voices"]}),v===e.code&&(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"check"})]})]},e.code)),0===e2.length&&(0,s.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"No languages found."})]})]})]})})]})}let Q="https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog.png",Z=new Set(["antigravity/gemini-3.1-flash-image","codex/gpt-5.5-image","codex/gpt-5.4-image","codex/gpt-5.3-image"]);function ee(e){let t="string"==typeof e?e.trim():"";return t?/^(data:image\/|https?:\/\/)/i.test(t)?t:`data:image/png;base64,${t}`:""}function et(e){if("string"!=typeof e||!e.startsWith("data:image/"))return e;let t=e.indexOf(","),a=e.indexOf(";"),s=a>5?e.slice(5,a):"image",r=t>=0?e.length-t-1:e.length;return`<${s} base64 hidden: ${r.toLocaleString("en-US")} chars>`}function ea({method:e,endpoint:t,apiPath:a,headers:s,body:r,wantBinary:n}){return`curl -X ${e} ${t}${a} \\
|
|
76
76
|
${s.replace(/\\\n /g,"\\\n ")} \\
|
|
77
77
|
-d '${JSON.stringify(r)}'${n?" \\\n --output image.png":""}`}function es({providerId:e,kind:t}){let a=(0,c.wG)(e),r=(0,c.rs)(a),n=r===e?a:e,l=c.rj.find(e=>e.id===t),d=A[t],m=d||{},u=(0,w.KC)(e).filter(e=>(0,w.CP)(e)===t),p=new Set(["image","video","music","imageToText"]).has(t),x=p&&0===u.length,[h,g]=(0,i.useState)(u[0]?.id??""),b=u.find(e=>e.id===h),f=`${r}/${h}`,y=!!b?.capabilities?.includes("multiImage")||Z.has(f),v=!!b?.capabilities?.includes("edit")||y,j=!!b?.capabilities?.includes("mask"),[k,S]=(0,i.useState)(m.defaultInput||""),[C,E]=(0,i.useState)(""),[P,_]=(0,i.useState)([]),[I,T]=(0,i.useState)(""),[R,L]=(0,i.useState)(()=>(m.extraFields||[]).reduce((e,t)=>(e[t.key]=t.default??"",e),{})),[O,M]=(0,i.useState)(""),[D,B]=(0,i.useState)(!1),[U,K]=(0,i.useState)(""),[F,q]=(0,i.useState)(""),[z,V]=(0,i.useState)(null),[H,J]=(0,i.useState)(null),[W,G]=(0,i.useState)(null),[Y,X]=(0,i.useState)("json"),[er,en]=(0,i.useState)(""),[el,ei]=(0,i.useState)(!1),[eo,ed]=(0,i.useState)(""),[ec,em]=(0,i.useState)([]),[eu,ep]=(0,i.useState)(""),{copied:ex,copy:eh}=(0,N.C)(),{copied:eg,copy:eb}=(0,N.C)();if((0,i.useEffect)(()=>{K(window.location.origin),fetch("/api/keys").then(e=>e.json()).then(e=>{M((e.keys||[]).find(e=>!1!==e.isActive)?.key||"")}).catch(()=>{}),fetch("/api/tunnel/status").then(e=>e.json()).then(e=>{e.publicUrl&&q(e.publicUrl)}).catch(()=>{}),fetch("/api/providers/client").then(e=>e.json()).then(t=>{em((t.connections||[]).filter(t=>t.provider===e&&!1!==t.isActive))}).catch(()=>{})},[e]),!l||!d)return null;let ef=D?F:U,ey=l.endpoint.path,ev=p?h?`${n}/${h}`:x?"":n:n,ej="cloudflare-ai"!==e?{}:"@cf/runwayml/stable-diffusion-v1-5-img2img"===h?{image:Q}:"@cf/runwayml/stable-diffusion-v1-5-inpainting"===h?{image:Q,mask_image:"https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog-mask.png"}:{},ew=y?P:P.slice(0,1),eN=[...C.trim()?[C.trim()]:[],...ew.map(e=>e.dataUrl).filter(Boolean)],ek=eN.length>0?eN:ej.image?[ej.image]:[],eS=ek[0]||"",eC=I.trim()||ej.mask_image||"",e$=ee(C.trim()||(0===eN.length?ej.image:"")),eA=ee(eC),eE=Object.entries(R).reduce((e,[t,a])=>(""===a||null==a||"number"==typeof a&&Number.isNaN(a)||(e[t]=a),e),{}),eP={model:ev,[d.bodyKey]:k,...d.extraBody,...eE,...v&&y&&ek.length>1?{images:ek}:{},...v&&(!y||1===ek.length)&&eS?{image:eS}:{},...j&&eC?{mask_image:eC}:{}},e_=async e=>{let t=Array.from(e.target.files||[]).filter(e=>e.type.startsWith("image/"));if(e.target.value="",0===t.length)return;let a=await Promise.all(t.map(async e=>({id:globalThis.crypto?.randomUUID?.()||`ref_${Date.now()}_${Math.random().toString(16).slice(2)}`,name:e.name,dataUrl:await new Promise((t,a)=>{let s=new FileReader;s.onload=()=>t(String(s.result||"")),s.onerror=()=>a(s.error||Error("Failed to read image")),s.readAsDataURL(e)})})));_(e=>y?[...e,...a]:a.slice(0,1)),y||E("")},eI="image"===t&&"binary"===Y,eT="image"===t&&"codex"===e&&!eI,eR=`${ey}${eI?"?response_format=binary":""}`,eL=`-H "Content-Type: application/json" \\
|
|
78
78
|
-H "Authorization: Bearer ${O||"YOUR_KEY"}"${eu?` \\
|
|
79
79
|
-H "x-connection-id: ${eu}"`:""}${eT?` \\
|
|
80
|
-
-H "Accept: text/event-stream"`:""}`,eO=ea({method:l.endpoint.method,endpoint:ef,apiPath:eR,headers:eL,body:{...eP,...eP.image?{image:et(eP.image)}:{},...Array.isArray(eP.images)?{images:eP.images.map(et)}:{},...eP.mask_image?{mask_image:et(eP.mask_image)}:{}},wantBinary:eI}),eM=async()=>{if(!k.trim()||!ev)return;let e=ek.findIndex(e=>!function(e){let t="string"==typeof e?e.trim():"";if(!t)return!1;if(/^https?:\/\//i.test(t))return!0;let a=t.match(/^data:image\/[^;]+;base64,([\s\S]+)$/i),s=(a?.[1]||t).replace(/\s+/g,"");return s.length>=8&&s.length%4!=1&&/^[A-Za-z0-9+/]+={0,2}$/.test(s)}(e));if(e>=0)return void ed(`Reference image ${e+1} is invalid. Use an image URL or attach an image file.`);if(ei(!0),ed(""),V(null),J(null),G(null),er){try{URL.revokeObjectURL(er)}catch{}en("")}let t=Date.now();try{let e={"Content-Type":"application/json"};O&&(e.Authorization=`Bearer ${O}`),eu&&(e["x-connection-id"]=eu),eT&&(e.Accept="text/event-stream");let a={...eP,model:ev},s=await fetch(`/api${eR}`,{method:l.endpoint.method,headers:e,body:JSON.stringify(a)}),r=s.headers.get("x-connection-id")||"",n=ec.find(e=>e.id===r),i=n?n.email||n.name||n.id.slice(0,8):r?r.slice(0,8):"",o=r?{connectionId:r,connectionLabel:i}:{};if(!s.ok){let e=await s.json().catch(()=>({}));ed(e?.error?.message||e?.error||`HTTP ${s.status}`);return}let d=s.headers.get("content-type")||"";if(d.startsWith("image/")){let e=await s.blob(),a=URL.createObjectURL(e);en(a),V({data:{binary:!0,mime:d,size:e.size},latencyMs:Date.now()-t,...o});return}if(d.includes("text/event-stream")&&s.body){let e=s.body.getReader(),a=new TextDecoder,r="",n=null,l=null;for(;;){let t,{done:s,value:i}=await e.read();if(s)break;for(r+=a.decode(i,{stream:!0});-1!==(t=r.indexOf("\n\n"));){let e=r.slice(0,t);r=r.slice(t+2);let a=null,s="";for(let t of e.split("\n"))t.startsWith("event:")?a=t.slice(6).trim():t.startsWith("data:")&&(s+=t.slice(5).trim());if(a)try{let e=s?JSON.parse(s):{};"progress"===a?J(e):"partial_image"===a?G(e):"done"===a?n=e:"error"===a&&(l=e?.message||"Stream error")}catch{}}}let i=Date.now()-t;if(l)return void ed(l);n&&V({data:n,latencyMs:i,...o})}else{let e=await s.json(),a=Date.now()-t;V({data:e,latencyMs:a,...o})}}catch(e){ed(e.message||"Network error")}finally{ei(!1)}},eD=e=>{if(!e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(eD);let t={};for(let[a,s]of Object.entries(e))t[a]="b64_json"===a&&"string"==typeof s&&s.length>100?`<${s.length} chars base64>`:eD(s);return t},eB=z?JSON.stringify(eD(z.data),null,2):"";return(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,s.jsxs)("div",{className:"flex flex-col gap-2.5",children:[u.length>0?(0,s.jsx)($,{label:"Model",children:(0,s.jsx)("select",{value:h,onChange:e=>g(e.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:u.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name||e.id},e.id))})}):x?(0,s.jsx)($,{label:"Model",children:(0,s.jsx)("input",{value:h,onChange:e=>g(e.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,s.jsx)($,{label:"Endpoint",children:(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.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:[ef,ey]}),F&&(0,s.jsxs)("button",{onClick:()=>B(e=>!e),title:D?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${D?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,s.jsx)($,{label:"API Key",children:(0,s.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:O?`${O.slice(0,8)}${"•".repeat(Math.min(20,O.length-8))}`:(0,s.jsx)("span",{className:"text-text-muted italic",children:"No key configured"})})}),ec.length>0&&(0,s.jsx)($,{label:"Connection",children:(0,s.jsxs)("select",{value:eu,onChange:e=>ep(e.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,s.jsx)("option",{value:"",children:"Auto (by priority)"}),ec.map(e=>{let t=e.providerSpecificData?.chatgptPlanType,a=e.email||e.name||e.id.slice(0,8);return(0,s.jsxs)("option",{value:e.id,children:[a,t?` [${t}]`:""]},e.id)})]})}),(0,s.jsx)($,{label:d.inputLabel,children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{value:k,onChange:e=>S(e.target.value),placeholder:d.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"}),k&&(0,s.jsx)("button",{type:"button",onClick:()=>S(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),v&&(0,s.jsx)($,{label:y?"Reference Images":"Ref Image",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{value:C,onChange:e=>{E(e.target.value),y||_([])},placeholder:ej.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"}),C&&(0,s.jsx)("button",{type:"button",onClick:()=>E(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),(0,s.jsxs)("label",{className:"flex cursor-pointer items-center justify-center gap-1.5 rounded-lg border border-dashed border-border px-3 py-2 text-xs text-text-muted transition-colors hover:border-primary hover:text-primary",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add_photo_alternate"}),y?"Attach one or more images":"Attach image",(0,s.jsx)("input",{type:"file",accept:"image/*",multiple:y,onChange:e_,className:"hidden"})]}),e$&&(0,s.jsx)("img",{src:e$,alt:"Reference",className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:e=>{e.currentTarget.style.display="none"},onLoad:e=>{e.currentTarget.style.display="block"},loading:"lazy",decoding:"async"}),ew.length>0&&(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3",children:ew.map(e=>(0,s.jsxs)("div",{className:"group relative overflow-hidden rounded-lg border border-border bg-sidebar",children:[(0,s.jsx)("img",{src:e.dataUrl,alt:e.name,className:"h-28 w-full object-cover",loading:"lazy",decoding:"async"}),(0,s.jsx)("button",{type:"button",onClick:()=>_(t=>t.filter(t=>t.id!==e.id)),className:"absolute right-1.5 top-1.5 flex h-6 w-6 items-center justify-center rounded-full bg-black/65 text-white transition hover:bg-black","aria-label":`Remove ${e.name}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[15px]",children:"close"})}),(0,s.jsx)("span",{className:"block truncate px-2 py-1.5 text-[11px] text-text-muted",children:e.name})]},e.id))}),y&&ek.length>0&&(0,s.jsx)("p",{className:"text-[11px] text-text-muted",children:1===ek.length?"Request uses image":`Request uses images[] with ${ek.length} references`})]})}),j&&(0,s.jsx)($,{label:"Mask (URL)",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{value:I,onChange:e=>T(e.target.value),placeholder:ej.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"}),I&&(0,s.jsx)("button",{type:"button",onClick:()=>T(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),eA&&(0,s.jsx)("img",{src:eA,alt:"Mask",className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:e=>{e.currentTarget.style.display="none"},onLoad:e=>{e.currentTarget.style.display="block"},loading:"lazy",decoding:"async"})]})}),(d.extraFields||[]).filter(e=>0===u.length||Array.isArray(b?.params)&&b.params.includes(e.key)).map(e=>(0,s.jsx)($,{label:e.label,children:"select"===e.type?(0,s.jsx)("select",{value:R[e.key]??"",onChange:t=>L(a=>({...a,[e.key]:t.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:(e.options||[]).map(e=>(0,s.jsx)("option",{value:e,children:""===e?"(default)":e},e))}):"text"===e.type?(0,s.jsx)("input",{type:"text",value:R[e.key]??"",placeholder:e.placeholder,onChange:t=>L(a=>({...a,[e.key]:t.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,s.jsx)("input",{type:"number",value:R[e.key]??"",min:e.min,max:e.max,onChange:t=>L(a=>({...a,[e.key]:""===t.target.value?"":Number(t.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"})},e.key)),"image"===t&&(0,s.jsx)($,{label:"Output Format",children:(0,s.jsxs)("select",{value:Y,onChange:e=>X(e.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,s.jsx)("option",{value:"json",children:"JSON (Base64)"}),(0,s.jsx)("option",{value:"binary",children:"Binary File"})]})}),(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsxs)("button",{onClick:()=>{eh(ea({method:l.endpoint.method,endpoint:ef,apiPath:eR,headers:eL,body:eP,wantBinary:eI}))},className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:ex?"check":"content_copy"}),ex?"Copied":"Copy"]}),(0,s.jsxs)("button",{onClick:eM,disabled:el||!k.trim()||!ev,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:el?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),el?"Running...":"Run"]})]})]}),(0,s.jsx)("pre",{className:"max-h-56 overflow-auto whitespace-pre-wrap break-all rounded-lg bg-sidebar px-3 py-2.5 font-mono text-xs text-text-main",children:eO}),(eP.image||eP.images||eP.mask_image)&&(0,s.jsx)("p",{className:"mt-1.5 text-[11px] text-text-muted",children:"Base64 is hidden in the preview. Copy and Run still include the full image payload."})]}),(el||H)&&eT&&(0,s.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,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",style:el?{animation:"spin 1s linear infinite"}:void 0,children:el?"progress_activity":"check_circle"}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:[H?.stage||"starting",!el&&H?.bytesReceived?` \xb7 ${(H.bytesReceived/1024).toFixed(1)} KB`:""]})]}),W?.b64_json&&!z&&(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Partial preview"}),(0,s.jsx)("img",{src:`data:image/png;base64,${W.b64_json}`,alt:"Partial",className:"max-w-full rounded-lg border border-border mt-1.5 opacity-80",loading:"lazy",decoding:"async"})]}),eo&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:eo}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",z&&(0,s.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",z.latencyMs,"ms",z.connectionLabel?` | account: ${z.connectionLabel}`:""]})]}),z&&(0,s.jsxs)("button",{onClick:()=>eb(eB),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:eg?"check":"content_copy"}),eg?"Copied":"Copy"]})]}),(0,s.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:z?eB:d.defaultResponse}),"image"===t&&(er||z?.data?.data?.[0])&&(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,s.jsxs)("a",{href:er||(z?.data?.data?.[0]?.b64_json?`data:image/png;base64,${z.data.data[0].b64_json}`:z?.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,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,s.jsx)("img",{src:er||(z?.data?.data?.[0]?.b64_json?`data:image/png;base64,${z.data.data[0].b64_json}`:z?.data?.data?.[0]?.url),alt:"Generated",className:"max-w-full rounded-lg border border-border",loading:"lazy",decoding:"async"})]})]})]})]})}function er({providerId:e}){let t=(0,c.wG)(e),a=(0,w.KC)(e).filter(e=>"stt"===(0,w.CP)(e)),[r,n]=(0,i.useState)([]),l=[...a,...r],[d,m]=(0,i.useState)(a[0]?.id??""),u=l.find(e=>e.id===d),p=Array.isArray(u?.params)?u.params:[],[x,h]=(0,i.useState)(null),[g,b]=(0,i.useState)(""),[f,y]=(0,i.useState)(""),[v,j]=(0,i.useState)("json"),[k,S]=(0,i.useState)(""),[C,A]=(0,i.useState)(""),[E,P]=(0,i.useState)(!1),[_,I]=(0,i.useState)(""),[T,R]=(0,i.useState)(""),[L,O]=(0,i.useState)(null),[M,D]=(0,i.useState)(null),[B,U]=(0,i.useState)(!1),[K,F]=(0,i.useState)(""),{copied:q,copy:z}=(0,N.C)(),{copied:V,copy:H}=(0,N.C)();(0,i.useEffect)(()=>{I(window.location.origin),fetch("/api/keys").then(e=>e.json()).then(e=>{A((e.keys||[]).find(e=>!1!==e.isActive)?.key||"")}).catch(()=>{}),fetch("/api/tunnel/status").then(e=>e.json()).then(e=>{e.publicUrl&&R(e.publicUrl)}).catch(()=>{});let e=()=>{fetch("/api/models/custom",{cache:"no-store"}).then(e=>e.json()).then(e=>{n((e.models||[]).filter(e=>"stt"===(0,w.CP)(e)&&e.providerAlias===t))}).catch(()=>{})};return e(),window.addEventListener("focus",e),window.addEventListener("customModelChanged",e),()=>{window.removeEventListener("focus",e),window.removeEventListener("customModelChanged",e)}},[t]);let J=E?T:_,W=d?`${t}/${d}`:"",G=`curl -X POST ${J}/v1/audio/transcriptions \\
|
|
80
|
+
-H "Accept: text/event-stream"`:""}`,eO=ea({method:l.endpoint.method,endpoint:ef,apiPath:eR,headers:eL,body:{...eP,...eP.image?{image:et(eP.image)}:{},...Array.isArray(eP.images)?{images:eP.images.map(et)}:{},...eP.mask_image?{mask_image:et(eP.mask_image)}:{}},wantBinary:eI}),eM=async()=>{if(!k.trim()||!ev)return;let e=ek.findIndex(e=>!function(e){let t="string"==typeof e?e.trim():"";if(!t)return!1;if(/^https?:\/\//i.test(t))return!0;let a=t.match(/^data:image\/[^;]+;base64,([\s\S]+)$/i),s=(a?.[1]||t).replace(/\s+/g,"");return s.length>=8&&s.length%4!=1&&/^[A-Za-z0-9+/]+={0,2}$/.test(s)}(e));if(e>=0)return void ed(`Reference image ${e+1} is invalid. Use an image URL or attach an image file.`);if(ei(!0),ed(""),V(null),J(null),G(null),er){try{URL.revokeObjectURL(er)}catch{}en("")}let t=Date.now();try{let e={"Content-Type":"application/json"};O&&(e.Authorization=`Bearer ${O}`),eu&&(e["x-connection-id"]=eu),eT&&(e.Accept="text/event-stream");let a={...eP,model:ev},s=await fetch(`/api${eR}`,{method:l.endpoint.method,headers:e,body:JSON.stringify(a)}),r=s.headers.get("x-connection-id")||"",n=ec.find(e=>e.id===r),i=n?n.email||n.name||n.id.slice(0,8):r?r.slice(0,8):"",o=r?{connectionId:r,connectionLabel:i}:{};if(!s.ok){let e=await s.json().catch(()=>({}));ed(e?.error?.message||e?.error||`HTTP ${s.status}`);return}let d=s.headers.get("content-type")||"";if(d.startsWith("image/")){let e=await s.blob(),a=URL.createObjectURL(e);en(a),V({data:{binary:!0,mime:d,size:e.size},latencyMs:Date.now()-t,...o});return}if(d.includes("text/event-stream")&&s.body){let e=s.body.getReader(),a=new TextDecoder,r="",n=null,l=null;for(;;){let t,{done:s,value:i}=await e.read();if(s)break;for(r+=a.decode(i,{stream:!0});-1!==(t=r.indexOf("\n\n"));){let e=r.slice(0,t);r=r.slice(t+2);let a=null,s="";for(let t of e.split("\n"))t.startsWith("event:")?a=t.slice(6).trim():t.startsWith("data:")&&(s+=t.slice(5).trim());if(a)try{let e=s?JSON.parse(s):{};"progress"===a?J(e):"partial_image"===a?G(e):"done"===a?n=e:"error"===a&&(l=e?.message||"Stream error")}catch{}}}let i=Date.now()-t;if(l)return void ed(l);n&&V({data:n,latencyMs:i,...o})}else{let e=await s.json(),a=Date.now()-t;V({data:e,latencyMs:a,...o})}}catch(e){ed(e.message||"Network error")}finally{ei(!1)}},eD=e=>{if(!e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(eD);let t={};for(let[a,s]of Object.entries(e))t[a]="b64_json"===a&&"string"==typeof s&&s.length>100?`<${s.length} chars base64>`:eD(s);return t},eB=z?JSON.stringify(eD(z.data),null,2):"";return(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,s.jsxs)("div",{className:"flex flex-col gap-2.5",children:[u.length>0?(0,s.jsx)($,{label:"Model",children:(0,s.jsx)("select",{value:h,onChange:e=>g(e.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:u.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name||e.id},e.id))})}):x?(0,s.jsx)($,{label:"Model",children:(0,s.jsx)("input",{value:h,onChange:e=>g(e.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,s.jsx)($,{label:"Endpoint",children:(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.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:[ef,ey]}),F&&(0,s.jsxs)("button",{onClick:()=>B(e=>!e),title:D?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${D?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,s.jsx)($,{label:"API Key",children:(0,s.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:O?`${O.slice(0,8)}${"•".repeat(Math.min(20,Math.max(0,O.length-8)))}`:(0,s.jsx)("span",{className:"text-text-muted italic",children:"No key configured"})})}),ec.length>0&&(0,s.jsx)($,{label:"Connection",children:(0,s.jsxs)("select",{value:eu,onChange:e=>ep(e.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,s.jsx)("option",{value:"",children:"Auto (by priority)"}),ec.map(e=>{let t=e.providerSpecificData?.chatgptPlanType,a=e.email||e.name||e.id.slice(0,8);return(0,s.jsxs)("option",{value:e.id,children:[a,t?` [${t}]`:""]},e.id)})]})}),(0,s.jsx)($,{label:d.inputLabel,children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{value:k,onChange:e=>S(e.target.value),placeholder:d.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"}),k&&(0,s.jsx)("button",{type:"button",onClick:()=>S(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),v&&(0,s.jsx)($,{label:y?"Reference Images":"Ref Image",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{value:C,onChange:e=>{E(e.target.value),y||_([])},placeholder:ej.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"}),C&&(0,s.jsx)("button",{type:"button",onClick:()=>E(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),(0,s.jsxs)("label",{className:"flex cursor-pointer items-center justify-center gap-1.5 rounded-lg border border-dashed border-border px-3 py-2 text-xs text-text-muted transition-colors hover:border-primary hover:text-primary",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add_photo_alternate"}),y?"Attach one or more images":"Attach image",(0,s.jsx)("input",{type:"file",accept:"image/*",multiple:y,onChange:e_,className:"hidden"})]}),e$&&(0,s.jsx)("img",{src:e$,alt:"Reference",className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:e=>{e.currentTarget.style.display="none"},onLoad:e=>{e.currentTarget.style.display="block"},loading:"lazy",decoding:"async"}),ew.length>0&&(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3",children:ew.map(e=>(0,s.jsxs)("div",{className:"group relative overflow-hidden rounded-lg border border-border bg-sidebar",children:[(0,s.jsx)("img",{src:e.dataUrl,alt:e.name,className:"h-28 w-full object-cover",loading:"lazy",decoding:"async"}),(0,s.jsx)("button",{type:"button",onClick:()=>_(t=>t.filter(t=>t.id!==e.id)),className:"absolute right-1.5 top-1.5 flex h-6 w-6 items-center justify-center rounded-full bg-black/65 text-white transition hover:bg-black","aria-label":`Remove ${e.name}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[15px]",children:"close"})}),(0,s.jsx)("span",{className:"block truncate px-2 py-1.5 text-[11px] text-text-muted",children:e.name})]},e.id))}),y&&ek.length>0&&(0,s.jsx)("p",{className:"text-[11px] text-text-muted",children:1===ek.length?"Request uses image":`Request uses images[] with ${ek.length} references`})]})}),j&&(0,s.jsx)($,{label:"Mask (URL)",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{value:I,onChange:e=>T(e.target.value),placeholder:ej.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"}),I&&(0,s.jsx)("button",{type:"button",onClick:()=>T(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),eA&&(0,s.jsx)("img",{src:eA,alt:"Mask",className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:e=>{e.currentTarget.style.display="none"},onLoad:e=>{e.currentTarget.style.display="block"},loading:"lazy",decoding:"async"})]})}),(d.extraFields||[]).filter(e=>0===u.length||Array.isArray(b?.params)&&b.params.includes(e.key)).map(e=>(0,s.jsx)($,{label:e.label,children:"select"===e.type?(0,s.jsx)("select",{value:R[e.key]??"",onChange:t=>L(a=>({...a,[e.key]:t.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:(e.options||[]).map(e=>(0,s.jsx)("option",{value:e,children:""===e?"(default)":e},e))}):"text"===e.type?(0,s.jsx)("input",{type:"text",value:R[e.key]??"",placeholder:e.placeholder,onChange:t=>L(a=>({...a,[e.key]:t.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,s.jsx)("input",{type:"number",value:R[e.key]??"",min:e.min,max:e.max,onChange:t=>L(a=>({...a,[e.key]:""===t.target.value?"":Number(t.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"})},e.key)),"image"===t&&(0,s.jsx)($,{label:"Output Format",children:(0,s.jsxs)("select",{value:Y,onChange:e=>X(e.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,s.jsx)("option",{value:"json",children:"JSON (Base64)"}),(0,s.jsx)("option",{value:"binary",children:"Binary File"})]})}),(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsxs)("button",{onClick:()=>{eh(ea({method:l.endpoint.method,endpoint:ef,apiPath:eR,headers:eL,body:eP,wantBinary:eI}))},className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:ex?"check":"content_copy"}),ex?"Copied":"Copy"]}),(0,s.jsxs)("button",{onClick:eM,disabled:el||!k.trim()||!ev,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:el?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),el?"Running...":"Run"]})]})]}),(0,s.jsx)("pre",{className:"max-h-56 overflow-auto whitespace-pre-wrap break-all rounded-lg bg-sidebar px-3 py-2.5 font-mono text-xs text-text-main",children:eO}),(eP.image||eP.images||eP.mask_image)&&(0,s.jsx)("p",{className:"mt-1.5 text-[11px] text-text-muted",children:"Base64 is hidden in the preview. Copy and Run still include the full image payload."})]}),(el||H)&&eT&&(0,s.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,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",style:el?{animation:"spin 1s linear infinite"}:void 0,children:el?"progress_activity":"check_circle"}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:[H?.stage||"starting",!el&&H?.bytesReceived?` \xb7 ${(H.bytesReceived/1024).toFixed(1)} KB`:""]})]}),W?.b64_json&&!z&&(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Partial preview"}),(0,s.jsx)("img",{src:`data:image/png;base64,${W.b64_json}`,alt:"Partial",className:"max-w-full rounded-lg border border-border mt-1.5 opacity-80",loading:"lazy",decoding:"async"})]}),eo&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:eo}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",z&&(0,s.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",z.latencyMs,"ms",z.connectionLabel?` | account: ${z.connectionLabel}`:""]})]}),z&&(0,s.jsxs)("button",{onClick:()=>eb(eB),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:eg?"check":"content_copy"}),eg?"Copied":"Copy"]})]}),(0,s.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:z?eB:d.defaultResponse}),"image"===t&&(er||z?.data?.data?.[0])&&(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,s.jsxs)("a",{href:er||(z?.data?.data?.[0]?.b64_json?`data:image/png;base64,${z.data.data[0].b64_json}`:z?.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,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,s.jsx)("img",{src:er||(z?.data?.data?.[0]?.b64_json?`data:image/png;base64,${z.data.data[0].b64_json}`:z?.data?.data?.[0]?.url),alt:"Generated",className:"max-w-full rounded-lg border border-border",loading:"lazy",decoding:"async"})]})]})]})]})}function er({providerId:e}){let t=(0,c.wG)(e),a=(0,w.KC)(e).filter(e=>"stt"===(0,w.CP)(e)),[r,n]=(0,i.useState)([]),l=[...a,...r],[d,m]=(0,i.useState)(a[0]?.id??""),u=l.find(e=>e.id===d),p=Array.isArray(u?.params)?u.params:[],[x,h]=(0,i.useState)(null),[g,b]=(0,i.useState)(""),[f,y]=(0,i.useState)(""),[v,j]=(0,i.useState)("json"),[k,S]=(0,i.useState)(""),[C,A]=(0,i.useState)(""),[E,P]=(0,i.useState)(!1),[_,I]=(0,i.useState)(""),[T,R]=(0,i.useState)(""),[L,O]=(0,i.useState)(null),[M,D]=(0,i.useState)(null),[B,U]=(0,i.useState)(!1),[K,F]=(0,i.useState)(""),{copied:q,copy:z}=(0,N.C)(),{copied:V,copy:H}=(0,N.C)();(0,i.useEffect)(()=>{I(window.location.origin),fetch("/api/keys").then(e=>e.json()).then(e=>{A((e.keys||[]).find(e=>!1!==e.isActive)?.key||"")}).catch(()=>{}),fetch("/api/tunnel/status").then(e=>e.json()).then(e=>{e.publicUrl&&R(e.publicUrl)}).catch(()=>{});let e=()=>{fetch("/api/models/custom",{cache:"no-store"}).then(e=>e.json()).then(e=>{n((e.models||[]).filter(e=>"stt"===(0,w.CP)(e)&&e.providerAlias===t))}).catch(()=>{})};return e(),window.addEventListener("focus",e),window.addEventListener("customModelChanged",e),()=>{window.removeEventListener("focus",e),window.removeEventListener("customModelChanged",e)}},[t]);let J=E?T:_,W=d?`${t}/${d}`:"",G=`curl -X POST ${J}/v1/audio/transcriptions \\
|
|
81
81
|
-H "Authorization: Bearer ${C||"YOUR_KEY"}" \\
|
|
82
82
|
-F "file=@${x?.name||"audio.mp3"}" \\
|
|
83
83
|
-F "model=${W}"${p.includes("language")&&g?` \\
|
|
@@ -86,4 +86,4 @@ Return ONLY the resulting tagged text.`,V=/\b(flash|mini|haiku|lite|nano|small|t
|
|
|
86
86
|
-F "temperature=${k}"`:""}${p.includes("prompt")&&f?` \\
|
|
87
87
|
-F "prompt=${f}"`:""}`,Y=async()=>{if(!x||!W)return;U(!0),F(""),O(null);let e=Date.now();try{let t=new FormData;t.append("file",x),t.append("model",W),p.includes("language")&&g&&t.append("language",g),p.includes("response_format")&&t.append("response_format",v),p.includes("temperature")&&k&&t.append("temperature",k),p.includes("prompt")&&f&&t.append("prompt",f);let a={};C&&(a.Authorization=`Bearer ${C}`);let s=await fetch("/api/v1/audio/transcriptions",{method:"POST",headers:a,body:t});D(Date.now()-e);let r=(s.headers.get("content-type")||"").includes("application/json")?await s.json():await s.text();if(!s.ok)return void F(r?.error?.message||r?.error||r||`HTTP ${s.status}`);O(r)}catch(e){F(e.message||"Network error")}finally{U(!1)}},X="string"==typeof L?L:L?JSON.stringify(L,null,2):`{
|
|
88
88
|
"text": "Hello world..."
|
|
89
|
-
}`;return(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,s.jsxs)("div",{className:"flex flex-col gap-2.5",children:[l.length>0?(0,s.jsx)($,{label:"Model",children:(0,s.jsx)("select",{value:d,onChange:e=>m(e.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(e=>(0,s.jsx)("option",{value:e.id,children:e.name||e.id},e.id))})}):(0,s.jsx)($,{label:"Model",children:(0,s.jsx)("input",{value:d,onChange:e=>m(e.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,s.jsx)($,{label:"Endpoint",children:(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.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:[J,"/v1/audio/transcriptions"]}),T&&(0,s.jsxs)("button",{onClick:()=>P(e=>!e),title:E?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${E?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,s.jsx)($,{label:"API Key",children:(0,s.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:C?`${C.slice(0,8)}${"•".repeat(Math.min(20,C.length-8))}`:(0,s.jsx)("span",{className:"text-text-muted italic",children:"No key configured"})})}),(0,s.jsx)($,{label:"Audio File",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("input",{type:"file",accept:"audio/*,video/mp4,.m4a,.mp3,.wav,.ogg,.flac,.webm,.opus",onChange:e=>h(e.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"}),x&&(0,s.jsxs)("span",{className:"text-xs text-text-muted font-mono",children:[x.name," \xb7 ",(x.size/1024).toFixed(1)," KB"]})]})}),p.includes("language")&&(0,s.jsx)($,{label:"Language",children:(0,s.jsx)("input",{value:g,onChange:e=>b(e.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"})}),p.includes("prompt")&&(0,s.jsx)($,{label:"Prompt",children:(0,s.jsx)("input",{value:f,onChange:e=>y(e.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"})}),p.includes("temperature")&&(0,s.jsx)($,{label:"Temperature",children:(0,s.jsx)("input",{type:"number",step:"0.1",min:"0",max:"1",value:k,onChange:e=>S(e.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"})}),p.includes("response_format")&&(0,s.jsx)($,{label:"Response Format",children:(0,s.jsxs)("select",{value:v,onChange:e=>j(e.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,s.jsx)("option",{value:"json",children:"json"}),(0,s.jsx)("option",{value:"text",children:"text"}),(0,s.jsx)("option",{value:"srt",children:"srt"}),(0,s.jsx)("option",{value:"verbose_json",children:"verbose_json"}),(0,s.jsx)("option",{value:"vtt",children:"vtt"})]})}),(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsxs)("button",{onClick:()=>z(G),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:q?"check":"content_copy"}),q?"Copied":"Copy"]}),(0,s.jsxs)("button",{onClick:Y,disabled:B||!x||!W,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:B?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),B?"Transcribing...":"Run"]})]})]}),(0,s.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:G})]}),K&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:K}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",L&&M&&(0,s.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",M,"ms"]})]}),L&&(0,s.jsxs)("button",{onClick:()=>H(X),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:V?"check":"content_copy"}),V?"Copied":"Copy"]})]}),(0,s.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:X})]})]})]})}function en(){let{kind:e,id:t}=(0,r.useParams)(),a=(0,r.useRouter)(),n=c.rj.find(t=>t.id===e),m=(0,c.gC)(t)&&"embedding"===e,u=(0,c.AR)(t)&&"video"===e,p=m||u,x=u?"Custom Video":"Custom Embedding",h=async()=>{if(confirm(`Delete this ${x} node?`))try{(await fetch(`/api/provider-nodes/${t}`,{method:"DELETE"})).ok&&a.push(`/dashboard/media-providers/${e}`)}catch(e){console.log("Error deleting custom node:",e)}},[g,b]=(0,i.useState)(null),[f,y]=(0,i.useState)(p),[v,w]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{if(!p)return;let e=!1;return fetch("/api/provider-nodes",{cache:"no-store"}).then(e=>e.json()).then(a=>{e||(b((a.nodes||[]).find(e=>e.id===t)||null),y(!1))}).catch(()=>{e||y(!1)}),()=>{e=!0}},[t,p]),!n)return(0,r.notFound)();let N=c.Q2[t],k=u?"#EC4899":"#6366F1",S=u?"CV":"CE",$=p?g?{id:t,name:g.name||x,color:k,textIcon:S}:null:N;if(!p&&!N||p&&!f&&!g)return(0,r.notFound)();if(p&&f)return(0,s.jsx)("div",{className:"text-text-muted text-sm py-12 text-center",children:"Loading..."});let E=p?[e]:$.serviceKinds??["llm"];return p||E.includes(e)?(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)(l(),{href:`/dashboard/media-providers/${e}`,className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),n.label]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[(0,s.jsx)("div",{className:"size-12 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${$.color}15`},children:(0,s.jsx)(d.A,{src:`/providers/${$.id}.png`,alt:$.name,size:48,className:"object-contain rounded-lg max-w-[48px] max-h-[48px]",fallbackText:$.textIcon||$.id.slice(0,2).toUpperCase(),fallbackColor:$.color})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[(0,s.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:$.name}),!p&&$.notice?.apiKeyUrl&&(0,s.jsxs)("a",{href:$.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),"Get API Key"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[p&&(0,s.jsxs)(o.Ex,{variant:"default",size:"sm",children:["Custom \xb7 ",g?.prefix]}),E.map(t=>(0,s.jsx)(o.Ex,{variant:t===e?"primary":"default",size:"sm",children:t.toUpperCase()},t))]})]}),p&&(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>w(!0),children:"Edit"}),(0,s.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:h,children:"Delete"})]})]})]}),!p&&$.kindNotice?.[e]&&(0,s.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,s.jsx)("span",{className:"material-symbols-outlined text-[20px] mt-0.5",children:"warning"}),(0,s.jsx)("p",{className:"text-sm",children:$.kindNotice[e]})]}),!p&&$.notice?.text&&!$.deprecated&&(0,s.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,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,s.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:$.notice.text}),$.notice.apiKeyUrl&&(0,s.jsx)("a",{href:$.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 →"})]}),!p&&$.noAuth?(0,s.jsx)(o.gw,{providerId:t}):(0,s.jsx)(j,{providerId:t,isOAuth:!1}),"tts"!==e&&"webSearch"!==e&&"webFetch"!==e&&(0,s.jsx)(C,{providerId:t,kindFilter:e,providerAliasOverride:p?g?.prefix:void 0}),!p&&($.searchConfig||$.fetchConfig||$.ttsConfig||$.sttConfig||$.embeddingConfig||$.searchViaChat)&&(0,s.jsx)(o.Wx,{config:"webFetch"===e?$.fetchConfig:"tts"===e?$.ttsConfig:"stt"===e?$.sttConfig:"embedding"===e?$.embeddingConfig:$.searchConfig||{mode:"chat-completions",defaultModel:$.searchViaChat?.defaultModel,pricingUrl:$.searchViaChat?.pricingUrl,freeTier:$.searchViaChat?.freeTier},provider:$,title:`${n.label} Config`}),"embedding"===e&&(0,s.jsx)(P,{providerId:t,customAlias:g?.prefix}),"tts"===e&&(0,s.jsx)(X,{providerId:t}),"stt"===e&&!p&&(0,s.jsx)(er,{providerId:t}),!p&&A[e]&&(0,s.jsx)(es,{providerId:t,kind:e}),m&&(0,s.jsx)(o.x0,{isOpen:v,node:g,onClose:()=>w(!1),onSaved:e=>{b(e),w(!1)}}),u&&(0,s.jsx)(o.fA,{isOpen:v,node:g,onClose:()=>w(!1),onSaved:e=>{b(e),w(!1)}})]}):(0,r.notFound)()}},28915:(e,t,a)=>{"use strict";a.d(t,{E2:()=>s,gs:()=>r});function s(e){if(!e)return null;let t=e.match(/\b([45]\d{2})\b/);return t?t[1]:"ERR"}function r(e){if(!e)return"";let t=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(t<1)return"just now";if(t<60)return`${t}m ago`;let a=Math.floor(t/60);if(a<24)return`${a}h ago`;let s=Math.floor(a/24);return`${s}d ago`}a(8247)},70217:(e,t,a)=>{"use strict";function s(e,t){return!1===e?"default":"active"===t||"success"===t?"success":"error"===t||"expired"===t||"unavailable"===t?"error":"default"}a.d(t,{g:()=>s})}},e=>{e.O(0,[8010,8105,1321,801,5497,8441,3794,7358],()=>e(e.s=1389)),_N_E=e.O()}]);
|
|
89
|
+
}`;return(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,s.jsxs)("div",{className:"flex flex-col gap-2.5",children:[l.length>0?(0,s.jsx)($,{label:"Model",children:(0,s.jsx)("select",{value:d,onChange:e=>m(e.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(e=>(0,s.jsx)("option",{value:e.id,children:e.name||e.id},e.id))})}):(0,s.jsx)($,{label:"Model",children:(0,s.jsx)("input",{value:d,onChange:e=>m(e.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,s.jsx)($,{label:"Endpoint",children:(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.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:[J,"/v1/audio/transcriptions"]}),T&&(0,s.jsxs)("button",{onClick:()=>P(e=>!e),title:E?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${E?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,s.jsx)($,{label:"API Key",children:(0,s.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:C?`${C.slice(0,8)}${"•".repeat(Math.min(20,Math.max(0,C.length-8)))}`:(0,s.jsx)("span",{className:"text-text-muted italic",children:"No key configured"})})}),(0,s.jsx)($,{label:"Audio File",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("input",{type:"file",accept:"audio/*,video/mp4,.m4a,.mp3,.wav,.ogg,.flac,.webm,.opus",onChange:e=>h(e.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"}),x&&(0,s.jsxs)("span",{className:"text-xs text-text-muted font-mono",children:[x.name," \xb7 ",(x.size/1024).toFixed(1)," KB"]})]})}),p.includes("language")&&(0,s.jsx)($,{label:"Language",children:(0,s.jsx)("input",{value:g,onChange:e=>b(e.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"})}),p.includes("prompt")&&(0,s.jsx)($,{label:"Prompt",children:(0,s.jsx)("input",{value:f,onChange:e=>y(e.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"})}),p.includes("temperature")&&(0,s.jsx)($,{label:"Temperature",children:(0,s.jsx)("input",{type:"number",step:"0.1",min:"0",max:"1",value:k,onChange:e=>S(e.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"})}),p.includes("response_format")&&(0,s.jsx)($,{label:"Response Format",children:(0,s.jsxs)("select",{value:v,onChange:e=>j(e.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,s.jsx)("option",{value:"json",children:"json"}),(0,s.jsx)("option",{value:"text",children:"text"}),(0,s.jsx)("option",{value:"srt",children:"srt"}),(0,s.jsx)("option",{value:"verbose_json",children:"verbose_json"}),(0,s.jsx)("option",{value:"vtt",children:"vtt"})]})}),(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsxs)("button",{onClick:()=>z(G),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:q?"check":"content_copy"}),q?"Copied":"Copy"]}),(0,s.jsxs)("button",{onClick:Y,disabled:B||!x||!W,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:B?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),B?"Transcribing...":"Run"]})]})]}),(0,s.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:G})]}),K&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:K}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",L&&M&&(0,s.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",M,"ms"]})]}),L&&(0,s.jsxs)("button",{onClick:()=>H(X),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:V?"check":"content_copy"}),V?"Copied":"Copy"]})]}),(0,s.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:X})]})]})]})}function en(){let{kind:e,id:t}=(0,r.useParams)(),a=(0,r.useRouter)(),n=c.rj.find(t=>t.id===e),m=(0,c.gC)(t)&&"embedding"===e,u=(0,c.AR)(t)&&"video"===e,p=m||u,x=u?"Custom Video":"Custom Embedding",h=async()=>{if(confirm(`Delete this ${x} node?`))try{(await fetch(`/api/provider-nodes/${t}`,{method:"DELETE"})).ok&&a.push(`/dashboard/media-providers/${e}`)}catch(e){console.log("Error deleting custom node:",e)}},[g,b]=(0,i.useState)(null),[f,y]=(0,i.useState)(p),[v,w]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{if(!p)return;let e=!1;return fetch("/api/provider-nodes",{cache:"no-store"}).then(e=>e.json()).then(a=>{e||(b((a.nodes||[]).find(e=>e.id===t)||null),y(!1))}).catch(()=>{e||y(!1)}),()=>{e=!0}},[t,p]),!n)return(0,r.notFound)();let N=c.Q2[t],k=u?"#EC4899":"#6366F1",S=u?"CV":"CE",$=p?g?{id:t,name:g.name||x,color:k,textIcon:S}:null:N;if(!p&&!N||p&&!f&&!g)return(0,r.notFound)();if(p&&f)return(0,s.jsx)("div",{className:"text-text-muted text-sm py-12 text-center",children:"Loading..."});let E=p?[e]:$.serviceKinds??["llm"];return p||E.includes(e)?(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)(l(),{href:`/dashboard/media-providers/${e}`,className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),n.label]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[(0,s.jsx)("div",{className:"size-12 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${$.color}15`},children:(0,s.jsx)(d.A,{src:`/providers/${$.id}.png`,alt:$.name,size:48,className:"object-contain rounded-lg max-w-[48px] max-h-[48px]",fallbackText:$.textIcon||$.id.slice(0,2).toUpperCase(),fallbackColor:$.color})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[(0,s.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:$.name}),!p&&$.notice?.apiKeyUrl&&(0,s.jsxs)("a",{href:$.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),"Get API Key"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[p&&(0,s.jsxs)(o.Ex,{variant:"default",size:"sm",children:["Custom \xb7 ",g?.prefix]}),E.map(t=>(0,s.jsx)(o.Ex,{variant:t===e?"primary":"default",size:"sm",children:t.toUpperCase()},t))]})]}),p&&(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>w(!0),children:"Edit"}),(0,s.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:h,children:"Delete"})]})]})]}),!p&&$.kindNotice?.[e]&&(0,s.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,s.jsx)("span",{className:"material-symbols-outlined text-[20px] mt-0.5",children:"warning"}),(0,s.jsx)("p",{className:"text-sm",children:$.kindNotice[e]})]}),!p&&$.notice?.text&&!$.deprecated&&(0,s.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,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,s.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:$.notice.text}),$.notice.apiKeyUrl&&(0,s.jsx)("a",{href:$.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 →"})]}),!p&&$.noAuth?(0,s.jsx)(o.gw,{providerId:t}):(0,s.jsx)(j,{providerId:t,isOAuth:!1}),"tts"!==e&&"webSearch"!==e&&"webFetch"!==e&&(0,s.jsx)(C,{providerId:t,kindFilter:e,providerAliasOverride:p?g?.prefix:void 0}),!p&&($.searchConfig||$.fetchConfig||$.ttsConfig||$.sttConfig||$.embeddingConfig||$.searchViaChat)&&(0,s.jsx)(o.Wx,{config:"webFetch"===e?$.fetchConfig:"tts"===e?$.ttsConfig:"stt"===e?$.sttConfig:"embedding"===e?$.embeddingConfig:$.searchConfig||{mode:"chat-completions",defaultModel:$.searchViaChat?.defaultModel,pricingUrl:$.searchViaChat?.pricingUrl,freeTier:$.searchViaChat?.freeTier},provider:$,title:`${n.label} Config`}),"embedding"===e&&(0,s.jsx)(P,{providerId:t,customAlias:g?.prefix}),"tts"===e&&(0,s.jsx)(X,{providerId:t}),"stt"===e&&!p&&(0,s.jsx)(er,{providerId:t}),!p&&A[e]&&(0,s.jsx)(es,{providerId:t,kind:e}),m&&(0,s.jsx)(o.x0,{isOpen:v,node:g,onClose:()=>w(!1),onSaved:e=>{b(e),w(!1)}}),u&&(0,s.jsx)(o.fA,{isOpen:v,node:g,onClose:()=>w(!1),onSaved:e=>{b(e),w(!1)}})]}):(0,r.notFound)()}},28915:(e,t,a)=>{"use strict";a.d(t,{E2:()=>s,gs:()=>r});function s(e){if(!e)return null;let t=e.match(/\b([45]\d{2})\b/);return t?t[1]:"ERR"}function r(e){if(!e)return"";let t=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(t<1)return"just now";if(t<60)return`${t}m ago`;let a=Math.floor(t/60);if(a<24)return`${a}h ago`;let s=Math.floor(a/24);return`${s}d ago`}a(8247)},70217:(e,t,a)=>{"use strict";function s(e,t){return!1===e?"default":"active"===t||"success"===t?"success":"error"===t||"expired"===t||"unavailable"===t?"error":"default"}a.d(t,{g:()=>s})}},e=>{e.O(0,[8010,8105,801,1321,5497,8441,3794,7358],()=>e(e.s=1389)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6620],{16144:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>b});var i=t(95155),a=t(73321),o=t(98500),r=t.n(o),n=t(12115),l=t(35497),d=t(57250),c=t(88105);let m=new Set([]),x={image:"image-combo",tts:"tts-combo"},h={embedding:{nodeType:"custom-embedding",addLabel:"Add Custom Embedding",cardName:"Custom Embedding",color:"#6366F1",textIcon:"CE"},video:{nodeType:"custom-video",addLabel:"Add Custom Video",cardName:"Custom Video",color:"#EC4899",textIcon:"CV"}};function p(e){let s=Object.entries(e).some(([e,s])=>e.startsWith("modelLock_")&&s&&new Date(s).getTime()>Date.now());return"unavailable"!==e.testStatus||s?e.testStatus:"active"}function u({provider:e,kind:s,connections:t,isCustom:a,onToggle:o}){let n=c.Q2[e.id],m=!!n?.noAuth,x=t.filter(s=>s.provider===e.id),h=x.filter(e=>{let s=p(e);return"active"===s||"success"===s}).length,f=x.filter(e=>{let s=p(e);return"error"===s||"expired"===s||"unavailable"===s}).length,b=x.length,g=b>0&&x.every(e=>!1===e.isActive);return(0,i.jsx)(r(),{href:`/dashboard/media-providers/${s}/${e.id}`,className:"group",children:(0,i.jsx)(l.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${g?"opacity-50":""}`,children:(0,i.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,i.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${e.color?.length>7?e.color:(e.color??"#888")+"15"}`},children:(0,i.jsx)(d.A,{src:`/providers/${e.id}.png`,alt:e.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:e.textIcon||e.id.slice(0,2).toUpperCase(),fallbackColor:e.color})}),(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("h3",{className:"font-semibold text-sm",children:e.name}),(0,i.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 flex-wrap",children:[a&&(0,i.jsx)(l.Ex,{variant:"default",size:"sm",children:"Custom"}),m?(0,i.jsx)(l.Ex,{variant:"success",size:"sm",children:"Ready"}):g?(0,i.jsx)(l.Ex,{variant:"default",size:"sm",children:"Disabled"}):0===b?(0,i.jsx)("span",{className:"text-xs text-text-muted",children:"No connections"}):(0,i.jsxs)(i.Fragment,{children:[h>0&&(0,i.jsxs)(l.Ex,{variant:"success",size:"sm",dot:!0,children:[h," Connected"]}),f>0&&(0,i.jsxs)(l.Ex,{variant:"error",size:"sm",dot:!0,children:[f," Error"]}),0===h&&0===f&&(0,i.jsxs)(l.Ex,{variant:"default",size:"sm",children:[b," Added"]})]})]})]})]}),b>0&&(0,i.jsx)("div",{className:"shrink-0 opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:s=>{s.preventDefault(),s.stopPropagation(),o&&o(e.id,g)},children:(0,i.jsx)(l.lM,{size:"sm",checked:!g,onChange:()=>{},title:g?"Enable provider":"Disable provider"})})]})})})}function f({combos:e}){return 0===e.length?null:(0,i.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>(0,i.jsx)(r(),{href:`/dashboard/media-providers/combo/${e.id}`,children:(0,i.jsx)(l.Zp,{padding:"xs",className:"hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors cursor-pointer",children:(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"}),(0,i.jsx)("code",{className:"text-sm font-mono font-medium flex-1 truncate",children:e.name}),(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-1 sm:shrink-0",children:[e.models.slice(0,6).map((e,s)=>{let t="string"==typeof e?e.split("/")[0]:"",a=c.Q2[t];return(0,i.jsx)("div",{title:a?.name||e,className:"size-5 rounded flex items-center justify-center",style:{backgroundColor:`${a?.color??"#888"}15`},children:(0,i.jsx)(d.A,{src:`/providers/${t}.png`,alt:a?.name||t,size:18,className:"object-contain rounded max-w-[18px] max-h-[18px]",fallbackText:a?.textIcon||t.slice(0,2).toUpperCase(),fallbackColor:a?.color})},`${e}-${s}`)}),e.models.length>6&&(0,i.jsxs)("span",{className:"text-[10px] text-text-muted ml-1",children:["+",e.models.length-6]})]}),(0,i.jsx)("span",{className:"text-[11px] text-text-muted shrink-0",children:e.models.length}),(0,i.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[16px]",children:"chevron_right"})]})})},e.id))})}function b(){let{kind:e}=(0,a.useParams)(),s=(0,a.useRouter)(),[t,o]=(0,n.useState)([]),[r,d]=(0,n.useState)([]),[p,b]=(0,n.useState)([]),[g,j]=(0,n.useState)(!1);(0,n.useEffect)(()=>{("webSearch"===e||"webFetch"===e)&&s.replace("/dashboard/media-providers/web")},[e,s]);let v=c.rj.find(s=>s.id===e),N=h[e]||null,y=m.has(e);if((0,n.useEffect)(()=>{v&&(fetch("/api/providers",{cache:"no-store"}).then(e=>e.json()).then(e=>o(e.connections||[])).catch(()=>{}),N&&fetch("/api/provider-nodes",{cache:"no-store"}).then(e=>e.json()).then(e=>d((e.nodes||[]).filter(e=>e.type===N.nodeType))).catch(()=>{}),y&&fetch("/api/combos",{cache:"no-store"}).then(e=>e.json()).then(e=>b(e.combos||[])).catch(()=>{}))},[N,y,v]),!v)return(0,a.notFound)();let C=(0,c.o5)(e),k=p.filter(s=>s.kind===e),w=r.map(e=>({id:e.id,name:e.name||N?.cardName||"Custom",color:N?.color||"#6366F1",textIcon:N?.textIcon||"CX"})),E=[...C,...w],$=async(e,s)=>{let i=t.filter(s=>s.provider===e);o(t=>t.map(t=>t.provider===e?{...t,isActive:s}:t)),await Promise.allSettled(i.map(e=>fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:s})})))},z=async()=>{let t=x[e]||`${e}-combo`,i=t,a=1,o=new Set(p.map(e=>e.name));for(;o.has(i);)i=`${t}-${a++}`;let r=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i,models:[],kind:e})});if(r.ok){let e=await r.json();s.push(`/dashboard/media-providers/combo/${e.id}`)}else alert((await r.json()).error||"Failed to create combo")};return(0,i.jsxs)("div",{className:"flex flex-col gap-6",children:[(N||y)&&(0,i.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[y&&(0,i.jsx)(l.$n,{size:"sm",icon:"add",onClick:z,children:"Create Combo"}),N&&(0,i.jsx)(l.$n,{size:"sm",icon:"add",onClick:()=>j(!0),children:N.addLabel})]}),y&&k.length>0&&(0,i.jsx)(f,{combos:k}),0===E.length?(0,i.jsxs)("div",{className:"text-center py-12 border border-dashed border-border rounded-xl text-text-muted text-sm",children:["No providers support ",(0,i.jsx)("strong",{children:v.label})," yet."]}):(0,i.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:[C.map(s=>(0,i.jsx)(u,{provider:s,kind:e,connections:t,onToggle:$},s.id)),w.map(s=>(0,i.jsx)(u,{provider:s,kind:e,connections:t,isCustom:!0,onToggle:$},s.id))]}),"embedding"===e&&(0,i.jsx)(l.x0,{isOpen:g,onClose:()=>j(!1),onCreated:e=>{d(s=>[...s,e]),j(!1)}}),"video"===e&&(0,i.jsx)(l.fA,{isOpen:g,onClose:()=>j(!1),onCreated:e=>{d(s=>[...s,e]),j(!1)}})]})}},24525:(e,s,t)=>{Promise.resolve().then(t.bind(t,16144))}},e=>{e.O(0,[8010,8105,1321,
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6620],{16144:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>b});var i=t(95155),a=t(73321),o=t(98500),r=t.n(o),n=t(12115),l=t(35497),d=t(57250),c=t(88105);let m=new Set([]),x={image:"image-combo",tts:"tts-combo"},h={embedding:{nodeType:"custom-embedding",addLabel:"Add Custom Embedding",cardName:"Custom Embedding",color:"#6366F1",textIcon:"CE"},video:{nodeType:"custom-video",addLabel:"Add Custom Video",cardName:"Custom Video",color:"#EC4899",textIcon:"CV"}};function p(e){let s=Object.entries(e).some(([e,s])=>e.startsWith("modelLock_")&&s&&new Date(s).getTime()>Date.now());return"unavailable"!==e.testStatus||s?e.testStatus:"active"}function u({provider:e,kind:s,connections:t,isCustom:a,onToggle:o}){let n=c.Q2[e.id],m=!!n?.noAuth,x=t.filter(s=>s.provider===e.id),h=x.filter(e=>{let s=p(e);return"active"===s||"success"===s}).length,f=x.filter(e=>{let s=p(e);return"error"===s||"expired"===s||"unavailable"===s}).length,b=x.length,g=b>0&&x.every(e=>!1===e.isActive);return(0,i.jsx)(r(),{href:`/dashboard/media-providers/${s}/${e.id}`,className:"group",children:(0,i.jsx)(l.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${g?"opacity-50":""}`,children:(0,i.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,i.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${e.color?.length>7?e.color:(e.color??"#888")+"15"}`},children:(0,i.jsx)(d.A,{src:`/providers/${e.id}.png`,alt:e.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:e.textIcon||e.id.slice(0,2).toUpperCase(),fallbackColor:e.color})}),(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("h3",{className:"font-semibold text-sm",children:e.name}),(0,i.jsxs)("div",{className:"flex items-center gap-2 mt-0.5 flex-wrap",children:[a&&(0,i.jsx)(l.Ex,{variant:"default",size:"sm",children:"Custom"}),m?(0,i.jsx)(l.Ex,{variant:"success",size:"sm",children:"Ready"}):g?(0,i.jsx)(l.Ex,{variant:"default",size:"sm",children:"Disabled"}):0===b?(0,i.jsx)("span",{className:"text-xs text-text-muted",children:"No connections"}):(0,i.jsxs)(i.Fragment,{children:[h>0&&(0,i.jsxs)(l.Ex,{variant:"success",size:"sm",dot:!0,children:[h," Connected"]}),f>0&&(0,i.jsxs)(l.Ex,{variant:"error",size:"sm",dot:!0,children:[f," Error"]}),0===h&&0===f&&(0,i.jsxs)(l.Ex,{variant:"default",size:"sm",children:[b," Added"]})]})]})]})]}),b>0&&(0,i.jsx)("div",{className:"shrink-0 opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:s=>{s.preventDefault(),s.stopPropagation(),o&&o(e.id,g)},children:(0,i.jsx)(l.lM,{size:"sm",checked:!g,onChange:()=>{},title:g?"Enable provider":"Disable provider"})})]})})})}function f({combos:e}){return 0===e.length?null:(0,i.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>(0,i.jsx)(r(),{href:`/dashboard/media-providers/combo/${e.id}`,children:(0,i.jsx)(l.Zp,{padding:"xs",className:"hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors cursor-pointer",children:(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,i.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"}),(0,i.jsx)("code",{className:"text-sm font-mono font-medium flex-1 truncate",children:e.name}),(0,i.jsxs)("div",{className:"flex flex-wrap items-center gap-1 sm:shrink-0",children:[e.models.slice(0,6).map((e,s)=>{let t="string"==typeof e?e.split("/")[0]:"",a=c.Q2[t];return(0,i.jsx)("div",{title:a?.name||e,className:"size-5 rounded flex items-center justify-center",style:{backgroundColor:`${a?.color??"#888"}15`},children:(0,i.jsx)(d.A,{src:`/providers/${t}.png`,alt:a?.name||t,size:18,className:"object-contain rounded max-w-[18px] max-h-[18px]",fallbackText:a?.textIcon||t.slice(0,2).toUpperCase(),fallbackColor:a?.color})},`${e}-${s}`)}),e.models.length>6&&(0,i.jsxs)("span",{className:"text-[10px] text-text-muted ml-1",children:["+",e.models.length-6]})]}),(0,i.jsx)("span",{className:"text-[11px] text-text-muted shrink-0",children:e.models.length}),(0,i.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[16px]",children:"chevron_right"})]})})},e.id))})}function b(){let{kind:e}=(0,a.useParams)(),s=(0,a.useRouter)(),[t,o]=(0,n.useState)([]),[r,d]=(0,n.useState)([]),[p,b]=(0,n.useState)([]),[g,j]=(0,n.useState)(!1);(0,n.useEffect)(()=>{("webSearch"===e||"webFetch"===e)&&s.replace("/dashboard/media-providers/web")},[e,s]);let v=c.rj.find(s=>s.id===e),N=h[e]||null,y=m.has(e);if((0,n.useEffect)(()=>{v&&(fetch("/api/providers",{cache:"no-store"}).then(e=>e.json()).then(e=>o(e.connections||[])).catch(()=>{}),N&&fetch("/api/provider-nodes",{cache:"no-store"}).then(e=>e.json()).then(e=>d((e.nodes||[]).filter(e=>e.type===N.nodeType))).catch(()=>{}),y&&fetch("/api/combos",{cache:"no-store"}).then(e=>e.json()).then(e=>b(e.combos||[])).catch(()=>{}))},[N,y,v]),!v)return(0,a.notFound)();let C=(0,c.o5)(e),k=p.filter(s=>s.kind===e),w=r.map(e=>({id:e.id,name:e.name||N?.cardName||"Custom",color:N?.color||"#6366F1",textIcon:N?.textIcon||"CX"})),E=[...C,...w],$=async(e,s)=>{let i=t.filter(s=>s.provider===e);o(t=>t.map(t=>t.provider===e?{...t,isActive:s}:t)),await Promise.allSettled(i.map(e=>fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:s})})))},z=async()=>{let t=x[e]||`${e}-combo`,i=t,a=1,o=new Set(p.map(e=>e.name));for(;o.has(i);)i=`${t}-${a++}`;let r=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i,models:[],kind:e})});if(r.ok){let e=await r.json();s.push(`/dashboard/media-providers/combo/${e.id}`)}else alert((await r.json()).error||"Failed to create combo")};return(0,i.jsxs)("div",{className:"flex flex-col gap-6",children:[(N||y)&&(0,i.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[y&&(0,i.jsx)(l.$n,{size:"sm",icon:"add",onClick:z,children:"Create Combo"}),N&&(0,i.jsx)(l.$n,{size:"sm",icon:"add",onClick:()=>j(!0),children:N.addLabel})]}),y&&k.length>0&&(0,i.jsx)(f,{combos:k}),0===E.length?(0,i.jsxs)("div",{className:"text-center py-12 border border-dashed border-border rounded-xl text-text-muted text-sm",children:["No providers support ",(0,i.jsx)("strong",{children:v.label})," yet."]}):(0,i.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:[C.map(s=>(0,i.jsx)(u,{provider:s,kind:e,connections:t,onToggle:$},s.id)),w.map(s=>(0,i.jsx)(u,{provider:s,kind:e,connections:t,isCustom:!0,onToggle:$},s.id))]}),"embedding"===e&&(0,i.jsx)(l.x0,{isOpen:g,onClose:()=>j(!1),onCreated:e=>{d(s=>[...s,e]),j(!1)}}),"video"===e&&(0,i.jsx)(l.fA,{isOpen:g,onClose:()=>j(!1),onCreated:e=>{d(s=>[...s,e]),j(!1)}})]})}},24525:(e,s,t)=>{Promise.resolve().then(t.bind(t,16144))}},e=>{e.O(0,[8010,8105,801,1321,5497,8441,3794,7358],()=>e(e.s=24525)),_N_E=e.O()}]);
|